@hanzo/ui 3.8.17 → 3.8.18

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzo/ui",
3
- "version": "3.8.17",
3
+ "version": "3.8.18",
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/",
@@ -5,8 +5,7 @@ import { cn } from '../util'
5
5
  type TypographySize = 'responsive' | 'sm' | 'base' | 'lg' | 'xl' // if t-shirt size, do *not* be responsive
6
6
 
7
7
  const ApplyTypography: React.FC<
8
- PropsWithChildren & {
9
- className?: string,
8
+ React.ComponentProps<'div'> & {
10
9
  asTag?: 'div' | 'section' | 'nav' | 'main' | 'article',
11
10
  size?: TypographySize
12
11
  }
@@ -14,7 +13,8 @@ const ApplyTypography: React.FC<
14
13
  children,
15
14
  className='',
16
15
  asTag='div',
17
- size='responsive'
16
+ size='responsive',
17
+ ...rest
18
18
  }) => {
19
19
 
20
20
  // responsive version by default
@@ -43,7 +43,7 @@ const ApplyTypography: React.FC<
43
43
 
44
44
  const Tag = asTag
45
45
  return (
46
- <Tag className={cn(typoClasses, className)}>
46
+ <Tag {...rest} className={cn(typoClasses, className)}>
47
47
  {children}
48
48
  </Tag>
49
49
  )