@luxfi/ui 5.3.14 → 5.3.16

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.
@@ -56,6 +56,10 @@ const DesktopNav: React.FC<{
56
56
  setIsMenuOpen(false);
57
57
  }, [setIsMenuOpen]);
58
58
 
59
+ const handleContentMouseMove = () => {
60
+ setIsMenuOpen(false)
61
+ }
62
+
59
63
  const menuHiddenClass = !isMenuOpened ? "invisible" : "";
60
64
 
61
65
  return links.length > 0 ? (
@@ -88,7 +92,10 @@ const DesktopNav: React.FC<{
88
92
  onMouseLeave={handleMouseLeave}
89
93
  >
90
94
  <div className="flex justify-center items-start">
91
- <div className="grid xl:grid-cols-3 w-full justify-center max-w-[750px]">
95
+ <div
96
+ className="grid xl:grid-cols-3 w-full justify-center max-w-[750px]"
97
+ onMouseLeave={handleContentMouseMove}
98
+ >
92
99
  {GroupChildMenu({ childs: el.childMenu, isCards: true })}
93
100
  </div>
94
101
  </div>
@@ -115,7 +122,10 @@ const DesktopNav: React.FC<{
115
122
  onMouseEnter={handleMouseEnter}
116
123
  onMouseLeave={handleMouseLeave}
117
124
  >
118
- <div className="flex flex-row w-full justify-center">
125
+ <div
126
+ className="flex flex-row w-full justify-center"
127
+ onMouseLeave={handleContentMouseMove}
128
+ >
119
129
  {GroupChildMenu({ childs: el.childMenu })}
120
130
  </div>
121
131
  </NavigationMenuContent>
package/package.json CHANGED
@@ -1,80 +1,81 @@
1
- {
2
- "name": "@luxfi/ui",
3
- "version": "5.3.14",
4
- "description": "Library that contains shared UI primitives, support for a common design system, and other boilerplate support.",
5
- "publishConfig": {
6
- "registry": "https://registry.npmjs.org/",
7
- "access": "public",
8
- "scope": "@luxfi"
9
- },
10
- "repository": {
11
- "type": "git",
12
- "url": "git+https://github.com/luxfi/web.git",
13
- "directory": "pkg/core"
14
- },
15
- "keywords": [
16
- "components",
17
- "radix-ui",
18
- "hanzo",
19
- "luxdefi"
20
- ],
21
- "scripts": {
22
- "lat": "npm show @luxfi/ui version",
23
- "pub": "npm publish",
24
- "build": "tsc",
25
- "tc": "tsc",
26
- "clean": "rm -rf node_modules"
27
- },
28
- "exports": {
29
- ".": "./components/index.ts",
30
- "./commerce": "./commerce/ui/context.tsx",
31
- "./root-layout": "./root-layout/index.tsx",
32
- "./server-actions": "./server-actions/index.ts",
33
- "./next": "./next/index.ts",
34
- "./style/": "./style/",
35
- "./site-def": "./site-def/index.ts",
36
- "./tailwind": "./tailwind/index.ts"
37
- },
38
- "dependencies": {
39
- "@next/third-parties": "^14.1.0",
40
- "@types/node": "^20.12.12",
41
- "cookies-next": "^4.1.1",
42
- "date-fns": "^3.6.0",
43
- "embla-carousel-autoplay": "^8.1.6",
44
- "firebase": "10.12.0",
45
- "framer-motion": "^11.2.12",
46
- "react-device-detect": "^2.2.3",
47
- "react-social-icons": "^6.4.0",
48
- "react-tooltip": "^5.26.4",
49
- "request": "^2.88.2",
50
- "usehooks-ts": "^3.1.0"
51
- },
52
- "peerDependencies": {
53
- "@hanzo/auth": "*",
54
- "@hanzo/commerce": "*",
55
- "@hanzo/ui": "*",
56
- "@hookform/resolvers": "^3.3.2",
57
- "lucide-react": "^0.344.0",
58
- "mobx": "^6.12.3",
59
- "mobx-react-lite": "^4.0.7",
60
- "next": "14.2.3",
61
- "next-themes": "^0.2.1",
62
- "react": "*",
63
- "react-dom": "*",
64
- "react-hook-form": "^7.51.4",
65
- "validator": "^13.11.0",
66
- "zod": "3.23.8"
67
- },
68
- "devDependencies": {
69
- "@mdx-js/loader": "^3.0.0",
70
- "@mdx-js/react": "^3.0.0",
71
- "@types/facebook-pixel": "^0.0.30",
72
- "@types/gtag.js": "^0.0.19",
73
- "@types/mdx": "^2.0.9",
74
- "@types/node": "^20.11.24",
75
- "@types/react": "*",
76
- "@types/react-dom": "*",
77
- "tailwindcss": "^3.4.3",
78
- "typescript": "5.4.5"
79
- }
80
- }
1
+ {
2
+ "name": "@luxfi/ui",
3
+ "version": "5.3.16",
4
+ "description": "Library that contains shared UI primitives, support for a common design system, and other boilerplate support.",
5
+ "publishConfig": {
6
+ "registry": "https://registry.npmjs.org/",
7
+ "access": "public",
8
+ "scope": "@luxfi"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/luxfi/web.git",
13
+ "directory": "pkg/core"
14
+ },
15
+ "keywords": [
16
+ "components",
17
+ "radix-ui",
18
+ "hanzo",
19
+ "luxdefi"
20
+ ],
21
+ "scripts": {
22
+ "lat": "npm show @luxfi/ui version",
23
+ "pub": "npm publish",
24
+ "build": "tsc",
25
+ "tc": "tsc",
26
+ "clean": "rm -rf node_modules"
27
+ },
28
+ "exports": {
29
+ ".": "./components/index.ts",
30
+ "./commerce": "./commerce/ui/context.tsx",
31
+ "./root-layout": "./root-layout/index.tsx",
32
+ "./server-actions": "./server-actions/index.ts",
33
+ "./next": "./next/index.ts",
34
+ "./style/": "./style/",
35
+ "./site-def": "./site-def/index.ts",
36
+ "./tailwind": "./tailwind/index.ts"
37
+ },
38
+ "dependencies": {
39
+ "@next/third-parties": "^14.1.0",
40
+ "@types/node": "^20.12.12",
41
+ "@types/validator": "^13.12.1",
42
+ "cookies-next": "^4.1.1",
43
+ "date-fns": "^3.6.0",
44
+ "embla-carousel-autoplay": "^8.1.6",
45
+ "firebase": "10.12.0",
46
+ "framer-motion": "^11.2.12",
47
+ "react-device-detect": "^2.2.3",
48
+ "react-social-icons": "^6.4.0",
49
+ "react-tooltip": "^5.26.4",
50
+ "request": "^2.88.2",
51
+ "usehooks-ts": "^3.1.0"
52
+ },
53
+ "peerDependencies": {
54
+ "@hanzo/auth": "*",
55
+ "@hanzo/commerce": "*",
56
+ "@hanzo/ui": "*",
57
+ "@hookform/resolvers": "^3.3.2",
58
+ "lucide-react": "^0.344.0",
59
+ "mobx": "^6.12.3",
60
+ "mobx-react-lite": "^4.0.7",
61
+ "next": "14.2.3",
62
+ "next-themes": "^0.2.1",
63
+ "react": "*",
64
+ "react-dom": "*",
65
+ "react-hook-form": "^7.51.4",
66
+ "validator": "^13.11.0",
67
+ "zod": "3.23.8"
68
+ },
69
+ "devDependencies": {
70
+ "@mdx-js/loader": "^3.0.0",
71
+ "@mdx-js/react": "^3.0.0",
72
+ "@types/facebook-pixel": "^0.0.30",
73
+ "@types/gtag.js": "^0.0.19",
74
+ "@types/mdx": "^2.0.9",
75
+ "@types/node": "^20.11.24",
76
+ "@types/react": "*",
77
+ "@types/react-dom": "*",
78
+ "tailwindcss": "^3.4.3",
79
+ "typescript": "5.4.5"
80
+ }
81
+ }