decentraland-ui2 2.5.3 → 3.0.0
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/dist/components/Navbar/Credits.styled.d.ts +9 -0
- package/dist/components/Navbar/Credits.styled.js +58 -0
- package/dist/components/Navbar/Credits.styled.js.map +1 -0
- package/dist/components/Navbar/MobileMenu.d.ts +8 -0
- package/dist/components/Navbar/MobileMenu.js +20 -0
- package/dist/components/Navbar/MobileMenu.js.map +1 -0
- package/dist/components/Navbar/MobileMenu.styled.d.ts +35 -0
- package/dist/components/Navbar/MobileMenu.styled.js +116 -0
- package/dist/components/Navbar/MobileMenu.styled.js.map +1 -0
- package/dist/components/Navbar/NavLinks.d.ts +11 -0
- package/dist/components/Navbar/NavLinks.js +19 -0
- package/dist/components/Navbar/NavLinks.js.map +1 -0
- package/dist/components/Navbar/NavLinks.styled.d.ts +31 -0
- package/dist/components/Navbar/NavLinks.styled.js +130 -0
- package/dist/components/Navbar/NavLinks.styled.js.map +1 -0
- package/dist/components/Navbar/Navbar.d.ts +2 -3
- package/dist/components/Navbar/Navbar.defaults.d.ts +29 -6
- package/dist/components/Navbar/Navbar.defaults.js +101 -231
- package/dist/components/Navbar/Navbar.defaults.js.map +1 -1
- package/dist/components/Navbar/Navbar.js +109 -34
- package/dist/components/Navbar/Navbar.js.map +1 -1
- package/dist/components/Navbar/Navbar.stories.d.ts +9 -8
- package/dist/components/Navbar/Navbar.stories.js +93 -60
- package/dist/components/Navbar/Navbar.stories.js.map +1 -1
- package/dist/components/Navbar/Navbar.styled.d.ts +53 -56
- package/dist/components/Navbar/Navbar.styled.js +168 -101
- package/dist/components/Navbar/Navbar.styled.js.map +1 -1
- package/dist/components/Navbar/Navbar.types.d.ts +72 -56
- package/dist/components/Navbar/Navbar.types.js +1 -10
- package/dist/components/Navbar/Navbar.types.js.map +1 -1
- package/dist/components/Navbar/NotificationBell.styled.d.ts +61 -0
- package/dist/components/Navbar/NotificationBell.styled.js +189 -0
- package/dist/components/Navbar/NotificationBell.styled.js.map +1 -0
- package/dist/components/Navbar/UserCardPanel.d.ts +27 -0
- package/dist/components/Navbar/UserCardPanel.js +106 -0
- package/dist/components/Navbar/UserCardPanel.js.map +1 -0
- package/dist/components/Navbar/UserCardPanel.styled.d.ts +133 -0
- package/dist/components/Navbar/UserCardPanel.styled.js +392 -0
- package/dist/components/Navbar/UserCardPanel.styled.js.map +1 -0
- package/dist/components/Navbar/formatBalance.d.ts +2 -0
- package/dist/components/Navbar/formatBalance.js +5 -0
- package/dist/components/Navbar/formatBalance.js.map +1 -0
- package/dist/components/Navbar/icons.d.ts +24 -0
- package/dist/components/Navbar/icons.js +67 -0
- package/dist/components/Navbar/icons.js.map +1 -0
- package/dist/components/Navbar/index.d.ts +3 -2
- package/dist/components/Navbar/index.js +2 -2
- package/dist/components/Navbar/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/components/Navbar/MainMenu/MainMenu.d.ts +0 -2
- package/dist/components/Navbar/MainMenu/MainMenu.js +0 -26
- package/dist/components/Navbar/MainMenu/MainMenu.js.map +0 -1
- package/dist/components/Navbar/MainMenu/MainMenu.styled.d.ts +0 -9
- package/dist/components/Navbar/MainMenu/MainMenu.styled.js +0 -39
- package/dist/components/Navbar/MainMenu/MainMenu.styled.js.map +0 -1
- package/dist/components/Navbar/MainMenu/MainMenu.types.d.ts +0 -8
- package/dist/components/Navbar/MainMenu/MainMenu.types.js +0 -2
- package/dist/components/Navbar/MainMenu/MainMenu.types.js.map +0 -1
- package/dist/components/Navbar/MenuItem/MenuItem.d.ts +0 -3
- package/dist/components/Navbar/MenuItem/MenuItem.js +0 -15
- package/dist/components/Navbar/MenuItem/MenuItem.js.map +0 -1
- package/dist/components/Navbar/MenuItem/MenuItem.styled.d.ts +0 -18
- package/dist/components/Navbar/MenuItem/MenuItem.styled.js +0 -59
- package/dist/components/Navbar/MenuItem/MenuItem.styled.js.map +0 -1
- package/dist/components/Navbar/MenuItem/MenuItem.types.d.ts +0 -12
- package/dist/components/Navbar/MenuItem/MenuItem.types.js +0 -2
- package/dist/components/Navbar/MenuItem/MenuItem.types.js.map +0 -1
- package/dist/components/Navbar/SubMenu/SubMenu.d.ts +0 -2
- package/dist/components/Navbar/SubMenu/SubMenu.js +0 -14
- package/dist/components/Navbar/SubMenu/SubMenu.js.map +0 -1
- package/dist/components/Navbar/SubMenu/SubMenu.styled.d.ts +0 -27
- package/dist/components/Navbar/SubMenu/SubMenu.styled.js +0 -165
- package/dist/components/Navbar/SubMenu/SubMenu.styled.js.map +0 -1
- package/dist/components/Navbar/SubMenu/SubMenu.types.d.ts +0 -13
- package/dist/components/Navbar/SubMenu/SubMenu.types.js +0 -2
- package/dist/components/Navbar/SubMenu/SubMenu.types.js.map +0 -1
- package/dist/components/Navbar/SubMenuColumn/SubMenuColumn.d.ts +0 -3
- package/dist/components/Navbar/SubMenuColumn/SubMenuColumn.js +0 -9
- package/dist/components/Navbar/SubMenuColumn/SubMenuColumn.js.map +0 -1
- package/dist/components/Navbar/SubMenuColumn/SubMenuColumn.styled.d.ts +0 -11
- package/dist/components/Navbar/SubMenuColumn/SubMenuColumn.styled.js +0 -33
- package/dist/components/Navbar/SubMenuColumn/SubMenuColumn.styled.js.map +0 -1
- package/dist/components/Navbar/SubMenuColumn/SubMenuColumn.types.d.ts +0 -5
- package/dist/components/Navbar/SubMenuColumn/SubMenuColumn.types.js +0 -2
- package/dist/components/Navbar/SubMenuColumn/SubMenuColumn.types.js.map +0 -1
- package/dist/components/Navbar/SubMenuItem/SubMenuItem.d.ts +0 -2
- package/dist/components/Navbar/SubMenuItem/SubMenuItem.js +0 -15
- package/dist/components/Navbar/SubMenuItem/SubMenuItem.js.map +0 -1
- package/dist/components/Navbar/SubMenuItem/SubMenuItem.styled.d.ts +0 -32
- package/dist/components/Navbar/SubMenuItem/SubMenuItem.styled.js +0 -84
- package/dist/components/Navbar/SubMenuItem/SubMenuItem.styled.js.map +0 -1
- package/dist/components/Navbar/SubMenuItem/SubMenuItem.types.d.ts +0 -13
- package/dist/components/Navbar/SubMenuItem/SubMenuItem.types.js +0 -2
- package/dist/components/Navbar/SubMenuItem/SubMenuItem.types.js.map +0 -1
- package/dist/components/Navbar/utils.d.ts +0 -16
- package/dist/components/Navbar/utils.js +0 -33
- package/dist/components/Navbar/utils.js.map +0 -1
|
@@ -1,123 +1,190 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { keyframes } from '@emotion/react';
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
3
|
+
import * as colors from '../../theme/colors';
|
|
4
|
+
const FONT_FAMILY = 'Inter, Helvetica, Arial, sans-serif';
|
|
5
|
+
const MOBILE_BREAKPOINT = '@media (max-width: 991px)';
|
|
6
|
+
const DESKTOP_BREAKPOINT = '@media (min-width: 992px)';
|
|
7
|
+
const Z_INDEX = {
|
|
8
|
+
userCard: 1099,
|
|
9
|
+
navbar: 1100,
|
|
10
|
+
mobileMenu: 1101,
|
|
11
|
+
notificationPanel: 1102,
|
|
12
|
+
mobileOverlay: 1201
|
|
13
|
+
};
|
|
14
|
+
const NAV_SHADOW = '0px 1.333px 24px rgba(0,0,0,0.12), 0px 8px 13.333px rgba(0,0,0,0.14), 0px 4px 6.667px rgba(0,0,0,0.2)';
|
|
15
|
+
const GLASS_BG = 'rgba(38, 38, 38, 0.8)';
|
|
16
|
+
const GLASS_BORDER = '0.5px solid #5E5B67';
|
|
17
|
+
const GLASS_SHADOW = '0 2px 20px 16px rgba(0, 0, 0, 0.25)';
|
|
18
|
+
const GLASS_BLUR = 'blur(12.5px)';
|
|
19
|
+
const avatarPulse = keyframes({
|
|
20
|
+
'0%': { opacity: 1 },
|
|
21
|
+
'50%': { opacity: 0.5 },
|
|
22
|
+
'100%': { opacity: 1 }
|
|
23
|
+
});
|
|
24
|
+
// NOTE: Do NOT use transform in this animation. backdrop-filter breaks when
|
|
25
|
+
// the element has any transform set (even identity matrix), because it creates
|
|
26
|
+
// a new stacking context that prevents the blur from seeing through to the page.
|
|
27
|
+
const slideDown = keyframes({
|
|
28
|
+
from: {
|
|
29
|
+
opacity: 0
|
|
30
|
+
},
|
|
31
|
+
to: {
|
|
32
|
+
opacity: 1
|
|
15
33
|
}
|
|
16
|
-
return { ...openedStyles };
|
|
17
34
|
});
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
35
|
+
const bellShake = keyframes({
|
|
36
|
+
'0%, 100%': { transform: 'rotate(0deg)' },
|
|
37
|
+
'25%': { transform: 'rotate(8deg)' },
|
|
38
|
+
'50%': { transform: 'rotate(-8deg)' },
|
|
39
|
+
'75%': { transform: 'rotate(4deg)' }
|
|
40
|
+
});
|
|
41
|
+
const NavbarRoot = styled('nav')({
|
|
42
|
+
position: 'fixed',
|
|
43
|
+
top: 0,
|
|
44
|
+
left: 0,
|
|
45
|
+
right: 0,
|
|
46
|
+
zIndex: Z_INDEX.navbar,
|
|
47
|
+
fontFamily: FONT_FAMILY,
|
|
48
|
+
display: 'flex',
|
|
49
|
+
alignItems: 'center',
|
|
50
|
+
justifyContent: 'space-between',
|
|
51
|
+
boxSizing: 'border-box',
|
|
52
|
+
// The navbar's own blur is on a ::before pseudo-element so that child
|
|
53
|
+
// dropdowns can have their own independent backdrop-filter. Nested
|
|
54
|
+
// backdrop-filter elements don't compose in CSS - the child would blur
|
|
55
|
+
// the parent's already-blurred content instead of the page behind.
|
|
56
|
+
'&::before': {
|
|
57
|
+
content: '""',
|
|
58
|
+
position: 'absolute',
|
|
59
|
+
top: 0,
|
|
60
|
+
left: 0,
|
|
61
|
+
right: 0,
|
|
62
|
+
bottom: 0,
|
|
63
|
+
zIndex: -1,
|
|
64
|
+
background: 'rgba(22, 21, 24, 0.75)',
|
|
65
|
+
boxShadow: NAV_SHADOW,
|
|
66
|
+
backdropFilter: 'saturate(1.8) blur(20px)',
|
|
67
|
+
WebkitBackdropFilter: 'saturate(1.8) blur(20px)',
|
|
68
|
+
transition: 'background 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease'
|
|
69
|
+
},
|
|
70
|
+
[MOBILE_BREAKPOINT]: {
|
|
71
|
+
height: 64,
|
|
72
|
+
padding: '12px 16px'
|
|
73
|
+
},
|
|
74
|
+
[DESKTOP_BREAKPOINT]: {
|
|
75
|
+
height: 92,
|
|
76
|
+
padding: '16px 54px',
|
|
77
|
+
'&::before': {
|
|
78
|
+
background: 'rgba(22, 21, 24, 0.4)'
|
|
79
|
+
}
|
|
27
80
|
}
|
|
28
|
-
return {
|
|
29
|
-
height: '36px',
|
|
30
|
-
...mobileStyles
|
|
31
|
-
};
|
|
32
81
|
});
|
|
33
|
-
const
|
|
82
|
+
const NavbarLeft = styled('div')({
|
|
34
83
|
display: 'flex',
|
|
35
|
-
justifyContent: 'flex-start',
|
|
36
84
|
alignItems: 'center',
|
|
37
|
-
[
|
|
38
|
-
|
|
85
|
+
[MOBILE_BREAKPOINT]: {
|
|
86
|
+
gap: 12
|
|
87
|
+
},
|
|
88
|
+
[DESKTOP_BREAKPOINT]: {
|
|
89
|
+
gap: 48
|
|
90
|
+
},
|
|
91
|
+
'& .mobile-only': {
|
|
92
|
+
display: 'flex',
|
|
93
|
+
[DESKTOP_BREAKPOINT]: { display: 'none' }
|
|
94
|
+
},
|
|
95
|
+
'& .desktop-only': {
|
|
96
|
+
display: 'none',
|
|
97
|
+
[DESKTOP_BREAKPOINT]: { display: 'flex' }
|
|
39
98
|
}
|
|
40
|
-
})
|
|
41
|
-
const
|
|
99
|
+
});
|
|
100
|
+
const NavbarRight = styled('div')({
|
|
42
101
|
display: 'flex',
|
|
43
|
-
justifyContent: 'space-between',
|
|
44
|
-
width: '100%',
|
|
45
102
|
alignItems: 'center',
|
|
46
|
-
|
|
103
|
+
gap: 16,
|
|
104
|
+
[DESKTOP_BREAKPOINT]: {
|
|
105
|
+
gap: 48
|
|
106
|
+
}
|
|
47
107
|
});
|
|
48
|
-
const
|
|
49
|
-
width: '85px',
|
|
108
|
+
const NavbarRightGroup = styled('div')({
|
|
50
109
|
display: 'flex',
|
|
51
110
|
alignItems: 'center',
|
|
52
|
-
|
|
53
|
-
|
|
111
|
+
gap: 12,
|
|
112
|
+
[DESKTOP_BREAKPOINT]: {
|
|
113
|
+
gap: 24
|
|
114
|
+
}
|
|
54
115
|
});
|
|
55
|
-
const
|
|
116
|
+
const LogoLink = styled('a')({
|
|
56
117
|
display: 'flex',
|
|
57
|
-
alignItems: 'center'
|
|
118
|
+
alignItems: 'center',
|
|
119
|
+
flexShrink: 0,
|
|
120
|
+
width: 40,
|
|
121
|
+
height: 40,
|
|
122
|
+
'& svg': {
|
|
123
|
+
width: '100%',
|
|
124
|
+
height: '100%'
|
|
125
|
+
}
|
|
58
126
|
});
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
127
|
+
const HamburgerButton = styled('button')({
|
|
128
|
+
all: 'unset',
|
|
129
|
+
display: 'flex',
|
|
130
|
+
alignItems: 'center',
|
|
131
|
+
justifyContent: 'center',
|
|
132
|
+
width: 40,
|
|
133
|
+
height: 40,
|
|
134
|
+
backgroundColor: 'rgba(255, 255, 255, 0.1)',
|
|
135
|
+
borderRadius: 8,
|
|
136
|
+
color: colors.neutral.white,
|
|
137
|
+
cursor: 'pointer',
|
|
138
|
+
flexShrink: 0,
|
|
139
|
+
transition: 'background-color 0.15s ease',
|
|
65
140
|
'&:hover': {
|
|
66
|
-
backgroundColor: '
|
|
141
|
+
backgroundColor: 'rgba(255, 255, 255, 0.15)'
|
|
142
|
+
},
|
|
143
|
+
'&:active': {
|
|
144
|
+
backgroundColor: 'rgba(255, 255, 255, 0.2)'
|
|
145
|
+
},
|
|
146
|
+
'&:focus-visible': {
|
|
147
|
+
outline: `2px solid ${colors.base.primary}`,
|
|
148
|
+
outlineOffset: 2
|
|
149
|
+
},
|
|
150
|
+
[DESKTOP_BREAKPOINT]: {
|
|
151
|
+
display: 'none'
|
|
67
152
|
}
|
|
68
153
|
});
|
|
69
|
-
const
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
154
|
+
const SignInButton = styled('button')({
|
|
155
|
+
all: 'unset',
|
|
156
|
+
boxSizing: 'border-box',
|
|
157
|
+
display: 'flex',
|
|
158
|
+
alignItems: 'center',
|
|
159
|
+
justifyContent: 'center',
|
|
160
|
+
padding: '8px 22px',
|
|
161
|
+
border: `1px solid ${colors.neutral.softWhite}`,
|
|
162
|
+
borderRadius: 6,
|
|
163
|
+
fontFamily: FONT_FAMILY,
|
|
164
|
+
fontWeight: 600,
|
|
165
|
+
fontSize: 15,
|
|
166
|
+
lineHeight: '24px',
|
|
167
|
+
letterSpacing: 0.46,
|
|
168
|
+
textTransform: 'uppercase',
|
|
169
|
+
color: colors.neutral.softWhite,
|
|
170
|
+
cursor: 'pointer',
|
|
171
|
+
whiteSpace: 'nowrap',
|
|
172
|
+
transition: 'background-color 0.15s ease, border-color 0.15s ease',
|
|
173
|
+
'&:hover': {
|
|
174
|
+
backgroundColor: 'rgba(255, 255, 255, 0.08)',
|
|
175
|
+
borderColor: 'rgba(255, 255, 255, 0.7)'
|
|
176
|
+
},
|
|
177
|
+
'&:active': {
|
|
178
|
+
backgroundColor: 'rgba(255, 255, 255, 0.12)'
|
|
179
|
+
},
|
|
180
|
+
'&:disabled': {
|
|
181
|
+
opacity: 0.5,
|
|
182
|
+
pointerEvents: 'none'
|
|
183
|
+
},
|
|
184
|
+
'&:focus-visible': {
|
|
185
|
+
outline: `2px solid ${colors.base.primary}`,
|
|
186
|
+
outlineOffset: 2
|
|
89
187
|
}
|
|
90
|
-
return {
|
|
91
|
-
transition: `all 0.3s ease`,
|
|
92
|
-
height: '2px',
|
|
93
|
-
width: '100%',
|
|
94
|
-
backgroundColor: theme.palette.text.primary,
|
|
95
|
-
position: 'absolute',
|
|
96
|
-
'&:nth-of-type(1)': {
|
|
97
|
-
top: '8px',
|
|
98
|
-
left: 0
|
|
99
|
-
},
|
|
100
|
-
'&:nth-of-type(2)': {
|
|
101
|
-
top: '21px',
|
|
102
|
-
left: 0
|
|
103
|
-
},
|
|
104
|
-
...openedStyles
|
|
105
|
-
};
|
|
106
188
|
});
|
|
107
|
-
|
|
108
|
-
return {
|
|
109
|
-
'& .MuiBackdrop-root.MuiModal-backdrop': {
|
|
110
|
-
backgroundColor: 'transparent'
|
|
111
|
-
}
|
|
112
|
-
};
|
|
113
|
-
});
|
|
114
|
-
const Logo = styled(LogoComponent)(({ theme }) => ({
|
|
115
|
-
width: theme.spacing(4.5),
|
|
116
|
-
height: theme.spacing(4.5),
|
|
117
|
-
[theme.breakpoints.down('sm')]: {
|
|
118
|
-
width: theme.spacing(4),
|
|
119
|
-
height: theme.spacing(4)
|
|
120
|
-
}
|
|
121
|
-
}));
|
|
122
|
-
export { DclAppBar, LogoLink, AppBarDesktopWrapper, AppBarWrapper, AppBarTabletAndBelowWrapper, AppBarRightWrapper, MenuIcon, MenuIconBar, MenuModal, Logo };
|
|
189
|
+
export { DESKTOP_BREAKPOINT, FONT_FAMILY, GLASS_BG, GLASS_BLUR, GLASS_BORDER, GLASS_SHADOW, HamburgerButton, LogoLink, MOBILE_BREAKPOINT, NavbarLeft, NavbarRight, NavbarRightGroup, NavbarRoot, SignInButton, Z_INDEX, avatarPulse, bellShake, slideDown };
|
|
123
190
|
//# sourceMappingURL=Navbar.styled.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Navbar.styled.js","sourceRoot":"","sources":["../../../src/components/Navbar/Navbar.styled.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Navbar.styled.js","sourceRoot":"","sources":["../../../src/components/Navbar/Navbar.styled.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,MAAM,MAAM,iBAAiB,CAAA;AACpC,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAA;AAE5C,MAAM,WAAW,GAAG,qCAAqC,CAAA;AAEzD,MAAM,iBAAiB,GAAG,2BAA2B,CAAA;AACrD,MAAM,kBAAkB,GAAG,2BAA2B,CAAA;AAEtD,MAAM,OAAO,GAAG;IACd,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,UAAU,EAAE,IAAI;IAChB,iBAAiB,EAAE,IAAI;IACvB,aAAa,EAAE,IAAI;CACX,CAAA;AAEV,MAAM,UAAU,GAAG,uGAAuG,CAAA;AAC1H,MAAM,QAAQ,GAAG,uBAAuB,CAAA;AACxC,MAAM,YAAY,GAAG,qBAAqB,CAAA;AAC1C,MAAM,YAAY,GAAG,qCAAqC,CAAA;AAC1D,MAAM,UAAU,GAAG,cAAc,CAAA;AAEjC,MAAM,WAAW,GAAG,SAAS,CAAC;IAC5B,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE;IACpB,KAAK,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE;IACvB,MAAM,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE;CACvB,CAAC,CAAA;AAEF,4EAA4E;AAC5E,+EAA+E;AAC/E,iFAAiF;AACjF,MAAM,SAAS,GAAG,SAAS,CAAC;IAC1B,IAAI,EAAE;QACJ,OAAO,EAAE,CAAC;KACX;IACD,EAAE,EAAE;QACF,OAAO,EAAE,CAAC;KACX;CACF,CAAC,CAAA;AAEF,MAAM,SAAS,G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C/B;IACD,iBAAiB,EAAE;QACjB,OAAO,EAAE,aAAa,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE;QAC3C,aAAa,EAAE,CAAC;KACjB;CACF,CAAC,CAAA;AAEF,OAAO,EACL,kBAAkB,EAClB,WAAW,EACX,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,eAAe,EACf,QAAQ,EACR,iBAAiB,EACjB,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,UAAU,EACV,YAAY,EACZ,OAAO,EACP,WAAW,EACX,SAAS,EACT,SAAS,EACV,CAAA"}
|
|
@@ -1,58 +1,74 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
description: string;
|
|
33
|
-
url: string;
|
|
34
|
-
eventTrackingName: string;
|
|
35
|
-
isExternal?: boolean;
|
|
36
|
-
}[];
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { ChainId } from '@dcl/schemas';
|
|
3
|
+
import type { Network } from '@dcl/schemas/dist/dapps/network';
|
|
4
|
+
type NavbarI18n = {
|
|
5
|
+
signIn: string;
|
|
6
|
+
signingIn: string;
|
|
7
|
+
whatsOn: string;
|
|
8
|
+
shop: string;
|
|
9
|
+
shopAll: string;
|
|
10
|
+
wearables: string;
|
|
11
|
+
emotes: string;
|
|
12
|
+
names: string;
|
|
13
|
+
land: string;
|
|
14
|
+
merch: string;
|
|
15
|
+
create: string;
|
|
16
|
+
createInDecentraland: string;
|
|
17
|
+
publishWearablesEmotes: string;
|
|
18
|
+
publishLand: string;
|
|
19
|
+
learn: string;
|
|
20
|
+
getStarted: string;
|
|
21
|
+
startCreating: string;
|
|
22
|
+
seeWhatsNew: string;
|
|
23
|
+
viewProfile: string;
|
|
24
|
+
myAssets: string;
|
|
25
|
+
accountSettings: string;
|
|
26
|
+
marketplaceAuthorizations: string;
|
|
27
|
+
walletAddress: string;
|
|
28
|
+
addressCopied: string;
|
|
29
|
+
logout: string;
|
|
30
|
+
creditsExpiringIn: string;
|
|
31
|
+
creditsValueNote: string;
|
|
37
32
|
};
|
|
38
|
-
type
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
33
|
+
type NavbarProps = {
|
|
34
|
+
isSignedIn: boolean;
|
|
35
|
+
isSigningIn?: boolean;
|
|
36
|
+
isLoadingProfile?: boolean;
|
|
37
|
+
address?: string;
|
|
38
|
+
avatar?: {
|
|
39
|
+
name?: string;
|
|
40
|
+
avatar?: {
|
|
41
|
+
snapshots?: {
|
|
42
|
+
face256?: string;
|
|
43
|
+
body?: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
i18n?: Partial<NavbarI18n>;
|
|
48
|
+
notificationSlot?: ReactNode;
|
|
49
|
+
/** Currently selected chain id */
|
|
50
|
+
selectedChain?: ChainId;
|
|
51
|
+
/** List of chains available for selection */
|
|
52
|
+
chains?: ChainId[];
|
|
53
|
+
/** Called when the user picks a different chain */
|
|
54
|
+
onSelectChain?: (chain: ChainId) => void;
|
|
55
|
+
/** MANA balances keyed by network */
|
|
56
|
+
manaBalances?: Partial<Record<Network, number>>;
|
|
57
|
+
/** Called when the user clicks a balance entry */
|
|
58
|
+
onClickBalance?: (network: Network) => void;
|
|
59
|
+
/** Credits balance to display in the navbar top bar */
|
|
60
|
+
creditsBalance?: {
|
|
61
|
+
balance: number;
|
|
62
|
+
expiresAt: number;
|
|
63
|
+
};
|
|
64
|
+
/** Called when the user clicks the credits balance */
|
|
65
|
+
onClickCredits?: () => void;
|
|
66
|
+
/** Called when the user card panel is toggled open or closed.
|
|
67
|
+
* Consumers can use this to close other panels (e.g. notifications). */
|
|
68
|
+
onToggleUserCard?: (isOpen: boolean) => void;
|
|
69
|
+
/** When set, the matching navigation tab receives a visual highlight. */
|
|
70
|
+
activePage?: 'whatsOn' | 'shop' | 'create' | 'learn';
|
|
71
|
+
onClickSignIn: () => void;
|
|
72
|
+
onClickSignOut: () => void;
|
|
44
73
|
};
|
|
45
|
-
type
|
|
46
|
-
i18nNavbar?: NavbarMenuI18nProps;
|
|
47
|
-
submenuItems?: NavbarSubmenuProps;
|
|
48
|
-
i18nUserMenu?: UserMenuI18N;
|
|
49
|
-
i18nChainSelector?: ChainSelectori18n;
|
|
50
|
-
activePage: NavbarPages | string;
|
|
51
|
-
onClickNavbarItem?: (event: React.MouseEvent<HTMLElement, MouseEvent>, options: {
|
|
52
|
-
eventTrackingName: string;
|
|
53
|
-
url?: string;
|
|
54
|
-
isExternal?: boolean;
|
|
55
|
-
}) => void;
|
|
56
|
-
};
|
|
57
|
-
export { NavbarPages };
|
|
58
|
-
export type { NavbarMenuI18nProps, NavbarSubMenuItemsProps, NavbarSubmenuProps, NavbarProps };
|
|
74
|
+
export type { NavbarI18n, NavbarProps };
|
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
(function (NavbarPages) {
|
|
3
|
-
NavbarPages["MARKETPLACE"] = "marketplace";
|
|
4
|
-
NavbarPages["CREATE"] = "create";
|
|
5
|
-
NavbarPages["EXPLORE"] = "explore";
|
|
6
|
-
NavbarPages["LEARN"] = "learn";
|
|
7
|
-
NavbarPages["GOVERNANCE"] = "governance";
|
|
8
|
-
NavbarPages["EXTRA"] = "extra";
|
|
9
|
-
})(NavbarPages || (NavbarPages = {}));
|
|
10
|
-
export { NavbarPages };
|
|
1
|
+
export {};
|
|
11
2
|
//# sourceMappingURL=Navbar.types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Navbar.types.js","sourceRoot":"","sources":["../../../src/components/Navbar/Navbar.types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Navbar.types.js","sourceRoot":"","sources":["../../../src/components/Navbar/Navbar.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
declare const BellButton: import("@emotion/styled").StyledComponent<{
|
|
2
|
+
theme?: import("@emotion/react").Theme;
|
|
3
|
+
as?: React.ElementType;
|
|
4
|
+
}, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
5
|
+
declare const NotificationBadge: import("@emotion/styled").StyledComponent<{
|
|
6
|
+
theme?: import("@emotion/react").Theme;
|
|
7
|
+
as?: React.ElementType;
|
|
8
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
9
|
+
declare const NotificationWrapper: import("@emotion/styled").StyledComponent<{
|
|
10
|
+
theme?: import("@emotion/react").Theme;
|
|
11
|
+
as?: React.ElementType;
|
|
12
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
13
|
+
declare const NotificationPanel: import("@emotion/styled").StyledComponent<{
|
|
14
|
+
theme?: import("@emotion/react").Theme;
|
|
15
|
+
as?: React.ElementType;
|
|
16
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
17
|
+
declare const NotificationHeader: import("@emotion/styled").StyledComponent<{
|
|
18
|
+
theme?: import("@emotion/react").Theme;
|
|
19
|
+
as?: React.ElementType;
|
|
20
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
21
|
+
declare const NotificationTitle: import("@emotion/styled").StyledComponent<{
|
|
22
|
+
theme?: import("@emotion/react").Theme;
|
|
23
|
+
as?: React.ElementType;
|
|
24
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
25
|
+
declare const NotificationList: import("@emotion/styled").StyledComponent<{
|
|
26
|
+
theme?: import("@emotion/react").Theme;
|
|
27
|
+
as?: React.ElementType;
|
|
28
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
29
|
+
declare const NotificationListItem: import("@emotion/styled").StyledComponent<{
|
|
30
|
+
theme?: import("@emotion/react").Theme;
|
|
31
|
+
as?: React.ElementType;
|
|
32
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
33
|
+
declare const NotificationItemImage: import("@emotion/styled").StyledComponent<{
|
|
34
|
+
theme?: import("@emotion/react").Theme;
|
|
35
|
+
as?: React.ElementType;
|
|
36
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
37
|
+
declare const NotificationItemContent: import("@emotion/styled").StyledComponent<{
|
|
38
|
+
theme?: import("@emotion/react").Theme;
|
|
39
|
+
as?: React.ElementType;
|
|
40
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
41
|
+
declare const NotificationItemTitle: import("@emotion/styled").StyledComponent<{
|
|
42
|
+
theme?: import("@emotion/react").Theme;
|
|
43
|
+
as?: React.ElementType;
|
|
44
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
45
|
+
declare const NotificationItemDescription: import("@emotion/styled").StyledComponent<{
|
|
46
|
+
theme?: import("@emotion/react").Theme;
|
|
47
|
+
as?: React.ElementType;
|
|
48
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
49
|
+
declare const NotificationItemTime: import("@emotion/styled").StyledComponent<{
|
|
50
|
+
theme?: import("@emotion/react").Theme;
|
|
51
|
+
as?: React.ElementType;
|
|
52
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
53
|
+
declare const NotificationDot: import("@emotion/styled").StyledComponent<{
|
|
54
|
+
theme?: import("@emotion/react").Theme;
|
|
55
|
+
as?: React.ElementType;
|
|
56
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
57
|
+
declare const NotificationEmpty: import("@emotion/styled").StyledComponent<{
|
|
58
|
+
theme?: import("@emotion/react").Theme;
|
|
59
|
+
as?: React.ElementType;
|
|
60
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
61
|
+
export { BellButton, NotificationBadge, NotificationDot, NotificationEmpty, NotificationHeader, NotificationItemContent, NotificationItemDescription, NotificationItemImage, NotificationItemTime, NotificationItemTitle, NotificationList, NotificationListItem, NotificationPanel, NotificationTitle, NotificationWrapper };
|