Skip to content

Commit

Permalink
[email protected]: +ApplyTypography + all div props;
Browse files Browse the repository at this point in the history
  • Loading branch information
artemis-prime committed May 31, 2024
1 parent d595aa1 commit 563afb9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/commerce/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hanzo/commerce",
"version": "7.0.9",
"version": "7.0.11",
"description": "e-commerce framework.",
"publishConfig": {
"registry": "https://registry.npmjs.org/",
Expand Down Expand Up @@ -36,7 +36,7 @@
},
"peerDependencies": {
"@hanzo/auth": "^2.4.10",
"@hanzo/ui": "^3.8.15",
"@hanzo/ui": "^3.8.17",
"@hookform/resolvers": "^3.3.4",
"@radix-ui/react-radio-group": "^1.1.3",
"firebase": "^10.8.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hanzo/ui",
"version": "3.8.16",
"version": "3.8.18",
"description": "Library that contains shared UI primitives, support for a common design system, and other boilerplate support.",
"publishConfig": {
"registry": "https://registry.npmjs.org/",
Expand Down
8 changes: 4 additions & 4 deletions packages/ui/primitives/apply-typography.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ import { cn } from '../util'
type TypographySize = 'responsive' | 'sm' | 'base' | 'lg' | 'xl' // if t-shirt size, do *not* be responsive

const ApplyTypography: React.FC<
PropsWithChildren & {
className?: string,
React.ComponentProps<'div'> & {
asTag?: 'div' | 'section' | 'nav' | 'main' | 'article',
size?: TypographySize
}
> = ({
children,
className='',
asTag='div',
size='responsive'
size='responsive',
...rest
}) => {

// responsive version by default
Expand Down Expand Up @@ -43,7 +43,7 @@ const ApplyTypography: React.FC<

const Tag = asTag
return (
<Tag className={cn(typoClasses, className)}>
<Tag {...rest} className={cn(typoClasses, className)}>
{children}
</Tag>
)
Expand Down

0 comments on commit 563afb9

Please sign in to comment.