@hanzo/commerce 4.3.3 → 4.4.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.
|
@@ -71,7 +71,7 @@ const AddToCartWidget: React.FC<{
|
|
|
71
71
|
<Icons.trash className={iconClx} aria-hidden='true'/>
|
|
72
72
|
)}
|
|
73
73
|
</Button>
|
|
74
|
-
<div className={'text-sm flex items-center cursor-default xs:px-2 ' + digitClx} >{item.quantity}</div>
|
|
74
|
+
<div className={'text-sm flex items-center cursor-default xs:px-2 text-primary-fg ' + digitClx} >{item.quantity}</div>
|
|
75
75
|
<Button
|
|
76
76
|
aria-label={'Add another ' + item.title + ' to the cart'}
|
|
77
77
|
size={size}
|
|
@@ -81,7 +81,7 @@ const BuyItemCard: React.FC<{
|
|
|
81
81
|
category={cmmc.specifiedCategories[0]}
|
|
82
82
|
selectedItemRef={cmmc /* ...conveniently. :) */ }
|
|
83
83
|
selectSku={cmmc.setCurrentItem.bind(cmmc)}
|
|
84
|
-
className=
|
|
84
|
+
className=''
|
|
85
85
|
onQuantityChanged={onQuantityChanged}
|
|
86
86
|
/>
|
|
87
87
|
)}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import React, { useState, type ReactNode } from 'react'
|
|
3
3
|
|
|
4
|
-
import { X as LucideX} from 'lucide-react'
|
|
5
|
-
import { Sheet, SheetContent, SheetTrigger } from '@hanzo/ui/primitives'
|
|
4
|
+
//import { X as LucideX} from 'lucide-react'
|
|
5
|
+
//import { Sheet, SheetContent, SheetTrigger } from '@hanzo/ui/primitives'
|
|
6
|
+
|
|
7
|
+
import {
|
|
8
|
+
Drawer,
|
|
9
|
+
DrawerTrigger,
|
|
10
|
+
DrawerContent,
|
|
11
|
+
} from '@hanzo/ui/primitives'
|
|
6
12
|
|
|
7
13
|
import { cn } from '@hanzo/ui/util'
|
|
8
14
|
|
|
@@ -31,17 +37,17 @@ const BuyItemMobileDrawer: React.FC<{
|
|
|
31
37
|
}
|
|
32
38
|
|
|
33
39
|
return (
|
|
34
|
-
<
|
|
35
|
-
<
|
|
40
|
+
<Drawer open={open} onOpenChange={setOpen} >
|
|
41
|
+
<DrawerTrigger asChild className={triggerClx}>
|
|
36
42
|
{trigger}
|
|
37
|
-
</
|
|
38
|
-
<
|
|
39
|
-
className={cn('rounded-tl-xl rounded-tr-xl p-0 overflow-hidden
|
|
40
|
-
|
|
43
|
+
</DrawerTrigger>
|
|
44
|
+
<DrawerContent
|
|
45
|
+
className={cn('rounded-tl-xl rounded-tr-xl p-0 overflow-hidden', drawerClx)}
|
|
46
|
+
// side="bottom"
|
|
41
47
|
>
|
|
42
48
|
<BuyItemCard skuPath={skuPath} mobile onQuantityChanged={onQuantityChanged} className={cn("w-full relative ", cardClx)}/>
|
|
43
|
-
</
|
|
44
|
-
</
|
|
49
|
+
</DrawerContent>
|
|
50
|
+
</Drawer>
|
|
45
51
|
)
|
|
46
52
|
}
|
|
47
53
|
|