@luxfi/ui 5.3.22 → 5.3.24
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/components/header/desktop.tsx +4 -5
- package/components/header/mobile.tsx +1 -1
- package/package.json +1 -1
- package/style/fonts/COPY_TO_PUBLIC_FOR_NON_NEXT.txt +0 -0
- package/style/fonts/Druk-Wide-Bold.ttf +0 -0
- package/style/fonts/Druk-Wide-Medium.ttf +0 -0
- package/style/fonts/InterVariable-Italic.ttf +0 -0
- package/style/fonts/InterVariable-Italic.woff2 +0 -0
- package/style/fonts/InterVariable.ttf +0 -0
- package/style/fonts/InterVariable.woff2 +0 -0
- package/style/lux-fonts.css +30 -0
- package/style/lux-global-non-next.css +52 -0
|
@@ -27,7 +27,7 @@ const DesktopHeader: React.FC<{
|
|
|
27
27
|
// TODO move 13px into a size class and configure twMerge to recognize say, 'text-size-nav'
|
|
28
28
|
// (vs be beat out by 'text-color-nav')
|
|
29
29
|
return (
|
|
30
|
-
<header className={cn(
|
|
30
|
+
<header id='DESKTOP_HEADER' className={cn(
|
|
31
31
|
'bg-[rgba(0, 0, 0, 0.5)] !backdrop-blur-3xl fixed z-header top-0 left-0 right-0',
|
|
32
32
|
className,
|
|
33
33
|
isMenuOpened ? ' h-full' : ''
|
|
@@ -41,11 +41,11 @@ const DesktopHeader: React.FC<{
|
|
|
41
41
|
<Logo size='sm' href='/' outerClx='hidden md:flex lg:hidden' key='one' variant='text-only' />
|
|
42
42
|
{/* md or larger */}
|
|
43
43
|
<div className='flex w-full gap-4 items-center justify-center'>
|
|
44
|
-
|
|
44
|
+
<DesktopNav links={links} isMenuOpened={isMenuOpened} setIsMenuOpen={setIsMenuOpen} />
|
|
45
45
|
</div>
|
|
46
46
|
<div className='flex items-center'>
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
<DesktopBagPopup popupClx='w-[340px]' trigger={<BagButton className='text-primary -mr-[3px] lg:min-w-0' />} />
|
|
48
|
+
<AuthWidget noLogin={noAuth}/>
|
|
49
49
|
</div>
|
|
50
50
|
</div>
|
|
51
51
|
</header>
|
|
@@ -55,4 +55,3 @@ const DesktopHeader: React.FC<{
|
|
|
55
55
|
export default DesktopHeader
|
|
56
56
|
|
|
57
57
|
|
|
58
|
-
|
|
@@ -87,7 +87,7 @@ const MobileHeader: React.FC<{
|
|
|
87
87
|
}
|
|
88
88
|
// header element MUST be fixed, and NOT sticky. Or else drawer breaks on mobile browsers
|
|
89
89
|
return (<>
|
|
90
|
-
<header className={cn(
|
|
90
|
+
<header id='MOBILE_HEADER' className={cn(
|
|
91
91
|
`bg-background fixed z-header top-0 left-0 w-full ${menuOpen() ? 'hidden' : 'block'}`,
|
|
92
92
|
className
|
|
93
93
|
)}>
|
package/package.json
CHANGED
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
@tailwind base;
|
|
2
|
+
|
|
3
|
+
@layer base {
|
|
4
|
+
@font-face {
|
|
5
|
+
font-family: "DrukWide";
|
|
6
|
+
src: url("/fonts/Druk-Wide-Medium.ttf");
|
|
7
|
+
font-weight: 500;
|
|
8
|
+
font-style: normal;
|
|
9
|
+
}
|
|
10
|
+
@font-face {
|
|
11
|
+
font-family: "DrukWide";
|
|
12
|
+
src: url("/fonts/Druk-Wide-Bold.ttf");
|
|
13
|
+
font-weight: 700;
|
|
14
|
+
font-style: normal;
|
|
15
|
+
}
|
|
16
|
+
@font-face {
|
|
17
|
+
font-family: "inter";
|
|
18
|
+
src: url("/fonts/InterVariable.woff2") format("woff2"),
|
|
19
|
+
url("/fonts/InterVariable.ttf") format("ttf");
|
|
20
|
+
font-weight: 500;
|
|
21
|
+
font-style: normal;
|
|
22
|
+
}
|
|
23
|
+
@font-face {
|
|
24
|
+
font-family: "inter";
|
|
25
|
+
src: url("/fonts/InterVariable-Italic.woff2") format("woff2"),
|
|
26
|
+
url("/fonts/InterVariable-Italic.ttf") format("ttf");
|
|
27
|
+
font-weight: 500;
|
|
28
|
+
font-style: italic;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/* Note, preflight is applied first:
|
|
2
|
+
https://unpkg.com/tailwindcss@3.3.5/src/css/preflight.css
|
|
3
|
+
*/
|
|
4
|
+
@import "tailwindcss/base";
|
|
5
|
+
|
|
6
|
+
/* see https://stackoverflow.com/questions/69746121/using-nextjs-how-can-you-import-in-css-using-tailwind-css */
|
|
7
|
+
/* @import "@hanzo/ui/style/hanzo-common"; */
|
|
8
|
+
@import "lux-colors";
|
|
9
|
+
@import "lux-fonts";
|
|
10
|
+
|
|
11
|
+
@import "tailwindcss/components";
|
|
12
|
+
@import "tailwindcss/utilities";
|
|
13
|
+
|
|
14
|
+
div.nextjs-toast-errors-parent[data-nextjs-toast="true"] {
|
|
15
|
+
display: none;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.font-heading {
|
|
19
|
+
@apply uppercase;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* Specific style fixes for react-square-web-payments-sdk -
|
|
23
|
+
* reduce gap between card input and pay button
|
|
24
|
+
*/
|
|
25
|
+
#rswps-card-container {
|
|
26
|
+
min-height: unset !important;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.sq-card-wrapper .sq-card-message {
|
|
30
|
+
margin-top: 0 !important;
|
|
31
|
+
margin-bottom: 0 !important;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
.element-container:hover .icon-container-nor {
|
|
36
|
+
display: none;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.icon-container-hov {
|
|
40
|
+
display: none;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.element-container:hover .icon-container-hov {
|
|
44
|
+
display: block !important;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.element-container:hover .text-container {
|
|
48
|
+
background: transparent;
|
|
49
|
+
}
|
|
50
|
+
.overflow-scroll::-webkit-scrollbar{
|
|
51
|
+
display:none;
|
|
52
|
+
}
|