@hanzo/commerce 7.1.4 → 7.1.6

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
  })
@@ -97,13 +97,14 @@ const CartPanel: React.FC<PropsWithChildren & {
97
97
  />
98
98
  ))}
99
99
  </>)}
100
+ <div className={totalClx}>
100
101
  {showPromoCode && (
101
102
  <Suspense>
102
103
  <PromoCode/>
103
104
  </Suspense>
104
105
  )}
105
106
  {(showShipping || showPromoCode) && (
106
- <div className='flex flex-col gap-1 py-2 border-t'>
107
+ <div className='flex flex-col gap-1 py-2 border-t text-sm'>
107
108
  <p className='flex justify-between'>
108
109
  <span className='text-muted-1'>Subtotal</span>
109
110
  <span className='font-semibold'>{cmmc.cartTotal === 0 ? '0' : formatCurrencyValue(cmmc.cartTotal)}</span>
@@ -122,10 +123,11 @@ const CartPanel: React.FC<PropsWithChildren & {
122
123
  )}
123
124
  </div>
124
125
  )}
125
- <p className={cn('border-t py-2 flex justify-between', totalClx)}>
126
+ <p className={cn('border-t py-2 flex justify-between')}>
126
127
  TOTAL
127
128
  <span className='font-semibold'>{formatCurrencyValue(showPromoCode ? cmmc.promoAppliedCartTotal : cmmc.cartTotal)}</span>
128
129
  </p>
130
+ </div>
129
131
  </>))
130
132
 
131
133
  const scrolling = (): boolean => (cmmc.cartItems.length > scrollAfter)
@@ -78,7 +78,7 @@ const PromoCode = observer(() => {
78
78
  render={({ field }) => (
79
79
  <FormItem className='w-full'>
80
80
  <FormControl>
81
- <Input {...field} placeholder='Discount or invite code' onInput={removePromoCode}/>
81
+ <Input {...field} className='h-9' placeholder='Discount or invite code' onInput={removePromoCode}/>
82
82
  </FormControl>
83
83
  </FormItem>
84
84
  )}
@@ -86,7 +86,7 @@ const PromoCode = observer(() => {
86
86
  {codeAccepted ? (
87
87
  <Check/>
88
88
  ) : (
89
- <Button variant='outline' className='!w-fit !min-w-0 font-inter'>Apply</Button>
89
+ <Button variant='outline' className='!w-fit !min-w-0 font-inter text-muted text-sm'>Apply</Button>
90
90
  )}
91
91
  </div>
92
92
  </form>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzo/commerce",
3
- "version": "7.1.4",
3
+ "version": "7.1.6",
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",