@lifi/widget 2.4.3 → 2.4.5
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.js +4 -3
- package/AppDrawer.style.d.ts +7 -44
- package/AppDrawer.style.js +11 -1
- package/cjs/AppDrawer.js +3 -2
- package/cjs/AppDrawer.style.d.ts +7 -44
- package/cjs/AppDrawer.style.js +11 -1
- 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 +4 -19
- 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 +9 -54
- package/cjs/components/Header/Header.style.js +9 -1
- package/cjs/components/Header/NavigationHeader.js +2 -2
- package/cjs/components/Header/NavigationTabs.style.d.ts +4 -29
- package/cjs/components/Header/WalletHeader.js +6 -2
- 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/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/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/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 +3 -3
- package/cjs/stores/settings/types.d.ts +3 -2
- package/cjs/stores/settings/useSendToWalletStore.d.ts +1 -1
- package/cjs/stores/settings/useSendToWalletStore.js +3 -3
- package/cjs/stores/settings/useSettingsStore.d.ts +1 -1
- package/cjs/stores/settings/useSettingsStore.js +3 -3
- package/cjs/stores/settings/useSplitSubvariantStore.d.ts +1 -1
- package/cjs/stores/settings/useSplitSubvariantStore.js +3 -3
- 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 +4 -19
- 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 +9 -54
- package/components/Header/Header.style.js +8 -0
- package/components/Header/NavigationHeader.js +3 -3
- package/components/Header/NavigationTabs.style.d.ts +4 -29
- package/components/Header/WalletHeader.js +7 -3
- 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/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/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/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 +3 -3
- package/stores/settings/types.d.ts +3 -2
- package/stores/settings/useSendToWalletStore.d.ts +1 -1
- package/stores/settings/useSendToWalletStore.js +3 -3
- package/stores/settings/useSettingsStore.d.ts +1 -1
- package/stores/settings/useSettingsStore.js +3 -3
- package/stores/settings/useSplitSubvariantStore.d.ts +1 -1
- package/stores/settings/useSplitSubvariantStore.js +3 -3
- package/tsconfig.cjs.tsbuildinfo +1 -1
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const CardTitle: import("@emotion/styled").StyledComponent<import("@mui/
|
|
3
|
-
align?: "center" | "left" | "right" | "inherit" | "justify" | undefined;
|
|
4
|
-
children?: import("react").ReactNode;
|
|
5
|
-
classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
|
|
6
|
-
gutterBottom?: boolean | undefined;
|
|
7
|
-
noWrap?: boolean | undefined;
|
|
8
|
-
paragraph?: boolean | undefined;
|
|
9
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
10
|
-
variant?: import("@mui/types").OverridableStringUnion<"inherit" | import("@mui/material").TypographyVariant, import("@mui/material").TypographyPropsVariantOverrides> | undefined;
|
|
11
|
-
variantMapping?: Partial<Record<import("@mui/types").OverridableStringUnion<"inherit" | import("@mui/material").TypographyVariant, import("@mui/material").TypographyPropsVariantOverrides>, string>> | undefined;
|
|
12
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
2
|
+
export declare const CardTitle: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
13
3
|
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
14
|
-
},
|
|
4
|
+
}, "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> & {
|
|
15
5
|
required?: boolean | undefined;
|
|
16
6
|
}, {}, {}>;
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const ChainCard: 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 ChainCard: 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
|
variant?: ("default" | "error" | "selected") | undefined;
|
|
11
6
|
selectionColor?: "primary" | "secondary" | undefined;
|
|
12
7
|
indented?: boolean | undefined;
|
|
@@ -14,12 +9,7 @@ export declare const ChainCard: import("@emotion/styled").StyledComponent<import
|
|
|
14
9
|
pointerEvents?: "none" | "auto" | undefined;
|
|
15
10
|
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
16
11
|
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
17
|
-
}, keyof import("@mui/material/OverridableComponent").CommonProps |
|
|
18
|
-
export declare const ChainContainer: import("@emotion/styled").StyledComponent<import("@mui/system").
|
|
19
|
-
children?: import("react").ReactNode;
|
|
20
|
-
component?: import("react").ElementType<any> | undefined;
|
|
21
|
-
ref?: import("react").Ref<unknown> | undefined;
|
|
22
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
23
|
-
} & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
12
|
+
}, keyof import("@mui/material/OverridableComponent").CommonProps | keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>>, {}, {}>;
|
|
13
|
+
export declare const ChainContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
24
14
|
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
25
|
-
},
|
|
15
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -1,34 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const WarningMessageCard: 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 WarningMessageCard: 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
|
-
},
|
|
10
|
-
export declare const WarningMessageCardTitle: import("@emotion/styled").StyledComponent<import("@mui/system").
|
|
11
|
-
children?: import("react").ReactNode;
|
|
12
|
-
component?: import("react").ElementType<any> | undefined;
|
|
13
|
-
ref?: import("react").Ref<unknown> | undefined;
|
|
14
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
15
|
-
} & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
4
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
5
|
+
export declare const WarningMessageCardTitle: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
16
6
|
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
17
|
-
},
|
|
18
|
-
export declare const InfoMessageCard: import("@emotion/styled").StyledComponent<import("@mui/system").
|
|
19
|
-
children?: import("react").ReactNode;
|
|
20
|
-
component?: import("react").ElementType<any> | undefined;
|
|
21
|
-
ref?: import("react").Ref<unknown> | undefined;
|
|
22
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
23
|
-
} & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
7
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
8
|
+
export declare const InfoMessageCard: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
24
9
|
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
25
|
-
},
|
|
26
|
-
export declare const InfoMessageCardTitle: import("@emotion/styled").StyledComponent<import("@mui/system").
|
|
27
|
-
children?: import("react").ReactNode;
|
|
28
|
-
component?: import("react").ElementType<any> | undefined;
|
|
29
|
-
ref?: import("react").Ref<unknown> | undefined;
|
|
30
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
31
|
-
} & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
10
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
11
|
+
export declare const InfoMessageCardTitle: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
32
12
|
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
33
|
-
},
|
|
13
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
34
14
|
export declare const InfoMessageSwitch: import("@emotion/styled").StyledComponent<import("@mui/material").SwitchProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -1,60 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const HeaderAppBar: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
classes?: Partial<import("@mui/material").AppBarClasses> | undefined;
|
|
4
|
-
color?: import("@mui/types").OverridableStringUnion<"transparent" | import("@mui/material").PropTypes.Color, import("@mui/material").AppBarPropsColorOverrides> | undefined;
|
|
5
|
-
enableColorOnDark?: boolean | undefined;
|
|
6
|
-
position?: "fixed" | "absolute" | "relative" | "static" | "sticky" | undefined;
|
|
7
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
8
|
-
} & Omit<{
|
|
9
|
-
children?: import("react").ReactNode;
|
|
10
|
-
classes?: Partial<import("@mui/material").PaperClasses> | undefined;
|
|
11
|
-
elevation?: number | undefined;
|
|
12
|
-
square?: boolean | undefined;
|
|
13
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
14
|
-
variant?: import("@mui/types").OverridableStringUnion<"outlined" | "elevation", import("@mui/material").PaperPropsVariantOverrides> | undefined;
|
|
15
|
-
}, "classes" | "color" | "position"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
|
|
2
|
+
export declare const HeaderAppBar: import("@emotion/styled").StyledComponent<import("@mui/material").AppBarOwnProps & Omit<import("@mui/material").PaperOwnProps, "classes" | "color" | "position"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
|
|
16
3
|
ref?: ((instance: HTMLElement | null) => void) | import("react").RefObject<HTMLElement> | null | undefined;
|
|
17
|
-
},
|
|
18
|
-
export declare const Container: import("@emotion/styled").StyledComponent<import("@mui/system").
|
|
19
|
-
children?: import("react").ReactNode;
|
|
20
|
-
component?: import("react").ElementType<any> | undefined;
|
|
21
|
-
ref?: import("react").Ref<unknown> | undefined;
|
|
22
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
23
|
-
} & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
4
|
+
}, "className" | "style" | "classes" | "children" | "sx" | "color" | "position" | "variant" | "square" | "elevation" | "enableColorOnDark"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
5
|
+
export declare const Container: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
24
6
|
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
25
|
-
},
|
|
7
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
26
8
|
sticky?: boolean | undefined;
|
|
27
9
|
}, {}, {}>;
|
|
28
|
-
export declare const WalletButton: import("@emotion/styled").StyledComponent<{
|
|
29
|
-
children?: import("react").ReactNode;
|
|
30
|
-
classes?: Partial<import("@mui/material").ButtonClasses> | undefined;
|
|
31
|
-
color?: import("@mui/types").OverridableStringUnion<"inherit" | "primary" | "secondary" | "error" | "warning" | "info" | "success", import("@mui/material").ButtonPropsColorOverrides> | undefined;
|
|
32
|
-
disabled?: boolean | undefined;
|
|
33
|
-
disableElevation?: boolean | undefined;
|
|
34
|
-
disableFocusRipple?: boolean | undefined;
|
|
35
|
-
endIcon?: import("react").ReactNode;
|
|
36
|
-
fullWidth?: boolean | undefined;
|
|
37
|
-
href?: string | undefined;
|
|
38
|
-
size?: import("@mui/types").OverridableStringUnion<"small" | "large" | "medium", import("@mui/material").ButtonPropsSizeOverrides> | undefined;
|
|
39
|
-
startIcon?: import("react").ReactNode;
|
|
40
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
41
|
-
variant?: import("@mui/types").OverridableStringUnion<"text" | "outlined" | "contained", import("@mui/material").ButtonPropsVariantOverrides> | undefined;
|
|
42
|
-
} & Omit<{
|
|
43
|
-
action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
|
|
44
|
-
centerRipple?: boolean | undefined;
|
|
45
|
-
children?: import("react").ReactNode;
|
|
46
|
-
classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
|
|
47
|
-
disabled?: boolean | undefined;
|
|
48
|
-
disableRipple?: boolean | undefined;
|
|
49
|
-
disableTouchRipple?: boolean | undefined;
|
|
50
|
-
focusRipple?: boolean | undefined;
|
|
51
|
-
focusVisibleClassName?: string | undefined;
|
|
52
|
-
LinkComponent?: import("react").ElementType<any> | undefined;
|
|
53
|
-
onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
|
|
54
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
55
|
-
tabIndex?: number | undefined;
|
|
56
|
-
TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
|
|
57
|
-
touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
|
|
58
|
-
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
10
|
+
export declare const WalletButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
59
11
|
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
60
|
-
},
|
|
12
|
+
}, "className" | "style" | "classes" | "action" | "centerRipple" | "children" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "href" | "color" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "size" | "startIcon" | "variant"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
13
|
+
export declare const DrawerWalletContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
14
|
+
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
15
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -43,3 +43,11 @@ export const WalletButton = styled(Button)(({ theme }) => ({
|
|
|
43
43
|
fontSize: '24px',
|
|
44
44
|
},
|
|
45
45
|
}));
|
|
46
|
+
export const DrawerWalletContainer = styled(Box)(() => ({
|
|
47
|
+
width: '100%',
|
|
48
|
+
display: 'flex',
|
|
49
|
+
justifyItems: 'start',
|
|
50
|
+
'& > button': {
|
|
51
|
+
marginLeft: '-0.5rem',
|
|
52
|
+
},
|
|
53
|
+
}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx,
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import ArrowBackIcon from '@mui/icons-material/ArrowBack';
|
|
3
3
|
import ReceiptLongIcon from '@mui/icons-material/ReceiptLong';
|
|
4
4
|
import SettingsIcon from '@mui/icons-material/Settings';
|
|
@@ -15,7 +15,7 @@ import { NavigationTabs } from './NavigationTabs';
|
|
|
15
15
|
import { WalletMenuButton } from './WalletHeader';
|
|
16
16
|
export const NavigationHeader = () => {
|
|
17
17
|
const { t } = useTranslation();
|
|
18
|
-
const { subvariant, hiddenUI } = useWidgetConfig();
|
|
18
|
+
const { subvariant, hiddenUI, variant } = useWidgetConfig();
|
|
19
19
|
const { navigate, navigateBack } = useNavigateBack();
|
|
20
20
|
const { account } = useWallet();
|
|
21
21
|
const { element, title } = useHeaderStore((state) => state);
|
|
@@ -78,7 +78,7 @@ export const NavigationHeader = () => {
|
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
};
|
|
81
|
-
return (_jsxs(_Fragment, { children: [_jsxs(HeaderAppBar, { elevation: 0, children: [backButtonRoutes.includes(path) ? (_jsx(IconButton, { size: "medium", edge: "start", onClick: navigateBack, children: _jsx(ArrowBackIcon, {}) })) : null, splitSubvariant ? (_jsx(Box, { flex: 1, children: !hiddenUI?.includes(HiddenUI.WalletMenu) ? (_jsx(WalletMenuButton, {})) : null })) : (_jsx(Typography, { fontSize: hasPath ? 18 : 24, align: hasPath ? 'center' : 'left', fontWeight: "700", flex: 1, noWrap: true, children: title || handleHeaderTitle() })), _jsxs(Routes, { children: [_jsx(Route, { path: navigationRoutes.home, element: _jsxs(
|
|
81
|
+
return (_jsxs(_Fragment, { children: [_jsxs(HeaderAppBar, { elevation: 0, children: [backButtonRoutes.includes(path) ? (_jsx(IconButton, { size: "medium", edge: "start", onClick: navigateBack, children: _jsx(ArrowBackIcon, {}) })) : null, splitSubvariant ? (_jsx(Box, { flex: 1, children: !hiddenUI?.includes(HiddenUI.WalletMenu) ? (_jsx(WalletMenuButton, {})) : null })) : (_jsx(Typography, { fontSize: hasPath ? 18 : 24, align: hasPath ? 'center' : 'left', fontWeight: "700", flex: 1, noWrap: true, children: title || handleHeaderTitle() })), _jsxs(Routes, { children: [_jsx(Route, { path: navigationRoutes.home, element: _jsxs(Box, { paddingRight: variant === 'drawer' && subvariant === 'split' ? 5 : 0, children: [account.isActive && !hiddenUI?.includes(HiddenUI.History) ? (_jsx(Tooltip, { title: t(`header.transactionHistory`), enterDelay: 400, arrow: true, children: _jsx(IconButton, { size: "medium", edge: "start", onClick: () => navigate(navigationRoutes.transactionHistory), children: _jsx(ReceiptLongIcon, {}) }) })) : null, _jsx(Tooltip, { title: t(`header.settings`), enterDelay: 400, arrow: true, children: _jsx(IconButton, { size: "medium", onClick: () => navigate(navigationRoutes.settings), sx: {
|
|
82
82
|
marginRight: -1.25,
|
|
83
83
|
}, children: _jsx(SettingsIcon, {}) }) })] }) }), _jsx(Route, { path: "*", element: element || _jsx(Box, { width: 28, height: 40 }) })] })] }), splitSubvariant ? _jsx(NavigationTabs, {}) : null] }));
|
|
84
84
|
};
|
|
@@ -2,33 +2,8 @@
|
|
|
2
2
|
import type { StyledComponent } from '@emotion/styled';
|
|
3
3
|
import type { TabsProps } from '@mui/material';
|
|
4
4
|
export declare const NavbarTabs: StyledComponent<TabsProps>;
|
|
5
|
-
export declare const NavbarTab: StyledComponent<{
|
|
6
|
-
children?: null | undefined;
|
|
7
|
-
classes?: Partial<import("@mui/material").TabClasses> | undefined;
|
|
8
|
-
disabled?: boolean | undefined;
|
|
9
|
-
disableFocusRipple?: boolean | undefined;
|
|
10
|
-
icon?: string | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
11
|
-
iconPosition?: "bottom" | "top" | "end" | "start" | undefined;
|
|
12
|
-
label?: import("react").ReactNode;
|
|
13
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
14
|
-
value?: any;
|
|
15
|
-
wrapped?: boolean | undefined;
|
|
16
|
-
} & Omit<{
|
|
17
|
-
action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
|
|
18
|
-
centerRipple?: boolean | undefined;
|
|
19
|
-
children?: import("react").ReactNode;
|
|
20
|
-
classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
|
|
21
|
-
disabled?: boolean | undefined;
|
|
22
|
-
disableRipple?: boolean | undefined;
|
|
23
|
-
disableTouchRipple?: boolean | undefined;
|
|
24
|
-
focusRipple?: boolean | undefined;
|
|
25
|
-
focusVisibleClassName?: string | undefined;
|
|
26
|
-
LinkComponent?: import("react").ElementType<any> | undefined;
|
|
27
|
-
onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
|
|
28
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
29
|
-
tabIndex?: number | undefined;
|
|
30
|
-
TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
|
|
31
|
-
touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
|
|
32
|
-
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
5
|
+
export declare const NavbarTab: StyledComponent<import("@mui/material").TabOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
33
6
|
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
34
|
-
},
|
|
7
|
+
}, "className" | "style" | "classes" | "action" | "centerRipple" | "children" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "label" | "disableFocusRipple" | "value" | "icon" | "iconPosition" | "wrapped"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
8
|
+
component?: import("react").ElementType<any> | undefined;
|
|
9
|
+
}, {}, {}>;
|
|
@@ -11,19 +11,23 @@ import { useLocation, useNavigate } from 'react-router-dom';
|
|
|
11
11
|
import { useChain } from '../../hooks';
|
|
12
12
|
import { useWallet, useWidgetConfig } from '../../providers';
|
|
13
13
|
import { navigationRoutes, shortenAddress } from '../../utils';
|
|
14
|
-
import { HeaderAppBar, WalletButton } from './Header.style';
|
|
14
|
+
import { DrawerWalletContainer, HeaderAppBar, WalletButton, } from './Header.style';
|
|
15
15
|
import { WalletMenu } from './WalletMenu';
|
|
16
16
|
export const WalletHeader = () => {
|
|
17
17
|
return (_jsx(HeaderAppBar, { elevation: 0, sx: { justifyContent: 'flex-end' }, children: _jsx(WalletMenuButton, {}) }));
|
|
18
18
|
};
|
|
19
19
|
export const WalletMenuButton = () => {
|
|
20
20
|
const { account } = useWallet();
|
|
21
|
+
const { variant } = useWidgetConfig();
|
|
22
|
+
if (variant === 'drawer') {
|
|
23
|
+
return (_jsx(DrawerWalletContainer, { children: account.isActive ? _jsx(ConnectedButton, {}) : _jsx(ConnectButton, {}) }));
|
|
24
|
+
}
|
|
21
25
|
return account.isActive ? _jsx(ConnectedButton, {}) : _jsx(ConnectButton, {});
|
|
22
26
|
};
|
|
23
27
|
const ConnectButton = () => {
|
|
24
28
|
const { t } = useTranslation();
|
|
25
29
|
const { pathname } = useLocation();
|
|
26
|
-
const { walletManagement, subvariant } = useWidgetConfig();
|
|
30
|
+
const { walletManagement, subvariant, variant } = useWidgetConfig();
|
|
27
31
|
const { connect: connectWallet } = useWallet();
|
|
28
32
|
const navigate = useNavigate();
|
|
29
33
|
const connect = async () => {
|
|
@@ -33,7 +37,7 @@ const ConnectButton = () => {
|
|
|
33
37
|
}
|
|
34
38
|
navigate(navigationRoutes.selectWallet);
|
|
35
39
|
};
|
|
36
|
-
return (_jsx(WalletButton, { endIcon: subvariant !== 'split' ? _jsx(WalletIcon, {}) : undefined, startIcon: subvariant === 'split' ? _jsx(WalletIcon, {}) : undefined, onClick: !pathname.includes(navigationRoutes.selectWallet) ? connect : undefined, sx: {
|
|
40
|
+
return (_jsx(WalletButton, { endIcon: variant !== 'drawer' && subvariant !== 'split' ? (_jsx(WalletIcon, {})) : undefined, startIcon: variant === 'drawer' || subvariant === 'split' ? (_jsx(WalletIcon, { sx: { marginLeft: -0.25 } })) : undefined, onClick: !pathname.includes(navigationRoutes.selectWallet) ? connect : undefined, sx: {
|
|
37
41
|
marginRight: subvariant === 'split' ? 0 : -1.25,
|
|
38
42
|
marginLeft: subvariant === 'split' ? -1.25 : 0,
|
|
39
43
|
}, children: t(`button.connectWallet`) }));
|
|
@@ -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").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>, {}, {}>;
|
|
@@ -1,16 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const PreviewAvatar: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
alt?: string | undefined;
|
|
4
|
-
children?: import("react").ReactNode;
|
|
5
|
-
classes?: Partial<import("@mui/material").AvatarClasses> | undefined;
|
|
6
|
-
imgProps?: (import("react").ImgHTMLAttributes<HTMLImageElement> & {
|
|
7
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
8
|
-
}) | undefined;
|
|
9
|
-
sizes?: string | undefined;
|
|
10
|
-
src?: string | undefined;
|
|
11
|
-
srcSet?: string | undefined;
|
|
12
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
13
|
-
variant?: import("@mui/types").OverridableStringUnion<"circular" | "rounded" | "square", import("@mui/material").AvatarPropsVariantOverrides> | undefined;
|
|
14
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
2
|
+
export declare const PreviewAvatar: import("@emotion/styled").StyledComponent<import("@mui/material").AvatarOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
15
3
|
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
16
|
-
},
|
|
4
|
+
}, "className" | "style" | "classes" | "children" | "sx" | "variant" | "alt" | "imgProps" | "sizes" | "src" | "srcSet"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -1,29 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const IconButton: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
children?: import("react").ReactNode;
|
|
4
|
-
classes?: Partial<import("@mui/material").IconButtonClasses> | undefined;
|
|
5
|
-
color?: import("@mui/types").OverridableStringUnion<"inherit" | "default" | "primary" | "secondary" | "error" | "warning" | "info" | "success", import("@mui/material").IconButtonPropsColorOverrides> | undefined;
|
|
6
|
-
disabled?: boolean | undefined;
|
|
7
|
-
disableFocusRipple?: boolean | undefined;
|
|
8
|
-
edge?: false | "end" | "start" | undefined;
|
|
9
|
-
size?: import("@mui/types").OverridableStringUnion<"small" | "large" | "medium", import("@mui/material").IconButtonPropsSizeOverrides> | undefined;
|
|
10
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
11
|
-
} & Omit<{
|
|
12
|
-
action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
|
|
13
|
-
centerRipple?: boolean | undefined;
|
|
14
|
-
children?: import("react").ReactNode;
|
|
15
|
-
classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
|
|
16
|
-
disabled?: boolean | undefined;
|
|
17
|
-
disableRipple?: boolean | undefined;
|
|
18
|
-
disableTouchRipple?: boolean | undefined;
|
|
19
|
-
focusRipple?: boolean | undefined;
|
|
20
|
-
focusVisibleClassName?: string | undefined;
|
|
21
|
-
LinkComponent?: import("react").ElementType<any> | undefined;
|
|
22
|
-
onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
|
|
23
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
24
|
-
tabIndex?: number | undefined;
|
|
25
|
-
TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
|
|
26
|
-
touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
|
|
27
|
-
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
2
|
+
export declare const IconButton: import("@emotion/styled").StyledComponent<import("@mui/material").IconButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
28
3
|
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
29
|
-
},
|
|
4
|
+
}, "className" | "style" | "classes" | "action" | "centerRipple" | "children" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "color" | "disableFocusRipple" | "size" | "edge"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -1,14 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const IconTypography: import("@emotion/styled").StyledComponent<import("@mui/
|
|
3
|
-
align?: "center" | "left" | "right" | "inherit" | "justify" | undefined;
|
|
4
|
-
children?: import("react").ReactNode;
|
|
5
|
-
classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
|
|
6
|
-
gutterBottom?: boolean | undefined;
|
|
7
|
-
noWrap?: boolean | undefined;
|
|
8
|
-
paragraph?: boolean | undefined;
|
|
9
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
10
|
-
variant?: import("@mui/types").OverridableStringUnion<"inherit" | import("@mui/material").TypographyVariant, import("@mui/material").TypographyPropsVariantOverrides> | undefined;
|
|
11
|
-
variantMapping?: Partial<Record<import("@mui/types").OverridableStringUnion<"inherit" | import("@mui/material").TypographyVariant, import("@mui/material").TypographyPropsVariantOverrides>, string>> | undefined;
|
|
12
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
2
|
+
export declare const IconTypography: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
13
3
|
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
14
|
-
},
|
|
4
|
+
}, "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>, {}, {}>;
|
|
@@ -1,33 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const CollapseContainer: 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 CollapseContainer: 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
|
-
},
|
|
10
|
-
export declare const ScrollableContainer: import("@emotion/styled").StyledComponent<import("@mui/system").
|
|
11
|
-
children?: import("react").ReactNode;
|
|
12
|
-
component?: import("react").ElementType<any> | undefined;
|
|
13
|
-
ref?: import("react").Ref<unknown> | undefined;
|
|
14
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
15
|
-
} & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
4
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
5
|
+
export declare const ScrollableContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
16
6
|
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
17
|
-
},
|
|
18
|
-
export declare const Container: import("@emotion/styled").StyledComponent<{
|
|
19
|
-
children?: import("react").ReactNode;
|
|
20
|
-
classes?: Partial<import("@mui/material").ScopedCssBaselineClasses> | undefined;
|
|
21
|
-
enableColorScheme?: boolean | undefined;
|
|
22
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
23
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
7
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
8
|
+
export declare const Container: import("@emotion/styled").StyledComponent<import("@mui/material").ScopedCssBaselineOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
24
9
|
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
25
|
-
},
|
|
26
|
-
export declare const Header: import("@emotion/styled").StyledComponent<import("@mui/system").
|
|
27
|
-
children?: import("react").ReactNode;
|
|
28
|
-
component?: import("react").ElementType<any> | undefined;
|
|
29
|
-
ref?: import("react").Ref<unknown> | undefined;
|
|
30
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
31
|
-
} & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
10
|
+
}, "className" | "style" | "classes" | "children" | "sx" | "enableColorScheme"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
11
|
+
export declare const Header: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
32
12
|
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
33
|
-
},
|
|
13
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -1,21 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const SelectTokenCardHeader: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
action?: import("react").ReactNode;
|
|
4
|
-
avatar?: import("react").ReactNode;
|
|
5
|
-
classes?: Partial<import("@mui/material/CardHeader").CardHeaderClasses> | undefined;
|
|
6
|
-
disableTypography?: boolean | undefined;
|
|
7
|
-
subheader?: import("react").ReactNode;
|
|
8
|
-
subheaderTypographyProps?: import("@mui/material").TypographyProps<"span", {
|
|
9
|
-
component?: "span" | undefined;
|
|
10
|
-
}> | undefined;
|
|
11
|
-
sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
|
|
12
|
-
title?: import("react").ReactNode;
|
|
13
|
-
titleTypographyProps?: import("@mui/material").TypographyProps<"span", {
|
|
14
|
-
component?: "span" | undefined;
|
|
15
|
-
}> | undefined;
|
|
16
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
2
|
+
export declare const SelectTokenCardHeader: import("@emotion/styled").StyledComponent<import("@mui/material/CardHeader").CardHeaderOwnProps<"span", "span"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
17
3
|
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
18
|
-
},
|
|
4
|
+
}, "className" | "style" | "classes" | "action" | "sx" | "title" | "disableTypography" | "avatar" | "subheader" | "subheaderTypographyProps" | "titleTypographyProps"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
19
5
|
selected?: boolean | undefined;
|
|
20
6
|
compact?: boolean | undefined;
|
|
21
7
|
}, {}, {}>;
|
|
@@ -11,7 +11,7 @@ import { Card, CardTitle } from '../Card';
|
|
|
11
11
|
import { FormControl, Input } from './SendToWallet.style';
|
|
12
12
|
export const SendToWallet = forwardRef((props, ref) => {
|
|
13
13
|
const { t } = useTranslation();
|
|
14
|
-
const { trigger, getValues, clearErrors } = useFormContext();
|
|
14
|
+
const { trigger, getValues, setValue, clearErrors } = useFormContext();
|
|
15
15
|
const { account } = useWallet();
|
|
16
16
|
const { disabledUI, hiddenUI, requiredUI, toAddress } = useWidgetConfig();
|
|
17
17
|
const { showSendToWallet, showSendToWalletDirty, setSendToWallet } = useSendToWalletStore();
|
|
@@ -24,6 +24,9 @@ export const SendToWallet = forwardRef((props, ref) => {
|
|
|
24
24
|
name: FormKey.ToAddress,
|
|
25
25
|
rules: {
|
|
26
26
|
required: requiredToAddress && t('error.title.walletAddressRequired'),
|
|
27
|
+
onChange: (e) => {
|
|
28
|
+
setValue(FormKey.ToAddress, e.target.value.trim());
|
|
29
|
+
},
|
|
27
30
|
validate: async (value) => {
|
|
28
31
|
try {
|
|
29
32
|
if (!value) {
|