@lifi/widget 2.4.4 → 2.4.6
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 +6 -71
- package/cjs/AppDrawer.style.d.ts +6 -71
- package/cjs/components/ActiveTransactions/ActiveTransactions.style.d.ts +6 -65
- package/cjs/components/AmountInput/AmountInput.style.d.ts +2 -16
- package/cjs/components/AmountInput/AmountInputAdornment.style.d.ts +2 -32
- package/cjs/components/AppContainer.d.ts +4 -16
- package/cjs/components/Card/Card.d.ts +3 -8
- package/cjs/components/Card/CardHeader.d.ts +2 -16
- package/cjs/components/Card/CardIconButton.d.ts +2 -27
- package/cjs/components/Card/CardLabel.d.ts +5 -20
- package/cjs/components/Card/CardTitle.d.ts +2 -12
- package/cjs/components/ChainSelect/ChainSelect.style.d.ts +5 -15
- package/cjs/components/GasMessage/GasMessage.style.d.ts +8 -28
- package/cjs/components/Header/Header.style.d.ts +8 -61
- package/cjs/components/Header/NavigationTabs.style.d.ts +4 -29
- package/cjs/components/ListItemButton.d.ts +2 -18
- package/cjs/components/NFT/NFT.style.d.ts +2 -14
- package/cjs/components/ReverseTokensButton/ReverseTokensButton.style.d.ts +2 -27
- package/cjs/components/RouteCard/RouteCard.style.d.ts +2 -12
- package/cjs/components/Routes/RoutesExpanded.style.d.ts +8 -28
- package/cjs/components/SelectTokenButton/SelectTokenButton.style.d.ts +2 -16
- package/cjs/components/SendToWallet/SendToWallet.js +4 -1
- package/cjs/components/SendToWallet/SendToWallet.style.d.ts +2 -16
- package/cjs/components/SmallAvatar.d.ts +6 -31
- package/cjs/components/Step/CircularProgress.style.d.ts +2 -7
- package/cjs/components/StepActions/StepActions.style.d.ts +2 -14
- package/cjs/components/StepDivider/StepDivider.style.d.ts +2 -9
- package/cjs/components/Token/Token.style.d.ts +6 -26
- package/cjs/components/TokenAvatar/TokenAvatar.style.d.ts +4 -14
- package/cjs/components/TokenList/TokenList.style.d.ts +4 -33
- package/cjs/config/version.d.ts +1 -1
- package/cjs/config/version.js +1 -1
- package/cjs/i18n/en.json +2 -1
- package/cjs/pages/MainPage/MainPage.style.d.ts +2 -9
- package/cjs/pages/RoutesPage/RoutesPage.style.d.ts +2 -9
- package/cjs/pages/SelectEnabledToolsPage/SelectEnabledToolsPage.style.d.ts +2 -18
- package/cjs/pages/SelectWalletPage/SelectWalletPage.js +6 -1
- package/cjs/pages/SettingsPage/ColorSchemeButtonGroup.style.d.ts +2 -31
- package/cjs/pages/SettingsPage/EnabledToolsButton.style.d.ts +2 -18
- package/cjs/pages/SettingsPage/ResetSettingsButton.js +29 -1
- package/cjs/pages/SettingsPage/ResetSettingsButton.style.d.ts +4 -0
- package/cjs/pages/SettingsPage/ResetSettingsButton.style.js +13 -0
- package/cjs/pages/TransactionDetailsPage/TransactionDetailsPage.style.d.ts +2 -9
- package/cjs/pages/TransactionPage/StatusBottomSheet.style.d.ts +4 -14
- package/cjs/pages/TransactionPage/TransactionPage.style.d.ts +2 -9
- package/cjs/stores/StoreProvider.js +3 -1
- package/cjs/stores/chains/ChainOrderStore.d.ts +3 -2
- package/cjs/stores/chains/createChainOrderStore.d.ts +1 -1
- package/cjs/stores/chains/createChainOrderStore.js +3 -3
- package/cjs/stores/header/types.d.ts +3 -2
- package/cjs/stores/header/useHeaderStore.d.ts +1 -1
- package/cjs/stores/header/useHeaderStore.js +3 -3
- package/cjs/stores/routes/RouteExecutionStore.d.ts +3 -2
- package/cjs/stores/routes/createRouteExecutionStore.d.ts +1 -1
- package/cjs/stores/routes/createRouteExecutionStore.js +4 -4
- package/cjs/stores/settings/types.d.ts +7 -5
- package/cjs/stores/settings/useSendToWalletStore.d.ts +1 -1
- package/cjs/stores/settings/useSendToWalletStore.js +3 -3
- package/cjs/stores/settings/useSettingsStore.d.ts +2 -2
- package/cjs/stores/settings/useSettingsStore.js +10 -6
- package/cjs/stores/settings/useSplitSubvariantStore.d.ts +1 -1
- package/cjs/stores/settings/useSplitSubvariantStore.js +4 -4
- package/cjs/types/widget.d.ts +2 -0
- package/components/ActiveTransactions/ActiveTransactions.style.d.ts +6 -65
- package/components/AmountInput/AmountInput.style.d.ts +2 -16
- package/components/AmountInput/AmountInputAdornment.style.d.ts +2 -32
- package/components/AppContainer.d.ts +4 -16
- package/components/Card/Card.d.ts +3 -8
- package/components/Card/CardHeader.d.ts +2 -16
- package/components/Card/CardIconButton.d.ts +2 -27
- package/components/Card/CardLabel.d.ts +5 -20
- package/components/Card/CardTitle.d.ts +2 -12
- package/components/ChainSelect/ChainSelect.style.d.ts +5 -15
- package/components/GasMessage/GasMessage.style.d.ts +8 -28
- package/components/Header/Header.style.d.ts +8 -61
- package/components/Header/NavigationTabs.style.d.ts +4 -29
- package/components/ListItemButton.d.ts +2 -18
- package/components/NFT/NFT.style.d.ts +2 -14
- package/components/ReverseTokensButton/ReverseTokensButton.style.d.ts +2 -27
- package/components/RouteCard/RouteCard.style.d.ts +2 -12
- package/components/Routes/RoutesExpanded.style.d.ts +8 -28
- package/components/SelectTokenButton/SelectTokenButton.style.d.ts +2 -16
- package/components/SendToWallet/SendToWallet.js +4 -1
- package/components/SendToWallet/SendToWallet.style.d.ts +2 -16
- package/components/SmallAvatar.d.ts +6 -31
- package/components/Step/CircularProgress.style.d.ts +2 -7
- package/components/StepActions/StepActions.style.d.ts +2 -14
- package/components/StepDivider/StepDivider.style.d.ts +2 -9
- package/components/Token/Token.style.d.ts +6 -26
- package/components/TokenAvatar/TokenAvatar.style.d.ts +4 -14
- package/components/TokenList/TokenList.style.d.ts +4 -33
- package/config/version.d.ts +1 -1
- package/config/version.js +1 -1
- package/i18n/en.json +2 -1
- package/package.json +14 -14
- package/pages/MainPage/MainPage.style.d.ts +2 -9
- package/pages/RoutesPage/RoutesPage.style.d.ts +2 -9
- package/pages/SelectEnabledToolsPage/SelectEnabledToolsPage.style.d.ts +2 -18
- package/pages/SelectWalletPage/SelectWalletPage.js +7 -2
- package/pages/SettingsPage/ColorSchemeButtonGroup.style.d.ts +2 -31
- package/pages/SettingsPage/EnabledToolsButton.style.d.ts +2 -18
- package/pages/SettingsPage/ResetSettingsButton.js +30 -2
- package/pages/SettingsPage/ResetSettingsButton.style.d.ts +4 -0
- package/pages/SettingsPage/ResetSettingsButton.style.js +10 -0
- package/pages/TransactionDetailsPage/TransactionDetailsPage.style.d.ts +2 -9
- package/pages/TransactionPage/StatusBottomSheet.style.d.ts +4 -14
- package/pages/TransactionPage/TransactionPage.style.d.ts +2 -9
- package/stores/StoreProvider.js +3 -1
- package/stores/chains/ChainOrderStore.d.ts +3 -2
- package/stores/chains/createChainOrderStore.d.ts +1 -1
- package/stores/chains/createChainOrderStore.js +3 -3
- package/stores/header/types.d.ts +3 -2
- package/stores/header/useHeaderStore.d.ts +1 -1
- package/stores/header/useHeaderStore.js +3 -3
- package/stores/routes/RouteExecutionStore.d.ts +3 -2
- package/stores/routes/createRouteExecutionStore.d.ts +1 -1
- package/stores/routes/createRouteExecutionStore.js +4 -4
- package/stores/settings/types.d.ts +7 -5
- package/stores/settings/useSendToWalletStore.d.ts +1 -1
- package/stores/settings/useSendToWalletStore.js +3 -3
- package/stores/settings/useSettingsStore.d.ts +2 -2
- package/stores/settings/useSettingsStore.js +10 -6
- package/stores/settings/useSplitSubvariantStore.d.ts +1 -1
- package/stores/settings/useSplitSubvariantStore.js +4 -4
- package/tsconfig.cjs.tsbuildinfo +1 -1
- package/types/widget.d.ts +2 -0
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { Status, Substatus } from '@lifi/sdk';
|
|
3
3
|
import type { Theme } from '@mui/material';
|
|
4
|
-
export declare const CircularIcon: import("@emotion/styled").StyledComponent<import("@mui/system").
|
|
5
|
-
children?: import("react").ReactNode;
|
|
6
|
-
component?: import("react").ElementType<any> | undefined;
|
|
7
|
-
ref?: import("react").Ref<unknown> | undefined;
|
|
8
|
-
sx?: import("@mui/material").SxProps<Theme> | undefined;
|
|
9
|
-
} & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
4
|
+
export declare const CircularIcon: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
10
5
|
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
11
|
-
},
|
|
6
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme> & {
|
|
12
7
|
status: Status;
|
|
13
8
|
substatus?: Substatus | undefined;
|
|
14
9
|
}, {}, {}>;
|
|
@@ -3,18 +3,6 @@ export declare const StepIcon: import("@emotion/styled").StyledComponent<import(
|
|
|
3
3
|
export declare const StepConnector: import("@emotion/styled").StyledComponent<import("@mui/material").StepConnectorProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
4
4
|
export declare const StepLabel: import("@emotion/styled").StyledComponent<import("@mui/material").StepLabelProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
5
5
|
export declare const StepContent: import("@emotion/styled").StyledComponent<import("@mui/material").StepContentProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
6
|
-
export declare const StepAvatar: import("@emotion/styled").StyledComponent<{
|
|
7
|
-
alt?: string | undefined;
|
|
8
|
-
children?: import("react").ReactNode;
|
|
9
|
-
classes?: Partial<import("@mui/material").AvatarClasses> | undefined;
|
|
10
|
-
imgProps?: (import("react").ImgHTMLAttributes<HTMLImageElement> & {
|
|
11
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
12
|
-
}) | undefined;
|
|
13
|
-
sizes?: string | undefined;
|
|
14
|
-
src?: string | undefined;
|
|
15
|
-
srcSet?: string | undefined;
|
|
16
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
17
|
-
variant?: import("@mui/types").OverridableStringUnion<"circular" | "rounded" | "square", import("@mui/material").AvatarPropsVariantOverrides> | undefined;
|
|
18
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
6
|
+
export declare const StepAvatar: import("@emotion/styled").StyledComponent<import("@mui/material").AvatarOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
19
7
|
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
20
|
-
},
|
|
8
|
+
}, "className" | "style" | "classes" | "children" | "sx" | "variant" | "alt" | "imgProps" | "sizes" | "src" | "srcSet"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const Container: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
children?: import("react").ReactNode;
|
|
4
|
-
classes?: Partial<import("@mui/material").ContainerClasses> | undefined;
|
|
5
|
-
disableGutters?: boolean | undefined;
|
|
6
|
-
fixed?: boolean | undefined;
|
|
7
|
-
maxWidth?: false | import("@mui/material").Breakpoint | undefined;
|
|
8
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
9
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
2
|
+
export declare const Container: import("@emotion/styled").StyledComponent<import("@mui/material").ContainerOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
10
3
|
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
11
|
-
},
|
|
4
|
+
}, "className" | "style" | "classes" | "children" | "sx" | "maxWidth" | "fixed" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -1,35 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const TextSecondaryContainer: import("@emotion/styled").StyledComponent<import("@mui/system").
|
|
3
|
-
children?: import("react").ReactNode;
|
|
4
|
-
component?: import("react").ElementType<any> | undefined;
|
|
5
|
-
ref?: import("react").Ref<unknown> | undefined;
|
|
6
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
7
|
-
} & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
2
|
+
export declare const TextSecondaryContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
8
3
|
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
9
|
-
},
|
|
4
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
10
5
|
connected?: boolean | undefined;
|
|
11
6
|
}, {}, {}>;
|
|
12
|
-
export declare const TextSecondary: import("@emotion/styled").StyledComponent<import("@mui/
|
|
13
|
-
align?: "center" | "left" | "right" | "inherit" | "justify" | undefined;
|
|
14
|
-
children?: import("react").ReactNode;
|
|
15
|
-
classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
|
|
16
|
-
gutterBottom?: boolean | undefined;
|
|
17
|
-
noWrap?: boolean | undefined;
|
|
18
|
-
paragraph?: boolean | undefined;
|
|
19
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
20
|
-
variant?: import("@mui/types").OverridableStringUnion<"inherit" | import("@mui/material").TypographyVariant, import("@mui/material").TypographyPropsVariantOverrides> | undefined;
|
|
21
|
-
variantMapping?: Partial<Record<import("@mui/types").OverridableStringUnion<"inherit" | import("@mui/material").TypographyVariant, import("@mui/material").TypographyPropsVariantOverrides>, string>> | undefined;
|
|
22
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
7
|
+
export declare const TextSecondary: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
23
8
|
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
24
|
-
},
|
|
9
|
+
}, "className" | "style" | "classes" | "children" | "sx" | "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" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
25
10
|
connected?: boolean | undefined;
|
|
26
11
|
dot?: boolean | undefined;
|
|
27
12
|
}, {}, {}>;
|
|
28
|
-
export declare const TokenDivider: import("@emotion/styled").StyledComponent<import("@mui/system").
|
|
29
|
-
children?: import("react").ReactNode;
|
|
30
|
-
component?: import("react").ElementType<any> | undefined;
|
|
31
|
-
ref?: import("react").Ref<unknown> | undefined;
|
|
32
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
33
|
-
} & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
13
|
+
export declare const TokenDivider: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
34
14
|
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
35
|
-
},
|
|
15
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -1,18 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const TokenAvatarGroup: import("@emotion/styled").StyledComponent<import("@mui/material").AvatarGroupProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
3
|
-
export declare const AvatarDefault: import("@emotion/styled").StyledComponent<import("@mui/system").
|
|
4
|
-
children?: import("react").ReactNode;
|
|
5
|
-
component?: import("react").ElementType<any> | undefined;
|
|
6
|
-
ref?: import("react").Ref<unknown> | undefined;
|
|
7
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
8
|
-
} & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
|
+
export declare const AvatarDefault: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
9
4
|
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
10
|
-
},
|
|
11
|
-
export declare const AvatarDefaultBadge: import("@emotion/styled").StyledComponent<import("@mui/system").
|
|
12
|
-
children?: import("react").ReactNode;
|
|
13
|
-
component?: import("react").ElementType<any> | undefined;
|
|
14
|
-
ref?: import("react").Ref<unknown> | undefined;
|
|
15
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
16
|
-
} & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
5
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
6
|
+
export declare const AvatarDefaultBadge: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
17
7
|
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
18
|
-
},
|
|
8
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -1,41 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { StyledComponent } from '@emotion/styled';
|
|
3
3
|
import type { IconButtonProps, LinkProps } from '@mui/material';
|
|
4
|
-
export declare const ListItemButton: StyledComponent<import("@mui/material").
|
|
5
|
-
action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
|
|
6
|
-
centerRipple?: boolean | undefined;
|
|
7
|
-
children?: import("react").ReactNode;
|
|
8
|
-
classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
|
|
9
|
-
disabled?: boolean | undefined;
|
|
10
|
-
disableRipple?: boolean | undefined;
|
|
11
|
-
disableTouchRipple?: boolean | undefined;
|
|
12
|
-
focusRipple?: boolean | undefined;
|
|
13
|
-
focusVisibleClassName?: string | undefined;
|
|
14
|
-
LinkComponent?: import("react").ElementType<any> | undefined;
|
|
15
|
-
onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
|
|
16
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
17
|
-
tabIndex?: number | undefined;
|
|
18
|
-
TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
|
|
19
|
-
touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
|
|
20
|
-
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
4
|
+
export declare const ListItemButton: StyledComponent<import("@mui/material").ListItemButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
21
5
|
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
22
|
-
}, "className" | "style" | "classes" | "
|
|
6
|
+
}, "className" | "style" | "classes" | "action" | "centerRipple" | "children" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "autoFocus" | "alignItems" | "divider" | "dense" | "selected" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
23
7
|
export declare const ListItem: StyledComponent<{
|
|
24
8
|
button?: false | undefined;
|
|
25
|
-
} & import("@mui/material").
|
|
26
|
-
components?: {
|
|
27
|
-
Root?: import("react").ElementType<any> | undefined;
|
|
28
|
-
} | undefined;
|
|
29
|
-
componentsProps?: {
|
|
30
|
-
root?: (import("react").HTMLAttributes<HTMLDivElement> & import("@mui/material").ListItemComponentsPropsOverrides) | undefined;
|
|
31
|
-
} | undefined;
|
|
32
|
-
slotProps?: {
|
|
33
|
-
root?: (import("react").HTMLAttributes<HTMLDivElement> & import("@mui/material").ListItemComponentsPropsOverrides) | undefined;
|
|
34
|
-
} | undefined;
|
|
35
|
-
slots?: {
|
|
36
|
-
root?: import("react").ElementType<any> | undefined;
|
|
37
|
-
} | undefined;
|
|
38
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
|
|
9
|
+
} & import("@mui/material").ListItemOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
|
|
39
10
|
ref?: ((instance: HTMLLIElement | null) => void) | import("react").RefObject<HTMLLIElement> | null | undefined;
|
|
40
|
-
}, "button" | "className" | "style" | "classes" | "
|
|
11
|
+
}, "button" | "className" | "style" | "classes" | "children" | "disabled" | "sx" | "autoFocus" | "alignItems" | "divider" | "components" | "dense" | "componentsProps" | "slots" | "slotProps" | "selected" | "disableGutters" | "ContainerComponent" | "ContainerProps" | "disablePadding" | "secondaryAction"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
41
12
|
export declare const IconButton: StyledComponent<IconButtonProps & LinkProps>;
|
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.4.
|
|
2
|
+
export declare const version = "2.4.6";
|
package/cjs/config/version.js
CHANGED
package/cjs/i18n/en.json
CHANGED
|
@@ -255,7 +255,8 @@
|
|
|
255
255
|
},
|
|
256
256
|
"routePriority": "Route priority",
|
|
257
257
|
"showDestinationWallet": "Show destination wallet",
|
|
258
|
-
"slippage": "Slippage"
|
|
258
|
+
"slippage": "Slippage",
|
|
259
|
+
"resetSettings": "You're using custom setting limiting the number of available routes."
|
|
259
260
|
},
|
|
260
261
|
"wallet": {
|
|
261
262
|
"extensionNotFound": "Please make sure that only the {{name}} browser extension is active before choosing this wallet."
|
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const FormContainer: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
children?: import("react").ReactNode;
|
|
4
|
-
classes?: Partial<import("@mui/material").ContainerClasses> | undefined;
|
|
5
|
-
disableGutters?: boolean | undefined;
|
|
6
|
-
fixed?: boolean | undefined;
|
|
7
|
-
maxWidth?: false | import("@mui/material").Breakpoint | undefined;
|
|
8
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
9
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
2
|
+
export declare const FormContainer: import("@emotion/styled").StyledComponent<import("@mui/material").ContainerOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
10
3
|
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
11
|
-
},
|
|
4
|
+
}, "className" | "style" | "classes" | "children" | "sx" | "maxWidth" | "fixed" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const Stack: import("@emotion/styled").StyledComponent<import("@mui/
|
|
3
|
-
children?: import("react").ReactNode;
|
|
4
|
-
direction?: import("@mui/system").ResponsiveStyleValue<"column" | "column-reverse" | "row" | "row-reverse"> | undefined;
|
|
5
|
-
spacing?: import("@mui/system").ResponsiveStyleValue<string | number> | undefined;
|
|
6
|
-
divider?: import("react").ReactNode;
|
|
7
|
-
useFlexGap?: boolean | undefined;
|
|
8
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
9
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
2
|
+
export declare const Stack: import("@emotion/styled").StyledComponent<import("@mui/material").StackOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
10
3
|
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
11
|
-
}, keyof import("@mui/material/OverridableComponent").CommonProps |
|
|
4
|
+
}, keyof import("@mui/material/OverridableComponent").CommonProps | keyof import("@mui/material").StackOwnProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -1,20 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const ListItemButton: import("@emotion/styled").StyledComponent<import("@mui/material").
|
|
3
|
-
action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
|
|
4
|
-
centerRipple?: boolean | undefined;
|
|
5
|
-
children?: import("react").ReactNode;
|
|
6
|
-
classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
|
|
7
|
-
disabled?: boolean | undefined;
|
|
8
|
-
disableRipple?: boolean | undefined;
|
|
9
|
-
disableTouchRipple?: boolean | undefined;
|
|
10
|
-
focusRipple?: boolean | undefined;
|
|
11
|
-
focusVisibleClassName?: string | undefined;
|
|
12
|
-
LinkComponent?: import("react").ElementType<any> | undefined;
|
|
13
|
-
onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
|
|
14
|
-
sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
|
|
15
|
-
tabIndex?: number | undefined;
|
|
16
|
-
TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
|
|
17
|
-
touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
|
|
18
|
-
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
2
|
+
export declare const ListItemButton: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
19
3
|
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
20
|
-
}, "className" | "style" | "classes" | "
|
|
4
|
+
}, "className" | "style" | "classes" | "action" | "centerRipple" | "children" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "autoFocus" | "alignItems" | "divider" | "dense" | "selected" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
@@ -17,6 +17,7 @@ const SelectWalletPage = () => {
|
|
|
17
17
|
const { connect } = (0, providers_1.useWallet)();
|
|
18
18
|
const [walletIdentity, setWalletIdentity] = (0, react_1.useState)({ show: false });
|
|
19
19
|
const [wallets, setWallets] = (0, react_1.useState)();
|
|
20
|
+
const isDesktopView = (0, material_1.useMediaQuery)((theme) => theme.breakpoints.up('sm'));
|
|
20
21
|
const closeDialog = () => {
|
|
21
22
|
setWalletIdentity((state) => ({
|
|
22
23
|
...state,
|
|
@@ -41,7 +42,11 @@ const SelectWalletPage = () => {
|
|
|
41
42
|
const installedWallets = wallet_management_1.supportedWallets.filter((_, index) => installed[index]);
|
|
42
43
|
// always remove Default Wallet from not installed Wallets
|
|
43
44
|
const notInstalledWallets = wallet_management_1.supportedWallets.filter((wallet, index) => !installed[index] && wallet.name !== 'Default Wallet');
|
|
44
|
-
|
|
45
|
+
const allowedWallets = [...installedWallets];
|
|
46
|
+
if (isDesktopView) {
|
|
47
|
+
allowedWallets.push(...notInstalledWallets);
|
|
48
|
+
}
|
|
49
|
+
setWallets(allowedWallets);
|
|
45
50
|
});
|
|
46
51
|
}, []);
|
|
47
52
|
return ((0, jsx_runtime_1.jsxs)(material_1.Container, { disableGutters: true, children: [(0, jsx_runtime_1.jsx)(material_1.List, { sx: {
|
|
@@ -1,33 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const ToggleButton: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
children?: import("react").ReactNode;
|
|
4
|
-
classes?: Partial<import("@mui/material").ToggleButtonClasses> | undefined;
|
|
5
|
-
color?: import("@mui/types").OverridableStringUnion<"primary" | "secondary" | "error" | "warning" | "info" | "success" | "standard", import("@mui/material").ToggleButtonPropsColorOverrides> | undefined;
|
|
6
|
-
disabled?: boolean | undefined;
|
|
7
|
-
disableFocusRipple?: boolean | undefined;
|
|
8
|
-
fullWidth?: boolean | undefined;
|
|
9
|
-
onChange?: ((event: import("react").MouseEvent<HTMLElement, MouseEvent>, value: any) => void) | undefined;
|
|
10
|
-
onClick?: ((event: import("react").MouseEvent<HTMLElement, MouseEvent>, value: any) => void) | undefined;
|
|
11
|
-
selected?: boolean | undefined;
|
|
12
|
-
size?: import("@mui/types").OverridableStringUnion<"small" | "large" | "medium", import("@mui/material").ToggleButtonPropsSizeOverrides> | undefined;
|
|
13
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
14
|
-
value: {};
|
|
15
|
-
} & Omit<{
|
|
16
|
-
action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
|
|
17
|
-
centerRipple?: boolean | undefined;
|
|
18
|
-
children?: import("react").ReactNode;
|
|
19
|
-
classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
|
|
20
|
-
disabled?: boolean | undefined;
|
|
21
|
-
disableRipple?: boolean | undefined;
|
|
22
|
-
disableTouchRipple?: boolean | undefined;
|
|
23
|
-
focusRipple?: boolean | undefined;
|
|
24
|
-
focusVisibleClassName?: string | undefined;
|
|
25
|
-
LinkComponent?: import("react").ElementType<any> | undefined;
|
|
26
|
-
onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
|
|
27
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
28
|
-
tabIndex?: number | undefined;
|
|
29
|
-
TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
|
|
30
|
-
touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
|
|
31
|
-
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
2
|
+
export declare const ToggleButton: import("@emotion/styled").StyledComponent<import("@mui/material").ToggleButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
32
3
|
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
33
|
-
},
|
|
4
|
+
}, "className" | "style" | "classes" | "action" | "centerRipple" | "children" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "color" | "onChange" | "onClick" | "disableFocusRipple" | "fullWidth" | "size" | "value" | "selected"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -1,21 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const ListItemButton: import("@emotion/styled").StyledComponent<import("@mui/material").
|
|
3
|
-
action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
|
|
4
|
-
centerRipple?: boolean | undefined;
|
|
5
|
-
children?: import("react").ReactNode;
|
|
6
|
-
classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
|
|
7
|
-
disabled?: boolean | undefined;
|
|
8
|
-
disableRipple?: boolean | undefined;
|
|
9
|
-
disableTouchRipple?: boolean | undefined;
|
|
10
|
-
focusRipple?: boolean | undefined;
|
|
11
|
-
focusVisibleClassName?: string | undefined;
|
|
12
|
-
LinkComponent?: import("react").ElementType<any> | undefined;
|
|
13
|
-
onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
|
|
14
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
15
|
-
tabIndex?: number | undefined;
|
|
16
|
-
TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
|
|
17
|
-
touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
|
|
18
|
-
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
2
|
+
export declare const ListItemButton: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
19
3
|
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
20
|
-
}, "className" | "style" | "classes" | "
|
|
4
|
+
}, "className" | "style" | "classes" | "action" | "centerRipple" | "children" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "autoFocus" | "alignItems" | "divider" | "dense" | "selected" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
21
5
|
export declare const ListItemText: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemTextProps<import("react").ElementType<any>, import("react").ElementType<any>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -9,7 +9,17 @@ const Dialog_1 = require("../../components/Dialog");
|
|
|
9
9
|
const hooks_1 = require("../../hooks");
|
|
10
10
|
const providers_1 = require("../../providers");
|
|
11
11
|
const stores_1 = require("../../stores");
|
|
12
|
+
const ResetSettingsButton_style_1 = require("./ResetSettingsButton.style");
|
|
13
|
+
const icons_material_1 = require("@mui/icons-material");
|
|
14
|
+
const shallow_1 = require("zustand/shallow");
|
|
12
15
|
const ResetSettingsButton = () => {
|
|
16
|
+
const [enabledBridges, enabledExchanges, routePriority, slippage, gasPrice] = (0, stores_1.useSettingsStore)((state) => [
|
|
17
|
+
state.enabledBridges,
|
|
18
|
+
state.enabledExchanges,
|
|
19
|
+
state.routePriority,
|
|
20
|
+
state.slippage,
|
|
21
|
+
state.gasPrice,
|
|
22
|
+
], shallow_1.shallow);
|
|
13
23
|
const { t } = (0, react_i18next_1.useTranslation)();
|
|
14
24
|
const { tools } = (0, hooks_1.useTools)();
|
|
15
25
|
const config = (0, providers_1.useWidgetConfig)();
|
|
@@ -21,9 +31,27 @@ const ResetSettingsButton = () => {
|
|
|
21
31
|
const handleReset = () => {
|
|
22
32
|
if (tools) {
|
|
23
33
|
resetSettings(config, tools.bridges.map((tool) => tool.key), tools.exchanges.map((tool) => tool.key));
|
|
34
|
+
(0, stores_1.setDefaultSettings)(config);
|
|
24
35
|
}
|
|
25
36
|
toggleDialog();
|
|
26
37
|
};
|
|
27
|
-
|
|
38
|
+
const isSlippageChanged = config.slippage
|
|
39
|
+
? Number(slippage) !== config.slippage * 100
|
|
40
|
+
: slippage !== stores_1.defaultConfigurableSettings.slippage;
|
|
41
|
+
const isRoutePriorityChanged = config.routePriority
|
|
42
|
+
? routePriority !== config.routePriority
|
|
43
|
+
: routePriority !== stores_1.defaultConfigurableSettings.routePriority;
|
|
44
|
+
const isGasPriceChanged = gasPrice !== stores_1.defaultConfigurableSettings.gasPrice;
|
|
45
|
+
const isCustomRouteSettings = tools?.bridges?.length !== enabledBridges?.length ||
|
|
46
|
+
tools?.exchanges?.length !== enabledExchanges?.length ||
|
|
47
|
+
isSlippageChanged ||
|
|
48
|
+
isRoutePriorityChanged ||
|
|
49
|
+
isGasPriceChanged;
|
|
50
|
+
if (!isCustomRouteSettings) {
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Box, { px: 3, mt: 1.5, mb: 1, children: (0, jsx_runtime_1.jsxs)(ResetSettingsButton_style_1.ResetButtonContainer, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { display: "flex", marginBottom: "12px", children: [(0, jsx_runtime_1.jsx)(icons_material_1.InfoRounded, { sx: {
|
|
54
|
+
marginRight: '8px',
|
|
55
|
+
} }), (0, jsx_runtime_1.jsx)(material_1.Box, { fontSize: 14, children: t(`settings.resetSettings`) })] }), (0, jsx_runtime_1.jsx)(material_1.Button, { onClick: toggleDialog, fullWidth: true, children: t('button.resetSettings') }), (0, jsx_runtime_1.jsxs)(Dialog_1.Dialog, { open: open, onClose: toggleDialog, children: [(0, jsx_runtime_1.jsx)(material_1.DialogTitle, { children: t('warning.title.resetSettings') }), (0, jsx_runtime_1.jsx)(material_1.DialogContent, { children: (0, jsx_runtime_1.jsx)(material_1.DialogContentText, { children: t('warning.message.resetSettings') }) }), (0, jsx_runtime_1.jsxs)(material_1.DialogActions, { children: [(0, jsx_runtime_1.jsx)(material_1.Button, { onClick: toggleDialog, children: t('button.cancel') }), (0, jsx_runtime_1.jsx)(material_1.Button, { variant: "contained", onClick: handleReset, autoFocus: true, children: t('button.reset') })] })] })] }) }));
|
|
28
56
|
};
|
|
29
57
|
exports.ResetSettingsButton = ResetSettingsButton;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const ResetButtonContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
|
+
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
4
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ResetButtonContainer = void 0;
|
|
4
|
+
const utils_1 = require("../../utils");
|
|
5
|
+
const material_1 = require("@mui/material");
|
|
6
|
+
exports.ResetButtonContainer = (0, material_1.styled)(material_1.Box)(({ theme }) => ({
|
|
7
|
+
background: (0, utils_1.getContrastAlphaColor)(theme.palette.mode, '4%'),
|
|
8
|
+
borderRadius: '16px',
|
|
9
|
+
padding: '16px',
|
|
10
|
+
[`svg`]: {
|
|
11
|
+
fill: (0, utils_1.getContrastAlphaColor)(theme.palette.mode, '40%'),
|
|
12
|
+
},
|
|
13
|
+
}));
|
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const Container: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
children?: import("react").ReactNode;
|
|
4
|
-
classes?: Partial<import("@mui/material").ContainerClasses> | undefined;
|
|
5
|
-
disableGutters?: boolean | undefined;
|
|
6
|
-
fixed?: boolean | undefined;
|
|
7
|
-
maxWidth?: false | import("@mui/material").Breakpoint | undefined;
|
|
8
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
9
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
2
|
+
export declare const Container: import("@emotion/styled").StyledComponent<import("@mui/material").ContainerOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
10
3
|
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
11
|
-
},
|
|
4
|
+
}, "className" | "style" | "classes" | "children" | "sx" | "maxWidth" | "fixed" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -2,22 +2,12 @@
|
|
|
2
2
|
import type { Theme } from '@mui/material';
|
|
3
3
|
import { RouteExecutionStatus } from '../../stores';
|
|
4
4
|
type StatusColor = RouteExecutionStatus | 'warning';
|
|
5
|
-
export declare const CenterContainer: import("@emotion/styled").StyledComponent<import("@mui/system").
|
|
6
|
-
children?: import("react").ReactNode;
|
|
7
|
-
component?: import("react").ElementType<any> | undefined;
|
|
8
|
-
ref?: import("react").Ref<unknown> | undefined;
|
|
9
|
-
sx?: import("@mui/material").SxProps<Theme> | undefined;
|
|
10
|
-
} & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
5
|
+
export declare const CenterContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
11
6
|
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
12
|
-
},
|
|
13
|
-
export declare const IconCircle: import("@emotion/styled").StyledComponent<import("@mui/system").
|
|
14
|
-
children?: import("react").ReactNode;
|
|
15
|
-
component?: import("react").ElementType<any> | undefined;
|
|
16
|
-
ref?: import("react").Ref<unknown> | undefined;
|
|
17
|
-
sx?: import("@mui/material").SxProps<Theme> | undefined;
|
|
18
|
-
} & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
7
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
8
|
+
export declare const IconCircle: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
19
9
|
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
20
|
-
},
|
|
10
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme> & {
|
|
21
11
|
status: StatusColor;
|
|
22
12
|
}, {}, {}>;
|
|
23
13
|
export {};
|
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const Container: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
children?: import("react").ReactNode;
|
|
4
|
-
classes?: Partial<import("@mui/material").ContainerClasses> | undefined;
|
|
5
|
-
disableGutters?: boolean | undefined;
|
|
6
|
-
fixed?: boolean | undefined;
|
|
7
|
-
maxWidth?: false | import("@mui/material").Breakpoint | undefined;
|
|
8
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
9
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
2
|
+
export declare const Container: import("@emotion/styled").StyledComponent<import("@mui/material").ContainerOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
10
3
|
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
11
|
-
},
|
|
4
|
+
}, "className" | "style" | "classes" | "children" | "sx" | "maxWidth" | "fixed" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -7,6 +7,8 @@ const header_1 = require("./header");
|
|
|
7
7
|
const routes_1 = require("./routes");
|
|
8
8
|
const settings_1 = require("./settings");
|
|
9
9
|
const StoreProvider = ({ children, config, }) => {
|
|
10
|
-
return ((0, jsx_runtime_1.jsx)(settings_1.SplitSubvariantStoreProvider, { state: config.subvariant === 'split'
|
|
10
|
+
return ((0, jsx_runtime_1.jsx)(settings_1.SplitSubvariantStoreProvider, { state: config.subvariant === 'split'
|
|
11
|
+
? config.subvariantOptions || 'swap'
|
|
12
|
+
: undefined, children: (0, jsx_runtime_1.jsx)(header_1.HeaderStoreProvider, { namePrefix: config?.keyPrefix, children: (0, jsx_runtime_1.jsx)(chains_1.ChainOrderStoreProvider, { namePrefix: config?.keyPrefix, children: (0, jsx_runtime_1.jsx)(routes_1.RouteExecutionStoreProvider, { namePrefix: config?.keyPrefix, children: children }) }) }) }));
|
|
11
13
|
};
|
|
12
14
|
exports.StoreProvider = StoreProvider;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { StoreApi
|
|
2
|
+
import type { StoreApi } from 'zustand';
|
|
3
|
+
import type { UseBoundStoreWithEqualityFn } from 'zustand/traditional';
|
|
3
4
|
import type { PersistStoreProviderProps } from '../types';
|
|
4
5
|
import type { ChainOrderState } from './types';
|
|
5
|
-
export type ChainOrderStore =
|
|
6
|
+
export type ChainOrderStore = UseBoundStoreWithEqualityFn<StoreApi<ChainOrderState>>;
|
|
6
7
|
export declare const ChainOrderStoreContext: import("react").Context<ChainOrderStore | null>;
|
|
7
8
|
export declare function ChainOrderStoreProvider({ children, ...props }: PersistStoreProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export declare function useChainOrderStore<T>(selector: (state: ChainOrderState) => T, equalityFn?: (left: T, right: T) => boolean): T;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { PersistStoreProps } from '../types';
|
|
2
2
|
import type { ChainOrderState } from './types';
|
|
3
3
|
export declare const maxChainToOrder = 9;
|
|
4
|
-
export declare const createChainOrderStore: ({ namePrefix }: PersistStoreProps) => import("zustand").
|
|
4
|
+
export declare const createChainOrderStore: ({ namePrefix }: PersistStoreProps) => import("zustand/traditional").UseBoundStoreWithEqualityFn<import("zustand").StoreApi<ChainOrderState>>;
|