@hanzo/commerce 4.3.2 → 4.3.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.
|
@@ -32,7 +32,7 @@ const AddToCartWidget: React.FC<{
|
|
|
32
32
|
|
|
33
33
|
if (disabled) {
|
|
34
34
|
return (
|
|
35
|
-
<div className={cn('flex flex-row items-stretch ' + (ghost ? 'bg-transparent rounded-xl' : 'bg-
|
|
35
|
+
<div className={cn('flex flex-row items-stretch ' + (ghost ? 'bg-transparent rounded-xl' : 'bg-primary rounded-xl'), className)}>
|
|
36
36
|
<div className={'text-sm flex items-center cursor-default ' + digitClx} >{item.quantity}</div>
|
|
37
37
|
</div>
|
|
38
38
|
)
|
|
@@ -55,11 +55,11 @@ const AddToCartWidget: React.FC<{
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
return ( item.isInCart ? (
|
|
58
|
-
<div className={cn('flex flex-row items-stretch justify-center ' + (ghost ? 'bg-transparent rounded-xl' : 'bg-
|
|
58
|
+
<div className={cn('flex flex-row items-stretch justify-center ' + (ghost ? 'bg-transparent rounded-xl' : 'bg-primary rounded-xl'), className)}>
|
|
59
59
|
<Button
|
|
60
60
|
aria-label={'Remove a ' + item.title + ' from the cart'}
|
|
61
61
|
size={size}
|
|
62
|
-
variant={ghost ? 'ghost' : '
|
|
62
|
+
variant={ghost ? 'ghost' : 'primary'}
|
|
63
63
|
rounded={ghost ? 'full' : 'xl'}
|
|
64
64
|
className={cn('px-1 lg:min-w-0 lg:px-2 xs:justify-end', buttonClx)}
|
|
65
65
|
key='left'
|
|
@@ -75,7 +75,7 @@ const AddToCartWidget: React.FC<{
|
|
|
75
75
|
<Button
|
|
76
76
|
aria-label={'Add another ' + item.title + ' to the cart'}
|
|
77
77
|
size={size}
|
|
78
|
-
variant={ghost ? 'ghost' : '
|
|
78
|
+
variant={ghost ? 'ghost' : 'primary'}
|
|
79
79
|
rounded={ghost ? 'full' : 'xl'}
|
|
80
80
|
className={cn('px-1 lg:min-w-0 lg:px-2 xs:justify-start', buttonClx)}
|
|
81
81
|
onClick={inc}
|
|
@@ -88,7 +88,7 @@ const AddToCartWidget: React.FC<{
|
|
|
88
88
|
<Button
|
|
89
89
|
aria-label={'Add a ' + item.title + ' to cart'}
|
|
90
90
|
size={size}
|
|
91
|
-
variant='
|
|
91
|
+
variant='primary'
|
|
92
92
|
rounded='xl'
|
|
93
93
|
className={cn(buttonClx, className)}
|
|
94
94
|
onClick={inc}
|
|
@@ -78,7 +78,7 @@ const CheckoutPanel: React.FC<{
|
|
|
78
78
|
<DialogPortal>
|
|
79
79
|
<div id='PORTAL_OUTER'
|
|
80
80
|
className={cn(
|
|
81
|
-
'fixed top-0
|
|
81
|
+
'fixed top-0 shadow-lg ',
|
|
82
82
|
'animate-in data-[state=open]:fade-in-90 data-[state=open]:slide-in-from-bottom-10',
|
|
83
83
|
'sm:zoom-in-90 data-[state=open]:sm:slide-in-from-bottom-0',
|
|
84
84
|
'!max-w-none w-full h-full min-h-screen bg-transparent backdrop-blur-sm z-50'
|
|
@@ -57,7 +57,7 @@ const ProductCard: React.FC<ProductCardProps> = ({
|
|
|
57
57
|
aria-label='Placeholder'
|
|
58
58
|
role='img'
|
|
59
59
|
aria-roledescription='placeholder'
|
|
60
|
-
className='flex h-full items-center justify-center bg-
|
|
60
|
+
className='flex h-full items-center justify-center bg-background'
|
|
61
61
|
>
|
|
62
62
|
<Icons.barcode className='h-9 w-9 text-muted' aria-hidden='true' />
|
|
63
63
|
</div>
|