@lifi/widget 1.6.0 → 1.6.1

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.
@@ -19,10 +19,13 @@ const CssBaselineContainer = styled(ScopedCssBaseline)(({ theme }) => ({
19
19
  }));
20
20
  const RelativeContainer = styled(Box)(({ theme }) => ({
21
21
  position: 'relative',
22
- width: 392,
22
+ width: '100%',
23
+ minWidth: 375,
24
+ maxWidth: 392,
23
25
  background: theme.palette.background.default,
24
26
  overflow: 'auto',
25
27
  flex: 1,
28
+ boxSizing: 'content-box',
26
29
  }));
27
30
  const ScrollableContainer = styled(Box)({
28
31
  // position: 'fixed',
@@ -30,6 +33,7 @@ const ScrollableContainer = styled(Box)({
30
33
  height: '100%',
31
34
  flex: 1,
32
35
  display: 'flex',
36
+ zIndex: 0,
33
37
  });
34
38
  const FlexContainer = styled(Container)({
35
39
  display: 'flex',
@@ -19,13 +19,13 @@ export const SelectTokenCardHeader = styled(CardHeader, {
19
19
  textOverflow: 'ellipsis',
20
20
  whiteSpace: 'nowrap',
21
21
  overflow: 'hidden',
22
- width: compact ? 92 : 244,
22
+ width: compact ? 92 : 224,
23
23
  fontWeight: selected ? 500 : 400,
24
24
  },
25
25
  [`.${cardHeaderClasses.subheader}`]: {
26
26
  textOverflow: 'ellipsis',
27
27
  whiteSpace: 'nowrap',
28
28
  overflow: 'hidden',
29
- width: compact ? 92 : 244,
29
+ width: compact ? 92 : 224,
30
30
  },
31
31
  }));
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const ButtonTooltip: ({ title, children, }: {
3
2
  title?: string | undefined;
4
3
  children: JSX.Element;
@@ -21,7 +21,7 @@ export const FormPriceHelperText = ({ formType, selected }) => {
21
21
  overflowWrap: 'break-word',
22
22
  } }, { children: t(`swap.currency`, {
23
23
  value: fromAmountTokenPrice,
24
- }) })), isLoading && isFetching ? (_jsx(Skeleton, { variant: "text", width: 48, height: 16, sx: { borderRadius: 0.25 } })) : token ? (_jsx(Typography, Object.assign({ fontWeight: 400, fontSize: 12, color: "text.secondary", lineHeight: 1.3334, pl: 0.25 }, { children: t(`swap.maxAmount`, {
24
+ }) })), isLoading && isFetching ? (_jsx(Skeleton, { variant: "text", width: 48, height: 16, sx: { borderRadius: 0.25 } })) : (token === null || token === void 0 ? void 0 : token.amount) ? (_jsx(Typography, Object.assign({ fontWeight: 400, fontSize: 12, color: "text.secondary", lineHeight: 1.3334, pl: 0.25 }, { children: t(`swap.maxAmount`, {
25
25
  amount: token === null || token === void 0 ? void 0 : token.amount,
26
26
  }) }))) : null] })));
27
27
  };
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { SwapFormTypeProps } from '../../providers/SwapFormProvider';
3
2
  export declare const SwapInputAdornment: ({ formType }: SwapFormTypeProps) => JSX.Element;
@@ -1,2 +1,2 @@
1
1
  export declare const name = "@lifi/widget";
2
- export declare const version = "1.6.0";
2
+ export declare const version = "1.6.1";
package/config/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  export const name = '@lifi/widget';
2
- export const version = '1.6.0';
2
+ export const version = '1.6.1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifi/widget",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
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
  "sideEffects": false,
6
6
  "main": "./index.js",
@@ -42,20 +42,20 @@
42
42
  "@ethersproject/experimental": "^5.6.3",
43
43
  "@ethersproject/providers": "^5.6.8",
44
44
  "@lifi/wallet-management": "^1.0.4",
45
- "@lifinance/sdk": "^1.0.0-beta.13",
45
+ "@lifinance/sdk": "^1.0.0-beta.14",
46
46
  "@mui/icons-material": "^5.8.4",
47
47
  "@mui/lab": "^5.0.0-alpha.89",
48
48
  "@mui/material": "^5.8.7",
49
- "@sentry/integrations": "^7.5.0",
50
- "@sentry/react": "^7.5.0",
51
- "@sentry/tracing": "^7.5.0",
49
+ "@sentry/integrations": "^7.5.1",
50
+ "@sentry/react": "^7.5.1",
51
+ "@sentry/tracing": "^7.5.1",
52
52
  "big.js": "^6.2.0",
53
- "i18next": "^21.8.12",
53
+ "i18next": "^21.8.13",
54
54
  "immer": "^9.0.15",
55
55
  "react": "^18.2.0",
56
56
  "react-dom": "^18.2.0",
57
57
  "react-hook-form": "^7.33.1",
58
- "react-i18next": "^11.17.4",
58
+ "react-i18next": "^11.18.0",
59
59
  "react-query": "^4.0.0-beta.23",
60
60
  "react-resize-detector": "^7.1.2",
61
61
  "react-router-dom": "^6.3.0",
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { SwapFormTypeProps } from '../../providers/SwapFormProvider';
3
2
  export declare const ChainSelect: ({ formType }: SwapFormTypeProps) => 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;
@@ -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 SlippageInput: () => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Status } from '@lifinance/sdk';
3
2
  export declare function CircularProgress({ status }: {
4
3
  status: Status;