@hanzo/commerce 7.1.17 → 7.1.19

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.
@@ -122,10 +122,7 @@ const CarouselBuyCard: React.FC<{
122
122
  if (peek.role === 'single-family') {
123
123
 
124
124
  const sort = (): 'none' | 'asc' | 'desc' => {
125
- if (!uiSpec.singleFamily?.options) {
126
- return 'none'
127
- }
128
- const options = uiSpec.singleFamily.options
125
+ const options = uiSpec.singleFamily?.options ?? {}
129
126
  const showSlider = 'showSlider' in options ? options.showSlider! : true
130
127
  return ('sort' in options) ?
131
128
  options.sort!
@@ -46,7 +46,7 @@ const CartLineItem: React.FC<{
46
46
  'flex flex-col justify-start items-start text-sm font-sans',
47
47
  'border border-background rounded-sm p-1',
48
48
  selected ? 'border-foreground' : '',
49
- (itemClicked && !selected ? 'cursor-pointer hover:!border-muted-3' : 'cursor-default '),
49
+ (itemClicked && !selected ? 'cursor-pointer hover:!border-muted-4' : 'cursor-default '),
50
50
  className
51
51
  )}
52
52
  onClick={() => {itemClicked && itemClicked(item)}}
@@ -61,7 +61,7 @@ const CartLineItem: React.FC<{
61
61
  </div>
62
62
  <div className='flex flex-row items-center justify-between w-full'>
63
63
  <div className='flex flex-row items-center'>
64
- <AddToCartWidget variant='minimal' item={item} buttonClx='!h-8 md:!h-6' />
64
+ <AddToCartWidget variant='minimal' item={item} />
65
65
  {item.quantity > 1 && (<span className='pl-2.5'>{'@' + formatCurrencyValue(item.price)}</span>)}
66
66
  </div>
67
67
  <div className='flex flex-row gap-1 items-center justify-end'>
@@ -104,7 +104,7 @@ const CartPanel: React.FC<PropsWithChildren & {
104
104
  </Suspense>
105
105
  )}
106
106
  {(showShipping || showPromoCode) && (
107
- <div className='flex flex-col gap-0.5 py-1.5 border-t text-sm'>
107
+ <div className={'flex flex-col gap-0.5 py-1.5 text-sm ' + (!showPromoCode ? 'border-t' : '')} >
108
108
  <p className='flex justify-between'>
109
109
  <span className='text-muted-1'>Subtotal</span>
110
110
  <span className='font-semibold'>{cmmc.cartTotal === 0 ? '0' : formatCurrencyValue(cmmc.cartTotal)}</span>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzo/commerce",
3
- "version": "7.1.17",
3
+ "version": "7.1.19",
4
4
  "description": "e-commerce framework.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",