@luxfi/core 5.0.1 → 5.0.3
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.
@@ -105,10 +105,8 @@ const CommerceUIComponent: React.FC = observer(() => {
|
|
105
105
|
}
|
106
106
|
}, [])
|
107
107
|
|
108
|
-
|
109
|
-
|
110
108
|
const handleCheckout = () => {
|
111
|
-
|
109
|
+
router.push('/checkout')
|
112
110
|
}
|
113
111
|
|
114
112
|
// Should only ever be called internally to close
|
@@ -138,7 +136,7 @@ const CommerceUIComponent: React.FC = observer(() => {
|
|
138
136
|
{globalThis?.document?.body && createPortal(
|
139
137
|
<div
|
140
138
|
className={cn(
|
141
|
-
'min-w-[160px] sm:max-w-[320px] w-[calc(100%-
|
139
|
+
'min-w-[160px] sm:max-w-[320px] w-[calc(100%-72px)] ml-2 !h-10',
|
142
140
|
'z-below-modal-2 fixed bottom-[20px] left-0 right-0',
|
143
141
|
'rounded-lg bg-background',
|
144
142
|
'flex',
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@luxfi/core",
|
3
|
-
"version": "5.0.
|
3
|
+
"version": "5.0.3",
|
4
4
|
"description": "Library that contains shared UI primitives, support for a common design system, and other boilerplate support.",
|
5
5
|
"publishConfig": {
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
@@ -45,7 +45,7 @@
|
|
45
45
|
},
|
46
46
|
"peerDependencies": {
|
47
47
|
"@hanzo/auth": "2.4.6",
|
48
|
-
"@hanzo/commerce": "7.0.
|
48
|
+
"@hanzo/commerce": "7.0.1",
|
49
49
|
"@hanzo/ui": "3.7.0",
|
50
50
|
"@hookform/resolvers": "^3.3.2",
|
51
51
|
"lucide-react": "^0.344.0",
|
package/root-layout/index.tsx
CHANGED
@@ -11,10 +11,15 @@ import getAppRouterBodyFontClasses from '../next/font/get-app-router-font-classe
|
|
11
11
|
import { FacebookPixelHead } from '../next/analytics/pixel-analytics'
|
12
12
|
|
13
13
|
import { AuthListener, ChatWidget, Header, Scripts } from '../components'
|
14
|
+
import BuyDrawer from '../components/commerce/buy-drawer'
|
14
15
|
|
15
16
|
import { selectionUISpecifiers } from '../conf'
|
16
17
|
import type SiteDef from '../site-def/site-def'
|
17
18
|
|
19
|
+
import '../style/lux-global.css'
|
20
|
+
import '../style/cart-animation.css'
|
21
|
+
import '../style/checkout-animation.css'
|
22
|
+
|
18
23
|
|
19
24
|
// Next 14: https://nextjs.org/docs/app/building-your-application/upgrading/codemods#use-viewport-export
|
20
25
|
const viewport = {
|
@@ -95,6 +100,7 @@ const RootLayout: React.FC<PropsWithChildren & {
|
|
95
100
|
uiSpecs={selectionUISpecifiers}
|
96
101
|
>
|
97
102
|
<Guts />
|
103
|
+
<BuyDrawer />
|
98
104
|
</CommerceProvider>
|
99
105
|
) : (
|
100
106
|
<Guts />
|