@hanzo/commerce 5.1.1 → 5.1.2

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.
@@ -90,7 +90,7 @@ const SelectCategoryItemCard: React.FC<React.HTMLAttributes<HTMLDivElement> & It
90
90
  isLoading ? (<Skeleton className={'h-8 w-full ' + className} />) : (
91
91
 
92
92
  <div className={cn('text-center flex flex-col justify-start items-center', className)}>
93
- <p className='font-nav text-center'>{category.title}</p>
93
+ <p className='font-heading text-center'>{category.title}</p>
94
94
  </div>
95
95
 
96
96
  )))
@@ -1,5 +1,5 @@
1
1
  'use client'
2
- import React, { Suspense, type PropsWithChildren } from 'react'
2
+ import React, { type PropsWithChildren } from 'react'
3
3
  import { observer } from 'mobx-react-lite'
4
4
 
5
5
  import { Button, ScrollArea } from '@hanzo/ui/primitives'
@@ -88,7 +88,7 @@ const CartPanel: React.FC<PropsWithChildren & {
88
88
  />
89
89
  ))}
90
90
  </>)}
91
- {showPromoCode && (<Suspense><PromoCode/></Suspense>)}
91
+ {showPromoCode && <PromoCode/>}
92
92
  {(showShipping || showPromoCode) && (
93
93
  <div className='flex flex-col gap-1 py-2 border-t'>
94
94
  <p className='flex justify-between'>
@@ -4,18 +4,13 @@ import React, { useEffect, useState } from 'react'
4
4
  // @ts-ignore
5
5
  import { ApplePay, GooglePay, CreditCard, PaymentForm } from 'react-square-web-payments-sdk'
6
6
 
7
- import { ChevronRight } from 'lucide-react'
8
7
  import { observer } from 'mobx-react-lite'
9
8
 
10
9
  import {
11
- Accordion,
12
- AccordionContent,
13
- AccordionItem,
14
- AccordionTrigger,
15
10
  ApplyTypography,
16
11
  Button,
12
+ Separator,
17
13
  Skeleton,
18
- buttonVariants
19
14
  } from '@hanzo/ui/primitives'
20
15
 
21
16
  import { cn } from '@hanzo/ui/util'
@@ -155,10 +150,10 @@ const PayWithCard: React.FC<PaymentMethodComponentProps> = observer(({
155
150
  >
156
151
  <ApplyTypography className='flex flex-col mt-6 gap-1'>
157
152
  {transactionStatus === 'paid' ? (
158
- <h6 className='mx-auto font-nav'>Processing your payment...</h6>
153
+ <h6 className='mx-auto'>Processing your payment...</h6>
159
154
  ) : transactionStatus === 'confirmed' ? (
160
155
  <div className='flex flex-col gap-4'>
161
- <h5 className='mx-auto font-nav'>Payment confirmed!</h5>
156
+ <h5 className='mx-auto'>Payment confirmed!</h5>
162
157
  <p className='mx-auto'>Thank you for your purchase.</p>
163
158
  <Button onClick={onDone}>Continue</Button>
164
159
  </div>
@@ -168,7 +163,7 @@ const PayWithCard: React.FC<PaymentMethodComponentProps> = observer(({
168
163
  <ApplePay/>
169
164
 
170
165
  <div className='flex gap-2 whitespace-nowrap items-center my-1 sm:my-3 text-xs text-muted'>
171
- <hr className='grow border'/><div className='shrink-0 mx-1'>or</div><hr className='grow border'/>
166
+ <Separator className='grow w-auto'/><div className='shrink-0 mx-1'>or</div><Separator className='grow w-auto'/>
172
167
  </div>
173
168
 
174
169
  <PaymentMethods />
@@ -173,7 +173,7 @@ const PayWithCrypto: React.FC<PaymentMethodComponentProps> = observer(({
173
173
 
174
174
  return (
175
175
  <div className='flex flex-col gap-6 mt-6'>
176
- <div className='flex flex-col gap-2 w-full'>
176
+ <div className='flex flex-col w-full'>
177
177
  <ContactForm form={contactForm}/>
178
178
  <div className='flex gap-2 grid grid-cols-3'>
179
179
  <Select onValueChange={(token) => {/*ONLY ETH setSelectedToken(token) */}} defaultValue='eth'>
@@ -124,7 +124,7 @@ const SelectCategoryItemPanel: React.FC<
124
124
  isLoading ? (<Skeleton className={'h-12 w-pr-80 mx-auto ' + className} />) : (
125
125
 
126
126
  <div className={cn('flex flex-col justify-start items-center', className)}>
127
- <h3 className='text-base md:text-lg lg:text-2xl font-nav text-center'>
127
+ <h3 className='text-base md:text-lg lg:text-2xl font-heading text-center'>
128
128
  {category.parentTitle && (
129
129
  <span>{category.parentTitle}<br className='md:hidden' /><span className='xs:hidden md:inline '>,&nbsp;</span></span>
130
130
  )}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzo/commerce",
3
- "version": "5.1.1",
3
+ "version": "5.1.2",
4
4
  "description": "Library with shopping cart components.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -39,8 +39,8 @@
39
39
  "square": "^35.0.0"
40
40
  },
41
41
  "peerDependencies": {
42
- "@hanzo/auth": "^2.3.2",
43
- "@hanzo/ui": "^3.0.19",
42
+ "@hanzo/auth": "^2.3.3",
43
+ "@hanzo/ui": "^3.1.0",
44
44
  "@hookform/resolvers": "^3.3.4",
45
45
  "firebase": "^10.8.0",
46
46
  "lucide-react": "^0.307.0",