@hanzo/ui 3.0.17 → 3.0.19
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
package/primitives/carousel.tsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
3
|
import * as React from 'react'
|
|
4
|
-
import useEmblaCarousel, { type UseEmblaCarouselType } from 'embla-carousel-react'
|
|
5
|
-
import Autoplay from
|
|
4
|
+
import useEmblaCarousel, { type UseEmblaCarouselType, type EmblaOptionsType } from 'embla-carousel-react'
|
|
5
|
+
import Autoplay from 'embla-carousel-autoplay'
|
|
6
6
|
import { ArrowLeft, ArrowRight } from 'lucide-react'
|
|
7
7
|
|
|
8
8
|
import { cn } from '../util'
|
|
@@ -254,6 +254,7 @@ CarouselNext.displayName = 'CarouselNext'
|
|
|
254
254
|
|
|
255
255
|
export {
|
|
256
256
|
type CarouselApi,
|
|
257
|
+
type EmblaOptionsType as CarouselOptionsType,
|
|
257
258
|
Carousel,
|
|
258
259
|
CarouselContent,
|
|
259
260
|
CarouselItem,
|
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 bg-
|
|
29
|
+
className={cn('fixed inset-0 bg-background opacity-50', className)}
|
|
30
30
|
{...props}
|
|
31
31
|
/>
|
|
32
32
|
))
|
|
@@ -42,12 +42,12 @@ const DrawerContent = React.forwardRef<
|
|
|
42
42
|
<DrawerPrimitive.Content
|
|
43
43
|
ref={ref}
|
|
44
44
|
className={cn('fixed left-0 right-0 bottom-0 ',
|
|
45
|
-
'mt-24 flex h-[80%]
|
|
45
|
+
'mt-24 flex flex-col h-[80%] rounded-t-[10px] pt-6 border bg-background',
|
|
46
46
|
className
|
|
47
47
|
)}
|
|
48
48
|
{...props}
|
|
49
49
|
>
|
|
50
|
-
<div className='mx-auto
|
|
50
|
+
<div className='absolute left-0 right-0 mx-auto top-2 h-2 w-[100px] rounded-full bg-level-2 shrink-0' />
|
|
51
51
|
{children}
|
|
52
52
|
</DrawerPrimitive.Content>
|
|
53
53
|
</DrawerPortal>
|
package/primitives/index.ts
CHANGED
|
@@ -112,13 +112,13 @@ export default {
|
|
|
112
112
|
sm: "calc(var(--radius) - 4px)",
|
|
113
113
|
*/
|
|
114
114
|
none: '0px',
|
|
115
|
-
sm: '0.
|
|
116
|
-
DEFAULT: '0.
|
|
117
|
-
md: '0.
|
|
118
|
-
lg: '0.
|
|
119
|
-
xl: '
|
|
120
|
-
'2xl': '
|
|
121
|
-
'3xl': '
|
|
115
|
+
sm: '0.25rem',
|
|
116
|
+
DEFAULT: '0.5rem',
|
|
117
|
+
md: '0.5rem',
|
|
118
|
+
lg: '0.75rem',
|
|
119
|
+
xl: '1rem',
|
|
120
|
+
'2xl': '1.5rem',
|
|
121
|
+
'3xl': '2rem',
|
|
122
122
|
full: '9999px',
|
|
123
123
|
},
|
|
124
124
|
borderSpacing: spacing,
|