@0xsquid/ui 2.6.8-xrpl-beta.0 → 2.6.8

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 (67) hide show
  1. package/dist/cjs/index.js +18007 -18466
  2. package/dist/cjs/types/components/badges/PriceChange.d.ts +3 -1
  3. package/dist/cjs/types/components/badges/index.d.ts +1 -1
  4. package/dist/cjs/types/components/buttons/Button.d.ts +2 -1
  5. package/dist/cjs/types/components/controls/LargeNumericInput.d.ts +2 -6
  6. package/dist/cjs/types/components/controls/NumericInput.d.ts +21 -13
  7. package/dist/cjs/types/components/feedback/LoadingText.d.ts +7 -0
  8. package/dist/cjs/types/components/icons/Loader.d.ts +1 -1
  9. package/dist/cjs/types/components/icons/PaymentIcons.d.ts +12 -0
  10. package/dist/cjs/types/components/icons/SwapInputs.d.ts +4 -1
  11. package/dist/cjs/types/components/icons/index.d.ts +1 -0
  12. package/dist/cjs/types/components/layout/SwapConfiguration.d.ts +17 -1
  13. package/dist/cjs/types/components/layout/index.d.ts +0 -2
  14. package/dist/cjs/types/components/lists/HistoryItem.d.ts +2 -1
  15. package/dist/cjs/types/components/views/SwapProgressView.d.ts +2 -1
  16. package/dist/cjs/types/core/design-system.d.ts +1 -0
  17. package/dist/cjs/types/core/index.d.ts +1 -1
  18. package/dist/cjs/types/core/utils.d.ts +16 -0
  19. package/dist/cjs/types/hooks/index.d.ts +3 -2
  20. package/dist/cjs/types/hooks/useNumericInput.d.ts +35 -0
  21. package/dist/cjs/types/services/internal/colorService.d.ts +0 -2
  22. package/dist/cjs/types/stories/buttons/Button.stories.d.ts +3 -0
  23. package/dist/cjs/types/stories/controls/NumericInput.stories.d.ts +17 -0
  24. package/dist/{esm/types/stories/badges → cjs/types/stories/feedback}/Loader.stories.d.ts +1 -1
  25. package/dist/cjs/types/stories/{badges → feedback}/LoadingSkeleton.stories.d.ts +2 -2
  26. package/dist/cjs/types/stories/feedback/LoadingText.stories.d.ts +6 -0
  27. package/dist/cjs/types/stories/views/SwapProgressView.stories.d.ts +1 -0
  28. package/dist/esm/index.js +17887 -18349
  29. package/dist/esm/types/components/badges/PriceChange.d.ts +3 -1
  30. package/dist/esm/types/components/badges/index.d.ts +1 -1
  31. package/dist/esm/types/components/buttons/Button.d.ts +2 -1
  32. package/dist/esm/types/components/controls/LargeNumericInput.d.ts +2 -6
  33. package/dist/esm/types/components/controls/NumericInput.d.ts +21 -13
  34. package/dist/esm/types/components/feedback/LoadingText.d.ts +7 -0
  35. package/dist/esm/types/components/icons/Loader.d.ts +1 -1
  36. package/dist/esm/types/components/icons/PaymentIcons.d.ts +12 -0
  37. package/dist/esm/types/components/icons/SwapInputs.d.ts +4 -1
  38. package/dist/esm/types/components/icons/index.d.ts +1 -0
  39. package/dist/esm/types/components/layout/SwapConfiguration.d.ts +17 -1
  40. package/dist/esm/types/components/layout/index.d.ts +0 -2
  41. package/dist/esm/types/components/lists/HistoryItem.d.ts +2 -1
  42. package/dist/esm/types/components/views/SwapProgressView.d.ts +2 -1
  43. package/dist/esm/types/core/design-system.d.ts +1 -0
  44. package/dist/esm/types/core/index.d.ts +1 -1
  45. package/dist/esm/types/core/utils.d.ts +16 -0
  46. package/dist/esm/types/hooks/index.d.ts +3 -2
  47. package/dist/esm/types/hooks/useNumericInput.d.ts +35 -0
  48. package/dist/esm/types/services/internal/colorService.d.ts +0 -2
  49. package/dist/esm/types/stories/buttons/Button.stories.d.ts +3 -0
  50. package/dist/esm/types/stories/controls/NumericInput.stories.d.ts +17 -0
  51. package/dist/{cjs/types/stories/badges → esm/types/stories/feedback}/Loader.stories.d.ts +1 -1
  52. package/dist/esm/types/stories/{badges → feedback}/LoadingSkeleton.stories.d.ts +2 -2
  53. package/dist/esm/types/stories/feedback/LoadingText.stories.d.ts +6 -0
  54. package/dist/esm/types/stories/views/SwapProgressView.stories.d.ts +1 -0
  55. package/dist/index.css +1 -1
  56. package/dist/index.d.ts +107 -49
  57. package/package.json +1 -1
  58. package/dist/cjs/types/components/layout/QrCode.d.ts +0 -7
  59. package/dist/cjs/types/components/layout/QrCodeModal.d.ts +0 -10
  60. package/dist/cjs/types/stories/layout/QrCode.stories.d.ts +0 -10
  61. package/dist/cjs/types/stories/layout/QrCodeModal.stories.d.ts +0 -8
  62. package/dist/esm/types/components/layout/QrCode.d.ts +0 -7
  63. package/dist/esm/types/components/layout/QrCodeModal.d.ts +0 -10
  64. package/dist/esm/types/stories/layout/QrCode.stories.d.ts +0 -10
  65. package/dist/esm/types/stories/layout/QrCodeModal.stories.d.ts +0 -8
  66. /package/dist/cjs/types/components/{badges → feedback}/LoadingSkeleton.d.ts +0 -0
  67. /package/dist/esm/types/components/{badges → feedback}/LoadingSkeleton.d.ts +0 -0
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
3
  import * as react from 'react';
4
- import react__default, { ReactNode, ComponentProps } from 'react';
4
+ import react__default, { ReactNode, ComponentProps, ChangeEvent } from 'react';
5
5
  import { Player } from '@lottiefiles/react-lottie-player';
6
6
  import * as framer_motion from 'framer-motion';
7
7
  import { motion } from 'framer-motion';
@@ -115,8 +115,10 @@ declare function BlockSkeleton({ isLoading, className, children, ...props }: Loa
115
115
  interface PriceChangeProps {
116
116
  variant?: "small" | "large";
117
117
  value: string | number;
118
+ highlightText?: boolean;
119
+ triangle?: "none" | "prefix" | "suffix";
118
120
  }
119
- declare function PriceChange({ value: rawValue, variant, }: PriceChangeProps): react_jsx_runtime.JSX.Element;
121
+ declare function PriceChange({ value: rawValue, variant, highlightText, triangle, }: PriceChangeProps): react_jsx_runtime.JSX.Element;
120
122
 
121
123
  declare const statusTextClassMap: Record<ActionStatus, string>;
122
124
  interface TransactionStateProps extends React.HTMLAttributes<HTMLDivElement> {
@@ -174,11 +176,38 @@ interface InputActionButtonProps {
174
176
  label?: string;
175
177
  }
176
178
 
177
- interface LargeNumericInputProps {
178
- value?: string;
179
- onChange: (value: string) => void;
179
+ declare enum UserInputType {
180
+ TOKEN = 0,
181
+ USD = 1
180
182
  }
181
- declare function LargeNumericInput({ onChange, value }: LargeNumericInputProps): react_jsx_runtime.JSX.Element;
183
+ interface UseNumericInputOptions {
184
+ token: Pick<Token$3, "decimals" | "price">;
185
+ onAmountChange: (tokenAmount: string) => void;
186
+ forcedAmount?: string;
187
+ formatIfVerySmall: {
188
+ token: string;
189
+ usd: string;
190
+ };
191
+ balance: string;
192
+ inputModeButton?: {
193
+ amountUsd?: string;
194
+ };
195
+ maxUsdDecimals?: number;
196
+ debounceInput?: boolean;
197
+ direction?: "from" | "to";
198
+ initialInputMode?: UserInputType;
199
+ }
200
+ declare function useNumericInput({ onAmountChange, token, balance, debounceInput, forcedAmount, formatIfVerySmall, inputModeButton, maxUsdDecimals, direction, initialInputMode, }: UseNumericInputOptions): {
201
+ userInputType: UserInputType;
202
+ inputValue: string;
203
+ handleInputChange: (e: ChangeEvent<HTMLInputElement>) => void;
204
+ handleSwitchInputMode: () => void;
205
+ isTokenAmountVerySmall: boolean;
206
+ isUsdAmountVerySmall: boolean;
207
+ amountFormatted: string;
208
+ onBalanceButtonClick: () => void;
209
+ balanceFormatted: string;
210
+ };
182
211
 
183
212
  type TooltipWidth = "max" | "container";
184
213
  type TooltipThreshold = "xxs" | "xs" | "s" | "m" | "l" | "xl" | "xxl";
@@ -201,7 +230,7 @@ interface Token$3 {
201
230
  symbol: string;
202
231
  decimals: number;
203
232
  }
204
- interface NumericInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
233
+ interface NumericInputProps {
205
234
  token: Token$3;
206
235
  onAmountChange: (tokenAmount: string) => void;
207
236
  forcedAmount?: string;
@@ -209,29 +238,39 @@ interface NumericInputProps extends React.InputHTMLAttributes<HTMLInputElement>
209
238
  token: string;
210
239
  usd: string;
211
240
  };
212
- showDetails?: boolean;
213
- isLoading?: boolean;
214
- error?: {
215
- message: string;
216
- };
217
241
  balance?: string;
218
- priceImpactPercentage?: string;
219
- criticalPriceImpactPercentage?: number;
220
- direction?: SwapDirection;
221
242
  inputModeButton?: {
222
243
  usdModeTooltip?: Omit<TooltipProps, "children">;
223
244
  tokenModeTooltip?: Omit<TooltipProps, "children">;
224
245
  amountUsd?: string;
225
246
  };
226
247
  maxUsdDecimals?: number;
227
- isInteractive?: boolean;
228
248
  balanceButton?: {
229
249
  tooltip?: Omit<TooltipProps, "children">;
230
250
  hideMaxChip?: boolean;
231
251
  };
232
252
  debounceInput?: boolean;
253
+ initialInputMode?: UserInputType;
254
+ customSymbol?: string;
255
+ hideControls?: boolean;
256
+ hideBalance?: boolean;
257
+ containerClassName?: string;
258
+ inputClassName?: string;
233
259
  }
234
- declare function NumericInput({ priceImpactPercentage, balance, error, criticalPriceImpactPercentage, token, onAmountChange, forcedAmount, maxUsdDecimals, formatIfVerySmall, showDetails, isLoading, direction, inputModeButton, isInteractive, balanceButton, debounceInput, ...props }: NumericInputProps): react_jsx_runtime.JSX.Element;
260
+ interface Props$1 extends NumericInputProps, React.InputHTMLAttributes<HTMLInputElement> {
261
+ direction?: SwapDirection;
262
+ showDetails?: boolean;
263
+ isLoading?: boolean;
264
+ isInteractive?: boolean;
265
+ priceImpactPercentage?: string;
266
+ criticalPriceImpactPercentage?: number;
267
+ error?: {
268
+ message: string;
269
+ };
270
+ }
271
+ declare function NumericInput({ priceImpactPercentage, balance, error, criticalPriceImpactPercentage, token, onAmountChange, forcedAmount, maxUsdDecimals, formatIfVerySmall, showDetails, isLoading, direction, inputModeButton, isInteractive, balanceButton, debounceInput, initialInputMode, customSymbol, hideControls, hideBalance, containerClassName, inputClassName, ...props }: Props$1): react_jsx_runtime.JSX.Element;
272
+
273
+ declare function LargeNumericInput({ balance, token, onAmountChange, forcedAmount, maxUsdDecimals, formatIfVerySmall, inputModeButton, balanceButton, debounceInput, }: NumericInputProps): react_jsx_runtime.JSX.Element;
235
274
 
236
275
  interface RangeInputProps {
237
276
  label: string;
@@ -303,6 +342,7 @@ interface ButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
303
342
  disabled?: boolean;
304
343
  link?: string;
305
344
  isLoading?: boolean;
345
+ isShimmering?: boolean;
306
346
  showLoader?: boolean;
307
347
  loaderSize?: LoaderSize;
308
348
  chip?: ChipProps;
@@ -312,7 +352,7 @@ interface ButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
312
352
  }
313
353
  type LoaderSize = "sm" | "md" | "lg";
314
354
  declare const buttonRoundedClassMap: Record<ButtonSize, Record<ButtonVariant, string>>;
315
- declare function Button({ label, disabled, size, variant, icon, link, isLoading, showLoader, loaderSize, chip, containerClassName, anchorRef, buttonRef, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
355
+ declare function Button({ label, disabled, size, variant, icon, link, isLoading, isShimmering, showLoader, loaderSize, chip, containerClassName, anchorRef, buttonRef, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
316
356
 
317
357
  interface FeeButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
318
358
  feeInUsd?: string;
@@ -793,6 +833,19 @@ declare function MaxIcon(): react_jsx_runtime.JSX.Element;
793
833
 
794
834
  declare function NotAllowedIcon(): react_jsx_runtime.JSX.Element;
795
835
 
836
+ declare function GooglePayIcon({ className, size, }: {
837
+ className?: string;
838
+ size?: string;
839
+ }): react_jsx_runtime.JSX.Element;
840
+ declare function ApplePayIcon({ className, size, }: {
841
+ className?: string;
842
+ size?: string;
843
+ }): react_jsx_runtime.JSX.Element;
844
+ declare function CreditCardIcon({ className, size, }: {
845
+ className?: string;
846
+ size?: string;
847
+ }): react_jsx_runtime.JSX.Element;
848
+
796
849
  declare function PercentIcon({ size, className, }: {
797
850
  size?: string;
798
851
  className?: string;
@@ -860,7 +913,10 @@ declare function SquidVector({ size, className, }: {
860
913
  className?: string;
861
914
  }): react_jsx_runtime.JSX.Element;
862
915
 
863
- declare function SwapInputsIcon(): react_jsx_runtime.JSX.Element;
916
+ declare function SwapInputsIcon({ size, className, }: {
917
+ size?: string;
918
+ className?: string;
919
+ }): react_jsx_runtime.JSX.Element;
864
920
  declare function SwapIcon({ size, className, }: {
865
921
  size?: string;
866
922
  className?: string;
@@ -1689,23 +1745,19 @@ declare function BorderedContainer({ children, className, }: {
1689
1745
 
1690
1746
  declare function ProfileHeaderBackground(): react_jsx_runtime.JSX.Element;
1691
1747
 
1692
- interface QrCodeProps {
1693
- matrix: boolean[][];
1694
- size: number;
1695
- imageUrl?: string;
1696
- }
1697
- declare function QrCode({ matrix, size: renderedSize, imageUrl }: QrCodeProps): react_jsx_runtime.JSX.Element;
1698
-
1699
- interface QrCodeModalProps {
1700
- qrData: boolean[][] | undefined;
1701
- handleClose: () => void;
1702
- handleGoBack?: () => void;
1703
- isModalOpen: boolean | undefined;
1704
- footerText: string;
1705
- title: string;
1748
+ interface AddressHeaderProps {
1749
+ direction: SwapDirection;
1750
+ onClick?: () => void;
1751
+ isDisabled?: boolean;
1752
+ tooltip?: TooltipProps["tooltipContent"];
1753
+ label: string;
1754
+ walletIconUrl?: string | null;
1755
+ isLoading?: boolean;
1756
+ displayLabel?: boolean;
1757
+ highlightLabel?: boolean;
1758
+ showIcon?: boolean;
1706
1759
  }
1707
- declare function QrCodeModal({ qrData, handleClose, handleGoBack, isModalOpen, footerText, title, }: QrCodeModalProps): react_jsx_runtime.JSX.Element;
1708
-
1760
+ declare const AddressHeader: ({ direction, onClick, isDisabled, tooltip, label, walletIconUrl, isLoading, displayLabel, highlightLabel, showIcon, }: AddressHeaderProps) => react_jsx_runtime.JSX.Element;
1709
1761
  interface SwapConfigurationProps {
1710
1762
  direction: SwapDirection;
1711
1763
  priceImpactPercentage?: string;
@@ -1752,12 +1804,15 @@ interface SwapConfigurationProps {
1752
1804
  address?: string;
1753
1805
  emptyAddressLabel?: string;
1754
1806
  disabled?: boolean;
1807
+ walletIconUrl?: string | null;
1808
+ showIcon?: boolean;
1755
1809
  };
1756
1810
  showNumericInputDetails?: boolean;
1757
1811
  fullHeight?: boolean;
1758
1812
  debounceInput?: boolean;
1813
+ showWalletButtonHeader?: boolean;
1759
1814
  }
1760
- declare function SwapConfiguration({ amount, tokenPrice, isFetching: isFetchingProp, chain, token, direction, onAmountChange, balance, criticalPriceImpactPercentage, error, priceImpactPercentage, maxUsdDecimals, isInputInteractive, isLoading, inputModeButton, balanceButton, assetsButton, walletButton, showNumericInputDetails, fullHeight, debounceInput, }: SwapConfigurationProps): react_jsx_runtime.JSX.Element;
1815
+ declare function SwapConfiguration({ amount, tokenPrice, isFetching: isFetchingProp, chain, token, direction, onAmountChange, balance, criticalPriceImpactPercentage, error, priceImpactPercentage, maxUsdDecimals, isInputInteractive, isLoading, inputModeButton, balanceButton, assetsButton, walletButton, showNumericInputDetails, fullHeight, debounceInput, showWalletButtonHeader, }: SwapConfigurationProps): react_jsx_runtime.JSX.Element;
1761
1816
 
1762
1817
  interface SwapStepsCollapsedFooterButton {
1763
1818
  label: string;
@@ -2211,8 +2266,9 @@ interface HistoryItemProps {
2211
2266
  onClick?: () => void;
2212
2267
  warningLabel?: string;
2213
2268
  dropdownMenuContent?: React.ReactNode;
2269
+ txType: "swap" | "send";
2214
2270
  }
2215
- declare function HistoryItem({ firstImageUrl, secondImageUrl, dateCompleted, fromAmount, fromLabel, toAmount, toLabel, dropdownMenuContent, itemsContainerRef, status, warningLabel, onClick, }: HistoryItemProps): react_jsx_runtime.JSX.Element;
2271
+ declare function HistoryItem({ firstImageUrl, secondImageUrl, dateCompleted, fromAmount, fromLabel, toAmount, toLabel, dropdownMenuContent, itemsContainerRef, status, warningLabel, txType, onClick, }: HistoryItemProps): react_jsx_runtime.JSX.Element;
2216
2272
 
2217
2273
  type HTMLInteractiveItem = HTMLButtonElement | HTMLDivElement | HTMLLabelElement;
2218
2274
  interface ListItemProps extends React.HTMLAttributes<HTMLButtonElement> {
@@ -2771,7 +2827,7 @@ interface Token {
2771
2827
  logoUrl: string;
2772
2828
  bgColor: string;
2773
2829
  }
2774
- declare function SwapProgressView({ steps, isOpen, handleClose, handleComplete, supportLink, fromAmount, fromChain, fromToken, toAmount, toChain, toToken, fromAddressFormatted, toAddressFormatted, swapState, estimatedTimeToComplete, footerButton, refundTokenSymbol, addGasLink, shareSwapDropdownContent, }: {
2830
+ declare function SwapProgressView({ steps, isOpen, handleClose, handleComplete, supportLink, fromAmount, fromChain, fromToken, toAmount, toChain, toToken, fromAddressFormatted, toAddressFormatted, swapState, estimatedTimeToComplete, footerButton, refundTokenSymbol, addGasLink, shareSwapDropdownContent, isSendTransaction, }: {
2775
2831
  steps: SwapStep[];
2776
2832
  handleClose?: (swapState: SwapState) => void;
2777
2833
  handleComplete?: () => void;
@@ -2791,6 +2847,7 @@ declare function SwapProgressView({ steps, isOpen, handleClose, handleComplete,
2791
2847
  footerButton?: SwapStepsCollapsedFooterButton;
2792
2848
  refundTokenSymbol?: string;
2793
2849
  addGasLink?: string;
2850
+ isSendTransaction?: boolean;
2794
2851
  }): react_jsx_runtime.JSX.Element;
2795
2852
 
2796
2853
  interface BaseTransactionViewProps {
@@ -2930,6 +2987,12 @@ interface ThemeProviderProps extends React.ComponentProps<"div"> {
2930
2987
  }
2931
2988
  declare function ThemeProvider({ theme, children, themeType, settings, ...props }: ThemeProviderProps): react_jsx_runtime.JSX.Element;
2932
2989
 
2990
+ declare function useCollapsibleMenu(): {
2991
+ isMenuOpen: boolean;
2992
+ toggleMenu: () => void;
2993
+ menuRef: react.RefObject<HTMLDivElement>;
2994
+ };
2995
+
2933
2996
  interface DropdownStyles {
2934
2997
  position: DropdownPosition;
2935
2998
  maxHeight: number | null;
@@ -2975,17 +3038,9 @@ type UseMediaQueryOptions = {
2975
3038
  */
2976
3039
  declare function useMediaQuery(query: string, { defaultValue, initializeWithValue, }?: UseMediaQueryOptions): boolean;
2977
3040
 
2978
- declare function useCollapsibleMenu(): {
2979
- isMenuOpen: boolean;
2980
- toggleMenu: () => void;
2981
- menuRef: react.RefObject<HTMLDivElement>;
2982
- };
2983
-
2984
3041
  declare function useOnResize(ref: React.RefObject<HTMLElement>, callback: (rect: DOMRectReadOnly) => void): void;
2985
3042
  declare function useRect(ref: React.RefObject<HTMLElement>): DOMRectReadOnly;
2986
3043
 
2987
- declare function useVersion<T>(value: T, equal?: (a: T, b: T) => boolean): number;
2988
-
2989
3044
  declare const useTimer: ({ immediateStart, }: {
2990
3045
  immediateStart?: boolean;
2991
3046
  }) => {
@@ -3007,6 +3062,8 @@ declare function useUserTheme(): {
3007
3062
  isDarkMode: boolean;
3008
3063
  };
3009
3064
 
3065
+ declare function useVersion<T>(value: T, equal?: (a: T, b: T) => boolean): number;
3066
+
3010
3067
  declare const CSS_VARS: {
3011
3068
  MOVE_WITH_SPRING_BOUNCE_DURATION: string;
3012
3069
  DISPLAY_DELAYED_DURATION: string;
@@ -3054,6 +3111,7 @@ declare const spacing: {
3054
3111
  "squid-m": string;
3055
3112
  "squid-l": string;
3056
3113
  "squid-xl": string;
3114
+ "squid-xl2": string;
3057
3115
  "squid-xxl": string;
3058
3116
  };
3059
3117
  declare const baseTailwindConfig: Config;
@@ -3067,6 +3125,8 @@ declare const baseTailwindConfig: Config;
3067
3125
  * @returns The combined class names as a string.
3068
3126
  */
3069
3127
  declare const cn: (...inputs: ClassValue[]) => string;
3128
+ declare const remToPx: (rem: string | number, baseFontSize?: number) => number;
3129
+ declare const pxToRem: (px: string | number, baseFontSize?: number) => number;
3070
3130
 
3071
3131
  interface RGB {
3072
3132
  r: number;
@@ -3080,8 +3140,6 @@ interface RGB {
3080
3140
  * @param style
3081
3141
  */
3082
3142
  declare const parseSquidTheme: (userTheme: Theme, themeType: ThemeType) => Record<string, string | undefined> | undefined;
3083
- declare const remToPx: (rem: string | number, baseFontSize?: number) => number;
3084
- declare const pxToRem: (px: string | number, baseFontSize?: number) => number;
3085
3143
  declare function getContrastColor({ r, g, b, }: {
3086
3144
  r: number;
3087
3145
  g: number;
@@ -17082,4 +17140,4 @@ declare const transactionRejectedAnimation: {
17082
17140
  markers: never[];
17083
17141
  };
17084
17142
 
17085
- export { ANIMATION_DURATIONS, AccountListItem, AccountsButton, type ActionButton, ActionLayout, ActionLineOutRow, ActionProperties, ActionRow, type ActionStatus, ActionStatusRow, ActionWrapper, AddressButton, type AllOrNone, AnimationCard, AnimationWrapper, Announcement, type AnnouncementProps, AppContainer, Approve, ApproveAction, ArrowBottomTopIcon, ArrowButton, ArrowCornerDownRightIcon, ArrowDownIcon, ArrowExpandIcon, ArrowLeftIcon, ArrowOutOfBoxIcon, ArrowRightDownCircleIcon, ArrowRightDownIcon, ArrowRightIcon, ArrowRightUpCircleIcon, ArrowRightUpIcon, ArrowRotate, ArrowSplit, ArrowTriangle, ArrowUpIcon, ArrowWallDownIcon, ArrowsSwapIcon, AssetsButton, type AssetsButtonVariant, AtomIcon, BackpackIcon, BadgeImage, BankIcon, type BaseActionProps, type BaseTransactionViewProps, BellAlarmIcon, BlockSkeleton, BodyText, Boost, BoostBadge, BoostButton, BorderedContainer, Breadcrumb, BridgeAction, BridgeHeader, BridgeProperties, BrokenHeartIcon, BubblesIcon, Button, type ButtonSize, type ButtonVariant, BuyNFTHeader, BuyNFTProperties, BuyNFTTransactionView, CSS_VARS, Calendar, CaptionText, CatSquareIcon, CelebrateIcon, ChainLink, Checkmark1Icon, Checkmark2Icon, ChevronArrowIcon, ChevronDownSmallIcon, ChevronGrabberVerticalIcon, ChevronLargeDownIcon, ChevronLargeRightIcon, ChevronRightSmallIcon, ChevronTopIcon, ChevronTopSmallIcon, Chip, type ChipProps, CircleCheckIcon, CircleMinusIcon, CirclePlusIcon, CircleX, CircleXFilledIcon, ClockOutlineIcon, ClockSolidIcon, CodeBracketsIcon, CodeSolidSquareIcon, CoinsAddIcon, CoinsIcon, CoinsOutlinedIcon, Collapse, CollapsibleMenu, CollectionIcon, ColorPaletteIcon, CommandIcon, CompassRoundOutlinedIcon, CompassRoundSolidIcon, ConsoleIcon, Copy2Icon, CopyOutlinedIcon, CrossAnimatedIcon, CrossedOutSunSolidIcon, DashboardFast, type DeepPartial, DepositAddressView, 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, FarcasterIcon, 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, type IconButtonProps, IconLabel, Image, ImageGroup, ImageIcon, type ImageProps, ImageSparkle, ImageStack, ImageState, IncompleteAction, InfinityIcon, InfoBox, Inline, Input, InteractionHeader, InteractionProperties, InteractionTransactionView, Join, LaptopIcon, LargeNumericInput, LightningIcon, LimitIcon, LinkIcon, ListItem, ListItemActionsButton, Loader, LoadingProvider, LoadingSkeleton, MEDIA_QUERIES, MarketCapIcon, MaxIcon, Menu, MenuItem, MenuSwapIcon, MirrorIcon, Modal, ModalContent, ModalContentDivider, ModalTitle, MoneyBagIcon, MoonIcon, NavigationBar, NewsIcon, NewspaperIcon, NotAllowedIcon, NumericInput, PathSquareIcon, PauseIcon, PercentIcon, PhoneIcon, PieChartIcon, PipeSeparator, PluginIcon, PlusIcon, PoopIcon, PowerIcon, PriceChange, ProductCard, ProfileHeader, ProfileHeaderBackground, PropertiesLayout, PropertyListItem, type PropertyListItemProps, type PublicTheme, PunkIcon, QrCode, QrCodeIcon, QrCodeModal, RangeInput, ReceiptBillIcon, ReceiveNFTAction, ReceiveTokensAction, 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, SmileFilledIcon, SmileIcon, SnapIcon, SortIcon, SparkleIcon, SparklesIcon, SquareArrowCenter, SquareArrowTopLeftIcon, SquareArrowTopRight2Icon, SquidLogo, SquidVector, StakeAction, StarLinesIcon, StartAction, StocksIcon, SuccessAction, SunIcon, SunOutlinedIcon, SunriseIcon, SunriseSmallIcon, SwapAction, SwapConfiguration, SwapErrorIcon, SwapHeader, type SwapHeaderProps, SwapIcon, SwapInputsIcon, SwapProgressView, SwapProperties, type SwapPropertiesProps, SwapState, type SwapStep, SwapStepItem, SwapStepSeparator, SwapStepsCollapsed, type SwapStepsCollapsedFooterButton, SwapSuccessIcon, SwapTransactionView, SwapWarningIcon, Switch, type SwitchProps, Tab, Tabs, TagIcon, TagIconFilled, TelegramIcon, TextSkeleton, type Theme, ThemePreference, ThemeProvider, type ThemeType, ThumbsUp, Tick, TimeFliesIcon, type Timeframe, Timeline, Timestamp, Toast, TokenDetailsView, TokenGroup, type TokenGroupProps, type TokenGroupVariant, TokenGroups, 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, TxProgressViewHeader, UnsupportedPairNotice, UsdAmount, WalletFilledIcon, WalletIcon, WalletLink, WrapAction, XSocialIcon, adjustColorForContrast, baseTailwindConfig, blendColors, buttonRoundedClassMap, cn, darkTheme, getColorBrightness, getContrastColor, getHexColorFromOpacityPercentage, getWalletCardBackground, hexToRgb, isValidHexColor, lightTheme, linkActionTimelineProps, parseColor, parseSquidTheme, pxToRem, remToPx, rgbToHex, spacing, statusTextClassMap, themeKeysToCssVariables, transactionErrorPauseAnimation, transactionFailureAnimation, transactionHalfSuccessAnimation, transactionPendingAnimation, transactionProcessingAnimation, transactionRejectedAnimation, transactionSuccessAnimation, useCollapsibleMenu, useDropdownMenu, useMediaQuery, useOnResize, useRect, useTimer, useUserTheme, useVersion };
17143
+ export { ANIMATION_DURATIONS, AccountListItem, AccountsButton, type ActionButton, ActionLayout, ActionLineOutRow, ActionProperties, ActionRow, type ActionStatus, ActionStatusRow, ActionWrapper, AddressButton, AddressHeader, type AllOrNone, AnimationCard, AnimationWrapper, Announcement, type AnnouncementProps, AppContainer, ApplePayIcon, Approve, ApproveAction, ArrowBottomTopIcon, ArrowButton, ArrowCornerDownRightIcon, ArrowDownIcon, ArrowExpandIcon, ArrowLeftIcon, ArrowOutOfBoxIcon, ArrowRightDownCircleIcon, ArrowRightDownIcon, ArrowRightIcon, ArrowRightUpCircleIcon, ArrowRightUpIcon, ArrowRotate, ArrowSplit, ArrowTriangle, ArrowUpIcon, ArrowWallDownIcon, ArrowsSwapIcon, AssetsButton, type AssetsButtonVariant, AtomIcon, BackpackIcon, BadgeImage, BankIcon, type BaseActionProps, type BaseTransactionViewProps, BellAlarmIcon, BlockSkeleton, BodyText, Boost, BoostBadge, BoostButton, BorderedContainer, Breadcrumb, BridgeAction, BridgeHeader, BridgeProperties, BrokenHeartIcon, BubblesIcon, Button, type ButtonSize, type ButtonVariant, BuyNFTHeader, BuyNFTProperties, BuyNFTTransactionView, CSS_VARS, Calendar, CaptionText, CatSquareIcon, CelebrateIcon, ChainLink, Checkmark1Icon, Checkmark2Icon, ChevronArrowIcon, ChevronDownSmallIcon, ChevronGrabberVerticalIcon, ChevronLargeDownIcon, ChevronLargeRightIcon, ChevronRightSmallIcon, ChevronTopIcon, ChevronTopSmallIcon, Chip, type ChipProps, CircleCheckIcon, CircleMinusIcon, CirclePlusIcon, CircleX, CircleXFilledIcon, ClockOutlineIcon, ClockSolidIcon, CodeBracketsIcon, CodeSolidSquareIcon, CoinsAddIcon, CoinsIcon, CoinsOutlinedIcon, Collapse, CollapsibleMenu, CollectionIcon, ColorPaletteIcon, CommandIcon, CompassRoundOutlinedIcon, CompassRoundSolidIcon, ConsoleIcon, Copy2Icon, CopyOutlinedIcon, CreditCardIcon, CrossAnimatedIcon, CrossedOutSunSolidIcon, DashboardFast, type DeepPartial, DepositAddressView, 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, FarcasterIcon, FavouriteFilterIcon, FeeButton, FeesAction, type FeesActionProps, FeesLines, FeesTotal, FileDownloadIcon, FilledHeartIcon, FilterAscendingIcon, FilterButton, FilterIcon, FilterTimelineIcon, GasIcon, GhostIcon, GithubIcon, GooglePayIcon, HashLink, HeadingText, HeartSmallIcon, HelpIcon, HighestPriceRangeIcon, HistoryItem, type HistoryItemStatus, HomeIcon, IconButton, type IconButtonProps, IconLabel, Image, ImageGroup, ImageIcon, type ImageProps, ImageSparkle, ImageStack, ImageState, IncompleteAction, InfinityIcon, InfoBox, Inline, Input, InteractionHeader, InteractionProperties, InteractionTransactionView, Join, LaptopIcon, LargeNumericInput, LightningIcon, LimitIcon, LinkIcon, ListItem, ListItemActionsButton, Loader, LoadingProvider, LoadingSkeleton, MEDIA_QUERIES, MarketCapIcon, MaxIcon, Menu, MenuItem, MenuSwapIcon, MirrorIcon, Modal, ModalContent, ModalContentDivider, ModalTitle, MoneyBagIcon, MoonIcon, NavigationBar, NewsIcon, NewspaperIcon, NotAllowedIcon, NumericInput, type NumericInputProps, PathSquareIcon, PauseIcon, PercentIcon, PhoneIcon, PieChartIcon, PipeSeparator, PluginIcon, PlusIcon, PoopIcon, PowerIcon, PriceChange, ProductCard, ProfileHeader, ProfileHeaderBackground, PropertiesLayout, PropertyListItem, type PropertyListItemProps, type Props$1 as Props, type PublicTheme, PunkIcon, QrCodeIcon, RangeInput, ReceiptBillIcon, ReceiveNFTAction, ReceiveTokensAction, 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, SmileFilledIcon, SmileIcon, SnapIcon, SortIcon, SparkleIcon, SparklesIcon, SquareArrowCenter, SquareArrowTopLeftIcon, SquareArrowTopRight2Icon, SquidLogo, SquidVector, StakeAction, StarLinesIcon, StartAction, StocksIcon, SuccessAction, SunIcon, SunOutlinedIcon, SunriseIcon, SunriseSmallIcon, SwapAction, SwapConfiguration, SwapErrorIcon, SwapHeader, type SwapHeaderProps, SwapIcon, SwapInputsIcon, SwapProgressView, SwapProperties, type SwapPropertiesProps, SwapState, type SwapStep, SwapStepItem, SwapStepSeparator, SwapStepsCollapsed, type SwapStepsCollapsedFooterButton, SwapSuccessIcon, SwapTransactionView, SwapWarningIcon, Switch, type SwitchProps, Tab, Tabs, TagIcon, TagIconFilled, TelegramIcon, TextSkeleton, type Theme, ThemePreference, ThemeProvider, type ThemeType, ThumbsUp, Tick, TimeFliesIcon, type Timeframe, Timeline, Timestamp, Toast, type Token$3 as Token, TokenDetailsView, TokenGroup, type TokenGroupProps, type TokenGroupVariant, TokenGroups, 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, TxProgressViewHeader, UnsupportedPairNotice, UsdAmount, UserInputType, WalletFilledIcon, WalletIcon, WalletLink, WrapAction, XSocialIcon, adjustColorForContrast, baseTailwindConfig, blendColors, buttonRoundedClassMap, cn, darkTheme, getColorBrightness, getContrastColor, getHexColorFromOpacityPercentage, getWalletCardBackground, hexToRgb, isValidHexColor, lightTheme, linkActionTimelineProps, parseColor, parseSquidTheme, pxToRem, remToPx, rgbToHex, spacing, statusTextClassMap, themeKeysToCssVariables, transactionErrorPauseAnimation, transactionFailureAnimation, transactionHalfSuccessAnimation, transactionPendingAnimation, transactionProcessingAnimation, transactionRejectedAnimation, transactionSuccessAnimation, useCollapsibleMenu, useDropdownMenu, useMediaQuery, useNumericInput, 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.6.8-xrpl-beta.0",
8
+ "version": "2.6.8",
9
9
  "author": "",
10
10
  "license": "MIT",
11
11
  "resolutions": {
@@ -1,7 +0,0 @@
1
- interface QrCodeProps {
2
- matrix: boolean[][];
3
- size: number;
4
- imageUrl?: string;
5
- }
6
- export declare function QrCode({ matrix, size: renderedSize, imageUrl }: QrCodeProps): import("react/jsx-runtime").JSX.Element;
7
- export {};
@@ -1,10 +0,0 @@
1
- interface QrCodeModalProps {
2
- qrData: boolean[][] | undefined;
3
- handleClose: () => void;
4
- handleGoBack?: () => void;
5
- isModalOpen: boolean | undefined;
6
- footerText: string;
7
- title: string;
8
- }
9
- export declare function QrCodeModal({ qrData, handleClose, handleGoBack, isModalOpen, footerText, title, }: QrCodeModalProps): import("react/jsx-runtime").JSX.Element;
10
- export {};
@@ -1,10 +0,0 @@
1
- import { type Meta, type StoryObj } from "@storybook/react";
2
- import { QrCode } from "../../components/layout/QrCode";
3
- declare const meta: Meta<typeof QrCode>;
4
- export default meta;
5
- type Story = StoryObj<typeof meta>;
6
- export declare const Default: Story;
7
- export declare const Small: Story;
8
- export declare const WithImage: Story;
9
- export declare const SmallWithImage: Story;
10
- export declare function generateRandomQrCodeMatrix(size?: number): boolean[][];
@@ -1,8 +0,0 @@
1
- import { type Meta, type StoryObj } from "@storybook/react";
2
- import { QrCodeModal } from "../../components/layout/QrCodeModal";
3
- declare const meta: Meta<typeof QrCodeModal>;
4
- export default meta;
5
- type Story = StoryObj<typeof meta>;
6
- export declare const QrData: Story;
7
- export declare const Loading: Story;
8
- export declare const GoBackButton: Story;
@@ -1,7 +0,0 @@
1
- interface QrCodeProps {
2
- matrix: boolean[][];
3
- size: number;
4
- imageUrl?: string;
5
- }
6
- export declare function QrCode({ matrix, size: renderedSize, imageUrl }: QrCodeProps): import("react/jsx-runtime").JSX.Element;
7
- export {};
@@ -1,10 +0,0 @@
1
- interface QrCodeModalProps {
2
- qrData: boolean[][] | undefined;
3
- handleClose: () => void;
4
- handleGoBack?: () => void;
5
- isModalOpen: boolean | undefined;
6
- footerText: string;
7
- title: string;
8
- }
9
- export declare function QrCodeModal({ qrData, handleClose, handleGoBack, isModalOpen, footerText, title, }: QrCodeModalProps): import("react/jsx-runtime").JSX.Element;
10
- export {};
@@ -1,10 +0,0 @@
1
- import { type Meta, type StoryObj } from "@storybook/react";
2
- import { QrCode } from "../../components/layout/QrCode";
3
- declare const meta: Meta<typeof QrCode>;
4
- export default meta;
5
- type Story = StoryObj<typeof meta>;
6
- export declare const Default: Story;
7
- export declare const Small: Story;
8
- export declare const WithImage: Story;
9
- export declare const SmallWithImage: Story;
10
- export declare function generateRandomQrCodeMatrix(size?: number): boolean[][];
@@ -1,8 +0,0 @@
1
- import { type Meta, type StoryObj } from "@storybook/react";
2
- import { QrCodeModal } from "../../components/layout/QrCodeModal";
3
- declare const meta: Meta<typeof QrCodeModal>;
4
- export default meta;
5
- type Story = StoryObj<typeof meta>;
6
- export declare const QrData: Story;
7
- export declare const Loading: Story;
8
- export declare const GoBackButton: Story;