@hanzo/ui 3.0.3 → 3.0.4

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.0.3",
3
+ "version": "3.0.4",
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/",
@@ -61,7 +61,7 @@ const SheetContent = React.forwardRef<
61
61
  SheetContentProps &
62
62
  {
63
63
  closeButtonClass? : string
64
- closeElement: ReactNode
64
+ closeElement?: ReactNode
65
65
  centerElement?: ReactNode
66
66
  duplicateCloseOnBottom?: boolean
67
67
  }
@@ -88,10 +88,12 @@ const SheetContent = React.forwardRef<
88
88
  >
89
89
  {children}
90
90
 
91
- <SheetPrimitive.Close className={cn(closeUIclx, 'absolute z-10 top-3', xOfCloseUIClass, closeButtonClass)}>
92
- {closeElement}
93
- </SheetPrimitive.Close>
94
- {duplicateCloseOnBottom && (
91
+ {closeElement && (
92
+ <SheetPrimitive.Close className={cn(closeUIclx, 'absolute z-10 top-3', xOfCloseUIClass, closeButtonClass)}>
93
+ {closeElement}
94
+ </SheetPrimitive.Close>
95
+ )}
96
+ {closeElement && duplicateCloseOnBottom && (
95
97
  <SheetPrimitive.Close className={cn(closeUIclx, 'absolute z-10 bottom-3', xOfCloseUIClass, closeButtonClass)}>
96
98
  {closeElement}
97
99
  </SheetPrimitive.Close>