@hanzo/ui 3.5.1 → 3.5.3

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.5.1",
3
+ "version": "3.5.3",
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/",
@@ -19,7 +19,7 @@ const size = {
19
19
  xs: "h-8 px-2 text-xs",
20
20
  sm: "h-9 px-3 text-xs",
21
21
  square: 'h-10 py-2 px-2 text-sm aspect-square',
22
- default: "h-10 py-2 px-4 text-sm min-w-0",
22
+ default: "h-10 py-2 px-4 text-sm md:text-base min-w-0",
23
23
  lg: "h-10 px-8 text-sm md:text-base min-w-0 md:min-w-[260px] lg:min-w-[300px]",
24
24
  icon: "h-10 w-10",
25
25
  }
@@ -2,7 +2,7 @@ import React, { type PropsWithChildren } from 'react'
2
2
  import { cn } from '../util'
3
3
 
4
4
  const c = 'max-w-screen-2xl 2xl:w-[1500px] lg:mx-auto ' +
5
- 'flex flex-col justify-start items-stretch ' +
5
+ 'flex flex-col justify-start items-center ' +
6
6
  'p-4 md:px-6 lg:px-8 '
7
7
 
8
8
  const Main: React.FC<PropsWithChildren & {
@@ -33,10 +33,7 @@ const NavItems: React.FC<{
33
33
  }
34
34
  }
35
35
  else {
36
- internalClx+= 'min-w-0 lg:min-w-0 '
37
- }
38
- if (currentAs && currentAs === item.href) {
39
- internalClx += 'pointer-events-none '
36
+ internalClx += 'min-w-0 lg:min-w-0 '
40
37
  }
41
38
 
42
39
  const _itemClx = (itemClx) ? (typeof itemClx === 'string' ? itemClx : itemClx(item)) : ''