@hanzo/ui 0.5.15 → 0.5.16

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.
@@ -47,6 +47,9 @@ const _getClx = (specifier: string, section: CardSection): string => {
47
47
  case 'header': {
48
48
  result = 'border-none'
49
49
  } break
50
+ case 'footer': {
51
+ result = 'border-t-0'
52
+ } break
50
53
  }
51
54
  }
52
55
 
@@ -83,6 +86,10 @@ const CarteBlancheBlockComponent: React.FC<
83
86
  getClx('big-padding-content', 'content'),
84
87
  ].join(' ')
85
88
 
89
+ const footerclx = [
90
+ getClx('no-inner-borders', 'footer'),
91
+ ].join(' ')
92
+
86
93
  const noOuterBorders = specified('no-outer-borders')
87
94
  const contentLeft = specified('variant-content-left')
88
95
  const mobileContentLeft = specified('variant-mobile-content-left')
@@ -90,7 +97,7 @@ const CarteBlancheBlockComponent: React.FC<
90
97
  return (
91
98
  <Card className={cn('flex flex-col', className, noOuterBorders ? 'border-none' : '')} >
92
99
  {contentLeft || (mobileContentLeft && agent === 'phone') ? (
93
- <VariantContentLeft block={b} agent={agent} className={className} contentclx={contentclx} headingclx={headingclx}/>
100
+ <VariantContentLeft block={b} agent={agent} className={className} headingclx={headingclx} contentclx={contentclx} footerclx={footerclx}/>
94
101
  ) : (<>
95
102
  {(b.heading || b.topContent) && (
96
103
  <CardHeader className={cn('typography-img:m-0', headingclx)} >
@@ -108,7 +115,7 @@ const CarteBlancheBlockComponent: React.FC<
108
115
  </CardContent>
109
116
  )}
110
117
  {b.cta && (
111
- <CardFooter className={'grid grid-cols-1 gap-2 md:flex md:flex-row md:justify-center ' /*+ paddingclx*/} >
118
+ <CardFooter className={cn('grid grid-cols-1 gap-2 md:flex md:flex-row md:justify-center', footerclx)} >
112
119
  <CTABlockComponent block={b.cta} agent={agent}/>
113
120
  </CardFooter>
114
121
  )}
@@ -1,4 +1,4 @@
1
- import { EnhHeadingBlockComponent, type Block, type BlockComponentProps, type CarteBlancheBlock, CTABlockComponent } from '../..'
1
+ import { EnhHeadingBlockComponent, type CarteBlancheBlock, CTABlockComponent } from '../..'
2
2
  import {
3
3
  CardContent,
4
4
  CardFooter,
@@ -13,16 +13,18 @@ const VariantContentLeft: React.FC<{
13
13
  className?: string
14
14
  headingclx?: string
15
15
  contentclx?: string
16
+ footerclx?: string
16
17
  }> = ({
17
18
  block,
18
19
  agent,
19
20
  className,
20
21
  headingclx,
21
22
  contentclx,
23
+ footerclx,
22
24
  }) => {
23
- return (
25
+ return (<>
24
26
  <div className='flex gap-2'>
25
- {block.topContent && <Content blocks={block.topContent} agent={agent} className='self-start ml-6 mt-6'/>}
27
+ {block.topContent && <Content blocks={block.topContent} agent={agent} className='self-center ml-6 mt-6'/>}
26
28
  <div className='flex flex-col'>
27
29
  {block.heading && (
28
30
  <CardHeader className={cn('typography-img:m-0', headingclx)} >
@@ -34,14 +36,14 @@ const VariantContentLeft: React.FC<{
34
36
  <Content blocks={block.content} agent={agent}/>
35
37
  </CardContent>
36
38
  )}
37
- {block.cta && (
38
- <CardFooter className={'grid grid-cols-1 gap-2 md:flex md:flex-row md:justify-center ' /*+ paddingclx*/} >
39
- <CTABlockComponent block={block.cta} agent={agent}/>
40
- </CardFooter>
41
- )}
42
39
  </div>
43
40
  </div>
44
- )
41
+ {block.cta && (
42
+ <CardFooter className={cn('grid grid-cols-1 gap-2 md:flex md:flex-row md:justify-center mx-auto', footerclx)}>
43
+ <CTABlockComponent block={block.cta} agent={agent}/>
44
+ </CardFooter>
45
+ )}
46
+ </>)
45
47
  }
46
48
 
47
49
  export default VariantContentLeft
@@ -5,7 +5,7 @@ const Disclaimer: React.FC = () => (
5
5
  By entering your mobile number and submitting, you consent to receive text messages from Lux at the number provided.
6
6
  Message and data rates may apply. Message frequency varies.
7
7
  You can unsubscribe at any time by replying STOP.
8
- View our <a href='/assets/standard-docs/LUX-Privacy-Policy.pdf'>Privacy Policy</a> and <a href='/assets/standard-docs/LUX-NFT-Terms-and-Conditions.pdf'>Terms & conditions</a>.
8
+ View our <a href='/privacy'>Privacy Policy</a> and <a href='/terms'>Terms & conditions</a>.
9
9
  </div>
10
10
  )
11
11
 
@@ -30,8 +30,8 @@ const ContactDialog: React.FC<ButtonModalProps> = ({
30
30
  <DialogTrigger asChild>
31
31
  <Button {...buttonProps} >{buttonText}</Button>
32
32
  </DialogTrigger>
33
- <DialogContent className="sm:max-w-[500px] p-0 gap-0 light-theme">
34
- <DialogHeader className='py-6 text-foreground'>
33
+ <DialogContent className="sm:max-w-[500px] p-0 gap-0 bg-background border">
34
+ <DialogHeader className='py-6 text-foreground'>
35
35
  <DialogTitle className='text-4xl font-heading text-center text-inherit'>{title}</DialogTitle>
36
36
  {byline && (<DialogDescription className='text-inherit text-xl text-center'>{byline} </DialogDescription>)}
37
37
  </DialogHeader>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzo/ui",
3
- "version": "0.5.15",
3
+ "version": "0.5.16",
4
4
  "description": "Library that contains shared UI primitives, support for a common design system, and other boilerplate support.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -50,7 +50,7 @@ const DialogClose = React.forwardRef<
50
50
  <DialogPrimitive.Close
51
51
  ref={ref}
52
52
  className={cn(
53
- "absolute right-4 top-3 p-1 justify-self-start hover:brightness-105 hover:scale-110 duration-100 ring-1 ring-secondary-400 transition bg-secondary-500 hover:text-primary-text focus:outline-none rounded-full items-center",
53
+ "absolute right-4 top-3 p-1 justify-self-start hover:brightness-105 hover:scale-110 duration-100 ring-1 ring-muted transition bg-secondary-500 hover:text-primary-text focus:outline-none rounded-full items-center",
54
54
  className
55
55
  )}
56
56
  {...props}
@@ -3,12 +3,12 @@ import type { LinkDef } from '../../types'
3
3
  const legal: LinkDef[] = [
4
4
  {
5
5
  title: 'Terms and Conditions',
6
- href: '/assets/standard-docs/LUX-NFT-Terms-and-Conditions.pdf',
6
+ href: '/terms',
7
7
  newTab: true,
8
8
  },
9
9
  {
10
10
  title: 'Privacy Policy',
11
- href: '/assets/standard-docs/LUX-Privacy-Policy.pdf',
11
+ href: '/privacy',
12
12
  newTab: true,
13
13
  },
14
14
  ]