@yamada-ui/carousel 0.1.11 → 0.2.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.
@@ -140,7 +140,7 @@ var CarouselControl = (0, import_core2.forwardRef)(
140
140
  ref,
141
141
  className: (0, import_utils2.cx)("ui-carousel-control", className),
142
142
  colorScheme,
143
- isRound: true,
143
+ isRounded: true,
144
144
  __css: css,
145
145
  ...rest
146
146
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  CarouselControlNext,
3
3
  CarouselControlPrev
4
- } from "./chunk-FDF2QUCY.mjs";
4
+ } from "./chunk-W7IEYNRW.mjs";
5
5
  import "./chunk-4P3A5PTO.mjs";
6
6
  export {
7
7
  CarouselControlNext,
@@ -3,6 +3,9 @@ import { HTMLUIProps } from '@yamada-ui/core';
3
3
  import { FC } from 'react';
4
4
 
5
5
  type CarouselIndicatorsOptions = {
6
+ /**
7
+ * The custom curousel indicator to use.
8
+ */
6
9
  component?: FC<{
7
10
  index: number;
8
11
  isSelected: boolean;
@@ -7,6 +7,9 @@ import '@yamada-ui/utils';
7
7
  import 'embla-carousel-react';
8
8
 
9
9
  type CarouselSlideOptions = {
10
+ /**
11
+ * The CSS `width` property.
12
+ */
10
13
  size?: UIProps['width'];
11
14
  };
12
15
  type CarouselSlideProps = HTMLUIProps<'div'> & UseCarouselSlideProps & CarouselSlideOptions;
@@ -1,6 +1,6 @@
1
1
  import * as _yamada_ui_core from '@yamada-ui/core';
2
2
  import { ThemeProps, HTMLUIProps, Token, UIProps } from '@yamada-ui/core';
3
- import { UseCarouselProps, Orientation, Align, ContainScroll } from './use-carousel.js';
3
+ import { UseCarouselProps } from './use-carousel.js';
4
4
  import { CarouselControlProps } from './carousel-control.js';
5
5
  import { CarouselIndicatorsProps } from './carousel-indicators.js';
6
6
  import 'react';
@@ -9,27 +9,129 @@ import '@yamada-ui/utils';
9
9
  import 'embla-carousel-react';
10
10
 
11
11
  type CarouselOptions = {
12
- orientation?: Token<Orientation>;
13
- align?: Token<Align>;
14
- containScroll?: Token<ContainScroll>;
12
+ /**
13
+ * The orientation of the carousel.
14
+ *
15
+ * @default 'horizontal'
16
+ */
17
+ orientation?: Token<'vertical' | 'horizontal'>;
18
+ /**
19
+ * The alignment of the carousel.
20
+ *
21
+ * @default 'center'
22
+ */
23
+ align?: Token<'start' | 'center' | 'end' | number>;
24
+ /**
25
+ * Clear leading and trailing empty space that causes excessive scrolling.
26
+ * Use trimSnaps to only use snap points that trigger scrolling or keepSnaps to keep them.
27
+ *
28
+ * @default ''
29
+ */
30
+ containScroll?: Token<'trimSnaps' | 'keepSnaps' | ''>;
31
+ /**
32
+ * The number of slides that should be scrolled with next or previous buttons.
33
+ *
34
+ * @default 1
35
+ */
15
36
  slidesToScroll?: Token<number>;
37
+ /**
38
+ * If `true`, momentum scrolling will be enabled.
39
+ *
40
+ * @default false
41
+ */
16
42
  dragFree?: Token<boolean>;
43
+ /**
44
+ * If `true`, carousel can be scrolled with mouse and touch interactions.
45
+ *
46
+ * @default true
47
+ */
17
48
  draggable?: Token<boolean>;
49
+ /**
50
+ * Choose a fraction representing the percentage portion of a slide that needs to be visible in order to be considered in view.
51
+ *
52
+ * @default 0
53
+ */
18
54
  inViewThreshold?: Token<number>;
55
+ /**
56
+ * If `true`, infinite looping.
57
+ * Automatically falls back to false if slide content isn't enough to loop.
58
+ *
59
+ * @default true
60
+ */
19
61
  loop?: Token<boolean>;
62
+ /**
63
+ * If `true`, allow the carousel to skip scroll snaps if it's dragged vigorously.
64
+ * Note that this option will be ignored if the dragFree option is set to true.
65
+ *
66
+ * @default false
67
+ */
20
68
  skipSnaps?: Token<boolean>;
69
+ /**
70
+ * Adjusts scroll speed when triggered by any of the methods.
71
+ * Higher numbers enables faster scrolling.
72
+ *
73
+ * @default 10
74
+ */
21
75
  speed?: Token<number>;
76
+ /**
77
+ * The number for the autoplay interval of the carousel.
78
+ *
79
+ * @default 4000
80
+ */
22
81
  delay?: Token<number>;
82
+ /**
83
+ * If `true`, the carousel will be autoplay.
84
+ *
85
+ * @default false
86
+ */
23
87
  autoplay?: Token<boolean>;
88
+ /**
89
+ * If `true`, autoplay will pause when the mouse entries over.
90
+ *
91
+ * @default true
92
+ */
24
93
  stopMouseEnterAutoplay?: Token<boolean>;
94
+ /**
95
+ * If `true`, gap will be treated as part of the carousel slide size.
96
+ *
97
+ * @default true
98
+ */
25
99
  includeGapInSize?: Token<boolean>;
100
+ /**
101
+ * The CSS `width` property.
102
+ */
26
103
  slideSize?: UIProps['width'];
27
- inner?: HTMLUIProps<'div'>;
104
+ /**
105
+ * Props for carousel inner element.
106
+ */
107
+ innerProps?: HTMLUIProps<'div'>;
108
+ /**
109
+ * If `true`, display the carousel control buttons.
110
+ *
111
+ * @default true
112
+ */
28
113
  withControls?: Token<boolean>;
114
+ /**
115
+ * Props for carousel control element.
116
+ */
29
117
  controlProps?: CarouselControlProps;
118
+ /**
119
+ * Props for previous of the carousel control element.
120
+ */
30
121
  controlPrevProps?: CarouselControlProps;
122
+ /**
123
+ * Props for next of the carousel control element.
124
+ */
31
125
  controlNextProps?: CarouselControlProps;
126
+ /**
127
+ * If `true`, display the carousel indicator buttons.
128
+ *
129
+ * @default true
130
+ */
32
131
  withIndicators?: Token<boolean>;
132
+ /**
133
+ * Props for carousel indicators element.
134
+ */
33
135
  indicatorsProps?: CarouselIndicatorsProps;
34
136
  };
35
137
  type CarouselProps = ThemeProps<'Carousel'> & Omit<HTMLUIProps<'div'>, 'onChange' | 'draggable'> & Pick<UseCarouselProps, 'index' | 'defaultIndex' | 'onChange' | 'onScrollProgress'> & CarouselOptions;
package/dist/carousel.js CHANGED
@@ -360,7 +360,7 @@ var CarouselControl = (0, import_core3.forwardRef)(
360
360
  ref,
361
361
  className: (0, import_utils3.cx)("ui-carousel-control", className),
362
362
  colorScheme,
363
- isRound: true,
363
+ isRounded: true,
364
364
  __css: css,
365
365
  ...rest
366
366
  }
@@ -457,7 +457,7 @@ var Carousel = (0, import_core5.forwardRef)(
457
457
  });
458
458
  const {
459
459
  className,
460
- inner,
460
+ innerProps,
461
461
  withControls = true,
462
462
  controlProps,
463
463
  controlPrevProps,
@@ -495,7 +495,7 @@ var Carousel = (0, import_core5.forwardRef)(
495
495
  children: [
496
496
  customCarouselControlPrev != null ? customCarouselControlPrev : computedWithControls ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(CarouselControlPrev, { ...controlProps, ...controlPrevProps }) : null,
497
497
  customCarouselControlNext != null ? customCarouselControlNext : computedWithControls ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(CarouselControlNext, { ...controlProps, ...controlNextProps }) : null,
498
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(CarouselSlides, { ...getSlidesProps({ ...(0, import_utils5.filterUndefined)({ h, minH }), ...inner }), children: cloneSlideChildren }),
498
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(CarouselSlides, { ...getSlidesProps({ ...(0, import_utils5.filterUndefined)({ h, minH }), ...innerProps }), children: cloneSlideChildren }),
499
499
  customCarouselIndicators != null ? customCarouselIndicators : computedWithIndicators ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(CarouselIndicators, { ...indicatorsProps }) : null,
500
500
  otherChildren
501
501
  ]
package/dist/carousel.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Carousel
3
- } from "./chunk-ASYTKKOY.mjs";
4
- import "./chunk-FDF2QUCY.mjs";
3
+ } from "./chunk-WQL2NFWH.mjs";
4
+ import "./chunk-W7IEYNRW.mjs";
5
5
  import "./chunk-YF54MDFK.mjs";
6
6
  import "./chunk-BWFAE3UJ.mjs";
7
7
  import "./chunk-4P3A5PTO.mjs";
@@ -71,7 +71,7 @@ var CarouselControl = forwardRef(
71
71
  ref,
72
72
  className: cx("ui-carousel-control", className),
73
73
  colorScheme,
74
- isRound: true,
74
+ isRounded: true,
75
75
  __css: css,
76
76
  ...rest
77
77
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  CarouselControlNext,
3
3
  CarouselControlPrev
4
- } from "./chunk-FDF2QUCY.mjs";
4
+ } from "./chunk-W7IEYNRW.mjs";
5
5
  import {
6
6
  CarouselIndicators
7
7
  } from "./chunk-YF54MDFK.mjs";
@@ -73,7 +73,7 @@ var Carousel = forwardRef(
73
73
  });
74
74
  const {
75
75
  className,
76
- inner,
76
+ innerProps,
77
77
  withControls = true,
78
78
  controlProps,
79
79
  controlPrevProps,
@@ -111,7 +111,7 @@ var Carousel = forwardRef(
111
111
  children: [
112
112
  customCarouselControlPrev != null ? customCarouselControlPrev : computedWithControls ? /* @__PURE__ */ jsx(CarouselControlPrev, { ...controlProps, ...controlPrevProps }) : null,
113
113
  customCarouselControlNext != null ? customCarouselControlNext : computedWithControls ? /* @__PURE__ */ jsx(CarouselControlNext, { ...controlProps, ...controlNextProps }) : null,
114
- /* @__PURE__ */ jsx(CarouselSlides, { ...getSlidesProps({ ...filterUndefined({ h, minH }), ...inner }), children: cloneSlideChildren }),
114
+ /* @__PURE__ */ jsx(CarouselSlides, { ...getSlidesProps({ ...filterUndefined({ h, minH }), ...innerProps }), children: cloneSlideChildren }),
115
115
  customCarouselIndicators != null ? customCarouselIndicators : computedWithIndicators ? /* @__PURE__ */ jsx(CarouselIndicators, { ...indicatorsProps }) : null,
116
116
  otherChildren
117
117
  ]
package/dist/index.js CHANGED
@@ -319,7 +319,7 @@ var Carousel = (0, import_core2.forwardRef)(
319
319
  });
320
320
  const {
321
321
  className,
322
- inner,
322
+ innerProps,
323
323
  withControls = true,
324
324
  controlProps,
325
325
  controlPrevProps,
@@ -357,7 +357,7 @@ var Carousel = (0, import_core2.forwardRef)(
357
357
  children: [
358
358
  customCarouselControlPrev != null ? customCarouselControlPrev : computedWithControls ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CarouselControlPrev, { ...controlProps, ...controlPrevProps }) : null,
359
359
  customCarouselControlNext != null ? customCarouselControlNext : computedWithControls ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CarouselControlNext, { ...controlProps, ...controlNextProps }) : null,
360
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CarouselSlides, { ...getSlidesProps({ ...(0, import_utils2.filterUndefined)({ h, minH }), ...inner }), children: cloneSlideChildren }),
360
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CarouselSlides, { ...getSlidesProps({ ...(0, import_utils2.filterUndefined)({ h, minH }), ...innerProps }), children: cloneSlideChildren }),
361
361
  customCarouselIndicators != null ? customCarouselIndicators : computedWithIndicators ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CarouselIndicators, { ...indicatorsProps }) : null,
362
362
  otherChildren
363
363
  ]
@@ -469,7 +469,7 @@ var CarouselControl = (0, import_core4.forwardRef)(
469
469
  ref,
470
470
  className: (0, import_utils4.cx)("ui-carousel-control", className),
471
471
  colorScheme,
472
- isRound: true,
472
+ isRounded: true,
473
473
  __css: css,
474
474
  ...rest
475
475
  }
package/dist/index.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Carousel
3
- } from "./chunk-ASYTKKOY.mjs";
3
+ } from "./chunk-WQL2NFWH.mjs";
4
4
  import {
5
5
  CarouselControlNext,
6
6
  CarouselControlPrev
7
- } from "./chunk-FDF2QUCY.mjs";
7
+ } from "./chunk-W7IEYNRW.mjs";
8
8
  import {
9
9
  CarouselIndicators
10
10
  } from "./chunk-YF54MDFK.mjs";
@@ -1,45 +1,141 @@
1
+ import * as _yamada_ui_core from '@yamada-ui/core';
2
+ import { HTMLUIProps, UIProps, CSSUIObject } from '@yamada-ui/core';
1
3
  import * as react from 'react';
2
4
  import { IconButtonProps } from '@yamada-ui/button';
3
- import { HTMLUIProps, CSSUIObject } from '@yamada-ui/core';
4
5
  import { PropGetter, RequiredPropGetter } from '@yamada-ui/utils';
5
6
  import { EmblaCarouselType } from 'embla-carousel-react';
6
7
 
7
- type Orientation = 'vertical' | 'horizontal';
8
- type Align = 'start' | 'center' | 'end' | number;
9
- type ContainScroll = '' | 'trimSnaps' | 'keepSnaps';
10
8
  type CarouselContext = {
11
9
  carousel: EmblaCarouselType | undefined;
12
10
  indexes: number[];
13
11
  selectedIndex: number;
14
- orientation: Orientation;
12
+ orientation: 'vertical' | 'horizontal';
15
13
  includeGapInSize: boolean;
16
14
  slidesToScroll: number;
17
15
  slideSize: string | number;
18
- gap: string | number;
16
+ gap: UIProps['gap'];
19
17
  styles: Record<string, CSSUIObject>;
20
18
  };
21
19
  declare const CarouselProvider: react.Provider<CarouselContext>;
22
20
  declare const useCarouselContext: () => CarouselContext;
23
21
  type UseCarouselProps = Omit<HTMLUIProps<'div'>, 'onChange' | 'draggable' | 'gap'> & {
22
+ /**
23
+ * The index of the carousel slide.
24
+ */
24
25
  index?: number;
26
+ /**
27
+ * The initial index of the carousel slide.
28
+ *
29
+ * @default 0
30
+ */
25
31
  defaultIndex?: number;
32
+ /**
33
+ * The callback invoked when carousel slide selected.
34
+ */
26
35
  onChange?: (index: number) => void;
27
- orientation?: Orientation;
28
- align?: Align;
29
- containScroll?: ContainScroll;
36
+ /**
37
+ * The orientation of the carousel.
38
+ *
39
+ * @default 'horizontal'
40
+ */
41
+ orientation?: 'vertical' | 'horizontal';
42
+ /**
43
+ * The alignment of the carousel.
44
+ *
45
+ * @default 'center'
46
+ */
47
+ align?: 'start' | 'center' | 'end' | number;
48
+ /**
49
+ * Clear leading and trailing empty space that causes excessive scrolling.
50
+ * Use trimSnaps to only use snap points that trigger scrolling or keepSnaps to keep them.
51
+ *
52
+ * @default ''
53
+ */
54
+ containScroll?: 'trimSnaps' | 'keepSnaps' | '';
55
+ /**
56
+ * The number of slides that should be scrolled with next or previous buttons.
57
+ *
58
+ * @default 1
59
+ */
30
60
  slidesToScroll?: number;
61
+ /**
62
+ * If `true`, momentum scrolling will be enabled.
63
+ *
64
+ * @default false
65
+ */
31
66
  dragFree?: boolean;
67
+ /**
68
+ * If `true`, carousel can be scrolled with mouse and touch interactions.
69
+ *
70
+ * @default true
71
+ */
32
72
  draggable?: boolean;
73
+ /**
74
+ * Choose a fraction representing the percentage portion of a slide that needs to be visible in order to be considered in view.
75
+ *
76
+ * @default 0
77
+ */
33
78
  inViewThreshold?: number;
79
+ /**
80
+ * If `true`, infinite looping.
81
+ * Automatically falls back to false if slide content isn't enough to loop.
82
+ *
83
+ * @default true
84
+ */
34
85
  loop?: boolean;
86
+ /**
87
+ * If `true`, allow the carousel to skip scroll snaps if it's dragged vigorously.
88
+ * Note that this option will be ignored if the dragFree option is set to true.
89
+ *
90
+ * @default false
91
+ */
35
92
  skipSnaps?: boolean;
93
+ /**
94
+ * Adjusts scroll speed when triggered by any of the methods.
95
+ * Higher numbers enables faster scrolling.
96
+ *
97
+ * @default 10
98
+ */
36
99
  speed?: number;
100
+ /**
101
+ * The number for the autoplay interval of the carousel.
102
+ *
103
+ * @default 4000
104
+ */
37
105
  delay?: number;
106
+ /**
107
+ * If `true`, the carousel will be autoplay.
108
+ *
109
+ * @default false
110
+ */
38
111
  autoplay?: boolean;
112
+ /**
113
+ * If `true`, autoplay will pause when the mouse entries over.
114
+ *
115
+ * @default true
116
+ */
39
117
  stopMouseEnterAutoplay?: boolean;
118
+ /**
119
+ * If `true`, gap will be treated as part of the carousel slide size.
120
+ *
121
+ * @default true
122
+ */
40
123
  includeGapInSize?: boolean;
41
- gap?: string | number;
124
+ /**
125
+ * The CSS `gap` property.
126
+ *
127
+ * @default 'md'
128
+ */
129
+ gap?: UIProps['gap'];
130
+ /**
131
+ * The carousel slide width.
132
+ *
133
+ * @default '100%'
134
+ */
42
135
  slideSize?: string | number;
136
+ /**
137
+ * A callback that return the current scroll amount when the carousel is scrolled.
138
+ */
43
139
  onScrollProgress?: (progress: number) => void;
44
140
  };
45
141
  declare const useCarousel: ({ index, defaultIndex, onChange, align, orientation, autoplay, stopMouseEnterAutoplay, loop, speed, delay, gap, slidesToScroll, draggable, dragFree, inViewThreshold, skipSnaps, containScroll, slideSize, includeGapInSize, onScrollProgress, children, ...rest }: UseCarouselProps) => {
@@ -47,9 +143,9 @@ declare const useCarousel: ({ index, defaultIndex, onChange, align, orientation,
47
143
  children: react.ReactNode;
48
144
  indexes: number[];
49
145
  selectedIndex: number;
50
- orientation: Orientation;
146
+ orientation: "vertical" | "horizontal";
51
147
  slideSize: string | number;
52
- gap: string | number;
148
+ gap: number | "px" | (string & {}) | "sm" | "md" | "lg" | "xl" | "2xl" | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "1" | "-1" | "2" | "-2" | "3" | "-3" | "4" | "-4" | "5" | "-5" | "6" | "-6" | "7" | "-7" | "8" | "-8" | "9" | "-9" | "10" | "-10" | "12" | "-12" | "14" | "-14" | "16" | "-16" | "20" | "-20" | "24" | "-24" | "28" | "-28" | "32" | "-32" | "36" | "-36" | "40" | "-40" | "44" | "-44" | "48" | "-48" | "52" | "-52" | "56" | "-56" | "60" | "-60" | "64" | "-64" | "70" | "-70" | "72" | "-72" | "80" | "-80" | "84" | "-84" | "96" | "-96" | "xs" | "-xs" | "-sm" | "-md" | "normal" | "-normal" | "-lg" | "-xl" | "-2xl" | "3xl" | "-3xl" | "4xl" | "-4xl" | "-px" | "0.5" | "-0.5" | "1.5" | "-1.5" | "2.5" | "-2.5" | "3.5" | "-3.5" | _yamada_ui_core.ResponsiveObject<number | "px" | (string & {}) | "sm" | "md" | "lg" | "xl" | "2xl" | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "1" | "-1" | "2" | "-2" | "3" | "-3" | "4" | "-4" | "5" | "-5" | "6" | "-6" | "7" | "-7" | "8" | "-8" | "9" | "-9" | "10" | "-10" | "12" | "-12" | "14" | "-14" | "16" | "-16" | "20" | "-20" | "24" | "-24" | "28" | "-28" | "32" | "-32" | "36" | "-36" | "40" | "-40" | "44" | "-44" | "48" | "-48" | "52" | "-52" | "56" | "-56" | "60" | "-60" | "64" | "-64" | "70" | "-70" | "72" | "-72" | "80" | "-80" | "84" | "-84" | "96" | "-96" | "xs" | "-xs" | "-sm" | "-md" | "normal" | "-normal" | "-lg" | "-xl" | "-2xl" | "3xl" | "-3xl" | "4xl" | "-4xl" | "-px" | "0.5" | "-0.5" | "1.5" | "-1.5" | "2.5" | "-2.5" | "3.5" | "-3.5"> | _yamada_ui_core.ColorModeArray<number | "px" | (string & {}) | "sm" | "md" | "lg" | "xl" | "2xl" | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "1" | "-1" | "2" | "-2" | "3" | "-3" | "4" | "-4" | "5" | "-5" | "6" | "-6" | "7" | "-7" | "8" | "-8" | "9" | "-9" | "10" | "-10" | "12" | "-12" | "14" | "-14" | "16" | "-16" | "20" | "-20" | "24" | "-24" | "28" | "-28" | "32" | "-32" | "36" | "-36" | "40" | "-40" | "44" | "-44" | "48" | "-48" | "52" | "-52" | "56" | "-56" | "60" | "-60" | "64" | "-64" | "70" | "-70" | "72" | "-72" | "80" | "-80" | "84" | "-84" | "96" | "-96" | "xs" | "-xs" | "-sm" | "-md" | "normal" | "-normal" | "-lg" | "-xl" | "-2xl" | "3xl" | "-3xl" | "4xl" | "-4xl" | "-px" | "0.5" | "-0.5" | "1.5" | "-1.5" | "2.5" | "-2.5" | "3.5" | "-3.5">;
53
149
  slidesToScroll: number;
54
150
  includeGapInSize: boolean;
55
151
  getContainerProps: PropGetter;
@@ -78,4 +174,4 @@ declare const useCarouselIndicators: () => {
78
174
  };
79
175
  type UseCarouselIndicatorsReturn = ReturnType<typeof useCarouselIndicators>;
80
176
 
81
- export { Align, CarouselProvider, ContainScroll, Orientation, UseCarouselControlProps, UseCarouselControlReturn, UseCarouselIndicatorsReturn, UseCarouselProps, UseCarouselReturn, UseCarouselSlideProps, UseCarouselSlideReturn, useCarousel, useCarouselContext, useCarouselControl, useCarouselIndicators, useCarouselSlide };
177
+ export { CarouselProvider, UseCarouselControlProps, UseCarouselControlReturn, UseCarouselIndicatorsReturn, UseCarouselProps, UseCarouselReturn, UseCarouselSlideProps, UseCarouselSlideReturn, useCarousel, useCarouselContext, useCarouselControl, useCarouselIndicators, useCarouselSlide };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yamada-ui/carousel",
3
- "version": "0.1.11",
3
+ "version": "0.2.0",
4
4
  "description": "Yamada UI carousel component",
5
5
  "keywords": [
6
6
  "yamada",
@@ -36,12 +36,12 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "embla-carousel-react": "^7.0.0",
39
- "@yamada-ui/button": "0.1.10",
40
- "@yamada-ui/core": "0.2.3",
41
- "@yamada-ui/icon": "0.1.10",
39
+ "@yamada-ui/button": "0.2.0",
40
+ "@yamada-ui/core": "0.3.1",
41
+ "@yamada-ui/icon": "0.2.0",
42
42
  "@yamada-ui/use-controllable-state": "0.1.2",
43
- "@yamada-ui/use-token": "0.1.10",
44
- "@yamada-ui/use-value": "0.1.10",
43
+ "@yamada-ui/use-token": "0.1.12",
44
+ "@yamada-ui/use-value": "0.1.12",
45
45
  "@yamada-ui/utils": "0.1.1"
46
46
  },
47
47
  "devDependencies": {