@hanzo/ui 3.0.11 → 3.0.13
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 +1 -1
- package/primitives/drawer.tsx +2 -2
- package/primitives/sonner.tsx +11 -11
package/package.json
CHANGED
package/primitives/drawer.tsx
CHANGED
|
@@ -26,7 +26,7 @@ const DrawerOverlay = React.forwardRef<
|
|
|
26
26
|
>(({ className, ...props }, ref) => (
|
|
27
27
|
<DrawerPrimitive.Overlay
|
|
28
28
|
ref={ref}
|
|
29
|
-
className={cn('fixed inset-0 z-20 bg-
|
|
29
|
+
className={cn('fixed inset-0 z-20 bg-[#aaffaa]', className)}
|
|
30
30
|
{...props}
|
|
31
31
|
/>
|
|
32
32
|
))
|
|
@@ -41,7 +41,7 @@ const DrawerContent = React.forwardRef<
|
|
|
41
41
|
<DrawerPrimitive.Content
|
|
42
42
|
ref={ref}
|
|
43
43
|
className={cn(
|
|
44
|
-
'fixed inset-x-0 bottom-0 z-
|
|
44
|
+
'fixed inset-x-0 bottom-0 z-[25] mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background',
|
|
45
45
|
className
|
|
46
46
|
)}
|
|
47
47
|
{...props}
|
package/primitives/sonner.tsx
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
'use client'
|
|
2
2
|
|
|
3
|
-
import { useTheme } from
|
|
4
|
-
import { Toaster as Sonner } from
|
|
5
|
-
import { toast } from
|
|
3
|
+
import { useTheme } from 'next-themes'
|
|
4
|
+
import { Toaster as Sonner } from 'sonner'
|
|
5
|
+
import { toast } from 'sonner'
|
|
6
6
|
|
|
7
7
|
type ToasterProps = React.ComponentProps<typeof Sonner>
|
|
8
8
|
|
|
9
9
|
const Toaster = ({ ...props }: ToasterProps) => {
|
|
10
|
-
const { theme =
|
|
10
|
+
const { theme = 'system' } = useTheme()
|
|
11
11
|
|
|
12
12
|
return (
|
|
13
13
|
<Sonner
|
|
14
|
-
theme={theme as ToasterProps[
|
|
15
|
-
className=
|
|
14
|
+
theme={theme as ToasterProps['theme']}
|
|
15
|
+
className='toaster group'
|
|
16
16
|
toastOptions={{
|
|
17
17
|
classNames: {
|
|
18
18
|
toast:
|
|
19
|
-
|
|
20
|
-
description:
|
|
19
|
+
'group toast group-[.toaster]:bg-level-2 group-[.toaster]:text-foreground group-[.toaster]:border-muted-3 group-[.toaster]:shadow-lg',
|
|
20
|
+
description: 'group-[.toast]:text-foreground',
|
|
21
21
|
actionButton:
|
|
22
|
-
|
|
22
|
+
'group-[.toast]:bg-primary group-[.toast]:text-primary-fg',
|
|
23
23
|
cancelButton:
|
|
24
|
-
|
|
24
|
+
'group-[.toast]:bg-transparent group-[.toast]:text-foreground',
|
|
25
25
|
},
|
|
26
26
|
}}
|
|
27
27
|
{...props}
|