@lifi/widget 1.29.0 → 1.29.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.
@@ -6,7 +6,7 @@ const ListItemSecondaryAction_1 = require("@mui/material/ListItemSecondaryAction
6
6
  const styles_1 = require("@mui/material/styles");
7
7
  const utils_1 = require("../../utils");
8
8
  exports.ListItemButton = (0, styles_1.styled)(material_1.ListItemButton)(({ theme }) => ({
9
- borderRadius: theme.shape.borderRadiusSecondary,
9
+ borderRadius: theme.shape.borderRadius,
10
10
  paddingLeft: theme.spacing(1.5),
11
11
  paddingRight: theme.spacing(1.5),
12
12
  height: 64,
@@ -32,9 +32,7 @@ exports.Card = (0, styles_1.styled)(material_1.Box, {
32
32
  : theme.palette.mode === 'light'
33
33
  ? theme.palette.grey[300]
34
34
  : theme.palette.grey[800],
35
- borderRadius: dense
36
- ? theme.shape.borderRadiusSecondary
37
- : theme.shape.borderRadius,
35
+ borderRadius: theme.shape.borderRadius,
38
36
  overflow: 'hidden',
39
37
  position: 'relative',
40
38
  padding: indented ? theme.spacing(2) : 0,
@@ -19,7 +19,9 @@ const Card_1 = require("../Card");
19
19
  const SwapRouteCardSkeleton = (_a) => {
20
20
  var { variant } = _a, other = __rest(_a, ["variant"]);
21
21
  const { variant: widgetVariant, useRecommendedRoute } = (0, providers_1.useWidgetConfig)();
22
- const cardContent = ((0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ flex: 1 }, { children: [widgetVariant !== 'refuel' && !useRecommendedRoute ? ((0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ display: "flex", justifyContent: "space-between", alignItems: "center", mb: 2 }, { children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "rectangular", width: 118, height: 24, sx: { borderRadius: 0.5 } }), variant === 'stretched' ? ((0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ display: "flex" }, { children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "text", width: 52, height: 24, sx: { marginRight: 2 } }), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "text", width: 44, height: 24, sx: { marginRight: 2 } }), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "text", width: 32, height: 24 })] }))) : null] }))) : null, (0, jsx_runtime_1.jsxs)(material_1.Box, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ display: "flex", alignItems: "center" }, { children: [(0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ mr: 2 }, { children: (0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "circular", width: 32, height: 32 }) })), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "text", width: 96, height: 32 })] })), (0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ ml: 6, display: "flex", alignItems: "center" }, { children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "text", width: 102, height: 16, sx: { borderRadius: 0.5 } }), variant === 'stretched' ? ((0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "text", width: 72, height: 16, sx: { marginLeft: 1 } })) : null] }))] }), variant !== 'stretched' ? ((0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ mt: 2, display: "flex", justifyContent: "space-between" }, { children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "text", width: 48, height: 24 }), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "text", width: 48, height: 24 })] }))) : null] })));
22
+ const cardContent = ((0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ flex: 1 }, { children: [widgetVariant !== 'refuel' && !useRecommendedRoute ? ((0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ display: "flex", justifyContent: "space-between", alignItems: "center", mb: 2 }, { children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "rectangular", width: 118, height: 24, sx: (theme) => ({
23
+ borderRadius: `${theme.shape.borderRadiusSecondary}px`,
24
+ }) }), variant === 'stretched' ? ((0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ display: "flex" }, { children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "text", width: 52, height: 24, sx: { marginRight: 2 } }), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "text", width: 44, height: 24, sx: { marginRight: 2 } }), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "text", width: 32, height: 24 })] }))) : null] }))) : null, (0, jsx_runtime_1.jsxs)(material_1.Box, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ display: "flex", alignItems: "center" }, { children: [(0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ mr: 2 }, { children: (0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "circular", width: 32, height: 32 }) })), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "text", width: 96, height: 32 })] })), (0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ ml: 6, display: "flex", alignItems: "center" }, { children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "text", width: 102, height: 16, sx: { borderRadius: 0.5 } }), variant === 'stretched' ? ((0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "text", width: 72, height: 16, sx: { marginLeft: 1 } })) : null] }))] }), variant !== 'stretched' ? ((0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ mt: 2, display: "flex", justifyContent: "space-between" }, { children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "text", width: 48, height: 24 }), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "text", width: 48, height: 24 })] }))) : null] })));
23
25
  return widgetVariant === 'refuel' ? (cardContent) : ((0, jsx_runtime_1.jsx)(Card_1.Card, Object.assign({ dense: variant === 'dense', indented: true }, other, { children: cardContent })));
24
26
  };
25
27
  exports.SwapRouteCardSkeleton = SwapRouteCardSkeleton;
@@ -7,7 +7,7 @@ const ListItemText_1 = require("@mui/material/ListItemText");
7
7
  const styles_1 = require("@mui/material/styles");
8
8
  const utils_1 = require("../../utils");
9
9
  exports.ListItemButton = (0, styles_1.styled)(material_1.ListItemButton)(({ theme }) => ({
10
- borderRadius: theme.shape.borderRadiusSecondary,
10
+ borderRadius: theme.shape.borderRadius,
11
11
  paddingLeft: theme.spacing(1.5),
12
12
  paddingRight: theme.spacing(1.5),
13
13
  height: 64,
@@ -1,2 +1,2 @@
1
1
  export declare const name = "@lifi/widget";
2
- export declare const version = "1.29.0";
2
+ export declare const version = "1.29.1";
@@ -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.29.0';
5
+ exports.version = '1.29.1';
@@ -6,7 +6,7 @@ const ListItemText_1 = require("@mui/material/ListItemText");
6
6
  const styles_1 = require("@mui/material/styles");
7
7
  const utils_1 = require("../../utils");
8
8
  exports.ListItemButton = (0, styles_1.styled)(material_1.ListItemButton)(({ theme }) => ({
9
- borderRadius: theme.shape.borderRadiusSecondary,
9
+ borderRadius: theme.shape.borderRadius,
10
10
  paddingLeft: theme.spacing(1.5),
11
11
  height: 56,
12
12
  '&:hover': {
@@ -6,7 +6,7 @@ const ListItemText_1 = require("@mui/material/ListItemText");
6
6
  const styles_1 = require("@mui/material/styles");
7
7
  const utils_1 = require("../../utils");
8
8
  exports.ListItemButton = (0, styles_1.styled)(material_1.ListItemButton)(({ theme }) => ({
9
- borderRadius: theme.shape.borderRadiusSecondary,
9
+ borderRadius: theme.shape.borderRadius,
10
10
  paddingLeft: theme.spacing(1.5),
11
11
  height: 56,
12
12
  '&:hover': {
@@ -6,7 +6,7 @@ const ListItemText_1 = require("@mui/material/ListItemText");
6
6
  const styles_1 = require("@mui/material/styles");
7
7
  const utils_1 = require("../../utils");
8
8
  exports.ListItemButton = (0, styles_1.styled)(material_1.ListItemButton)(({ theme }) => ({
9
- borderRadius: theme.shape.borderRadiusSecondary,
9
+ borderRadius: theme.shape.borderRadius,
10
10
  paddingLeft: theme.spacing(1.5),
11
11
  height: 56,
12
12
  '&:hover': {
@@ -3,7 +3,7 @@ import { listItemSecondaryActionClasses } from '@mui/material/ListItemSecondaryA
3
3
  import { styled } from '@mui/material/styles';
4
4
  import { getContrastAlphaColor } from '../../utils';
5
5
  export const ListItemButton = styled(MuiListItemButton)(({ theme }) => ({
6
- borderRadius: theme.shape.borderRadiusSecondary,
6
+ borderRadius: theme.shape.borderRadius,
7
7
  paddingLeft: theme.spacing(1.5),
8
8
  paddingRight: theme.spacing(1.5),
9
9
  height: 64,
@@ -29,9 +29,7 @@ export const Card = styled(Box, {
29
29
  : theme.palette.mode === 'light'
30
30
  ? theme.palette.grey[300]
31
31
  : theme.palette.grey[800],
32
- borderRadius: dense
33
- ? theme.shape.borderRadiusSecondary
34
- : theme.shape.borderRadius,
32
+ borderRadius: theme.shape.borderRadius,
35
33
  overflow: 'hidden',
36
34
  position: 'relative',
37
35
  padding: indented ? theme.spacing(2) : 0,
@@ -16,6 +16,8 @@ import { Card } from '../Card';
16
16
  export const SwapRouteCardSkeleton = (_a) => {
17
17
  var { variant } = _a, other = __rest(_a, ["variant"]);
18
18
  const { variant: widgetVariant, useRecommendedRoute } = useWidgetConfig();
19
- const cardContent = (_jsxs(Box, Object.assign({ flex: 1 }, { children: [widgetVariant !== 'refuel' && !useRecommendedRoute ? (_jsxs(Box, Object.assign({ display: "flex", justifyContent: "space-between", alignItems: "center", mb: 2 }, { children: [_jsx(Skeleton, { variant: "rectangular", width: 118, height: 24, sx: { borderRadius: 0.5 } }), variant === 'stretched' ? (_jsxs(Box, Object.assign({ display: "flex" }, { children: [_jsx(Skeleton, { variant: "text", width: 52, height: 24, sx: { marginRight: 2 } }), _jsx(Skeleton, { variant: "text", width: 44, height: 24, sx: { marginRight: 2 } }), _jsx(Skeleton, { variant: "text", width: 32, height: 24 })] }))) : null] }))) : null, _jsxs(Box, { children: [_jsxs(Box, Object.assign({ display: "flex", alignItems: "center" }, { children: [_jsx(Box, Object.assign({ mr: 2 }, { children: _jsx(Skeleton, { variant: "circular", width: 32, height: 32 }) })), _jsx(Skeleton, { variant: "text", width: 96, height: 32 })] })), _jsxs(Box, Object.assign({ ml: 6, display: "flex", alignItems: "center" }, { children: [_jsx(Skeleton, { variant: "text", width: 102, height: 16, sx: { borderRadius: 0.5 } }), variant === 'stretched' ? (_jsx(Skeleton, { variant: "text", width: 72, height: 16, sx: { marginLeft: 1 } })) : null] }))] }), variant !== 'stretched' ? (_jsxs(Box, Object.assign({ mt: 2, display: "flex", justifyContent: "space-between" }, { children: [_jsx(Skeleton, { variant: "text", width: 48, height: 24 }), _jsx(Skeleton, { variant: "text", width: 48, height: 24 })] }))) : null] })));
19
+ const cardContent = (_jsxs(Box, Object.assign({ flex: 1 }, { children: [widgetVariant !== 'refuel' && !useRecommendedRoute ? (_jsxs(Box, Object.assign({ display: "flex", justifyContent: "space-between", alignItems: "center", mb: 2 }, { children: [_jsx(Skeleton, { variant: "rectangular", width: 118, height: 24, sx: (theme) => ({
20
+ borderRadius: `${theme.shape.borderRadiusSecondary}px`,
21
+ }) }), variant === 'stretched' ? (_jsxs(Box, Object.assign({ display: "flex" }, { children: [_jsx(Skeleton, { variant: "text", width: 52, height: 24, sx: { marginRight: 2 } }), _jsx(Skeleton, { variant: "text", width: 44, height: 24, sx: { marginRight: 2 } }), _jsx(Skeleton, { variant: "text", width: 32, height: 24 })] }))) : null] }))) : null, _jsxs(Box, { children: [_jsxs(Box, Object.assign({ display: "flex", alignItems: "center" }, { children: [_jsx(Box, Object.assign({ mr: 2 }, { children: _jsx(Skeleton, { variant: "circular", width: 32, height: 32 }) })), _jsx(Skeleton, { variant: "text", width: 96, height: 32 })] })), _jsxs(Box, Object.assign({ ml: 6, display: "flex", alignItems: "center" }, { children: [_jsx(Skeleton, { variant: "text", width: 102, height: 16, sx: { borderRadius: 0.5 } }), variant === 'stretched' ? (_jsx(Skeleton, { variant: "text", width: 72, height: 16, sx: { marginLeft: 1 } })) : null] }))] }), variant !== 'stretched' ? (_jsxs(Box, Object.assign({ mt: 2, display: "flex", justifyContent: "space-between" }, { children: [_jsx(Skeleton, { variant: "text", width: 48, height: 24 }), _jsx(Skeleton, { variant: "text", width: 48, height: 24 })] }))) : null] })));
20
22
  return widgetVariant === 'refuel' ? (cardContent) : (_jsx(Card, Object.assign({ dense: variant === 'dense', indented: true }, other, { children: cardContent })));
21
23
  };
@@ -4,7 +4,7 @@ import { listItemTextClasses } from '@mui/material/ListItemText';
4
4
  import { styled } from '@mui/material/styles';
5
5
  import { getContrastAlphaColor } from '../../utils';
6
6
  export const ListItemButton = styled(MuiListItemButton)(({ theme }) => ({
7
- borderRadius: theme.shape.borderRadiusSecondary,
7
+ borderRadius: theme.shape.borderRadius,
8
8
  paddingLeft: theme.spacing(1.5),
9
9
  paddingRight: theme.spacing(1.5),
10
10
  height: 64,
@@ -1,2 +1,2 @@
1
1
  export declare const name = "@lifi/widget";
2
- export declare const version = "1.29.0";
2
+ export declare const version = "1.29.1";
package/config/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  export const name = '@lifi/widget';
2
- export const version = '1.29.0';
2
+ export const version = '1.29.1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifi/widget",
3
- "version": "1.29.0",
3
+ "version": "1.29.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
  "main": "./cjs/index.js",
6
6
  "module": "./index.js",
@@ -3,7 +3,7 @@ import { listItemTextClasses } from '@mui/material/ListItemText';
3
3
  import { styled } from '@mui/material/styles';
4
4
  import { getContrastAlphaColor } from '../../utils';
5
5
  export const ListItemButton = styled(MuiListItemButton)(({ theme }) => ({
6
- borderRadius: theme.shape.borderRadiusSecondary,
6
+ borderRadius: theme.shape.borderRadius,
7
7
  paddingLeft: theme.spacing(1.5),
8
8
  height: 56,
9
9
  '&:hover': {
@@ -3,7 +3,7 @@ import { listItemTextClasses } from '@mui/material/ListItemText';
3
3
  import { styled } from '@mui/material/styles';
4
4
  import { getContrastAlphaColor } from '../../utils';
5
5
  export const ListItemButton = styled(MuiListItemButton)(({ theme }) => ({
6
- borderRadius: theme.shape.borderRadiusSecondary,
6
+ borderRadius: theme.shape.borderRadius,
7
7
  paddingLeft: theme.spacing(1.5),
8
8
  height: 56,
9
9
  '&:hover': {
@@ -3,7 +3,7 @@ import { listItemTextClasses } from '@mui/material/ListItemText';
3
3
  import { styled } from '@mui/material/styles';
4
4
  import { getContrastAlphaColor } from '../../utils';
5
5
  export const ListItemButton = styled(MuiListItemButton)(({ theme }) => ({
6
- borderRadius: theme.shape.borderRadiusSecondary,
6
+ borderRadius: theme.shape.borderRadius,
7
7
  paddingLeft: theme.spacing(1.5),
8
8
  height: 56,
9
9
  '&:hover': {