@hanzo/ui 3.4.2 → 3.4.3

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.4.2",
3
+ "version": "3.4.3",
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/",
@@ -18,7 +18,7 @@ type CarouselProps = {
18
18
  plugins?: CarouselPlugins
19
19
  orientation?: 'horizontal' | 'vertical'
20
20
  setApi?: (api: CarouselApi) => void
21
- onSelect?: (api: CarouselApi) => void
21
+ onCarouselSelect?: (api: CarouselApi) => void
22
22
  }
23
23
 
24
24
  type CarouselContextProps = {
@@ -57,7 +57,7 @@ const Carousel = React.forwardRef<
57
57
  plugins,
58
58
  className,
59
59
  children,
60
- onSelect: _onSelect,
60
+ onCarouselSelect,
61
61
  ...props
62
62
  },
63
63
  ref
@@ -79,8 +79,8 @@ const Carousel = React.forwardRef<
79
79
 
80
80
  setCanScrollPrev(api.canScrollPrev())
81
81
  setCanScrollNext(api.canScrollNext())
82
- if (_onSelect) {
83
- _onSelect(api)
82
+ if (onCarouselSelect) {
83
+ onCarouselSelect(api)
84
84
  }
85
85
  }, [])
86
86