@lifi/widget 2.0.0-beta.13 → 2.0.0-beta.14
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.
- package/AppDrawer.style.d.ts +1 -1
- package/cjs/AppDrawer.style.d.ts +1 -1
- package/cjs/components/ActiveSwaps/ActiveSwaps.style.d.ts +3 -3
- package/cjs/components/Card/CardIconButton.d.ts +1 -1
- package/cjs/components/Header/Header.style.d.ts +1 -1
- package/cjs/components/Header/NavigationTabs.style.js +2 -2
- package/cjs/components/ListItemButton.d.ts +1 -1
- package/cjs/components/NFT/NFT.style.d.ts +1 -1
- package/cjs/components/ReverseTokensButton/ReverseTokensButton.style.d.ts +1 -1
- package/cjs/components/SmallAvatar.d.ts +1 -1
- package/cjs/components/StepActions/StepActions.style.d.ts +1 -1
- package/cjs/components/SwapInput/SwapInputAdornment.style.d.ts +1 -1
- package/cjs/components/TokenList/TokenList.style.d.ts +4 -4
- package/cjs/components/TokenList/TokenList.style.js +11 -8
- package/cjs/components/TokenList/TokenListItem.js +3 -7
- package/cjs/config/version.d.ts +1 -1
- package/cjs/config/version.js +1 -1
- package/cjs/i18n/fr.json +24 -7
- package/cjs/i18n/ko.json +24 -7
- package/cjs/i18n/th.json +24 -7
- package/cjs/pages/SelectEnabledToolsPage/SelectEnabledToolsPage.style.d.ts +1 -1
- package/cjs/pages/SelectTokenPage/types.js +1 -1
- package/cjs/pages/SettingsPage/ColorSchemeButtonGroup.style.d.ts +1 -1
- package/cjs/pages/SettingsPage/EnabledToolsButton.style.d.ts +1 -1
- package/cjs/providers/SwapFormProvider/types.js +1 -1
- package/cjs/stores/routes/types.js +1 -1
- package/cjs/types/events.js +1 -1
- package/cjs/types/widget.js +3 -3
- package/cjs/utils/elements.js +1 -1
- package/components/ActiveSwaps/ActiveSwaps.style.d.ts +3 -3
- package/components/Card/CardIconButton.d.ts +1 -1
- package/components/Header/Header.style.d.ts +1 -1
- package/components/Header/NavigationTabs.style.js +2 -2
- package/components/ListItemButton.d.ts +1 -1
- package/components/NFT/NFT.style.d.ts +1 -1
- package/components/ReverseTokensButton/ReverseTokensButton.style.d.ts +1 -1
- package/components/SmallAvatar.d.ts +1 -1
- package/components/StepActions/StepActions.style.d.ts +1 -1
- package/components/SwapInput/SwapInputAdornment.style.d.ts +1 -1
- package/components/TokenList/TokenList.style.d.ts +4 -4
- package/components/TokenList/TokenList.style.js +11 -8
- package/components/TokenList/TokenListItem.js +4 -8
- package/config/version.d.ts +1 -1
- package/config/version.js +1 -1
- package/i18n/fr.json +24 -7
- package/i18n/ko.json +24 -7
- package/i18n/th.json +24 -7
- package/package.json +8 -8
- package/pages/SelectEnabledToolsPage/SelectEnabledToolsPage.style.d.ts +1 -1
- package/pages/SettingsPage/ColorSchemeButtonGroup.style.d.ts +1 -1
- package/pages/SettingsPage/EnabledToolsButton.style.d.ts +1 -1
- package/tsconfig.cjs.tsbuildinfo +1 -1
package/AppDrawer.style.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare const DrawerButton: import("@emotion/styled").StyledComponent<{
|
|
|
9
9
|
endIcon?: import("react").ReactNode;
|
|
10
10
|
fullWidth?: boolean | undefined;
|
|
11
11
|
href?: string | undefined;
|
|
12
|
-
size?: import("@mui/types").OverridableStringUnion<"small" | "
|
|
12
|
+
size?: import("@mui/types").OverridableStringUnion<"small" | "large" | "medium", import("@mui/material").ButtonPropsSizeOverrides> | undefined;
|
|
13
13
|
startIcon?: import("react").ReactNode;
|
|
14
14
|
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
15
15
|
variant?: import("@mui/types").OverridableStringUnion<"text" | "outlined" | "contained", import("@mui/material").ButtonPropsVariantOverrides> | undefined;
|
package/cjs/AppDrawer.style.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare const DrawerButton: import("@emotion/styled").StyledComponent<{
|
|
|
9
9
|
endIcon?: import("react").ReactNode;
|
|
10
10
|
fullWidth?: boolean | undefined;
|
|
11
11
|
href?: string | undefined;
|
|
12
|
-
size?: import("@mui/types").OverridableStringUnion<"small" | "
|
|
12
|
+
size?: import("@mui/types").OverridableStringUnion<"small" | "large" | "medium", import("@mui/material").ButtonPropsSizeOverrides> | undefined;
|
|
13
13
|
startIcon?: import("react").ReactNode;
|
|
14
14
|
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
15
15
|
variant?: import("@mui/types").OverridableStringUnion<"text" | "outlined" | "contained", import("@mui/material").ButtonPropsVariantOverrides> | undefined;
|
|
@@ -17,7 +17,7 @@ export declare const ListItemButton: import("@emotion/styled").StyledComponent<i
|
|
|
17
17
|
touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
|
|
18
18
|
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
19
19
|
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
20
|
-
}, "className" | "style" | "classes" | "autoFocus" | "tabIndex" | "children" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "alignItems" | "
|
|
20
|
+
}, "className" | "style" | "classes" | "autoFocus" | "tabIndex" | "children" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "alignItems" | "divider" | "dense" | "selected" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
21
21
|
export declare const ListItem: import("@emotion/styled").StyledComponent<{
|
|
22
22
|
button?: false | undefined;
|
|
23
23
|
} & import("@mui/material").ListItemBaseProps & {
|
|
@@ -35,7 +35,7 @@ export declare const ListItem: import("@emotion/styled").StyledComponent<{
|
|
|
35
35
|
} | undefined;
|
|
36
36
|
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
|
|
37
37
|
ref?: ((instance: HTMLLIElement | null) => void) | import("react").RefObject<HTMLLIElement> | null | undefined;
|
|
38
|
-
}, "button" | "className" | "style" | "classes" | "autoFocus" | "children" | "disabled" | "sx" | "alignItems" | "
|
|
38
|
+
}, "button" | "className" | "style" | "classes" | "autoFocus" | "children" | "disabled" | "sx" | "alignItems" | "divider" | "components" | "dense" | "slotProps" | "slots" | "componentsProps" | "selected" | "disableGutters" | "ContainerComponent" | "ContainerProps" | "disablePadding" | "secondaryAction"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
39
39
|
export declare const ShowAllButton: import("@emotion/styled").StyledComponent<{
|
|
40
40
|
children?: import("react").ReactNode;
|
|
41
41
|
classes?: Partial<import("@mui/material").ButtonClasses> | undefined;
|
|
@@ -46,7 +46,7 @@ export declare const ShowAllButton: import("@emotion/styled").StyledComponent<{
|
|
|
46
46
|
endIcon?: import("react").ReactNode;
|
|
47
47
|
fullWidth?: boolean | undefined;
|
|
48
48
|
href?: string | undefined;
|
|
49
|
-
size?: import("@mui/types").OverridableStringUnion<"small" | "
|
|
49
|
+
size?: import("@mui/types").OverridableStringUnion<"small" | "large" | "medium", import("@mui/material").ButtonPropsSizeOverrides> | undefined;
|
|
50
50
|
startIcon?: import("react").ReactNode;
|
|
51
51
|
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
52
52
|
variant?: import("@mui/types").OverridableStringUnion<"text" | "outlined" | "contained", import("@mui/material").ButtonPropsVariantOverrides> | undefined;
|
|
@@ -6,7 +6,7 @@ export declare const CardIconButton: import("@emotion/styled").StyledComponent<{
|
|
|
6
6
|
disabled?: boolean | undefined;
|
|
7
7
|
disableFocusRipple?: boolean | undefined;
|
|
8
8
|
edge?: false | "end" | "start" | undefined;
|
|
9
|
-
size?: import("@mui/types").OverridableStringUnion<"small" | "
|
|
9
|
+
size?: import("@mui/types").OverridableStringUnion<"small" | "large" | "medium", import("@mui/material").IconButtonPropsSizeOverrides> | undefined;
|
|
10
10
|
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
11
11
|
} & Omit<{
|
|
12
12
|
action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
|
|
@@ -35,7 +35,7 @@ export declare const WalletButton: import("@emotion/styled").StyledComponent<{
|
|
|
35
35
|
endIcon?: import("react").ReactNode;
|
|
36
36
|
fullWidth?: boolean | undefined;
|
|
37
37
|
href?: string | undefined;
|
|
38
|
-
size?: import("@mui/types").OverridableStringUnion<"small" | "
|
|
38
|
+
size?: import("@mui/types").OverridableStringUnion<"small" | "large" | "medium", import("@mui/material").ButtonPropsSizeOverrides> | undefined;
|
|
39
39
|
startIcon?: import("react").ReactNode;
|
|
40
40
|
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
41
41
|
variant?: import("@mui/types").OverridableStringUnion<"text" | "outlined" | "contained", import("@mui/material").ButtonPropsVariantOverrides> | undefined;
|
|
@@ -5,7 +5,7 @@ const material_1 = require("@mui/material");
|
|
|
5
5
|
const styles_1 = require("@mui/material/styles");
|
|
6
6
|
exports.NavbarTabs = (0, styles_1.styled)(material_1.Tabs)(({ theme }) => ({
|
|
7
7
|
backgroundColor: theme.palette.mode === 'dark'
|
|
8
|
-
? theme.palette.
|
|
8
|
+
? theme.palette.background.paper
|
|
9
9
|
: (0, styles_1.alpha)(theme.palette.common.black, 0.04),
|
|
10
10
|
borderRadius: Math.max(theme.shape.borderRadius, theme.shape.borderRadiusSecondary),
|
|
11
11
|
padding: theme.spacing(0.5),
|
|
@@ -25,7 +25,7 @@ exports.NavbarTabs = (0, styles_1.styled)(material_1.Tabs)(({ theme }) => ({
|
|
|
25
25
|
transform: 'translateY(-50%)',
|
|
26
26
|
height: 48,
|
|
27
27
|
backgroundColor: theme.palette.mode === 'dark'
|
|
28
|
-
? theme.palette.
|
|
28
|
+
? theme.palette.background.default
|
|
29
29
|
: theme.palette.common.white,
|
|
30
30
|
borderRadius: theme.shape.borderRadiusSecondary,
|
|
31
31
|
boxShadow: `0px 2px 4px ${(0, styles_1.alpha)(theme.palette.common.black, 0.04)}`,
|
|
@@ -17,4 +17,4 @@ export declare const ListItemButton: import("@emotion/styled").StyledComponent<i
|
|
|
17
17
|
touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
|
|
18
18
|
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
19
19
|
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
20
|
-
}, "className" | "style" | "classes" | "autoFocus" | "tabIndex" | "children" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "alignItems" | "
|
|
20
|
+
}, "className" | "style" | "classes" | "autoFocus" | "tabIndex" | "children" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "alignItems" | "divider" | "dense" | "selected" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -10,7 +10,7 @@ export declare const PreviewAvatar: import("@emotion/styled").StyledComponent<{
|
|
|
10
10
|
src?: string | undefined;
|
|
11
11
|
srcSet?: string | undefined;
|
|
12
12
|
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
13
|
-
variant?: import("@mui/types").OverridableStringUnion<"
|
|
13
|
+
variant?: import("@mui/types").OverridableStringUnion<"circular" | "rounded" | "square", import("@mui/material").AvatarPropsVariantOverrides> | undefined;
|
|
14
14
|
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
15
15
|
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
16
16
|
}, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "alt" | "imgProps" | "sizes" | "src" | "srcSet"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -6,7 +6,7 @@ export declare const IconButton: import("@emotion/styled").StyledComponent<{
|
|
|
6
6
|
disabled?: boolean | undefined;
|
|
7
7
|
disableFocusRipple?: boolean | undefined;
|
|
8
8
|
edge?: false | "end" | "start" | undefined;
|
|
9
|
-
size?: import("@mui/types").OverridableStringUnion<"small" | "
|
|
9
|
+
size?: import("@mui/types").OverridableStringUnion<"small" | "large" | "medium", import("@mui/material").IconButtonPropsSizeOverrides> | undefined;
|
|
10
10
|
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
11
11
|
} & Omit<{
|
|
12
12
|
action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
|
|
@@ -10,7 +10,7 @@ export declare const SmallAvatar: import("@emotion/styled").StyledComponent<{
|
|
|
10
10
|
src?: string | undefined;
|
|
11
11
|
srcSet?: string | undefined;
|
|
12
12
|
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
13
|
-
variant?: import("@mui/types").OverridableStringUnion<"
|
|
13
|
+
variant?: import("@mui/types").OverridableStringUnion<"circular" | "rounded" | "square", import("@mui/material").AvatarPropsVariantOverrides> | undefined;
|
|
14
14
|
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
15
15
|
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
16
16
|
}, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "alt" | "imgProps" | "sizes" | "src" | "srcSet"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -14,7 +14,7 @@ export declare const StepAvatar: import("@emotion/styled").StyledComponent<{
|
|
|
14
14
|
src?: string | undefined;
|
|
15
15
|
srcSet?: string | undefined;
|
|
16
16
|
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
17
|
-
variant?: import("@mui/types").OverridableStringUnion<"
|
|
17
|
+
variant?: import("@mui/types").OverridableStringUnion<"circular" | "rounded" | "square", import("@mui/material").AvatarPropsVariantOverrides> | undefined;
|
|
18
18
|
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
19
19
|
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
20
20
|
}, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "alt" | "imgProps" | "sizes" | "src" | "srcSet"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -9,7 +9,7 @@ export declare const Button: import("@emotion/styled").StyledComponent<{
|
|
|
9
9
|
endIcon?: import("react").ReactNode;
|
|
10
10
|
fullWidth?: boolean | undefined;
|
|
11
11
|
href?: string | undefined;
|
|
12
|
-
size?: import("@mui/types").OverridableStringUnion<"small" | "
|
|
12
|
+
size?: import("@mui/types").OverridableStringUnion<"small" | "large" | "medium", import("@mui/material").ButtonPropsSizeOverrides> | undefined;
|
|
13
13
|
startIcon?: import("react").ReactNode;
|
|
14
14
|
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
15
15
|
variant?: import("@mui/types").OverridableStringUnion<"text" | "outlined" | "contained", import("@mui/material").ButtonPropsVariantOverrides> | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { StyledComponent } from '@emotion/styled';
|
|
3
|
-
import type {
|
|
3
|
+
import type { IconButtonProps, LinkProps } from '@mui/material';
|
|
4
4
|
export declare const ListItemButton: StyledComponent<import("@mui/material").ListItemButtonBaseProps & Omit<{
|
|
5
5
|
action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
|
|
6
6
|
centerRipple?: boolean | undefined;
|
|
@@ -19,7 +19,7 @@ export declare const ListItemButton: StyledComponent<import("@mui/material").Lis
|
|
|
19
19
|
touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
|
|
20
20
|
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
21
21
|
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
22
|
-
}, "className" | "style" | "classes" | "autoFocus" | "tabIndex" | "children" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "alignItems" | "
|
|
22
|
+
}, "className" | "style" | "classes" | "autoFocus" | "tabIndex" | "children" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "alignItems" | "divider" | "dense" | "selected" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
23
23
|
export declare const ListItem: StyledComponent<{
|
|
24
24
|
button?: false | undefined;
|
|
25
25
|
} & import("@mui/material").ListItemBaseProps & {
|
|
@@ -37,5 +37,5 @@ export declare const ListItem: StyledComponent<{
|
|
|
37
37
|
} | undefined;
|
|
38
38
|
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
|
|
39
39
|
ref?: ((instance: HTMLLIElement | null) => void) | import("react").RefObject<HTMLLIElement> | null | undefined;
|
|
40
|
-
}, "button" | "className" | "style" | "classes" | "autoFocus" | "children" | "disabled" | "sx" | "alignItems" | "
|
|
41
|
-
export declare const
|
|
40
|
+
}, "button" | "className" | "style" | "classes" | "autoFocus" | "children" | "disabled" | "sx" | "alignItems" | "divider" | "components" | "dense" | "slotProps" | "slots" | "componentsProps" | "selected" | "disableGutters" | "ContainerComponent" | "ContainerProps" | "disablePadding" | "secondaryAction"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
41
|
+
export declare const IconButton: StyledComponent<IconButtonProps & LinkProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.IconButton = exports.ListItem = exports.ListItemButton = void 0;
|
|
4
4
|
const material_1 = require("@mui/material");
|
|
5
5
|
const ListItemSecondaryAction_1 = require("@mui/material/ListItemSecondaryAction");
|
|
6
6
|
const ListItemText_1 = require("@mui/material/ListItemText");
|
|
@@ -23,28 +23,31 @@ exports.ListItem = (0, styles_1.styled)(material_1.ListItem)(({ theme }) => ({
|
|
|
23
23
|
[`.${ListItemSecondaryAction_1.listItemSecondaryActionClasses.root}`]: {
|
|
24
24
|
right: theme.spacing(3),
|
|
25
25
|
},
|
|
26
|
+
[`& .${ListItemText_1.listItemTextClasses.primary}`]: {
|
|
27
|
+
height: 22,
|
|
28
|
+
},
|
|
26
29
|
[`& .${ListItemText_1.listItemTextClasses.primary}, & .${ListItemText_1.listItemTextClasses.secondary}`]: {
|
|
27
30
|
textOverflow: 'ellipsis',
|
|
28
31
|
overflow: 'hidden',
|
|
29
32
|
whiteSpace: 'nowrap',
|
|
30
33
|
},
|
|
31
34
|
}));
|
|
32
|
-
exports.
|
|
35
|
+
exports.IconButton = (0, styles_1.styled)(material_1.IconButton)(({ theme }) => ({
|
|
33
36
|
lineHeight: 1,
|
|
34
37
|
fontSize: '0.75rem',
|
|
35
38
|
fontWeight: 400,
|
|
36
|
-
padding: theme.spacing(0.375, 0.
|
|
39
|
+
padding: theme.spacing(0.375, 0.375),
|
|
40
|
+
marginLeft: theme.spacing(0.25),
|
|
37
41
|
color: 'inherit',
|
|
38
42
|
backgroundColor: 'unset',
|
|
43
|
+
minWidth: 'unset',
|
|
44
|
+
borderRadius: '50%',
|
|
39
45
|
'&:hover': {
|
|
40
46
|
backgroundColor: theme.palette.mode === 'light'
|
|
41
47
|
? (0, styles_1.alpha)(theme.palette.common.black, 0.04)
|
|
42
48
|
: (0, styles_1.alpha)(theme.palette.common.white, 0.08),
|
|
43
49
|
},
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
},
|
|
47
|
-
[`.${material_1.buttonClasses.endIcon} > *:nth-of-type(1)`]: {
|
|
48
|
-
fontSize: '0.75rem',
|
|
50
|
+
svg: {
|
|
51
|
+
fontSize: '0.875rem',
|
|
49
52
|
},
|
|
50
53
|
}));
|
|
@@ -32,15 +32,11 @@ const TokenListItemButton = ({ onClick, token, chain, showBalance, isBalanceLoad
|
|
|
32
32
|
};
|
|
33
33
|
return ((0, jsx_runtime_1.jsxs)(TokenList_style_1.ListItemButton, { onClick: onClick, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, dense: true, children: [(0, jsx_runtime_1.jsx)(material_1.ListItemAvatar, { children: (0, jsx_runtime_1.jsx)(material_1.Avatar, { src: token.logoURI, alt: token.symbol, children: token.symbol?.[0] }) }), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: token.symbol, secondaryTypographyProps: {
|
|
34
34
|
component: 'div',
|
|
35
|
-
|
|
36
|
-
overflow: 'auto',
|
|
37
|
-
marginLeft: -0.75,
|
|
38
|
-
},
|
|
39
|
-
}, secondary: (0, jsx_runtime_1.jsxs)(material_1.Box, { position: "relative", height: 18, ref: container, children: [(0, jsx_runtime_1.jsx)(material_1.Slide, { direction: "down", in: !showAddress, container: container.current, style: {
|
|
35
|
+
}, secondary: (0, jsx_runtime_1.jsxs)(material_1.Box, { position: "relative", height: 20, ref: container, children: [(0, jsx_runtime_1.jsx)(material_1.Slide, { direction: "down", in: !showAddress, container: container.current, style: {
|
|
40
36
|
position: 'absolute',
|
|
41
|
-
}, appear: false, children: (0, jsx_runtime_1.jsx)(material_1.Box, {
|
|
37
|
+
}, appear: false, children: (0, jsx_runtime_1.jsx)(material_1.Box, { pt: 0.25, children: token.name }) }), (0, jsx_runtime_1.jsx)(material_1.Slide, { direction: "up", in: showAddress, container: container.current, style: {
|
|
42
38
|
position: 'absolute',
|
|
43
|
-
}, appear: false, mountOnEnter: true, children: (0, jsx_runtime_1.jsx)(TokenList_style_1.
|
|
39
|
+
}, appear: false, mountOnEnter: true, children: (0, jsx_runtime_1.jsxs)(material_1.Box, { display: "flex", children: [(0, jsx_runtime_1.jsx)(material_1.Box, { display: "flex", alignItems: "center", pt: 0.125, children: (0, utils_1.shortenAddress)(token.address) }), (0, jsx_runtime_1.jsx)(TokenList_style_1.IconButton, { size: "small", LinkComponent: material_1.Link, href: `${chain?.metamask.blockExplorerUrls[0]}address/${token.address}`, target: "_blank", rel: "nofollow noreferrer", onClick: (e) => e.stopPropagation(), children: (0, jsx_runtime_1.jsx)(OpenInNewRounded_1.default, {}) })] }) })] }) }), showBalance ? (isBalanceLoading ? ((0, jsx_runtime_1.jsx)(exports.TokenAmountSkeleton, {})) : ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: { textAlign: 'right' }, children: [Number(token.amount) ? ((0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body1", noWrap: true, children: t('format.number', {
|
|
44
40
|
value: (0, utils_1.formatTokenAmount)(token.amount),
|
|
45
41
|
}) })) : null, tokenPrice ? ((0, jsx_runtime_1.jsx)(material_1.Typography, { fontWeight: 400, fontSize: 12, color: "text.secondary", "data-price": token.priceUSD, children: t(`format.currency`, {
|
|
46
42
|
value: tokenPrice,
|
package/cjs/config/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const name = "@lifi/widget";
|
|
2
|
-
export declare const version = "2.0.0-beta.
|
|
2
|
+
export declare const version = "2.0.0-beta.14";
|
package/cjs/config/version.js
CHANGED
package/cjs/i18n/fr.json
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"button": {
|
|
3
3
|
"auto": "Auto",
|
|
4
|
+
"buy": "Acheter",
|
|
5
|
+
"buyNow": "Acheter maintenant",
|
|
4
6
|
"cancel": "Annuler",
|
|
5
7
|
"connectWallet": "Connecter un portefeuille",
|
|
6
8
|
"contactSupport": "Contacter le support",
|
|
@@ -23,6 +25,7 @@
|
|
|
23
25
|
"resetSettings": "Réinitialiser les paramètres",
|
|
24
26
|
"restartSwap": "Redémarrer l'échange",
|
|
25
27
|
"reviewGasSwap": "Vérifier le gaz d'échange",
|
|
28
|
+
"reviewPurchase": "Vérifiez votre achat",
|
|
26
29
|
"reviewSwap": "Vérifier l'échange",
|
|
27
30
|
"seeDetails": "Voir les détails",
|
|
28
31
|
"showAll": "Afficher tout",
|
|
@@ -39,10 +42,14 @@
|
|
|
39
42
|
},
|
|
40
43
|
"header": {
|
|
41
44
|
"activeSwaps": "Échanges actifs",
|
|
45
|
+
"bridge": "Bridge",
|
|
42
46
|
"checkout": "Paiement",
|
|
43
47
|
"from": "Échanger de",
|
|
44
48
|
"gas": "Gaz",
|
|
45
49
|
"gasSwap": "Échange de gaz",
|
|
50
|
+
"payWith": "Payer avec",
|
|
51
|
+
"purchase": "Acheter",
|
|
52
|
+
"purchaseDetails": "Détails de l'achat",
|
|
46
53
|
"routes": "Vous recevez",
|
|
47
54
|
"selectChain": "Sélectionner la chaîne",
|
|
48
55
|
"selectWallet": "Sélectionnez votre portefeuille",
|
|
@@ -75,6 +82,8 @@
|
|
|
75
82
|
"currentAmount": "Montant actuel",
|
|
76
83
|
"error": {
|
|
77
84
|
"message": {
|
|
85
|
+
"allowanceRequired": "Le montant du transfert pour {{tokenSymbol}} dépasse votre allocation actuelle. Veuillez augmenter votre allocation et réessayer.",
|
|
86
|
+
"insufficientFunds": "Vous n'avez pas assez de gaz pour couvrir le coût de la transaction.",
|
|
78
87
|
"slippageThreshold": "L'effet de glissement est supérieur au seuil défini. Veuillez demander un nouvel itinéraire pour obtenir un nouveau devis.",
|
|
79
88
|
"transactionFailed": "Veuillez consulter l'explorateur de blocs pour plus d'informations.",
|
|
80
89
|
"transactionNotSent": "La transaction n'a pas été envoyée. {{amount, number(maximumFractionDigits: 9)}} {{tokenSymbol}} sur {{chainName}} restent dans votre portefeuille.",
|
|
@@ -82,10 +91,12 @@
|
|
|
82
91
|
"unknown": "Veuillez réessayer ou contacter le support."
|
|
83
92
|
},
|
|
84
93
|
"title": {
|
|
94
|
+
"allowanceRequired": "Allocation insuffisante",
|
|
85
95
|
"balanceIsTooLow": "Le solde est trop bas.",
|
|
86
96
|
"chainSwitch": "Changement de chaîne nécessaire.",
|
|
87
97
|
"failed": "L'échange a échoué.",
|
|
88
98
|
"gasLimitIsTooLow": "La limite de gaz est trop basse.",
|
|
99
|
+
"insufficientFunds": "Fonds insuffisants",
|
|
89
100
|
"slippageNotMet": "Les conditions de l'effet de glissement ne sont pas remplies.",
|
|
90
101
|
"transactionCanceled": "Transaction annulée.",
|
|
91
102
|
"transactionFailed": "La transaction a échoué.",
|
|
@@ -108,8 +119,8 @@
|
|
|
108
119
|
"inProgress": "en cours",
|
|
109
120
|
"insurance": {
|
|
110
121
|
"bridgeExploits": "Des dysfonctionnements de pont, des hacks ou des exploits",
|
|
111
|
-
"insure": "Assurer
|
|
112
|
-
"insured": "Vous avez assuré
|
|
122
|
+
"insure": "Assurer <strong>{{amount, number(maximumFractionDigits: 9)}} {{tokenSymbol}}</strong> en transit :",
|
|
123
|
+
"insured": "Vous avez assuré <strong>{{amount, number(maximumFractionDigits: 9)}} {{tokenSymbol}}</strong> en transit :",
|
|
113
124
|
"slippageError": "Erreur dans le slippage pour les jetons reçus"
|
|
114
125
|
},
|
|
115
126
|
"info": {
|
|
@@ -131,7 +142,6 @@
|
|
|
131
142
|
"onChain": "sur {{chainName}}",
|
|
132
143
|
"otherTokens": "Autres jetons",
|
|
133
144
|
"ownedBy": "Propriétaire",
|
|
134
|
-
"payWith": "Payer avec",
|
|
135
145
|
"process": {
|
|
136
146
|
"crossChain": {
|
|
137
147
|
"actionRequired": "Veuillez signer la transaction.",
|
|
@@ -139,6 +149,9 @@
|
|
|
139
149
|
"pending": "En attente de la transaction bridge",
|
|
140
150
|
"started": "Préparation de la transaction bridge"
|
|
141
151
|
},
|
|
152
|
+
"nft": {
|
|
153
|
+
"done": "NFT acheté"
|
|
154
|
+
},
|
|
142
155
|
"receivingChain": {
|
|
143
156
|
"done": "Bridge complété",
|
|
144
157
|
"partial": "Bridge partiellement complété",
|
|
@@ -165,24 +178,27 @@
|
|
|
165
178
|
"rateChange": "Taux de change",
|
|
166
179
|
"receiving": "En cours de réception",
|
|
167
180
|
"refuelStepDetails": "Obtenir du gaz via {{tool}}",
|
|
168
|
-
"
|
|
169
|
-
"selectChain": "Chaîne",
|
|
181
|
+
"selectChain": "Sélectionner la chaîne",
|
|
170
182
|
"selectChainAndToken": "Sélectionnez la chaîne et le jeton",
|
|
171
|
-
"selectToken": "
|
|
183
|
+
"selectToken": "Choisissez un jeton",
|
|
172
184
|
"sendToAddress": "Envoyer à {{address}}",
|
|
173
185
|
"sendToWallet": "Envoyer vers un autre portefeuille",
|
|
174
186
|
"sentToAddress": "Envoyé à {{address}}",
|
|
175
187
|
"stepBridge": "Bridge",
|
|
188
|
+
"stepBridgeAndBuy": "Bridge et acheter",
|
|
176
189
|
"stepDetails": "{{tool}} via LI.FI",
|
|
177
190
|
"stepSwap": "Échanger",
|
|
178
191
|
"stepSwapAndBridge": "Échange et Bridge",
|
|
192
|
+
"stepSwapAndBuy": "Échanger et acheter",
|
|
179
193
|
"success": {
|
|
180
194
|
"message": {
|
|
181
195
|
"swapPartiallySuccessful": "Nous avons essayé de compléter l'échange, mais {{tool}} a manqué de liquidité pour le jeton {{tokenSymbol}}.",
|
|
196
|
+
"purchaseSuccessful": "Vous possédez maintenant {{assetName}} dans le portefeuille {{walletAddress}} sur la chaîne {{chainName}}.",
|
|
182
197
|
"swapSuccessful": "Il y a maintenant {{amount, number(maximumFractionDigits: 4)}} {{tokenSymbol}} dans le portefeuille {{walletAddress}} sur la chaîne {{chainName}}."
|
|
183
198
|
},
|
|
184
199
|
"title": {
|
|
185
200
|
"gasSwapSuccessful": "Échange de gaz réussi",
|
|
201
|
+
"purchaseSuccessful": "Achat effectué",
|
|
186
202
|
"refundIssued": "Remboursement émis",
|
|
187
203
|
"swapPartiallySuccessful": "Échange partiellement réussi",
|
|
188
204
|
"swapSuccessful": "Échange réussi"
|
|
@@ -203,7 +219,7 @@
|
|
|
203
219
|
"to": "À",
|
|
204
220
|
"tokenOnChain": "{{tokenSymbol}} sur {{chainName}}",
|
|
205
221
|
"tokenOnChainAmount": "{{amount, number(maximumFractionDigits: 4)}} {{tokenSymbol}} sur {{chainName}}",
|
|
206
|
-
"tokenSearch": "
|
|
222
|
+
"tokenSearch": "Recherche par nom de jeton ou adresse",
|
|
207
223
|
"valueLoss": "Perte de valeur",
|
|
208
224
|
"walletAddressOrEns": "Adresse du portefeuille ou nom ENS",
|
|
209
225
|
"warning": {
|
|
@@ -237,6 +253,7 @@
|
|
|
237
253
|
},
|
|
238
254
|
"numberOfSteps": "Un certain nombre d'étapes d'échange. Chaque étape peut contenir 1 à 2 transactions nécessitant une signature.",
|
|
239
255
|
"progressToNextUpdate": "Les données affichées seront automatiquement actualisées après {{value}} secondes. Cliquez ici pour les mettre à jour manuellement.",
|
|
256
|
+
"recommended": "Une voie bon marché qui équilibre complexité et facilité d'utilisation.",
|
|
240
257
|
"settingsModified": "Paramètres (modifiés)"
|
|
241
258
|
},
|
|
242
259
|
"wallet": {
|
package/cjs/i18n/ko.json
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"button": {
|
|
3
3
|
"auto": "자동",
|
|
4
|
+
"buy": "매수",
|
|
5
|
+
"buyNow": "즉시 매수",
|
|
4
6
|
"cancel": "취소",
|
|
5
7
|
"connectWallet": "지갑 연결",
|
|
6
8
|
"contactSupport": "고객 지원",
|
|
@@ -23,6 +25,7 @@
|
|
|
23
25
|
"resetSettings": "설정 초기화",
|
|
24
26
|
"restartSwap": "스왑 재시작",
|
|
25
27
|
"reviewGasSwap": "가스 스왑 검토",
|
|
28
|
+
"reviewPurchase": "매수 검토",
|
|
26
29
|
"reviewSwap": "스왑 검토",
|
|
27
30
|
"seeDetails": "자세히 보기",
|
|
28
31
|
"showAll": "모두 보기",
|
|
@@ -39,10 +42,14 @@
|
|
|
39
42
|
},
|
|
40
43
|
"header": {
|
|
41
44
|
"activeSwaps": "활성화된 스왑",
|
|
45
|
+
"bridge": "브릿지",
|
|
42
46
|
"checkout": "주문",
|
|
43
47
|
"from": "다음에서 스왑",
|
|
44
48
|
"gas": "가스",
|
|
45
49
|
"gasSwap": "가스 스왑",
|
|
50
|
+
"payWith": "결제 수단",
|
|
51
|
+
"purchase": "구입",
|
|
52
|
+
"purchaseDetails": "주문 세부사항",
|
|
46
53
|
"routes": "받는 수량",
|
|
47
54
|
"selectChain": "체인 선택",
|
|
48
55
|
"selectWallet": "지갑 선택",
|
|
@@ -75,6 +82,8 @@
|
|
|
75
82
|
"currentAmount": "현재 수량",
|
|
76
83
|
"error": {
|
|
77
84
|
"message": {
|
|
85
|
+
"allowanceRequired": "{{tokenSymbol}} 이체 금액이 한도를 초과했습니다. 한도를 증액한 뒤 다시 시도해주십시오.",
|
|
86
|
+
"insufficientFunds": "트랜잭션에 필요한 가스비가 부족합니다.",
|
|
78
87
|
"slippageThreshold": "슬리피지가 한계점보다 큽니다. 새로운 견적을 얻기 위해 새 경로를 요청하십시오.",
|
|
79
88
|
"transactionFailed": "자세한 정보는 블록 탐색기에서 확인하세요.",
|
|
80
89
|
"transactionNotSent": "트랜잭션 전송에 실패했습니다. {{chainName}}의 {{amount, number(maximumFractionDigits: 9)}} {{tokenSymbol}}이 지갑에 남아있습니다.",
|
|
@@ -82,10 +91,12 @@
|
|
|
82
91
|
"unknown": "다시 시도하거나 고객 센터에 문의하십시오."
|
|
83
92
|
},
|
|
84
93
|
"title": {
|
|
94
|
+
"allowanceRequired": "한도 부족",
|
|
85
95
|
"balanceIsTooLow": "잔액이 부족합니다.",
|
|
86
96
|
"chainSwitch": "체인을 변경하십시오",
|
|
87
97
|
"failed": "스왑에 실패하였습니다",
|
|
88
98
|
"gasLimitIsTooLow": "가스 한도가 너무 낮습니다",
|
|
99
|
+
"insufficientFunds": "잔고 부족",
|
|
89
100
|
"slippageNotMet": "슬리피지 조건을 충족하지 못했습니다.",
|
|
90
101
|
"transactionCanceled": "거래가 취소되었습니다",
|
|
91
102
|
"transactionFailed": "거래가 실패하였습니다",
|
|
@@ -108,8 +119,8 @@
|
|
|
108
119
|
"inProgress": "진행 중",
|
|
109
120
|
"insurance": {
|
|
110
121
|
"bridgeExploits": "브릿지 오류, 해킹, 취약점 공격",
|
|
111
|
-
"insure": "
|
|
112
|
-
"insured": "
|
|
122
|
+
"insure": "브릿지 중인 <strong>{{amount, number(maximumFractionDigits: 9)}} {{tokenSymbol}}</strong> 보험 적용",
|
|
123
|
+
"insured": "브릿지 중인 <strong>{{amount, number(maximumFractionDigits: 9)}} {{tokenSymbol}}</strong> 보험 적용 완료",
|
|
113
124
|
"slippageError": "받을 토큰의 슬리피지 오류가 발생했습니다."
|
|
114
125
|
},
|
|
115
126
|
"info": {
|
|
@@ -131,7 +142,6 @@
|
|
|
131
142
|
"onChain": "{{chainName}} 에서",
|
|
132
143
|
"otherTokens": "다른 토큰",
|
|
133
144
|
"ownedBy": "소유자: ",
|
|
134
|
-
"payWith": "지불 수단",
|
|
135
145
|
"process": {
|
|
136
146
|
"crossChain": {
|
|
137
147
|
"actionRequired": "트랜잭션을 서명하십시오.",
|
|
@@ -139,6 +149,9 @@
|
|
|
139
149
|
"pending": "브릿지 트랜잭션 대기 중",
|
|
140
150
|
"started": "브릿지 트랜잭션 준비 중"
|
|
141
151
|
},
|
|
152
|
+
"nft": {
|
|
153
|
+
"done": "NFT 구입 성공"
|
|
154
|
+
},
|
|
142
155
|
"receivingChain": {
|
|
143
156
|
"done": "브릿지 완료",
|
|
144
157
|
"partial": "브릿지 부분 완료",
|
|
@@ -165,24 +178,27 @@
|
|
|
165
178
|
"rateChange": "비율 변경",
|
|
166
179
|
"receiving": "받는 중",
|
|
167
180
|
"refuelStepDetails": "{{tool}} 를 통해 가스 얻기",
|
|
168
|
-
"
|
|
169
|
-
"selectChain": "체인",
|
|
181
|
+
"selectChain": "체인 선택",
|
|
170
182
|
"selectChainAndToken": "체인과 토큰 선택",
|
|
171
|
-
"selectToken": "토큰",
|
|
183
|
+
"selectToken": "토큰 선택",
|
|
172
184
|
"sendToAddress": "{{address}}로 전송",
|
|
173
185
|
"sendToWallet": "다른 지갑으로 전송",
|
|
174
186
|
"sentToAddress": "{{address}}로 전송",
|
|
175
187
|
"stepBridge": "브릿지",
|
|
188
|
+
"stepBridgeAndBuy": "브릿지 그리고 매수",
|
|
176
189
|
"stepDetails": "LI.FI 를 통한 {{tool}}",
|
|
177
190
|
"stepSwap": "스왑",
|
|
178
191
|
"stepSwapAndBridge": "스왑 그리고 브릿지",
|
|
192
|
+
"stepSwapAndBuy": "스왑 그리고 매수",
|
|
179
193
|
"success": {
|
|
180
194
|
"message": {
|
|
181
195
|
"swapPartiallySuccessful": "스왑을 시도했지만, {{tokenSymbol}} 토큰에 대한 {{tool}}의 유동성이 부족합니다.",
|
|
196
|
+
"purchaseSuccessful": "{{walletAddress}} 지갑의 {{chainName}} 체인에 {{assetName}} 을 획득하셨습니다.",
|
|
182
197
|
"swapSuccessful": "{{walletAddress}} 지갑의 {{chainName}} 체인에 {{amount, number(maximumFractionDigits: 9)}} {{tokenSymbol}}이(가) 있습니다."
|
|
183
198
|
},
|
|
184
199
|
"title": {
|
|
185
200
|
"gasSwapSuccessful": "가스 스왑 성공",
|
|
201
|
+
"purchaseSuccessful": "구입 성공",
|
|
186
202
|
"refundIssued": "환불되었습니다",
|
|
187
203
|
"swapPartiallySuccessful": "부분 스왑 성공",
|
|
188
204
|
"swapSuccessful": "스왑 성공"
|
|
@@ -203,7 +219,7 @@
|
|
|
203
219
|
"to": "도착",
|
|
204
220
|
"tokenOnChain": "{{chainName}}의 {{tokenSymbol}}",
|
|
205
221
|
"tokenOnChainAmount": "{{chainName}}의 {{amount, number(maximumFractionDigits: 9)}} {{tokenSymbol}}",
|
|
206
|
-
"tokenSearch": "
|
|
222
|
+
"tokenSearch": "이름 또는 컨트랙트 주소를 통해 검색",
|
|
207
223
|
"valueLoss": "가치 손실",
|
|
208
224
|
"walletAddressOrEns": "지갑 주소 또는 ENS",
|
|
209
225
|
"warning": {
|
|
@@ -237,6 +253,7 @@
|
|
|
237
253
|
},
|
|
238
254
|
"numberOfSteps": "여러 스왑 단계. 각 단계 진행을 위해서는 1-2개의 트랜잭션 서명이 필요할 수 있습니다.",
|
|
239
255
|
"progressToNextUpdate": "표시된 데이터가 {{value}} 초 후에 자동 새로고침 됩니다. 수동으로 업데이트 하려면 여기를 클릭하십시오.",
|
|
256
|
+
"recommended": "편리성과 복잡성에 균형을 둔 저렴한 루트",
|
|
240
257
|
"settingsModified": "설정 (수정됨)"
|
|
241
258
|
},
|
|
242
259
|
"wallet": {
|