@lifi/widget 1.28.3 → 1.29.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 (182) hide show
  1. package/AppDrawer.style.d.ts +1 -1
  2. package/AppProvider.js +2 -2
  3. package/cjs/AppDrawer.style.d.ts +1 -1
  4. package/cjs/AppProvider.js +2 -2
  5. package/cjs/components/ActiveSwaps/ActiveSwaps.style.d.ts +1 -1
  6. package/cjs/components/AppContainer.d.ts +2 -2
  7. package/cjs/components/BottomSheet/BottomSheet.d.ts +1 -1
  8. package/cjs/components/Card/Card.d.ts +5 -3
  9. package/cjs/components/ChainSelect/ChainSelect.d.ts +0 -1
  10. package/cjs/components/ChainSelect/ChainSelect.style.d.ts +7 -5
  11. package/cjs/components/GasSufficiencyMessage/GasSufficiencyMessage.style.d.ts +2 -2
  12. package/cjs/components/Header/Header.style.d.ts +3 -3
  13. package/cjs/components/Header/useHeaderActionStore.js +1 -1
  14. package/cjs/components/ReverseTokensButton/ReverseTokensButton.style.d.ts +1 -1
  15. package/cjs/components/Select.d.ts +1 -1
  16. package/cjs/components/SendToWallet/SendToWallet.style.d.ts +1 -1
  17. package/cjs/components/SmallAvatar.d.ts +2 -2
  18. package/cjs/components/Step/CircularProgress.d.ts +0 -1
  19. package/cjs/components/Step/CircularProgress.style.d.ts +2 -2
  20. package/cjs/components/Step/StepList.d.ts +0 -1
  21. package/cjs/components/Step/StepProcess.style.d.ts +1 -1
  22. package/cjs/components/SwapInput/SwapInput.style.d.ts +1 -1
  23. package/cjs/components/SwapInput/SwapInputAdornment.style.d.ts +1 -1
  24. package/cjs/components/SwapInput/SwapInputEndAdornment.d.ts +0 -1
  25. package/cjs/components/SwapRouteCard/SwapRouteCard.style.d.ts +1 -1
  26. package/cjs/components/SwapRouteCard/SwapRouteCard.style.js +1 -1
  27. package/cjs/components/SwapRoutes/SwapRoutes.style.d.ts +6 -6
  28. package/cjs/components/SwapRoutes/SwapRoutesExpanded.d.ts +0 -1
  29. package/cjs/components/Switch.js +1 -1
  30. package/cjs/components/Token/Token.style.d.ts +4 -4
  31. package/cjs/components/Token/Token.style.js +3 -1
  32. package/cjs/components/TokenAvatar/TokenAvatar.style.d.ts +4 -4
  33. package/cjs/config/theme.js +22 -27
  34. package/cjs/config/version.d.ts +1 -1
  35. package/cjs/config/version.js +1 -1
  36. package/cjs/hooks/useChains.js +2 -3
  37. package/cjs/hooks/useRouteExecution.js +5 -4
  38. package/cjs/hooks/useTools.js +2 -1
  39. package/cjs/pages/ActiveSwapsPage/ActiveSwapsPage.d.ts +0 -1
  40. package/cjs/pages/SelectTokenPage/SearchTokenInput.d.ts +0 -1
  41. package/cjs/pages/SelectWalletPage/SelectWalletPage.d.ts +0 -1
  42. package/cjs/pages/SettingsPage/AdvancedPreferences.d.ts +0 -1
  43. package/cjs/pages/SettingsPage/ColorSchemeButtonGroup.style.d.ts +1 -1
  44. package/cjs/pages/SettingsPage/EnabledBridgesSelect.js +1 -1
  45. package/cjs/pages/SettingsPage/EnabledExchangesSelect.js +1 -1
  46. package/cjs/pages/SettingsPage/GasPriceSelect.d.ts +0 -1
  47. package/cjs/pages/SettingsPage/SettingsPage.d.ts +0 -1
  48. package/cjs/pages/SettingsPage/ShowDestinationWallet.d.ts +0 -1
  49. package/cjs/pages/SettingsPage/SlippageInput.d.ts +0 -1
  50. package/cjs/pages/SwapDetailsPage/SwapDetailsPage.js +1 -1
  51. package/cjs/pages/SwapPage/StatusBottomSheet.style.d.ts +4 -4
  52. package/cjs/providers/WalletProvider/WalletProvider.js +1 -1
  53. package/cjs/providers/WidgetProvider/WidgetProvider.js +3 -2
  54. package/cjs/stores/StoreProvider.d.ts +3 -0
  55. package/cjs/stores/StoreProvider.js +13 -0
  56. package/cjs/stores/chains/ChainOrderStore.d.ts +9 -0
  57. package/cjs/stores/chains/ChainOrderStore.js +44 -0
  58. package/cjs/stores/chains/createChainOrderStore.d.ts +4 -0
  59. package/cjs/stores/chains/{useChainOrderStore.js → createChainOrderStore.js} +4 -4
  60. package/cjs/stores/chains/index.d.ts +2 -1
  61. package/cjs/stores/chains/index.js +2 -1
  62. package/cjs/stores/chains/types.d.ts +2 -2
  63. package/cjs/stores/chains/useChainOrder.js +2 -2
  64. package/cjs/stores/index.d.ts +1 -0
  65. package/cjs/stores/index.js +1 -0
  66. package/cjs/stores/routes/RouteExecutionStore.d.ts +9 -0
  67. package/cjs/stores/routes/RouteExecutionStore.js +44 -0
  68. package/cjs/stores/routes/createRouteExecutionStore.d.ts +3 -0
  69. package/cjs/stores/routes/{useRouteExecutionStore.js → createRouteExecutionStore.js} +6 -4
  70. package/cjs/stores/routes/index.d.ts +1 -1
  71. package/cjs/stores/routes/index.js +1 -1
  72. package/cjs/stores/routes/types.d.ts +5 -5
  73. package/cjs/stores/routes/useExecutingRoutesIds.js +3 -3
  74. package/cjs/stores/routes/useRecommendedRouteStore.js +1 -1
  75. package/cjs/stores/routes/useSetExecutableRoute.js +2 -2
  76. package/cjs/stores/routes/useSwapHistory.js +3 -3
  77. package/cjs/stores/settings/SettingsStore.d.ts +11 -0
  78. package/cjs/stores/settings/SettingsStore.js +58 -0
  79. package/cjs/stores/settings/createSettingsStore.d.ts +5 -0
  80. package/cjs/stores/settings/{useSettingsStore.js → createSettingsStore.js} +4 -19
  81. package/cjs/stores/settings/index.d.ts +1 -1
  82. package/cjs/stores/settings/index.js +1 -1
  83. package/cjs/stores/settings/types.d.ts +4 -4
  84. package/cjs/stores/settings/useAppearance.js +2 -2
  85. package/cjs/stores/settings/useSendToWalletStore.js +1 -1
  86. package/cjs/stores/settings/useSettings.js +3 -3
  87. package/cjs/stores/types.d.ts +5 -0
  88. package/cjs/stores/types.js +2 -0
  89. package/cjs/types/widget.d.ts +1 -0
  90. package/components/ActiveSwaps/ActiveSwaps.style.d.ts +1 -1
  91. package/components/AppContainer.d.ts +2 -2
  92. package/components/BottomSheet/BottomSheet.d.ts +1 -1
  93. package/components/Card/Card.d.ts +5 -3
  94. package/components/ChainSelect/ChainSelect.d.ts +0 -1
  95. package/components/ChainSelect/ChainSelect.style.d.ts +7 -5
  96. package/components/GasSufficiencyMessage/GasSufficiencyMessage.style.d.ts +2 -2
  97. package/components/Header/Header.style.d.ts +3 -3
  98. package/components/Header/useHeaderActionStore.js +1 -1
  99. package/components/ReverseTokensButton/ReverseTokensButton.style.d.ts +1 -1
  100. package/components/Select.d.ts +1 -1
  101. package/components/SendToWallet/SendToWallet.style.d.ts +1 -1
  102. package/components/SmallAvatar.d.ts +2 -2
  103. package/components/Step/CircularProgress.d.ts +0 -1
  104. package/components/Step/CircularProgress.style.d.ts +2 -2
  105. package/components/Step/StepList.d.ts +0 -1
  106. package/components/Step/StepProcess.style.d.ts +1 -1
  107. package/components/SwapInput/SwapInput.style.d.ts +1 -1
  108. package/components/SwapInput/SwapInputAdornment.style.d.ts +1 -1
  109. package/components/SwapInput/SwapInputEndAdornment.d.ts +0 -1
  110. package/components/SwapRouteCard/SwapRouteCard.style.d.ts +1 -1
  111. package/components/SwapRouteCard/SwapRouteCard.style.js +1 -1
  112. package/components/SwapRoutes/SwapRoutes.style.d.ts +6 -6
  113. package/components/SwapRoutes/SwapRoutesExpanded.d.ts +0 -1
  114. package/components/Switch.js +1 -1
  115. package/components/Token/Token.style.d.ts +4 -4
  116. package/components/Token/Token.style.js +4 -2
  117. package/components/TokenAvatar/TokenAvatar.style.d.ts +4 -4
  118. package/config/theme.js +22 -27
  119. package/config/version.d.ts +1 -1
  120. package/config/version.js +1 -1
  121. package/hooks/useChains.js +3 -4
  122. package/hooks/useRouteExecution.js +6 -5
  123. package/hooks/useTools.js +3 -2
  124. package/package.json +13 -13
  125. package/pages/ActiveSwapsPage/ActiveSwapsPage.d.ts +0 -1
  126. package/pages/SelectTokenPage/SearchTokenInput.d.ts +0 -1
  127. package/pages/SelectWalletPage/SelectWalletPage.d.ts +0 -1
  128. package/pages/SettingsPage/AdvancedPreferences.d.ts +0 -1
  129. package/pages/SettingsPage/ColorSchemeButtonGroup.style.d.ts +1 -1
  130. package/pages/SettingsPage/EnabledBridgesSelect.js +1 -1
  131. package/pages/SettingsPage/EnabledExchangesSelect.js +1 -1
  132. package/pages/SettingsPage/GasPriceSelect.d.ts +0 -1
  133. package/pages/SettingsPage/SettingsPage.d.ts +0 -1
  134. package/pages/SettingsPage/ShowDestinationWallet.d.ts +0 -1
  135. package/pages/SettingsPage/SlippageInput.d.ts +0 -1
  136. package/pages/SwapDetailsPage/SwapDetailsPage.js +3 -3
  137. package/pages/SwapPage/StatusBottomSheet.style.d.ts +4 -4
  138. package/providers/WalletProvider/WalletProvider.js +1 -1
  139. package/providers/WidgetProvider/WidgetProvider.js +4 -3
  140. package/stores/StoreProvider.d.ts +3 -0
  141. package/stores/StoreProvider.js +9 -0
  142. package/stores/chains/ChainOrderStore.d.ts +9 -0
  143. package/stores/chains/ChainOrderStore.js +38 -0
  144. package/stores/chains/createChainOrderStore.d.ts +4 -0
  145. package/stores/chains/{useChainOrderStore.js → createChainOrderStore.js} +3 -4
  146. package/stores/chains/index.d.ts +2 -1
  147. package/stores/chains/index.js +2 -1
  148. package/stores/chains/types.d.ts +2 -2
  149. package/stores/chains/useChainOrder.js +2 -2
  150. package/stores/index.d.ts +1 -0
  151. package/stores/index.js +1 -0
  152. package/stores/routes/RouteExecutionStore.d.ts +9 -0
  153. package/stores/routes/RouteExecutionStore.js +38 -0
  154. package/stores/routes/createRouteExecutionStore.d.ts +3 -0
  155. package/stores/routes/{useRouteExecutionStore.js → createRouteExecutionStore.js} +5 -4
  156. package/stores/routes/index.d.ts +1 -1
  157. package/stores/routes/index.js +1 -1
  158. package/stores/routes/types.d.ts +5 -5
  159. package/stores/routes/useExecutingRoutesIds.js +2 -2
  160. package/stores/routes/useRecommendedRouteStore.js +1 -1
  161. package/stores/routes/useSetExecutableRoute.js +1 -1
  162. package/stores/routes/useSwapHistory.js +2 -2
  163. package/stores/settings/SettingsStore.d.ts +11 -0
  164. package/stores/settings/SettingsStore.js +51 -0
  165. package/stores/settings/createSettingsStore.d.ts +5 -0
  166. package/stores/settings/{useSettingsStore.js → createSettingsStore.js} +3 -18
  167. package/stores/settings/index.d.ts +1 -1
  168. package/stores/settings/index.js +1 -1
  169. package/stores/settings/types.d.ts +4 -4
  170. package/stores/settings/useAppearance.js +2 -2
  171. package/stores/settings/useSendToWalletStore.js +1 -1
  172. package/stores/settings/useSettings.js +2 -2
  173. package/stores/types.d.ts +5 -0
  174. package/stores/types.js +1 -0
  175. package/tsconfig.cjs.tsbuildinfo +1 -1
  176. package/types/widget.d.ts +1 -0
  177. package/cjs/stores/chains/useChainOrderStore.d.ts +0 -17
  178. package/cjs/stores/routes/useRouteExecutionStore.d.ts +0 -16
  179. package/cjs/stores/settings/useSettingsStore.d.ts +0 -44
  180. package/stores/chains/useChainOrderStore.d.ts +0 -17
  181. package/stores/routes/useRouteExecutionStore.d.ts +0 -16
  182. package/stores/settings/useSettingsStore.d.ts +0 -44
@@ -30,7 +30,7 @@ export declare const SmallAvatarSkeletonContainer: import("@emotion/styled").Sty
30
30
  component?: import("react").ElementType<any> | undefined;
31
31
  ref?: import("react").Ref<unknown> | undefined;
32
32
  sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
33
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
33
+ } & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
34
34
  ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
35
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "ref" | ("p" | "color" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "component"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
35
+ }, "children" | "sx" | "ref" | ("p" | "color" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "component"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
36
36
  export declare const SmallAvatarSkeleton: () => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { Process } from '@lifi/sdk';
3
2
  export declare function CircularProgress({ process }: {
4
3
  process: Process;
@@ -6,9 +6,9 @@ export declare const CircularIcon: import("@emotion/styled").StyledComponent<imp
6
6
  component?: import("react").ElementType<any> | undefined;
7
7
  ref?: import("react").Ref<unknown> | undefined;
8
8
  sx?: import("@mui/material").SxProps<Theme> | undefined;
9
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
9
+ } & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
10
10
  ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
11
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "ref" | ("p" | "color" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "component"> & import("@mui/system").MUIStyledCommonProps<Theme> & {
11
+ }, "children" | "sx" | "ref" | ("p" | "color" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "component"> & import("@mui/system").MUIStyledCommonProps<Theme> & {
12
12
  status: Status;
13
13
  substatus?: Substatus | undefined;
14
14
  }, {}, {}>;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { Route } from '@lifi/sdk';
3
2
  export declare const getStepList: (route?: Route) => JSX.Element[] | undefined;
@@ -2,7 +2,7 @@
2
2
  export declare const LinkButton: import("@emotion/styled").StyledComponent<{
3
3
  children?: import("react").ReactNode;
4
4
  classes?: Partial<import("@mui/material").IconButtonClasses> | undefined;
5
- color?: "inherit" | "default" | "success" | "warning" | "error" | "primary" | "secondary" | "info" | undefined;
5
+ color?: "inherit" | "default" | "success" | "warning" | "error" | "info" | "primary" | "secondary" | undefined;
6
6
  disabled?: boolean | undefined;
7
7
  disableFocusRipple?: boolean | undefined;
8
8
  edge?: false | "end" | "start" | undefined;
@@ -4,7 +4,7 @@ export declare const minInputFontSize = 14;
4
4
  export declare const FormControl: import("@emotion/styled").StyledComponent<{
5
5
  children?: import("react").ReactNode;
6
6
  classes?: Partial<import("@mui/material").FormControlClasses> | undefined;
7
- color?: "success" | "warning" | "error" | "primary" | "secondary" | "info" | undefined;
7
+ color?: "success" | "warning" | "error" | "info" | "primary" | "secondary" | undefined;
8
8
  disabled?: boolean | undefined;
9
9
  error?: boolean | undefined;
10
10
  fullWidth?: boolean | undefined;
@@ -2,7 +2,7 @@
2
2
  export declare const Button: import("@emotion/styled").StyledComponent<{
3
3
  children?: import("react").ReactNode;
4
4
  classes?: Partial<import("@mui/material").ButtonClasses> | undefined;
5
- color?: "inherit" | "success" | "warning" | "error" | "primary" | "secondary" | "info" | undefined;
5
+ color?: "inherit" | "success" | "warning" | "error" | "info" | "primary" | "secondary" | undefined;
6
6
  disabled?: boolean | undefined;
7
7
  disableElevation?: boolean | undefined;
8
8
  disableFocusRipple?: boolean | undefined;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import type { SwapFormTypeProps } from '../../providers';
3
2
  export declare const SwapInputEndAdornment: ({ formType }: SwapFormTypeProps) => JSX.Element;
@@ -17,7 +17,7 @@ export declare const Label: import("@emotion/styled").StyledComponent<import("@m
17
17
  export declare const IconButton: import("@emotion/styled").StyledComponent<{
18
18
  children?: import("react").ReactNode;
19
19
  classes?: Partial<import("@mui/material").IconButtonClasses> | undefined;
20
- color?: "inherit" | "default" | "success" | "warning" | "error" | "primary" | "secondary" | "info" | undefined;
20
+ color?: "inherit" | "default" | "success" | "warning" | "error" | "info" | "primary" | "secondary" | undefined;
21
21
  disabled?: boolean | undefined;
22
22
  disableFocusRipple?: boolean | undefined;
23
23
  edge?: false | "end" | "start" | undefined;
@@ -10,7 +10,7 @@ export const Label = styled(Typography, {
10
10
  ? theme.palette.secondary.main
11
11
  : theme.palette.mode === 'light'
12
12
  ? theme.palette.grey[300]
13
- : theme.palette.grey[700],
13
+ : theme.palette.grey[800],
14
14
  borderRadius: theme.shape.borderRadiusSecondary,
15
15
  color: active
16
16
  ? getContrastTextColor(theme, theme.palette.secondary.main)
@@ -4,17 +4,17 @@ export declare const CollapseContainer: import("@emotion/styled").StyledComponen
4
4
  component?: import("react").ElementType<any> | undefined;
5
5
  ref?: import("react").Ref<unknown> | undefined;
6
6
  sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
7
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
7
+ } & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
8
8
  ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
9
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "ref" | ("p" | "color" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "component"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
9
+ }, "children" | "sx" | "ref" | ("p" | "color" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "component"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
10
10
  export declare const ScrollableContainer: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
11
11
  children?: import("react").ReactNode;
12
12
  component?: import("react").ElementType<any> | undefined;
13
13
  ref?: import("react").Ref<unknown> | undefined;
14
14
  sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
15
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
15
+ } & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
16
16
  ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
17
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "ref" | ("p" | "color" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "component"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
17
+ }, "children" | "sx" | "ref" | ("p" | "color" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "component"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
18
18
  export declare const Container: import("@emotion/styled").StyledComponent<{
19
19
  children?: import("react").ReactNode;
20
20
  classes?: Partial<import("@mui/material").ScopedCssBaselineClasses> | undefined;
@@ -28,9 +28,9 @@ export declare const Header: import("@emotion/styled").StyledComponent<import("@
28
28
  component?: import("react").ElementType<any> | undefined;
29
29
  ref?: import("react").Ref<unknown> | undefined;
30
30
  sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
31
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
31
+ } & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
32
32
  ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
33
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "ref" | ("p" | "color" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "component"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
33
+ }, "children" | "sx" | "ref" | ("p" | "color" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "component"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
34
34
  export declare const Stack: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
35
35
  ref?: import("react").Ref<unknown> | undefined;
36
36
  children?: import("react").ReactNode;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  export declare const SwapRoutesExpanded: () => JSX.Element;
3
2
  export declare const SwapRoutesExpandedElement: () => JSX.Element;
@@ -43,7 +43,7 @@ export const Switch = styled(MuiSwitch)(({ theme }) => ({
43
43
  [`.${switchClasses.track}`]: {
44
44
  borderRadius: 24 / 2,
45
45
  backgroundColor: theme.palette.mode === 'light'
46
- ? theme.palette.grey[400]
46
+ ? theme.palette.grey[300]
47
47
  : theme.palette.grey[800],
48
48
  opacity: 1,
49
49
  transition: theme.transitions.create(['background-color'], {
@@ -4,9 +4,9 @@ export declare const TextSecondaryContainer: import("@emotion/styled").StyledCom
4
4
  component?: import("react").ElementType<any> | undefined;
5
5
  ref?: import("react").Ref<unknown> | undefined;
6
6
  sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
7
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
7
+ } & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
8
8
  ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
9
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "ref" | ("p" | "color" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "component"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
9
+ }, "children" | "sx" | "ref" | ("p" | "color" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "component"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
10
10
  connected?: boolean | undefined;
11
11
  }, {}, {}>;
12
12
  export declare const TextSecondary: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
@@ -30,6 +30,6 @@ export declare const TokenDivider: import("@emotion/styled").StyledComponent<imp
30
30
  component?: import("react").ElementType<any> | undefined;
31
31
  ref?: import("react").Ref<unknown> | undefined;
32
32
  sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
33
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
33
+ } & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
34
34
  ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
35
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "ref" | ("p" | "color" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "component"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
35
+ }, "children" | "sx" | "ref" | ("p" | "color" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "component"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -1,5 +1,5 @@
1
1
  import { Box, Typography } from '@mui/material';
2
- import { styled } from '@mui/material/styles';
2
+ import { alpha, styled } from '@mui/material/styles';
3
3
  export const TextSecondaryContainer = styled(Box, {
4
4
  shouldForwardProp: (prop) => prop !== 'connected',
5
5
  })(({ theme, connected }) => ({
@@ -24,7 +24,9 @@ export const TextSecondary = styled(Typography, {
24
24
  fontSize: 12,
25
25
  lineHeight: 1,
26
26
  fontWeight: 500,
27
- color: dot ? theme.palette.grey[400] : theme.palette.text.secondary,
27
+ color: dot
28
+ ? alpha(theme.palette.text.secondary, 0.56)
29
+ : theme.palette.text.secondary,
28
30
  marginTop: connected ? 0 : theme.spacing(0.5),
29
31
  }));
30
32
  export const TokenDivider = styled(Box)(({ theme }) => ({
@@ -5,14 +5,14 @@ export declare const AvatarDefault: import("@emotion/styled").StyledComponent<im
5
5
  component?: import("react").ElementType<any> | undefined;
6
6
  ref?: import("react").Ref<unknown> | undefined;
7
7
  sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
8
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
8
+ } & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
9
9
  ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
10
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "ref" | ("p" | "color" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "component"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
10
+ }, "children" | "sx" | "ref" | ("p" | "color" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "component"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
11
11
  export declare const AvatarDefaultContainer: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
12
12
  children?: import("react").ReactNode;
13
13
  component?: import("react").ElementType<any> | undefined;
14
14
  ref?: import("react").Ref<unknown> | undefined;
15
15
  sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
16
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
16
+ } & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
17
17
  ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
18
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "ref" | ("p" | "color" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "component"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
18
+ }, "children" | "sx" | "ref" | ("p" | "color" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "component"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
package/config/theme.js CHANGED
@@ -49,6 +49,9 @@ export const createTheme = (mode, theme = {}) => {
49
49
  const contrastButtonColor = getContrastRatio(common.white, primaryMainColor) >= 3
50
50
  ? common.white
51
51
  : common.black;
52
+ const contrastTextButtonColor = getContrastRatio(common.white, alpha(primaryMainColor, 0.08)) >= 3
53
+ ? common.white
54
+ : common.black;
52
55
  return createMuiTheme({
53
56
  typography: Object.assign({ fontFamily: 'Inter var, Inter, sans-serif' }, theme.typography),
54
57
  palette: Object.assign(Object.assign(Object.assign(Object.assign({ mode }, palette), (mode === 'light' ? paletteLight : paletteDark)), theme.palette), { primary: {
@@ -80,14 +83,15 @@ export const createTheme = (mode, theme = {}) => {
80
83
  defaultProps: {
81
84
  disableElevation: true,
82
85
  },
83
- styleOverrides: Object.assign({ root: {
86
+ styleOverrides: {
87
+ root: {
84
88
  borderRadius: (_v = (_u = theme.shape) === null || _u === void 0 ? void 0 : _u.borderRadiusSecondary) !== null && _v !== void 0 ? _v : shape.borderRadiusSecondary,
85
89
  textTransform: 'none',
86
90
  fontSize: '1rem',
87
91
  [`&.Mui-disabled, &.Mui-disabled:hover`]: {
88
92
  color: mode === 'light'
89
- ? 'rgb(0 0 0 / 56%)'
90
- : 'rgb(255 255 255 / 56%)',
93
+ ? alpha(common.black, 0.56)
94
+ : alpha(common.white, 0.56),
91
95
  cursor: 'not-allowed',
92
96
  pointerEvents: 'auto',
93
97
  },
@@ -103,39 +107,30 @@ export const createTheme = (mode, theme = {}) => {
103
107
  [`&.${loadingButtonClasses.root}.${loadingButtonClasses.loading}`]: {
104
108
  color: 'transparent',
105
109
  },
106
- }, text: {
107
- backgroundColor: alpha(primaryMainColor, 0.08),
110
+ },
111
+ text: {
112
+ backgroundColor: mode === 'light'
113
+ ? alpha(primaryMainColor, 0.08)
114
+ : alpha(primaryMainColor, 0.42),
108
115
  '&:hover': {
109
- backgroundColor: alpha(primaryMainColor, 0.12),
116
+ backgroundColor: mode === 'light'
117
+ ? alpha(primaryMainColor, 0.12)
118
+ : alpha(primaryMainColor, 0.56),
110
119
  },
111
- }, contained: {
120
+ color: mode === 'light' ? primaryMainColor : contrastTextButtonColor,
121
+ },
122
+ contained: {
112
123
  '&:hover': {
113
124
  color: contrastButtonColor,
114
125
  },
115
- }, sizeMedium: {
126
+ },
127
+ sizeMedium: {
116
128
  padding: '10px 14px',
117
129
  [`.${dialogActionsClasses.root} &`]: {
118
130
  padding: '6px 12px',
119
131
  },
120
- } }, (mode === 'dark'
121
- ? {
122
- outlined: {
123
- color: primaryLightColor,
124
- borderColor: primaryLightColor,
125
- '&:hover': {
126
- backgroundColor: alpha(primaryLightColor, 0.08),
127
- borderColor: primaryLightColor,
128
- },
129
- },
130
- text: {
131
- backgroundColor: lighten(paletteDark.background.paper, 0.08),
132
- color: common.white,
133
- '&:hover': {
134
- backgroundColor: lighten(paletteDark.background.paper, 0.12),
135
- },
136
- },
137
- }
138
- : {})),
132
+ },
133
+ },
139
134
  },
140
135
  MuiIconButton: {
141
136
  styleOverrides: {
@@ -1,2 +1,2 @@
1
1
  export declare const name = "@lifi/widget";
2
- export declare const version = "1.28.3";
2
+ export declare const version = "1.29.0";
package/config/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  export const name = '@lifi/widget';
2
- export const version = '1.28.3';
2
+ export const version = '1.29.0';
@@ -10,18 +10,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  import { useQuery } from '@tanstack/react-query';
11
11
  import { useCallback } from 'react';
12
12
  import { useFormContext } from 'react-hook-form';
13
- import { isItemAllowed, SwapFormKey, useLiFi, useWidgetConfig } from '../providers';
13
+ import { isItemAllowed, SwapFormKey, useLiFi, useWidgetConfig, } from '../providers';
14
14
  import { useChainOrderStore } from '../stores';
15
15
  export const useChains = () => {
16
16
  const { disabledChains, chains } = useWidgetConfig();
17
17
  const lifi = useLiFi();
18
18
  const { getValues, setValue } = useFormContext();
19
+ const initializeChains = useChainOrderStore((state) => state.initializeChains);
19
20
  const { data, isLoading } = useQuery(['chains'], () => __awaiter(void 0, void 0, void 0, function* () {
20
21
  const availableChains = yield lifi.getChains();
21
22
  const filteredChains = availableChains.filter((chain) => isItemAllowed(chain.id, chains, disabledChains));
22
- const chainOrder = useChainOrderStore
23
- .getState()
24
- .initializeChains(filteredChains.map((chain) => chain.id));
23
+ const chainOrder = initializeChains(filteredChains.map((chain) => chain.id));
25
24
  const [fromChainValue, toChainValue] = getValues([
26
25
  SwapFormKey.FromChain,
27
26
  SwapFormKey.ToChain,
@@ -9,9 +9,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  };
10
10
  import { useMutation, useQueryClient } from '@tanstack/react-query';
11
11
  import { useCallback, useEffect, useRef } from 'react';
12
- import shallow from 'zustand/shallow';
12
+ import { shallow } from 'zustand/shallow';
13
13
  import { useLiFi, useWallet } from '../providers';
14
- import { getUpdatedProcess, isRouteActive, isRouteDone, isRouteFailed, useRouteExecutionStore, } from '../stores';
14
+ import { getUpdatedProcess, isRouteActive, isRouteDone, isRouteFailed, useRouteExecutionStore, useRouteExecutionStoreContext, } from '../stores';
15
15
  import { WidgetEvent } from '../types/events';
16
16
  import { deepClone } from '../utils';
17
17
  import { useWidgetEvents } from './useWidgetEvents';
@@ -21,10 +21,11 @@ export const useRouteExecution = ({ routeId, executeInBackground, onAcceptExchan
21
21
  const { account, switchChain } = useWallet();
22
22
  const resumedAfterMount = useRef(false);
23
23
  const emitter = useWidgetEvents();
24
+ const routeExecutionStoreContext = useRouteExecutionStoreContext();
24
25
  const routeExecution = useRouteExecutionStore((state) => state.routes[routeId]);
25
26
  const [updateRoute, restartRoute, deleteRoute] = useRouteExecutionStore((state) => [state.updateRoute, state.restartRoute, state.deleteRoute], shallow);
26
27
  const updateCallback = (updatedRoute) => {
27
- const routeExecution = useRouteExecutionStore.getState().routes[updatedRoute.id];
28
+ const routeExecution = routeExecutionStoreContext.getState().routes[updatedRoute.id];
28
29
  if (!routeExecution) {
29
30
  return;
30
31
  }
@@ -155,7 +156,7 @@ export const useRouteExecution = ({ routeId, executeInBackground, onAcceptExchan
155
156
  useEffect(() => {
156
157
  return () => {
157
158
  var _a;
158
- const route = (_a = useRouteExecutionStore.getState().routes[routeId]) === null || _a === void 0 ? void 0 : _a.route;
159
+ const route = (_a = routeExecutionStoreContext.getState().routes[routeId]) === null || _a === void 0 ? void 0 : _a.route;
159
160
  if (!route || !isRouteActive(route)) {
160
161
  return;
161
162
  }
@@ -163,7 +164,7 @@ export const useRouteExecution = ({ routeId, executeInBackground, onAcceptExchan
163
164
  console.log('Move route execution to background.', routeId);
164
165
  resumedAfterMount.current = false;
165
166
  };
166
- }, [lifi, routeId]);
167
+ }, [lifi, routeExecutionStoreContext, routeId]);
167
168
  return {
168
169
  executeRoute,
169
170
  restartRoute: restartRouteMutation,
package/hooks/useTools.js CHANGED
@@ -1,13 +1,14 @@
1
1
  import { useQuery } from '@tanstack/react-query';
2
2
  import { useMemo } from 'react';
3
3
  import { isItemAllowed, useLiFi, useWidgetConfig } from '../providers';
4
- import { useSettingsStore } from '../stores';
4
+ import { useSettingsStoreContext } from '../stores';
5
5
  export const useTools = () => {
6
6
  const lifi = useLiFi();
7
7
  const { bridges, exchanges } = useWidgetConfig();
8
+ const settingsStoreContext = useSettingsStoreContext();
8
9
  const { data } = useQuery(['tools'], () => lifi.getTools(), {
9
10
  onSuccess(data) {
10
- const { initializeTools } = useSettingsStore.getState();
11
+ const { initializeTools } = settingsStoreContext.getState();
11
12
  initializeTools('Bridges', data.bridges
12
13
  .filter((bridge) => isItemAllowed(bridge.key, bridges))
13
14
  .map((bridge) => bridge.key));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifi/widget",
3
- "version": "1.28.3",
3
+ "version": "1.29.0",
4
4
  "description": "LI.FI Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.",
5
5
  "main": "./cjs/index.js",
6
6
  "module": "./index.js",
@@ -46,26 +46,26 @@
46
46
  "@lifi/sdk": "^1.7.2",
47
47
  "@lifi/wallet-management": "^1.2.4",
48
48
  "@mui/icons-material": "^5.11.0",
49
- "@mui/lab": "^5.0.0-alpha.114",
50
- "@mui/material": "^5.11.3",
51
- "@sentry/integrations": "^7.29.0",
52
- "@sentry/react": "^7.29.0",
53
- "@sentry/tracing": "^7.29.0",
54
- "@tanstack/react-query": "^4.20.9",
55
- "@tanstack/react-virtual": "^3.0.0-beta.34",
49
+ "@mui/lab": "^5.0.0-alpha.116",
50
+ "@mui/material": "^5.11.5",
51
+ "@sentry/integrations": "^7.31.1",
52
+ "@sentry/react": "^7.31.1",
53
+ "@sentry/tracing": "^7.31.1",
54
+ "@tanstack/react-query": "^4.22.4",
55
+ "@tanstack/react-virtual": "^3.0.0-beta.39",
56
56
  "big.js": "^6.2.1",
57
- "i18next": "^22.4.8",
57
+ "i18next": "^22.4.9",
58
58
  "i18next-browser-languagedetector": "^7.0.1",
59
59
  "microdiff": "^1.3.1",
60
60
  "mitt": "^3.0.0",
61
61
  "react": "^18.2.0",
62
62
  "react-dom": "^18.2.0",
63
- "react-hook-form": "^7.41.5",
64
- "react-i18next": "^12.1.1",
65
- "react-router-dom": "^6.6.1",
63
+ "react-hook-form": "^7.42.1",
64
+ "react-i18next": "^12.1.4",
65
+ "react-router-dom": "^6.7.0",
66
66
  "react-timer-hook": "^3.0.5",
67
67
  "uuid": "^9.0.0",
68
- "zustand": "^4.2.0"
68
+ "zustand": "^4.3.2"
69
69
  },
70
70
  "peerDependencies": {
71
71
  "@types/react": "^18.0.0",
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const ActiveSwapsPage: () => JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const SearchTokenInput: () => JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const SelectWalletPage: () => JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const AdvancedPreferences: () => JSX.Element;
@@ -2,7 +2,7 @@
2
2
  export declare const ToggleButton: import("@emotion/styled").StyledComponent<{
3
3
  children?: import("react").ReactNode;
4
4
  classes?: Partial<import("@mui/material").ToggleButtonClasses> | undefined;
5
- color?: "success" | "warning" | "error" | "primary" | "secondary" | "info" | "standard" | undefined;
5
+ color?: "success" | "warning" | "error" | "info" | "primary" | "secondary" | "standard" | undefined;
6
6
  disabled?: boolean | undefined;
7
7
  disableFocusRipple?: boolean | undefined;
8
8
  fullWidth?: boolean | undefined;
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { KeyboardArrowDown as KeyboardArrowDownIcon } from '@mui/icons-material';
3
3
  import { Box, Checkbox, Chip, FormControl, MenuItem, Skeleton, } from '@mui/material';
4
4
  import { useTranslation } from 'react-i18next';
5
- import shallow from 'zustand/shallow';
5
+ import { shallow } from 'zustand/shallow';
6
6
  import { Card, CardTitle } from '../../components/Card';
7
7
  import { Select } from '../../components/Select';
8
8
  import { useTools } from '../../hooks';
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { KeyboardArrowDown as KeyboardArrowDownIcon } from '@mui/icons-material';
3
3
  import { Box, Checkbox, Chip, FormControl, MenuItem, Skeleton, } from '@mui/material';
4
4
  import { useTranslation } from 'react-i18next';
5
- import shallow from 'zustand/shallow';
5
+ import { shallow } from 'zustand/shallow';
6
6
  import { Card, CardTitle } from '../../components/Card';
7
7
  import { Select } from '../../components/Select';
8
8
  import { useTools } from '../../hooks';
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const GasPriceSelect: () => JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const SettingsPage: () => JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const ShowDestinationWallet: () => JSX.Element | null;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const SlippageInput: () => JSX.Element;