decentraland-ui2 0.7.3 → 0.7.4-12563557631.commit-00630ee
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/Address/Address.styled.js +4 -8
- package/dist/components/Address/Address.styled.js.map +1 -1
- package/dist/components/AvatarFace/AvatarFace.styled.js +23 -21
- package/dist/components/AvatarFace/AvatarFace.styled.js.map +1 -1
- package/dist/components/ChainSelector/ChainSelector.styled.d.ts +6 -5
- package/dist/components/ChainSelector/ChainSelector.styled.js +91 -109
- package/dist/components/ChainSelector/ChainSelector.styled.js.map +1 -1
- package/dist/components/IconBadge/IconBadge.styled.d.ts +2 -1
- package/dist/components/IconBadge/IconBadge.styled.js.map +1 -1
- package/dist/components/Logo/Logo.styled.js +7 -10
- package/dist/components/Logo/Logo.styled.js.map +1 -1
- package/dist/components/Mana/Mana.styled.d.ts +9 -7
- package/dist/components/Mana/Mana.styled.js +15 -19
- package/dist/components/Mana/Mana.styled.js.map +1 -1
- package/dist/components/Modal/Modal.styled.d.ts +3 -1
- package/dist/components/Modal/Modal.styled.js +8 -8
- package/dist/components/Modal/Modal.styled.js.map +1 -1
- package/dist/components/Navbar/MainMenu/MainMenu.js +1 -1
- package/dist/components/Navbar/MainMenu/MainMenu.js.map +1 -1
- package/dist/components/Navbar/MainMenu/MainMenu.styled.d.ts +4 -3
- package/dist/components/Navbar/MainMenu/MainMenu.styled.js +5 -4
- package/dist/components/Navbar/MainMenu/MainMenu.styled.js.map +1 -1
- package/dist/components/Navbar/MenuItem/MenuItem.js +1 -1
- package/dist/components/Navbar/MenuItem/MenuItem.js.map +1 -1
- package/dist/components/Navbar/MenuItem/MenuItem.styled.d.ts +9 -7
- package/dist/components/Navbar/MenuItem/MenuItem.styled.js +9 -7
- package/dist/components/Navbar/MenuItem/MenuItem.styled.js.map +1 -1
- package/dist/components/Navbar/Navbar.js +3 -3
- package/dist/components/Navbar/Navbar.js.map +1 -1
- package/dist/components/Navbar/Navbar.styled.d.ts +13 -10
- package/dist/components/Navbar/Navbar.styled.js +21 -21
- package/dist/components/Navbar/Navbar.styled.js.map +1 -1
- package/dist/components/Navbar/SubMenu/SubMenu.js +1 -1
- package/dist/components/Navbar/SubMenu/SubMenu.js.map +1 -1
- package/dist/components/Navbar/SubMenu/SubMenu.styled.d.ts +6 -5
- package/dist/components/Navbar/SubMenu/SubMenu.styled.js +17 -10
- package/dist/components/Navbar/SubMenu/SubMenu.styled.js.map +1 -1
- package/dist/components/Navbar/SubMenuColumn/SubMenuColumn.styled.js +3 -3
- package/dist/components/Navbar/SubMenuColumn/SubMenuColumn.styled.js.map +1 -1
- package/dist/components/Navbar/SubMenuItem/SubMenuItem.js +1 -1
- package/dist/components/Navbar/SubMenuItem/SubMenuItem.js.map +1 -1
- package/dist/components/Navbar/SubMenuItem/SubMenuItem.styled.d.ts +8 -4
- package/dist/components/Navbar/SubMenuItem/SubMenuItem.styled.js +28 -9
- package/dist/components/Navbar/SubMenuItem/SubMenuItem.styled.js.map +1 -1
- package/dist/components/Notifications/NotificationItem.styled.js +3 -3
- package/dist/components/Notifications/NotificationItem.styled.js.map +1 -1
- package/dist/components/Notifications/NotificationItemImage.styled.d.ts +4 -3
- package/dist/components/Notifications/NotificationItemImage.styled.js +5 -2
- package/dist/components/Notifications/NotificationItemImage.styled.js.map +1 -1
- package/dist/components/Notifications/Notifications.stories.js +5 -3
- package/dist/components/Notifications/Notifications.stories.js.map +1 -1
- package/dist/components/Notifications/NotificationsFeed.styled.js +18 -22
- package/dist/components/Notifications/NotificationsFeed.styled.js.map +1 -1
- package/dist/components/Notifications/NotificationsFeedTabs.styled.d.ts +2 -1
- package/dist/components/Notifications/NotificationsFeedTabs.styled.js +23 -28
- package/dist/components/Notifications/NotificationsFeedTabs.styled.js.map +1 -1
- package/dist/components/UserMenu/ManaBalances/ManaBalances.styled.js +2 -3
- package/dist/components/UserMenu/ManaBalances/ManaBalances.styled.js.map +1 -1
- package/dist/components/UserMenu/UserMenu.styled.js +3 -3
- package/dist/components/UserMenu/UserMenu.styled.js.map +1 -1
- package/dist/components/UserMenu/UserMenuSignedIn/UserMenuSignedIn.styled.d.ts +4 -3
- package/dist/components/UserMenu/UserMenuSignedIn/UserMenuSignedIn.styled.js +26 -25
- package/dist/components/UserMenu/UserMenuSignedIn/UserMenuSignedIn.styled.js.map +1 -1
- package/dist/config/env/dev.json +24 -1
- package/dist/config/env/prod.json +24 -1
- package/dist/config/env/stg.json +24 -1
- package/package.json +2 -2
@@ -1,11 +1,7 @@
|
|
1
1
|
import styled from "@emotion/styled";
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
color: theme.palette.text.primary,
|
7
|
-
fontFamily: theme.typography.fontFamily,
|
8
|
-
};
|
9
|
-
});
|
2
|
+
const StyledAddress = styled("span")(({ theme }) => ({
|
3
|
+
color: theme.palette.text.primary,
|
4
|
+
fontFamily: theme.typography.fontFamily,
|
5
|
+
}));
|
10
6
|
export { StyledAddress };
|
11
7
|
//# sourceMappingURL=Address.styled.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Address.styled.js","sourceRoot":"","sources":["../../../src/components/Address/Address.styled.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAA;
|
1
|
+
{"version":3,"file":"Address.styled.js","sourceRoot":"","sources":["../../../src/components/Address/Address.styled.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAA;AAEpC,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACnD,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO;IACjC,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC,UAAU;CACxC,CAAC,CAAC,CAAA;AAEH,OAAO,EAAE,aAAa,EAAE,CAAA"}
|
@@ -1,6 +1,8 @@
|
|
1
1
|
import styled from "@emotion/styled";
|
2
|
-
import { Avatar as AvatarMui
|
3
|
-
const AvatarContainer = styled("div"
|
2
|
+
import { Avatar as AvatarMui } from "@mui/material";
|
3
|
+
const AvatarContainer = styled("div", {
|
4
|
+
shouldForwardProp: (prop) => prop !== "inline",
|
5
|
+
})((props) => {
|
4
6
|
return {
|
5
7
|
width: "inherit",
|
6
8
|
height: "inherit",
|
@@ -11,35 +13,35 @@ const AvatarContainer = styled("div")((props) => {
|
|
11
13
|
};
|
12
14
|
});
|
13
15
|
const Avatar = styled(AvatarMui)((props) => {
|
14
|
-
const theme =
|
15
|
-
const
|
16
|
+
const { size, theme } = props;
|
17
|
+
const dimensions = {
|
16
18
|
width: "32px",
|
17
19
|
height: "32px",
|
18
20
|
};
|
19
|
-
if (
|
20
|
-
|
21
|
-
|
21
|
+
if (size === "tiny") {
|
22
|
+
dimensions.width = "20px";
|
23
|
+
dimensions.height = "20px";
|
22
24
|
}
|
23
|
-
else if (
|
24
|
-
|
25
|
-
|
25
|
+
else if (size === "small") {
|
26
|
+
dimensions.width = "32px";
|
27
|
+
dimensions.height = "32px";
|
26
28
|
}
|
27
|
-
else if (
|
28
|
-
|
29
|
-
|
29
|
+
else if (size === "medium") {
|
30
|
+
dimensions.width = "48px";
|
31
|
+
dimensions.height = "48px";
|
30
32
|
}
|
31
|
-
else if (
|
32
|
-
|
33
|
-
|
33
|
+
else if (size === "large") {
|
34
|
+
dimensions.width = "108px";
|
35
|
+
dimensions.height = "108px";
|
34
36
|
}
|
35
|
-
else if (
|
36
|
-
|
37
|
-
|
37
|
+
else if (size === "responsive") {
|
38
|
+
dimensions.width = "93px";
|
39
|
+
dimensions.height = "93px";
|
38
40
|
}
|
39
41
|
return {
|
40
42
|
backgroundColor: theme.palette.secondary.light,
|
41
|
-
...
|
42
|
-
"@media (min-width: 1200px)":
|
43
|
+
...dimensions,
|
44
|
+
"@media (min-width: 1200px)": size === "responsive" && {
|
43
45
|
width: "170px",
|
44
46
|
height: "170px",
|
45
47
|
},
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AvatarFace.styled.js","sourceRoot":"","sources":["../../../src/components/AvatarFace/AvatarFace.styled.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAA;AACpC,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,
|
1
|
+
{"version":3,"file":"AvatarFace.styled.js","sourceRoot":"","sources":["../../../src/components/AvatarFace/AvatarFace.styled.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAA;AACpC,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,eAAe,CAAA;AAGnD,MAAM,eAAe,GAAG,MAAM,CAAC,KAAK,EAAE;IACpC,iBAAiB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,QAAQ;CAC/C,CAAC,CAAkC,CAAC,KAAK,EAAE,EAAE;IAC5C,OAAO;QACL,KAAK,EAAE,SAAS;QAChB,MAAM,EAAE,SAAS;QACjB,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM;QAC9C,UAAU,EAAE,QAAQ;QACpB,cAAc,EAAE,QAAQ;QACxB,aAAa,EAAE,QAAQ;KACxB,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,CAAgC,CAAC,KAAK,EAAE,EAAE;IACxE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,KAAK,CAAA;IAC7B,MAAM,UAAU,GAAG;QACjB,KAAK,EAAE,MAAM;QACb,MAAM,EAAE,MAAM;KACf,CAAA;IAED,IAAI,IAAI,KAAK,MAAM,EAAE,CAAC;QACpB,UAAU,CAAC,KAAK,GAAG,MAAM,CAAA;QACzB,UAAU,CAAC,MAAM,GAAG,MAAM,CAAA;IAC5B,CAAC;SAAM,IAAI,IAAI,KAAK,OAAO,EAAE,CAAC;QAC5B,UAAU,CAAC,KAAK,GAAG,MAAM,CAAA;QACzB,UAAU,CAAC,MAAM,GAAG,MAAM,CAAA;IAC5B,CAAC;SAAM,IAAI,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC7B,UAAU,CAAC,KAAK,GAAG,MAAM,CAAA;QACzB,UAAU,CAAC,MAAM,GAAG,MAAM,CAAA;IAC5B,CAAC;SAAM,IAAI,IAAI,KAAK,OAAO,EAAE,CAAC;QAC5B,UAAU,CAAC,KAAK,GAAG,OAAO,CAAA;QAC1B,UAAU,CAAC,MAAM,GAAG,OAAO,CAAA;IAC7B,CAAC;SAAM,IAAI,IAAI,KAAK,YAAY,EAAE,CAAC;QACjC,UAAU,CAAC,KAAK,GAAG,MAAM,CAAA;QACzB,UAAU,CAAC,MAAM,GAAG,MAAM,CAAA;IAC5B,CAAC;IAED,OAAO;QACL,eAAe,EAAE,KAAM,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK;QAC/C,GAAG,UAAU;QACb,4BAA4B,EAAE,IAAI,KAAK,YAAY,IAAI;YACrD,KAAK,EAAE,OAAO;YACd,MAAM,EAAE,OAAO;SAChB;KACF,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,CAAA"}
|
@@ -1,3 +1,8 @@
|
|
1
|
+
interface ChainButtonProps {
|
2
|
+
isSelected?: boolean;
|
3
|
+
isActive?: boolean;
|
4
|
+
isDisabled?: boolean;
|
5
|
+
}
|
1
6
|
declare const SelectorButton: 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"> & {
|
2
7
|
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
3
8
|
}, "disabled" | "color" | "className" | "style" | "classes" | "children" | "sx" | "variant" | "tabIndex" | "disableElevation" | "fullWidth" | "startIcon" | "endIcon" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "href" | "size"> & {
|
@@ -9,11 +14,7 @@ declare const ChainButton: import("@emotion/styled").StyledComponent<import("@mu
|
|
9
14
|
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
10
15
|
}, "disabled" | "color" | "className" | "style" | "classes" | "children" | "sx" | "variant" | "tabIndex" | "disableElevation" | "fullWidth" | "startIcon" | "endIcon" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "href" | "size"> & {
|
11
16
|
theme?: import("@emotion/react").Theme;
|
12
|
-
} & {
|
13
|
-
children?: import("react").ReactNode | undefined;
|
14
|
-
} & {
|
15
|
-
isSelected: boolean;
|
16
|
-
}, {}, {}>;
|
17
|
+
} & ChainButtonProps, {}, {}>;
|
17
18
|
declare const ConnectedLabel: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
18
19
|
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
19
20
|
}, "typography" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "className" | "style" | "classes" | "children" | "sx" | "variant" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & {
|
@@ -1,93 +1,81 @@
|
|
1
1
|
import styled from "@emotion/styled";
|
2
|
-
import { Box, Button, IconButton, Paper, Typography
|
2
|
+
import { Box, Button, IconButton, Paper, Typography } from "@mui/material";
|
3
3
|
import { neutral, rarity, textOnNeutral } from "../../theme/colors";
|
4
4
|
import { Modal } from "../Modal/Modal";
|
5
|
-
const CommonButtonStyle = styled(Button)(
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
"
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
boxShadow: "none",
|
18
|
-
},
|
19
|
-
"&:not(.Mui-disabled):not(.Mui-focusVisible):hover": {
|
20
|
-
color: textOnNeutral.gray0,
|
21
|
-
background: neutral.gray0,
|
22
|
-
},
|
5
|
+
const CommonButtonStyle = styled(Button)({
|
6
|
+
display: "flex",
|
7
|
+
alignItems: "center",
|
8
|
+
borderRadius: "14px",
|
9
|
+
padding: "8px 10px",
|
10
|
+
color: "green",
|
11
|
+
"&.MuiButton-sizeMedium.MuiButton-containedSecondary": {
|
12
|
+
opacity: "1",
|
13
|
+
"&:not(.Mui-disabled):not(.Mui-focusVisible):not(:hover)": {
|
14
|
+
color: textOnNeutral.gray1,
|
15
|
+
background: neutral.gray1,
|
16
|
+
boxShadow: "none",
|
23
17
|
},
|
24
|
-
"
|
25
|
-
|
26
|
-
|
27
|
-
},
|
18
|
+
"&:not(.Mui-disabled):not(.Mui-focusVisible):hover": {
|
19
|
+
color: textOnNeutral.gray0,
|
20
|
+
background: neutral.gray0,
|
28
21
|
},
|
29
|
-
}
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
return {
|
34
|
-
[theme.breakpoints.down("sm")]: {
|
35
|
-
"&.MuiButton-sizeMedium.MuiButton-containedSecondary": {
|
36
|
-
paddingLeft: "0",
|
37
|
-
paddingRight: "0",
|
38
|
-
minWidth: "50px",
|
39
|
-
},
|
40
|
-
"& span": {
|
41
|
-
marginLeft: "0",
|
42
|
-
marginRight: "0",
|
43
|
-
},
|
22
|
+
},
|
23
|
+
"& span.MuiButton-icon.MuiButton-startIcon.MuiButton-iconSizeMedium": {
|
24
|
+
"& svg": {
|
25
|
+
fontSize: "28px",
|
44
26
|
},
|
45
|
-
}
|
27
|
+
},
|
46
28
|
});
|
47
|
-
const
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
29
|
+
const SelectorButton = styled(CommonButtonStyle)(({ theme }) => ({
|
30
|
+
[theme.breakpoints.down("sm")]: {
|
31
|
+
"&.MuiButton-sizeMedium.MuiButton-containedSecondary": {
|
32
|
+
paddingLeft: "0",
|
33
|
+
paddingRight: "0",
|
34
|
+
minWidth: "50px",
|
35
|
+
},
|
36
|
+
"& span": {
|
37
|
+
marginLeft: "0",
|
38
|
+
marginRight: "0",
|
39
|
+
},
|
40
|
+
},
|
41
|
+
}));
|
42
|
+
const ChainButton = styled(Button)((props) => {
|
43
|
+
const { isActive, isDisabled, theme } = props;
|
54
44
|
return {
|
45
|
+
display: "flex",
|
55
46
|
alignItems: "center",
|
56
47
|
justifyContent: "flex-start",
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
"
|
65
|
-
|
66
|
-
|
67
|
-
|
48
|
+
width: "100%",
|
49
|
+
padding: "12px 16px",
|
50
|
+
backgroundColor: isActive ? theme.palette.primary.dark : "transparent",
|
51
|
+
color: isActive
|
52
|
+
? theme.palette.primary.contrastText
|
53
|
+
: theme.palette.text.primary,
|
54
|
+
opacity: isDisabled ? 0.5 : 1,
|
55
|
+
"&:hover": {
|
56
|
+
backgroundColor: isActive
|
57
|
+
? theme.palette.primary.dark
|
58
|
+
: theme.palette.action.hover,
|
68
59
|
},
|
69
60
|
};
|
70
61
|
});
|
71
|
-
const ConnectedLabel = styled(Typography)(() => {
|
72
|
-
|
73
|
-
|
62
|
+
const ConnectedLabel = styled(Typography)(({ theme }) => ({
|
63
|
+
position: "absolute",
|
64
|
+
right: "8px",
|
65
|
+
paddingRight: "16px",
|
66
|
+
fontSize: "14px",
|
67
|
+
color: theme.palette.text.primary,
|
68
|
+
"&:after": {
|
69
|
+
content: '""',
|
70
|
+
width: "8px",
|
71
|
+
height: "8px",
|
74
72
|
position: "absolute",
|
75
|
-
right: "
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
width: "8px",
|
82
|
-
height: "8px",
|
83
|
-
position: "absolute",
|
84
|
-
right: "0",
|
85
|
-
top: "calc(50% - 4px)",
|
86
|
-
borderRadius: "50%",
|
87
|
-
backgroundColor: rarity.rare,
|
88
|
-
},
|
89
|
-
};
|
90
|
-
});
|
73
|
+
right: "0",
|
74
|
+
top: "calc(50% - 4px)",
|
75
|
+
borderRadius: "50%",
|
76
|
+
backgroundColor: rarity.rare,
|
77
|
+
},
|
78
|
+
}));
|
91
79
|
const ConfirmLabel = styled(ConnectedLabel)({
|
92
80
|
"&:after": {
|
93
81
|
backgroundColor: rarity.unique,
|
@@ -109,39 +97,33 @@ const ChainSelectorModal = styled(Modal)({
|
|
109
97
|
},
|
110
98
|
},
|
111
99
|
});
|
112
|
-
const ChainSelectorContainer = styled(Paper)(() => {
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
margin: "16px",
|
140
|
-
[theme.breakpoints.down("sm")]: {
|
141
|
-
padding: "5px",
|
142
|
-
},
|
143
|
-
};
|
144
|
-
});
|
100
|
+
const ChainSelectorContainer = styled(Paper)(({ theme }) => ({
|
101
|
+
position: "absolute",
|
102
|
+
top: "50%",
|
103
|
+
left: "50%",
|
104
|
+
transform: "translate(-50%, -50%)",
|
105
|
+
width: "360px",
|
106
|
+
borderRadius: "12px",
|
107
|
+
[theme.breakpoints.down("xs")]: {
|
108
|
+
minWidth: "100vw",
|
109
|
+
maxWidth: "100vw",
|
110
|
+
minHeight: "100vh",
|
111
|
+
borderRadius: "0px",
|
112
|
+
margin: "0",
|
113
|
+
padding: "0",
|
114
|
+
top: "0",
|
115
|
+
left: "0",
|
116
|
+
transform: "translate(0, 0)",
|
117
|
+
},
|
118
|
+
}));
|
119
|
+
const ChainSelectorWrapper = styled(Box)(({ theme }) => ({
|
120
|
+
display: "flex",
|
121
|
+
flexDirection: "column",
|
122
|
+
margin: "16px",
|
123
|
+
[theme.breakpoints.down("sm")]: {
|
124
|
+
padding: "5px",
|
125
|
+
},
|
126
|
+
}));
|
145
127
|
const ChainSelectorModalTitleContainer = styled(Box)({
|
146
128
|
display: "flex",
|
147
129
|
justifyContent: "center",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ChainSelector.styled.js","sourceRoot":"","sources":["../../../src/components/ChainSelector/ChainSelector.styled.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAA;AACpC,OAAO,
|
1
|
+
{"version":3,"file":"ChainSelector.styled.js","sourceRoot":"","sources":["../../../src/components/ChainSelector/ChainSelector.styled.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAA;AACpC,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1E,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AACnE,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAQtC,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;IACvC,OAAO,EAAE,MAAM;IACf,UAAU,EAAE,QAAQ;IACpB,YAAY,EAAE,MAAM;IACpB,OAAO,EAAE,UAAU;IACnB,KAAK,EAAE,OAAO;IACd,qDAAqD,EAAE;QACrD,OAAO,EAAE,GAAG;QACZ,yDAAyD,EAAE;YACzD,KAAK,EAAE,aAAa,CAAC,KAAK;YAC1B,UAAU,EAAE,OAAO,CAAC,KAAK;YACzB,SAAS,EAAE,MAAM;SAClB;QACD,mDAAmD,EAAE;YACnD,KAAK,EAAE,aAAa,CAAC,KAAK;YAC1B,UAAU,EAAE,OAAO,CAAC,KAAK;SAC1B;KACF;IACD,oEAAoE,EAAE;QACpE,OAAO,EAAE;YACP,QAAQ,EAAE,MAAM;SACjB;KACF;CACF,CAAC,CAAA;AAEF,MAAM,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/D,CAAC,KAAK,CAAC,WAA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;QACZ,GAAG,EAAE,GAAG;QACR,IAAI,EAAE,GAAG;QACT,SAAS,EAAE,iBAAiB;KAC7B;CACF,CAAC,CAAC,CAAA;AAEH,MAAM,oBAAoB,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACvD,OAAO,EAAE,MAAM;IACf,aAAa,EAAE,QAAQ;IACvB,MAAM,EAAE,MAAM;IACd,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE;QAC9B,OAAO,EAAE,KAAK;KACf;CACF,CAAC,CAAC,CAAA;AAEH,MAAM,gCAAgC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;IACnD,OAAO,EAAE,MAAM;IACf,cAAc,EAAE,QAAQ;IACxB,UAAU,EAAE,MAAM;CACnB,CAAC,CAAA;AAEF,MAAM,wBAAwB,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;IAClD,SAAS,EAAE,OAAO;IAClB,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,EAAE;CACV,CAAC,CAAA;AAEF,OAAO,EACL,cAAc,EACd,WAAW,EACX,cAAc,EACd,YAAY,EACZ,kBAAkB,EAClB,sBAAsB,EACtB,oBAAoB,EACpB,gCAAgC,EAChC,wBAAwB,GACzB,CAAA"}
|
@@ -1,9 +1,10 @@
|
|
1
1
|
import { IconBadgeProps } from "./IconBadge.types";
|
2
|
+
type IconBadgeButtonProps = Pick<IconBadgeProps, "inline" | "onClick">;
|
2
3
|
declare const IconBadgeButtonContainer: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonBaseOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
3
4
|
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
4
5
|
}, "disabled" | "className" | "style" | "classes" | "children" | "sx" | "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef"> & {
|
5
6
|
theme?: import("@emotion/react").Theme;
|
6
|
-
} &
|
7
|
+
} & IconBadgeButtonProps, {}, {}>;
|
7
8
|
declare const ImageContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
8
9
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
9
10
|
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"IconBadge.styled.js","sourceRoot":"","sources":["../../../src/components/IconBadge/IconBadge.styled.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAA;AACpC,OAAO,EAAE,GAAG,EAAE,UAAU,IAAI,SAAS,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AACxE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;
|
1
|
+
{"version":3,"file":"IconBadge.styled.js","sourceRoot":"","sources":["../../../src/components/IconBadge/IconBadge.styled.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAA;AACpC,OAAO,EAAE,GAAG,EAAE,UAAU,IAAI,SAAS,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AACxE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAK3D,MAAM,wBAAwB,GAAG,MAAM,CAAC,SAAS,CAAC,CAAuB,CACvE,KAAK,EACL,EAAE;IACF,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAA;IACjC,OAAO;QACL,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM;QACxC,eAAe,EAAE,OAAO,CAAC,KAAK;QAC9B,UAAU,EAAE,QAAQ;QACpB,cAAc,EAAE,QAAQ;QACxB,KAAK,EAAE,aAAa,CAAC,KAAK;QAC1B,aAAa,EAAE,QAAQ;QACvB,QAAQ,EAAE,MAAM;QAChB,UAAU,EAAE,SAAS;QACrB,aAAa,EAAE,WAAW;QAC1B,OAAO,EAAE,SAAS;QAClB,YAAY,EAAE,KAAK;QACnB,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS;QACvC,OAAO,EAAE;YACP,UAAU,EAAE,OAAO;SACpB;KACF,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;IACjC,OAAO,EAAE,MAAM;IACf,YAAY,EAAE;QACZ,IAAI,EAAE,aAAa,CAAC,KAAK;KAC1B;CACF,CAAC,CAAA;AAEF,MAAM,aAAa,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;IACvC,QAAQ,EAAE,SAAS;IACnB,KAAK,EAAE,SAAS;IAChB,oBAAoB,EAAE;QACpB,WAAW,EAAE,OAAO;KACrB;CACF,CAAC,CAAA;AAEF,OAAO,EAAE,wBAAwB,EAAE,cAAc,EAAE,aAAa,EAAE,CAAA"}
|
@@ -1,13 +1,10 @@
|
|
1
1
|
import styled from "@emotion/styled";
|
2
|
-
import { SvgIcon
|
3
|
-
const LogoContainer = styled(SvgIcon)(() => {
|
4
|
-
|
5
|
-
|
6
|
-
fontSize: "
|
7
|
-
|
8
|
-
|
9
|
-
},
|
10
|
-
};
|
11
|
-
});
|
2
|
+
import { SvgIcon } from "@mui/material";
|
3
|
+
const LogoContainer = styled(SvgIcon)(({ theme }) => ({
|
4
|
+
fontSize: "36px",
|
5
|
+
[theme.breakpoints.down("xs")]: {
|
6
|
+
fontSize: "32px",
|
7
|
+
},
|
8
|
+
}));
|
12
9
|
export { LogoContainer };
|
13
10
|
//# sourceMappingURL=Logo.styled.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Logo.styled.js","sourceRoot":"","sources":["../../../src/components/Logo/Logo.styled.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAA;AACpC,OAAO,EAAE,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"Logo.styled.js","sourceRoot":"","sources":["../../../src/components/Logo/Logo.styled.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAA;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAEvC,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACpD,QAAQ,EAAE,MAAM;IAChB,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE;QAC9B,QAAQ,EAAE,MAAM;KACjB;CACF,CAAC,CAAC,CAAA;AAEH,OAAO,EAAE,aAAa,EAAE,CAAA"}
|
@@ -1,16 +1,18 @@
|
|
1
1
|
import { ManaProps } from "./Mana.types";
|
2
|
+
interface StyledManaButtonProps extends Pick<ManaProps, "inline" | "href" | "onClick"> {
|
3
|
+
fontSize?: string;
|
4
|
+
}
|
5
|
+
interface StyledImageContainerProps {
|
6
|
+
primary?: boolean;
|
7
|
+
color?: string;
|
8
|
+
}
|
2
9
|
declare const ManaButtonContainer: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonBaseOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
3
10
|
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
4
11
|
}, "disabled" | "className" | "style" | "classes" | "children" | "sx" | "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef"> & {
|
5
12
|
theme?: import("@emotion/react").Theme;
|
6
|
-
} &
|
7
|
-
fontSize?: string;
|
8
|
-
}, {}, {}>;
|
13
|
+
} & StyledManaButtonProps, {}, {}>;
|
9
14
|
declare const ImageContainer: import("@emotion/styled").StyledComponent<{
|
10
15
|
theme?: import("@emotion/react").Theme;
|
11
16
|
as?: import("react").ElementType;
|
12
|
-
} & {
|
13
|
-
primary?: boolean;
|
14
|
-
color?: string;
|
15
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
17
|
+
} & StyledImageContainerProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
16
18
|
export { ImageContainer, ManaButtonContainer };
|
@@ -1,40 +1,36 @@
|
|
1
1
|
import styled from "@emotion/styled";
|
2
|
-
import { ButtonBase as ButtonMui
|
2
|
+
import { ButtonBase as ButtonMui } from "@mui/material";
|
3
3
|
const ManaButtonContainer = styled(ButtonMui)((props) => {
|
4
|
-
const theme =
|
5
|
-
let fontSize = "inherit";
|
6
|
-
if (props.fontSize === "small") {
|
7
|
-
fontSize = "20px";
|
8
|
-
}
|
9
|
-
else if (props.fontSize === "medium") {
|
10
|
-
fontSize = "24px";
|
11
|
-
}
|
12
|
-
else if (props.fontSize === "large") {
|
13
|
-
fontSize = "36px";
|
14
|
-
}
|
4
|
+
const { inline, fontSize, href, onClick, theme } = props;
|
15
5
|
return {
|
16
|
-
display:
|
6
|
+
display: inline ? "inline-flex" : "flex",
|
17
7
|
alignItems: "center",
|
18
8
|
justifyContent: "center",
|
19
9
|
color: theme.palette.text.primary,
|
20
10
|
verticalAlign: "middle",
|
21
|
-
fontSize: fontSize
|
11
|
+
fontSize: fontSize === "small"
|
12
|
+
? "20px"
|
13
|
+
: fontSize === "medium"
|
14
|
+
? "24px"
|
15
|
+
: fontSize === "large"
|
16
|
+
? "36px"
|
17
|
+
: "inherit",
|
22
18
|
lineHeight: "inherit",
|
23
|
-
cursor: !!
|
19
|
+
cursor: !!href || !!onClick ? "pointer" : "default",
|
24
20
|
"& + &": {
|
25
21
|
marginLeft: "0.3em",
|
26
22
|
},
|
27
23
|
};
|
28
24
|
});
|
29
25
|
const ImageContainer = styled("div")((props) => {
|
30
|
-
const theme =
|
26
|
+
const { color, primary, theme } = props;
|
31
27
|
return {
|
32
28
|
display: "flex",
|
33
29
|
paddingRight: "0.3em",
|
34
30
|
"& svg path": {
|
35
|
-
fill:
|
36
|
-
?
|
37
|
-
:
|
31
|
+
fill: color
|
32
|
+
? color
|
33
|
+
: primary
|
38
34
|
? theme.palette.primary.main
|
39
35
|
: theme.palette.text.primary,
|
40
36
|
},
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Mana.styled.js","sourceRoot":"","sources":["../../../src/components/Mana/Mana.styled.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAA;AACpC,OAAO,EAAE,UAAU,IAAI,SAAS,EAAE,
|
1
|
+
{"version":3,"file":"Mana.styled.js","sourceRoot":"","sources":["../../../src/components/Mana/Mana.styled.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAA;AACpC,OAAO,EAAE,UAAU,IAAI,SAAS,EAAE,MAAM,eAAe,CAAA;AAavD,MAAM,mBAAmB,GAAG,MAAM,CAAC,SAAS,CAAC,CAAwB,CACnE,KAAK,EACL,EAAE;IACF,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,KAAK,CAAA;IACxD,OAAO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alProps, "size"> {
|
3
|
+
}
|
2
4
|
declare const Modal: import("@emotion/styled").StyledComponent<import("@mui/material").ModalOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
3
5
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
4
6
|
}, "components" | "container" | "className" | "style" | "classes" | "children" | "sx" | "slots" | "slotProps" | "componentsProps" | "open" | "BackdropComponent" | "BackdropProps" | "closeAfterTransition" | "disableAutoFocus" | "disableEnforceFocus" | "disableEscapeKeyDown" | "disablePortal" | "disableRestoreFocus" | "disableScrollLock" | "hideBackdrop" | "keepMounted" | "onBackdropClick" | "onClose" | "onTransitionEnter" | "onTransitionExited"> & {
|
@@ -8,7 +10,7 @@ declare const ModalContainer: import("@emotion/styled").StyledComponent<import("
|
|
8
10
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
9
11
|
}, "elevation" | "className" | "style" | "classes" | "children" | "square" | "sx" | "variant"> & {
|
10
12
|
theme?: import("@emotion/react").Theme;
|
11
|
-
} &
|
13
|
+
} & StyledModalProps, {}, {}>;
|
12
14
|
declare const ModalTitleContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
13
15
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
14
16
|
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & {
|
@@ -1,21 +1,21 @@
|
|
1
1
|
import styled from "@emotion/styled";
|
2
|
-
import { Box as BoxMui, Modal as MuiModal, Paper as PaperMui,
|
2
|
+
import { Box as BoxMui, Modal as MuiModal, Paper as PaperMui, } from "@mui/material";
|
3
3
|
const Modal = styled(MuiModal)({
|
4
4
|
display: "flex",
|
5
5
|
alignItems: "center",
|
6
6
|
justifyContent: "center",
|
7
7
|
});
|
8
8
|
const ModalContainer = styled(PaperMui)((props) => {
|
9
|
-
const theme =
|
10
|
-
let
|
11
|
-
if (
|
12
|
-
|
9
|
+
const { size, theme } = props;
|
10
|
+
let width = "900px";
|
11
|
+
if (size === "tiny") {
|
12
|
+
width = "540px";
|
13
13
|
}
|
14
|
-
else if (
|
15
|
-
|
14
|
+
else if (size === "small") {
|
15
|
+
width = "720px";
|
16
16
|
}
|
17
17
|
return {
|
18
|
-
width
|
18
|
+
width,
|
19
19
|
borderRadius: "12px",
|
20
20
|
overflow: "hidden",
|
21
21
|
[theme.breakpoints.down("xs")]: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Modal.styled.js","sourceRoot":"","sources":["../../../src/components/Modal/Modal.styled.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAA;AACpC,OAAO,EACL,GAAG,IAAI,MAAM,EACb,KAAK,IAAI,QAAQ,EACjB,KAAK,IAAI,QAAQ,
|
1
|
+
{"version":3,"file":"Modal.styled.js","sourceRoot":"","sources":["../../../src/components/Modal/Modal.styled.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAA;AACpC,OAAO,EACL,GAAG,IAAI,MAAM,EACb,KAAK,IAAI,QAAQ,EACjB,KAAK,IAAI,QAAQ,GAClB,MAAM,eAAe,CAAA;AAKtB,MAAM,KAAK,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;IAC7B,OAAO,EAAE,MAAM;IACf,UAAU,EAAE,QAAQ;IACpB,cAAc,EAAE,QAAQ;CACzB,CAAC,CAAA;AAEF,MAAM,cAAc,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAmB,CAAC,KAAK,EAAE,EAAE;IAClE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,KAAK,CAAA;IAC7B,IAAI,KAAK,GAAG,OAAO,CAAA;IACnB,IAAI,IAAI,KAAK,MAAM,EAAE,CAAC;QACpB,KAAK,GAAG,OAAO,CAAA;IACjB,CAAC;SAAM,IAAI,IAAI,KAAK,OAAO,EAAE,CAAC;QAC5B,KAAK,GAAG,OAAO,CAAA;IACjB,CAAC;IAED,OAAO;QACL,KAAK;QACL,YAAY,EAAE,MAAM;QACpB,QAAQ,EAAE,QAAQ;QAClB,CAAC,KAAM,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE;YAC/B,QAAQ,EAAE,OAAO;YACjB,QAAQ,EAAE,OAAO;YACjB,SAAS,EAAE,OAAO;YAClB,YAAY,EAAE,KAAK;YACnB,MAAM,EAAE,GAAG;YACX,OAAO,EAAE,GAAG;SACb;KACF,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;IACzC,OAAO,EAAE,MAAM;IACf,cAAc,EAAE,eAAe;IAC/B,OAAO,EAAE,MAAM;CAChB,CAAC,CAAA;AAEF,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;IAC3C,OAAO,EAAE,MAAM;CAChB,CAAC,CAAA;AAEF,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;IAC3C,OAAO,EAAE,MAAM;IACf,OAAO,EAAE,MAAM;IACf,OAAO,EAAE;QACP,IAAI,EAAE,CAAC;KACR;IACD,2CAA2C,EAAE;QAC3C,WAAW,EAAE,MAAM;KACpB;CACF,CAAC,CAAA;AAEF,OAAO,EACL,KAAK,EACL,cAAc,EACd,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,GACtB,CAAA"}
|
@@ -22,6 +22,6 @@ export const MainMenu = (props) => {
|
|
22
22
|
isMounted.current = false;
|
23
23
|
};
|
24
24
|
}, [extraButton, isMounted, setExtraButton]);
|
25
|
-
return (_jsxs(MainMenuContainer, { isOpenOnMobile: isOpenOnMobile, children: [_jsx(MenuItem, { ...menuItemProps, section: NavbarPages.MARKETPLACE, title: i18n.marketplace, mainUrl: config.get("MARKETPLACE_URL") }), _jsx(MenuItem, { ...menuItemProps, section: NavbarPages.CREATE, title: i18n.create, mainUrl: config.get("CREATE_URL") }), _jsx(MenuItem, { ...menuItemProps, section: NavbarPages.LEARN, title: i18n.learn, mainUrl: config.get("LEARN_URL") }), _jsx(MenuItem, { ...menuItemProps, section: NavbarPages.GOVERNANCE, title: i18n.governance, mainUrl: config.get("GOVERNANCE_URL") }), _jsx(MenuItem, { ...menuItemProps, section: NavbarPages.EXPLORE, title: i18n.explore, mainUrl: config.get("EVENTS_URL") }), extraButton && extraButton.visible ? (_jsx(MenuItem, { ...menuItemProps, section: NavbarPages.EXTRA, title: extraButton.text, mainUrl: extraButton.link, textColor: extraButton.textColor, backgroundColor: extraButton.backgroundColor, isExtraButton: true })) : null] }));
|
25
|
+
return (_jsxs(MainMenuContainer, { isOpenOnMobile: isOpenOnMobile, "aria-label": "main menu", children: [_jsx(MenuItem, { ...menuItemProps, section: NavbarPages.MARKETPLACE, title: i18n.marketplace, mainUrl: config.get("MARKETPLACE_URL"), "aria-label": `${i18n.marketplace} menu item` }), _jsx(MenuItem, { ...menuItemProps, section: NavbarPages.CREATE, title: i18n.create, mainUrl: config.get("CREATE_URL"), "aria-label": `${i18n.create} menu item` }), _jsx(MenuItem, { ...menuItemProps, section: NavbarPages.LEARN, title: i18n.learn, mainUrl: config.get("LEARN_URL"), "aria-label": `${i18n.learn} menu item` }), _jsx(MenuItem, { ...menuItemProps, section: NavbarPages.GOVERNANCE, title: i18n.governance, mainUrl: config.get("GOVERNANCE_URL"), "aria-label": `${i18n.governance} menu item` }), _jsx(MenuItem, { ...menuItemProps, section: NavbarPages.EXPLORE, title: i18n.explore, mainUrl: config.get("EVENTS_URL"), "aria-label": `${i18n.explore} menu item` }), extraButton && extraButton.visible ? (_jsx(MenuItem, { ...menuItemProps, section: NavbarPages.EXTRA, title: extraButton.text, mainUrl: extraButton.link, textColor: extraButton.textColor, backgroundColor: extraButton.backgroundColor, isExtraButton: true, "aria-label": `${extraButton.text} menu item` })) : null] }));
|
26
26
|
};
|
27
27
|
//# sourceMappingURL=MainMenu.js.map
|