@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzo/ui",
3
- "version": "3.0.17",
3
+ "version": "3.0.19",
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/",
@@ -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 "embla-carousel-autoplay"
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,
@@ -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-[#ffaaaa]', className)}
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%] flex-col rounded-t-[10px] border bg-background',
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 mt-4 h-2 w-[100px] rounded-full bg-level-1' />
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>
@@ -137,6 +137,7 @@ export {
137
137
 
138
138
  export {
139
139
  type CarouselApi,
140
+ type CarouselOptionsType,
140
141
  Carousel,
141
142
  CarouselContent,
142
143
  CarouselItem,
@@ -112,13 +112,13 @@ export default {
112
112
  sm: "calc(var(--radius) - 4px)",
113
113
  */
114
114
  none: '0px',
115
- sm: '0.125rem',
116
- DEFAULT: '0.25rem',
117
- md: '0.375rem',
118
- lg: '0.5rem',
119
- xl: '0.75rem',
120
- '2xl': '1rem',
121
- '3xl': '1.5rem',
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,