@hanzo/commerce 7.1.2 → 7.1.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.
@@ -172,8 +172,8 @@ const AddToCartWidget: React.FC<{
172
172
  className={cn(buttonClx, className)}
173
173
  onClick={inc}
174
174
  >
175
- <Icons.plus className='h-5 w-5 mr-1' aria-hidden='true'/>
176
- <span className='mr-1'>Add</span>
175
+ <span className='m1-1'>Add</span>
176
+ <Icons.plus className='h-5 w-5 ml-1' aria-hidden='true'/>
177
177
  </Button>
178
178
  ))
179
179
  })
@@ -55,7 +55,6 @@ const CarouselBuyCard: React.FC<{
55
55
  clx?: string
56
56
  selectorClx?: string
57
57
  addBtnClx?: string
58
- buttonsAreaClx?: string
59
58
  mobile?: boolean
60
59
  onQuantityChanged?: (sku: string, oldV: number, newV: number) => void
61
60
  }> = ({
@@ -64,7 +63,6 @@ const CarouselBuyCard: React.FC<{
64
63
  clx='',
65
64
  selectorClx='',
66
65
  addBtnClx='',
67
- buttonsAreaClx='',
68
66
  mobile=false,
69
67
  onQuantityChanged,
70
68
  }) => {
@@ -235,8 +233,8 @@ const CarouselBuyCard: React.FC<{
235
233
  />
236
234
  ))}
237
235
  <Buttons clx={cn(
238
- 'self-stretch mt-8 flex flex-col items-center gap-3 shrink-0 grow-0',
239
- buttonsAreaClx
236
+ 'self-stretch mt-8 flex flex-col items-center gap-3',
237
+ (r.current?.single?.scrollable ? 'shrink-0' : '')
240
238
  )}/>
241
239
  </div >
242
240
  )
@@ -248,10 +248,8 @@ const AllVariantsCarousel: React.FC<MultiFamilySelectorProps> = ({
248
248
  </>)}
249
249
  </Carousel>
250
250
  )}
251
- <div className='flex flex-col items-center justify-start'>
252
- <ItemInfo labelClx='!text-base font-medium'/>
253
- <Swatches clx='mt-2'/>
254
- </div>
251
+ <ItemInfo labelClx='!text-base font-medium'/>
252
+ <Swatches clx='mt-2'/>
255
253
  </div>
256
254
  )
257
255
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzo/commerce",
3
- "version": "7.1.2",
3
+ "version": "7.1.3",
4
4
  "description": "e-commerce framework.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "peerDependencies": {
39
39
  "@hanzo/auth": "^2.4.10",
40
- "@hanzo/ui": "^3.8.17",
40
+ "@hanzo/ui": "^3.8.21",
41
41
  "@hookform/resolvers": "^3.3.4",
42
42
  "@radix-ui/react-radio-group": "^1.1.3",
43
43
  "firebase": "^10.8.0",