@lifi/widget 1.13.4 → 1.13.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/App.d.ts +1 -1
  2. package/AppDrawer.d.ts +3 -3
  3. package/AppProvider.d.ts +2 -2
  4. package/AppProvider.js +1 -3
  5. package/cjs/App.d.ts +1 -1
  6. package/cjs/AppDrawer.d.ts +3 -3
  7. package/cjs/AppProvider.d.ts +2 -2
  8. package/cjs/AppProvider.js +0 -2
  9. package/cjs/components/AppContainer.d.ts +1 -1
  10. package/cjs/components/BottomSheet/BottomSheet.d.ts +1 -1
  11. package/cjs/components/BottomSheet/types.d.ts +2 -2
  12. package/cjs/components/Card/Card.d.ts +1 -1
  13. package/cjs/components/Dialog.d.ts +2 -2
  14. package/cjs/components/GasSufficiencyMessage/GasSufficiencyMessage.d.ts +2 -2
  15. package/cjs/components/Header/Header.d.ts +1 -1
  16. package/cjs/components/Header/useHeaderActionStore.d.ts +1 -1
  17. package/cjs/components/LiFiLogo.d.ts +1 -1
  18. package/cjs/components/ProgressToNextUpdate/ProgressToNextUpdate.d.ts +1 -1
  19. package/cjs/components/SelectChainAndToken.d.ts +1 -1
  20. package/cjs/components/SelectTokenButton/SelectTokenButton.d.ts +1 -1
  21. package/cjs/components/Step/CircularProgress.d.ts +1 -1
  22. package/cjs/components/Step/CircularProgress.style.d.ts +2 -2
  23. package/cjs/components/Step/Step.d.ts +1 -1
  24. package/cjs/components/Step/StepProcess.d.ts +1 -1
  25. package/cjs/components/Step/StepTimer.d.ts +1 -1
  26. package/cjs/components/Step/utils.d.ts +2 -2
  27. package/cjs/components/StepActions/StepActions.d.ts +2 -2
  28. package/cjs/components/StepActions/types.d.ts +2 -2
  29. package/cjs/components/SwapButton/SwapButton.d.ts +1 -1
  30. package/cjs/components/SwapInProgress/SwapInProgress.d.ts +1 -1
  31. package/cjs/components/SwapInput/FormPriceHelperText.d.ts +1 -1
  32. package/cjs/components/SwapInput/SwapInput.d.ts +1 -1
  33. package/cjs/components/SwapInput/SwapInputAdornment.d.ts +1 -1
  34. package/cjs/components/SwapRouteCard/SwapRouteCard.d.ts +2 -2
  35. package/cjs/components/SwapRouteCard/SwapRouteCardSkeleton.d.ts +2 -2
  36. package/cjs/components/SwapRouteCard/SwapRouteNotFoundCard.d.ts +2 -2
  37. package/cjs/components/SwapRouteCard/types.d.ts +1 -1
  38. package/cjs/components/TextFitter/TextFitter.d.ts +2 -2
  39. package/cjs/components/TextFitter/types.d.ts +1 -1
  40. package/cjs/components/Token/Token.d.ts +2 -2
  41. package/cjs/components/TokenAvatar/TokenAvatar.d.ts +2 -2
  42. package/cjs/components/TokenList/TokenList.d.ts +2 -2
  43. package/cjs/components/TokenList/TokenListItem.d.ts +1 -1
  44. package/cjs/components/TokenList/VirtualizedTokenList.d.ts +2 -2
  45. package/cjs/components/TokenList/types.d.ts +4 -4
  46. package/cjs/config/lifi.d.ts +2 -1
  47. package/cjs/config/theme.d.ts +2 -2
  48. package/cjs/config/theme.js +3 -4
  49. package/cjs/config/version.d.ts +1 -1
  50. package/cjs/config/version.js +1 -1
  51. package/cjs/hooks/useGasSufficiency.d.ts +1 -1
  52. package/cjs/hooks/useRouteExecution.d.ts +1 -1
  53. package/cjs/hooks/useTokenBalances.d.ts +1 -1
  54. package/cjs/hooks/useTokenSearch.d.ts +1 -1
  55. package/cjs/hooks/useTokens.d.ts +1 -1
  56. package/cjs/hooks/useTools.d.ts +1 -1
  57. package/cjs/icons/LiFiFullLogo.d.ts +1 -1
  58. package/cjs/icons/LiFiLogo.d.ts +1 -1
  59. package/cjs/icons/LiFiToolLogo.d.ts +1 -1
  60. package/cjs/pages/MainPage/SwapRoutes.d.ts +1 -1
  61. package/cjs/pages/SelectTokenPage/ChainSelect.d.ts +1 -1
  62. package/cjs/pages/SelectTokenPage/SelectTokenPage.d.ts +2 -2
  63. package/cjs/pages/SwapHistoryPage/SwapHistoryItem.d.ts +1 -1
  64. package/cjs/pages/SwapPage/StatusBottomSheet.d.ts +1 -1
  65. package/cjs/pages/SwapPage/StatusBottomSheet.style.d.ts +2 -2
  66. package/cjs/pages/SwapPage/utils.d.ts +2 -2
  67. package/cjs/pages/SwapRoutesPage/SwapRoutesPage.d.ts +1 -1
  68. package/cjs/providers/WalletProvider/WalletProvider.d.ts +3 -3
  69. package/cjs/providers/WalletProvider/types.d.ts +3 -3
  70. package/cjs/providers/WidgetProvider/types.d.ts +1 -1
  71. package/cjs/stores/route/types.d.ts +1 -1
  72. package/cjs/stores/route/useExecutingRoutes.d.ts +1 -1
  73. package/cjs/stores/route/useSwapHistory.d.ts +1 -1
  74. package/cjs/stores/settings/types.d.ts +2 -2
  75. package/cjs/stores/settings/useAppearance.d.ts +1 -1
  76. package/cjs/stores/settings/useSetSettings.d.ts +1 -1
  77. package/cjs/stores/settings/useSettings.d.ts +1 -1
  78. package/cjs/stores/settings/useSettingsStore.d.ts +1 -1
  79. package/cjs/types/token.d.ts +1 -1
  80. package/cjs/types/widget.d.ts +5 -5
  81. package/cjs/utils/colors.d.ts +2 -2
  82. package/cjs/utils/colors.js +4 -4
  83. package/components/AppContainer.d.ts +1 -1
  84. package/components/BottomSheet/BottomSheet.d.ts +1 -1
  85. package/components/BottomSheet/types.d.ts +2 -2
  86. package/components/Card/Card.d.ts +1 -1
  87. package/components/Dialog.d.ts +2 -2
  88. package/components/GasSufficiencyMessage/GasSufficiencyMessage.d.ts +2 -2
  89. package/components/Header/Header.d.ts +1 -1
  90. package/components/Header/useHeaderActionStore.d.ts +1 -1
  91. package/components/LiFiLogo.d.ts +1 -1
  92. package/components/ProgressToNextUpdate/ProgressToNextUpdate.d.ts +1 -1
  93. package/components/ProgressToNextUpdate/ProgressToNextUpdate.js +1 -1
  94. package/components/SelectChainAndToken.d.ts +1 -1
  95. package/components/SelectTokenButton/SelectTokenButton.d.ts +1 -1
  96. package/components/SelectTokenButton/SelectTokenButton.js +1 -1
  97. package/components/Step/CircularProgress.d.ts +1 -1
  98. package/components/Step/CircularProgress.style.d.ts +2 -2
  99. package/components/Step/Step.d.ts +1 -1
  100. package/components/Step/StepProcess.d.ts +1 -1
  101. package/components/Step/StepTimer.d.ts +1 -1
  102. package/components/Step/utils.d.ts +2 -2
  103. package/components/Step/utils.js +1 -1
  104. package/components/StepActions/StepActions.d.ts +2 -2
  105. package/components/StepActions/StepActions.js +1 -1
  106. package/components/StepActions/types.d.ts +2 -2
  107. package/components/SwapButton/SwapButton.d.ts +1 -1
  108. package/components/SwapInProgress/SwapInProgress.d.ts +1 -1
  109. package/components/SwapInput/FormPriceHelperText.d.ts +1 -1
  110. package/components/SwapInput/FormPriceHelperText.js +1 -1
  111. package/components/SwapInput/SwapInput.d.ts +1 -1
  112. package/components/SwapInput/SwapInput.js +1 -1
  113. package/components/SwapInput/SwapInputAdornment.d.ts +1 -1
  114. package/components/SwapInput/SwapInputAdornment.js +1 -1
  115. package/components/SwapRouteCard/SwapRouteCard.d.ts +2 -2
  116. package/components/SwapRouteCard/SwapRouteCardSkeleton.d.ts +2 -2
  117. package/components/SwapRouteCard/SwapRouteNotFoundCard.d.ts +2 -2
  118. package/components/SwapRouteCard/types.d.ts +1 -1
  119. package/components/TextFitter/TextFitter.d.ts +2 -2
  120. package/components/TextFitter/TextFitter.js +1 -1
  121. package/components/TextFitter/types.d.ts +1 -1
  122. package/components/Token/Token.d.ts +2 -2
  123. package/components/TokenAvatar/TokenAvatar.d.ts +2 -2
  124. package/components/TokenList/TokenList.d.ts +2 -2
  125. package/components/TokenList/TokenListItem.d.ts +1 -1
  126. package/components/TokenList/VirtualizedTokenList.d.ts +2 -2
  127. package/components/TokenList/types.d.ts +4 -4
  128. package/config/lifi.d.ts +2 -1
  129. package/config/theme.d.ts +2 -2
  130. package/config/theme.js +3 -4
  131. package/config/version.d.ts +1 -1
  132. package/config/version.js +1 -1
  133. package/hooks/useGasSufficiency.d.ts +1 -1
  134. package/hooks/useRouteExecution.d.ts +1 -1
  135. package/hooks/useTokenBalances.d.ts +1 -1
  136. package/hooks/useTokenSearch.d.ts +1 -1
  137. package/hooks/useTokens.d.ts +1 -1
  138. package/hooks/useTools.d.ts +1 -1
  139. package/icons/LiFiFullLogo.d.ts +1 -1
  140. package/icons/LiFiLogo.d.ts +1 -1
  141. package/icons/LiFiToolLogo.d.ts +1 -1
  142. package/package.json +2 -2
  143. package/pages/MainPage/SwapRoutes.d.ts +1 -1
  144. package/pages/SelectTokenPage/ChainSelect.d.ts +1 -1
  145. package/pages/SelectTokenPage/SelectTokenPage.d.ts +2 -2
  146. package/pages/SwapHistoryPage/SwapHistoryItem.d.ts +1 -1
  147. package/pages/SwapPage/StatusBottomSheet.d.ts +1 -1
  148. package/pages/SwapPage/StatusBottomSheet.style.d.ts +2 -2
  149. package/pages/SwapPage/utils.d.ts +2 -2
  150. package/pages/SwapPage/utils.js +1 -1
  151. package/pages/SwapRoutesPage/SwapRoutesPage.d.ts +1 -1
  152. package/providers/WalletProvider/WalletProvider.d.ts +3 -3
  153. package/providers/WalletProvider/types.d.ts +3 -3
  154. package/providers/WidgetProvider/types.d.ts +1 -1
  155. package/stores/route/types.d.ts +1 -1
  156. package/stores/route/useExecutingRoutes.d.ts +1 -1
  157. package/stores/route/useSwapHistory.d.ts +1 -1
  158. package/stores/settings/types.d.ts +2 -2
  159. package/stores/settings/useAppearance.d.ts +1 -1
  160. package/stores/settings/useSetSettings.d.ts +1 -1
  161. package/stores/settings/useSettings.d.ts +1 -1
  162. package/stores/settings/useSettingsStore.d.ts +1 -1
  163. package/tsconfig.cjs.tsbuildinfo +1 -1
  164. package/types/token.d.ts +1 -1
  165. package/types/widget.d.ts +5 -5
  166. package/utils/colors.d.ts +2 -2
  167. package/utils/colors.js +4 -4
package/App.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { AppProps } from './AppProvider';
2
+ import type { AppProps } from './AppProvider';
3
3
  export declare const App: React.FC<AppProps>;
4
4
  export declare const AppDefault: () => JSX.Element;
package/AppDrawer.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { DrawerProps } from '@mui/material';
2
- import { RefObject } from 'react';
3
- import { WidgetConfig } from './types';
1
+ import type { DrawerProps } from '@mui/material';
2
+ import type { RefObject } from 'react';
3
+ import type { WidgetConfig } from './types';
4
4
  export declare type AppDrawerProps = DrawerProps & {
5
5
  elementRef?: RefObject<HTMLDivElement>;
6
6
  config?: WidgetConfig;
package/AppProvider.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { PropsWithChildren } from 'react';
2
- import { WidgetConfig } from '.';
1
+ import type { PropsWithChildren } from 'react';
2
+ import type { WidgetConfig } from '.';
3
3
  export interface AppProps {
4
4
  config?: WidgetConfig;
5
5
  }
package/AppProvider.js CHANGED
@@ -1,7 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- /* eslint-disable camelcase */
3
- /* eslint-disable react/jsx-pascal-case */
4
- import { QueryClientProvider, } from '@tanstack/react-query';
2
+ import { QueryClientProvider } from '@tanstack/react-query';
5
3
  import { Fragment } from 'react';
6
4
  import { MemoryRouter, useInRouterContext } from 'react-router-dom';
7
5
  import { queryClient } from './config/queryClient';
package/cjs/App.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { AppProps } from './AppProvider';
2
+ import type { AppProps } from './AppProvider';
3
3
  export declare const App: React.FC<AppProps>;
4
4
  export declare const AppDefault: () => JSX.Element;
@@ -1,6 +1,6 @@
1
- import { DrawerProps } from '@mui/material';
2
- import { RefObject } from 'react';
3
- import { WidgetConfig } from './types';
1
+ import type { DrawerProps } from '@mui/material';
2
+ import type { RefObject } from 'react';
3
+ import type { WidgetConfig } from './types';
4
4
  export declare type AppDrawerProps = DrawerProps & {
5
5
  elementRef?: RefObject<HTMLDivElement>;
6
6
  config?: WidgetConfig;
@@ -1,5 +1,5 @@
1
- import { PropsWithChildren } from 'react';
2
- import { WidgetConfig } from '.';
1
+ import type { PropsWithChildren } from 'react';
2
+ import type { WidgetConfig } from '.';
3
3
  export interface AppProps {
4
4
  config?: WidgetConfig;
5
5
  }
@@ -2,8 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TelemetryProvider = exports.AppRouter = exports.AppProvider = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
- /* eslint-disable camelcase */
6
- /* eslint-disable react/jsx-pascal-case */
7
5
  const react_query_1 = require("@tanstack/react-query");
8
6
  const react_1 = require("react");
9
7
  const react_router_dom_1 = require("react-router-dom");
@@ -1,4 +1,4 @@
1
- import { PropsWithChildren, RefObject } from 'react';
1
+ import type { PropsWithChildren, RefObject } from 'react';
2
2
  export declare const FlexContainer: import("@emotion/styled").StyledComponent<{
3
3
  children?: import("react").ReactNode;
4
4
  classes?: Partial<import("@mui/material").ContainerClasses> | undefined;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { BottomSheetBase, BottomSheetProps } from './types';
2
+ import type { BottomSheetBase, BottomSheetProps } from './types';
3
3
  export declare const BottomSheet: import("react").ForwardRefExoticComponent<Pick<BottomSheetProps, "className" | "style" | "classes" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "children" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "sx" | "key" | "transitionDuration" | "variant" | "open" | "anchor" | "elementRef" | "components" | "componentsProps" | "BackdropComponent" | "BackdropProps" | "closeAfterTransition" | "container" | "disableAutoFocus" | "disableEnforceFocus" | "disableEscapeKeyDown" | "disablePortal" | "disableRestoreFocus" | "disableScrollLock" | "hideBackdrop" | "keepMounted" | "onBackdropClick" | "onClose" | "elevation" | "ModalProps" | "PaperProps" | "SlideProps"> & import("react").RefAttributes<BottomSheetBase>>;
@@ -1,5 +1,5 @@
1
- import { DrawerProps } from '@mui/material';
2
- import { RefObject } from 'react';
1
+ import type { DrawerProps } from '@mui/material';
2
+ import type { RefObject } from 'react';
3
3
  export declare type BottomSheetProps = DrawerProps & {
4
4
  elementRef?: RefObject<HTMLDivElement>;
5
5
  };
@@ -1,4 +1,4 @@
1
- import { MouseEventHandler } from 'react';
1
+ import type { MouseEventHandler } from 'react';
2
2
  export declare const Card: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
3
3
  children?: import("react").ReactNode;
4
4
  component?: import("react").ElementType<any> | undefined;
@@ -1,3 +1,3 @@
1
- import { DialogProps } from '@mui/material';
2
- import { PropsWithChildren } from 'react';
1
+ import type { DialogProps } from '@mui/material';
2
+ import type { PropsWithChildren } from 'react';
3
3
  export declare const Dialog: React.FC<PropsWithChildren<DialogProps>>;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { Route } from '@lifi/sdk';
3
- import { BoxProps } from '@mui/material';
2
+ import type { Route } from '@lifi/sdk';
3
+ import type { BoxProps } from '@mui/material';
4
4
  export declare const GasSufficiencyMessage: React.FC<{
5
5
  route?: Route;
6
6
  } & BoxProps>;
@@ -1,2 +1,2 @@
1
- import { FC } from 'react';
1
+ import type { FC } from 'react';
2
2
  export declare const Header: FC;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { HeaderActionStore } from './types';
2
+ import type { HeaderActionStore } from './types';
3
3
  export declare const useHeaderActionStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<HeaderActionStore>, "setState"> & {
4
4
  setState(nextStateOrUpdater: HeaderActionStore | Partial<HeaderActionStore> | ((state: import("immer/dist/internal").WritableDraft<HeaderActionStore>) => void), shouldReplace?: boolean | undefined): void;
5
5
  }>;
@@ -1,4 +1,4 @@
1
- import { CSSProperties } from 'react';
1
+ import type { CSSProperties } from 'react';
2
2
  export declare const LiFiLogo: React.FC<{
3
3
  variant?: 'icon' | 'full';
4
4
  style?: CSSProperties;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { IconButtonProps } from '@mui/material';
2
+ import type { IconButtonProps } from '@mui/material';
3
3
  export declare const ProgressToNextUpdate: React.FC<{
4
4
  updatedAt: number;
5
5
  timeToUpdate: number;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { BoxProps } from '@mui/material';
2
+ import type { BoxProps } from '@mui/material';
3
3
  export declare const SelectChainAndToken: React.FC<BoxProps>;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { SwapFormTypeProps } from '../../providers/SwapFormProvider';
2
+ import type { SwapFormTypeProps } from '../../providers/SwapFormProvider';
3
3
  export declare const SelectTokenButton: React.FC<SwapFormTypeProps & {
4
4
  compact: boolean;
5
5
  }>;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { Status } from '@lifi/sdk';
2
+ import type { Status } from '@lifi/sdk';
3
3
  export declare function CircularProgress({ status }: {
4
4
  status: Status;
5
5
  }): JSX.Element;
@@ -1,5 +1,5 @@
1
- import { Status } from '@lifi/sdk';
2
- import { Theme } from '@mui/material';
1
+ import type { Status } from '@lifi/sdk';
2
+ import type { Theme } from '@mui/material';
3
3
  export declare const CircularProgress: import("@emotion/styled").StyledComponent<import("@mui/material").CircularProgressProps & import("@mui/system").MUIStyledCommonProps<Theme> & {
4
4
  status: Status;
5
5
  }, {}, {}>;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { Step as StepType, TokenAmount } from '@lifi/sdk';
2
+ import type { Step as StepType, TokenAmount } from '@lifi/sdk';
3
3
  export declare const Step: React.FC<{
4
4
  step: StepType;
5
5
  fromToken?: TokenAmount;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { Process, Step } from '@lifi/sdk';
2
+ import type { Process, Step } from '@lifi/sdk';
3
3
  export declare const StepProcess: React.FC<{
4
4
  step: Step;
5
5
  process: Process;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { Step } from '@lifi/sdk';
2
+ import type { Step } from '@lifi/sdk';
3
3
  export declare const StepTimer: React.FC<{
4
4
  step: Step;
5
5
  }>;
@@ -1,5 +1,5 @@
1
- import { EVMChain, Process, Step } from '@lifi/sdk';
2
- import { TFunction } from 'react-i18next';
1
+ import type { EVMChain, Process, Step } from '@lifi/sdk';
2
+ import type { TFunction } from 'react-i18next';
3
3
  export declare function getProcessMessage(t: TFunction<'translation', undefined>, getChainById: (chainId: number) => EVMChain | undefined, step: Step, process: Process): {
4
4
  title?: string;
5
5
  message?: string;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { Step } from '@lifi/sdk';
3
- import { StepActionsProps } from './types';
2
+ import type { Step } from '@lifi/sdk';
3
+ import type { StepActionsProps } from './types';
4
4
  export declare const StepActions: React.FC<StepActionsProps>;
5
5
  export declare const StepDetailsContent: React.FC<{
6
6
  step: Step;
@@ -1,5 +1,5 @@
1
- import { Step } from '@lifi/sdk';
2
- import { BoxProps } from '@mui/material';
1
+ import type { Step } from '@lifi/sdk';
2
+ import type { BoxProps } from '@mui/material';
3
3
  export interface StepActionsProps extends BoxProps {
4
4
  step: Step;
5
5
  dense?: boolean;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { SwapButtonProps } from './types';
2
+ import type { SwapButtonProps } from './types';
3
3
  export declare const SwapButton: React.FC<SwapButtonProps>;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { BoxProps } from '@mui/material';
2
+ import type { BoxProps } from '@mui/material';
3
3
  export declare const SwapInProgress: React.FC<BoxProps>;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { SwapFormTypeProps } from '../../providers/SwapFormProvider';
2
+ import type { SwapFormTypeProps } from '../../providers/SwapFormProvider';
3
3
  export declare const FormPriceHelperText: React.FC<SwapFormTypeProps & {
4
4
  selected: boolean;
5
5
  }>;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { SwapFormTypeProps } from '../../providers/SwapFormProvider';
2
+ import type { SwapFormTypeProps } from '../../providers/SwapFormProvider';
3
3
  export declare const SwapInput: React.FC<SwapFormTypeProps>;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { SwapFormTypeProps } from '../../providers/SwapFormProvider';
2
+ import type { SwapFormTypeProps } from '../../providers/SwapFormProvider';
3
3
  export declare const SwapInputAdornment: ({ formType }: SwapFormTypeProps) => JSX.Element;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { BoxProps } from '@mui/material';
3
- import { SwapRouteCardProps } from './types';
2
+ import type { BoxProps } from '@mui/material';
3
+ import type { SwapRouteCardProps } from './types';
4
4
  export declare const SwapRouteCard: React.FC<SwapRouteCardProps & BoxProps>;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { BoxProps } from '@mui/material';
3
- import { SwapRouteCardSkeletonProps } from './types';
2
+ import type { BoxProps } from '@mui/material';
3
+ import type { SwapRouteCardSkeletonProps } from './types';
4
4
  export declare const SwapRouteCardSkeleton: React.FC<SwapRouteCardSkeletonProps & BoxProps>;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { BoxProps } from '@mui/material';
3
- import { SwapRouteCardSkeletonProps } from './types';
2
+ import type { BoxProps } from '@mui/material';
3
+ import type { SwapRouteCardSkeletonProps } from './types';
4
4
  export declare const SwapRouteNotFoundCard: React.FC<SwapRouteCardSkeletonProps & BoxProps>;
@@ -1,4 +1,4 @@
1
- import { Route } from '@lifi/sdk';
1
+ import type { Route } from '@lifi/sdk';
2
2
  export interface SwapRouteCardProps {
3
3
  route: Route;
4
4
  dense?: boolean;
@@ -1,3 +1,3 @@
1
- import { PropsWithChildren } from 'react';
2
- import { TextFitterProps } from './types';
1
+ import type { PropsWithChildren } from 'react';
2
+ import type { TextFitterProps } from './types';
3
3
  export declare const TextFitter: React.FC<PropsWithChildren<TextFitterProps>>;
@@ -1,4 +1,4 @@
1
- import { CSSProperties } from 'react';
1
+ import type { CSSProperties } from 'react';
2
2
  export interface TextFitterProps {
3
3
  textStyle?: CSSProperties;
4
4
  svgStyle?: CSSProperties;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { TokenAmount } from '@lifi/sdk';
3
- import { BoxProps } from '@mui/material';
2
+ import type { TokenAmount } from '@lifi/sdk';
3
+ import type { BoxProps } from '@mui/material';
4
4
  export declare const Token: React.FC<{
5
5
  token: TokenAmount;
6
6
  connected?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { Token } from '@lifi/sdk';
3
- import { SxProps, Theme } from '@mui/material';
2
+ import type { Token } from '@lifi/sdk';
3
+ import type { SxProps, Theme } from '@mui/material';
4
4
  export declare const TokenAvatar: React.FC<{
5
5
  token: Token;
6
6
  sx?: SxProps<Theme>;
@@ -1,3 +1,3 @@
1
- import { FC } from 'react';
2
- import { TokenListProps } from './types';
1
+ import type { FC } from 'react';
2
+ import type { TokenListProps } from './types';
3
3
  export declare const TokenList: FC<TokenListProps>;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { TokenListItemProps } from './types';
2
+ import type { TokenListItemProps } from './types';
3
3
  export declare const TokenListItem: React.FC<TokenListItemProps>;
4
4
  export declare const TokenListItemSkeleton: () => JSX.Element;
5
5
  export declare const TokenAmountSkeleton: React.FC;
@@ -1,3 +1,3 @@
1
- import { FC } from 'react';
2
- import { VirtualizedTokenListProps } from './types';
1
+ import type { FC } from 'react';
2
+ import type { VirtualizedTokenListProps } from './types';
3
3
  export declare const VirtualizedTokenList: FC<VirtualizedTokenListProps>;
@@ -1,7 +1,7 @@
1
- import { TokenAmount } from '@lifi/sdk';
2
- import { MutableRefObject } from 'react';
3
- import { SwapFormDirection } from '../../providers/SwapFormProvider';
4
- import { Token } from '../../types';
1
+ import type { TokenAmount } from '@lifi/sdk';
2
+ import type { MutableRefObject } from 'react';
3
+ import type { SwapFormDirection } from '../../providers/SwapFormProvider';
4
+ import type { Token } from '../../types';
5
5
  export interface TokenListProps {
6
6
  formType: SwapFormDirection;
7
7
  height: number;
@@ -1,3 +1,4 @@
1
- import LIFI, { ConfigUpdate } from '@lifi/sdk';
1
+ import type { ConfigUpdate } from '@lifi/sdk';
2
+ import LIFI from '@lifi/sdk';
2
3
  export declare const LiFi: LIFI;
3
4
  export declare const updateLiFiConfig: (configUpdate: ConfigUpdate) => void;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { PaletteMode } from '@mui/material';
3
- import { ThemeConfig } from '../types';
2
+ import type { PaletteMode } from '@mui/material';
3
+ import type { ThemeConfig } from '../types';
4
4
  declare module '@mui/material/styles' {
5
5
  interface TypographyVariants {
6
6
  '@supports (font-variation-settings: normal)': React.CSSProperties;
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createTheme = void 0;
4
4
  const DialogActions_1 = require("@mui/material/DialogActions");
5
5
  const styles_1 = require("@mui/material/styles");
6
- const createPalette_1 = require("@mui/material/styles/createPalette");
7
6
  const palette = {
8
7
  primary: {
9
8
  main: '#3F49E1',
@@ -123,9 +122,9 @@ const createTheme = (mode, theme = {}) => {
123
122
  },
124
123
  }, contained: {
125
124
  '&:hover': {
126
- color: (0, styles_1.getContrastRatio)(createPalette_1.dark.text.primary, primaryMainColor) >= 3
127
- ? createPalette_1.dark.text.primary
128
- : createPalette_1.light.text.primary,
125
+ color: (0, styles_1.getContrastRatio)('rgb(0, 0, 0)', primaryMainColor) >= 3
126
+ ? 'rgb(0, 0, 0)'
127
+ : 'rgb(255, 255, 255)',
129
128
  },
130
129
  } }),
131
130
  },
@@ -1,2 +1,2 @@
1
1
  export declare const name = "@lifi/widget";
2
- export declare const version = "1.13.4";
2
+ export declare const version = "1.13.5";
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = exports.name = void 0;
4
4
  exports.name = '@lifi/widget';
5
- exports.version = '1.13.4';
5
+ exports.version = '1.13.5';
@@ -1,4 +1,4 @@
1
- import { EVMChain, Route, Token } from '@lifi/sdk';
1
+ import type { EVMChain, Route, Token } from '@lifi/sdk';
2
2
  import Big from 'big.js';
3
3
  interface GasSufficiency {
4
4
  gasAmount: Big;
@@ -1,4 +1,4 @@
1
- import { Route } from '@lifi/sdk';
1
+ import type { Route } from '@lifi/sdk';
2
2
  export declare const useRouteExecution: (routeId: string) => {
3
3
  executeRoute: () => void;
4
4
  restartRoute: () => void;
@@ -1,4 +1,4 @@
1
- import { Token } from '../types';
1
+ import type { Token } from '../types';
2
2
  export declare const useTokenBalances: (selectedChainId: number) => {
3
3
  tokens: Token[] | undefined;
4
4
  tokensWithBalance: Token[] | undefined;
@@ -1,4 +1,4 @@
1
- import { Token } from '../types';
1
+ import type { Token } from '../types';
2
2
  export declare const useTokenSearch: (token: string, chainId: number, enabled?: boolean) => {
3
3
  token: Token | undefined;
4
4
  isLoading: boolean;
@@ -1,4 +1,4 @@
1
- import { Token } from '../types';
1
+ import type { Token } from '../types';
2
2
  export declare const useTokens: (selectedChainId: number) => {
3
3
  tokens: Token[] | undefined;
4
4
  isLoading: boolean;
@@ -1,4 +1,4 @@
1
- import { Bridge, Exchange } from '@lifi/sdk';
1
+ import type { Bridge, Exchange } from '@lifi/sdk';
2
2
  declare type FormattedTool<T, K extends keyof T> = Record<string, Pick<T, K>>;
3
3
  export declare const useTools: () => {
4
4
  tools: import("@lifi/sdk").ToolsResponse | undefined;
@@ -1,2 +1,2 @@
1
- import { SVGProps } from 'react';
1
+ import type { SVGProps } from 'react';
2
2
  export declare const LiFiFullLogo: (props: SVGProps<SVGSVGElement>) => JSX.Element;
@@ -1,2 +1,2 @@
1
- import { SVGProps } from 'react';
1
+ import type { SVGProps } from 'react';
2
2
  export declare const LiFiLogo: (props: SVGProps<SVGSVGElement>) => JSX.Element;
@@ -1,2 +1,2 @@
1
- import { SVGProps } from 'react';
1
+ import type { SVGProps } from 'react';
2
2
  export declare const LiFiToolLogo: (props: SVGProps<SVGSVGElement>) => JSX.Element;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { BoxProps } from '@mui/material';
2
+ import type { BoxProps } from '@mui/material';
3
3
  export declare const SwapRoutes: React.FC<BoxProps>;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { SwapFormTypeProps } from '../../providers/SwapFormProvider';
2
+ import type { SwapFormTypeProps } from '../../providers/SwapFormProvider';
3
3
  export declare const ChainSelect: ({ formType }: SwapFormTypeProps) => JSX.Element;
@@ -1,5 +1,5 @@
1
- import { FC } from 'react';
2
- import { SwapFormDirection } from '../../providers/SwapFormProvider';
1
+ import type { FC } from 'react';
2
+ import type { SwapFormDirection } from '../../providers/SwapFormProvider';
3
3
  export declare const SelectTokenPage: FC<{
4
4
  formType: SwapFormDirection;
5
5
  }>;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { Route } from '@lifi/sdk';
2
+ import type { Route } from '@lifi/sdk';
3
3
  export declare const SwapHistoryItem: React.FC<{
4
4
  route: Route;
5
5
  }>;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { RouteExecution } from '../../stores';
2
+ import type { RouteExecution } from '../../stores';
3
3
  export declare const StatusBottomSheet: React.FC<RouteExecution>;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { Theme } from '@mui/material';
3
- import { RouteExecutionStatus } from '../../stores';
2
+ import type { Theme } from '@mui/material';
3
+ import type { RouteExecutionStatus } from '../../stores';
4
4
  export declare const IconContainer: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<Theme> & {
5
5
  children?: import("react").ReactNode;
6
6
  component?: import("react").ElementType<any> | undefined;
@@ -1,5 +1,5 @@
1
- import { EVMChain, Process, Step } from '@lifi/sdk';
2
- import { TFunction } from 'react-i18next';
1
+ import type { EVMChain, Process, Step } from '@lifi/sdk';
2
+ import type { TFunction } from 'react-i18next';
3
3
  export declare function getProcessMessage(t: TFunction<'translation', undefined>, getChainById: (chainId: number) => EVMChain | undefined, step: Step, process: Process): {
4
4
  title?: string;
5
5
  message?: string;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { BoxProps } from '@mui/material';
2
+ import type { BoxProps } from '@mui/material';
3
3
  export declare const SwapRoutesPage: React.FC<BoxProps>;
@@ -1,6 +1,6 @@
1
- import { Signer } from 'ethers';
2
- import { FC, PropsWithChildren } from 'react';
3
- import { WidgetWalletManagement } from '../../types';
1
+ import type { Signer } from 'ethers';
2
+ import type { FC, PropsWithChildren } from 'react';
3
+ import type { WidgetWalletManagement } from '../../types';
4
4
  import type { WalletContextProps } from './types';
5
5
  export declare const useWallet: () => WalletContextProps;
6
6
  export declare const WalletProvider: FC<PropsWithChildren<{
@@ -1,6 +1,6 @@
1
- import { Token } from '@lifi/sdk';
2
- import { Wallet } from '@lifi/wallet-management';
3
- import { Signer } from 'ethers';
1
+ import type { Token } from '@lifi/sdk';
2
+ import type { Wallet } from '@lifi/wallet-management';
3
+ import type { Signer } from 'ethers';
4
4
  export interface WalletContextProps {
5
5
  account: WalletAccount;
6
6
  addChain(chainId: number): Promise<boolean>;
@@ -1,4 +1,4 @@
1
- import { WidgetConfig } from '../../types';
1
+ import type { WidgetConfig } from '../../types';
2
2
  export declare type WidgetContextProps = WidgetConfig & {
3
3
  fromChain?: number;
4
4
  toChain?: number;
@@ -1,4 +1,4 @@
1
- import { Route } from '@lifi/sdk';
1
+ import type { Route } from '@lifi/sdk';
2
2
  export interface RouteExecutionStore {
3
3
  routes: Partial<Record<string, RouteExecution>>;
4
4
  setExecutableRoute: (route: Route) => void;