@hanzo/ui 3.2.0 → 3.3.0
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 +2 -2
- package/primitives/carousel.tsx +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzo/ui",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
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/",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"tailwind-merge": "^2.2.0",
|
|
68
68
|
"tailwindcss-animate": "^1.0.6",
|
|
69
69
|
"tailwindcss-interaction-media": "^0.1.0",
|
|
70
|
-
"vaul": "^0.
|
|
70
|
+
"vaul": "^0.9.0"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
73
|
"@hookform/resolvers": "^3.3.2",
|
package/primitives/carousel.tsx
CHANGED
|
@@ -145,6 +145,7 @@ const Carousel = React.forwardRef<
|
|
|
145
145
|
className={cn('relative', className)}
|
|
146
146
|
role='region'
|
|
147
147
|
aria-roledescription='carousel'
|
|
148
|
+
data-vaul-no-drag
|
|
148
149
|
{...props}
|
|
149
150
|
>
|
|
150
151
|
{children}
|
|
@@ -162,7 +163,7 @@ const CarouselContent = React.forwardRef<
|
|
|
162
163
|
const { carouselRef, orientation } = useCarousel()
|
|
163
164
|
|
|
164
165
|
return (
|
|
165
|
-
<div ref={carouselRef} className='overflow-hidden'>
|
|
166
|
+
<div ref={carouselRef} className='overflow-hidden' data-vaul-no-drag >
|
|
166
167
|
<div
|
|
167
168
|
ref={ref}
|
|
168
169
|
className={cn(
|
|
@@ -188,6 +189,7 @@ const CarouselItem = React.forwardRef<
|
|
|
188
189
|
ref={ref}
|
|
189
190
|
role='group'
|
|
190
191
|
aria-roledescription='slide'
|
|
192
|
+
data-vaul-no-drag
|
|
191
193
|
className={cn(
|
|
192
194
|
'min-w-0 shrink-0 grow-0 basis-full',
|
|
193
195
|
orientation === 'horizontal' ? 'pl-4' : 'pt-4',
|