@yamada-ui/carousel 0.1.6 → 0.1.8
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/dist/carousel-slide.d.ts +1 -1
- package/dist/carousel.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/use-carousel.d.ts +6 -7
- package/package.json +6 -6
package/dist/carousel-slide.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as _yamada_ui_core from '@yamada-ui/core';
|
|
2
2
|
import { HTMLUIProps, UIProps } from '@yamada-ui/core';
|
|
3
3
|
import { UseCarouselSlideProps } from './use-carousel.js';
|
|
4
|
-
import '@yamada-ui/utils';
|
|
5
4
|
import 'react';
|
|
6
5
|
import '@yamada-ui/button';
|
|
6
|
+
import '@yamada-ui/utils';
|
|
7
7
|
import 'embla-carousel-react';
|
|
8
8
|
|
|
9
9
|
type CarouselSlideOptions = {
|
package/dist/carousel.d.ts
CHANGED
|
@@ -3,9 +3,9 @@ import { ThemeProps, HTMLUIProps, Token, UIProps } from '@yamada-ui/core';
|
|
|
3
3
|
import { UseCarouselProps, Orientation, Align, ContainScroll } from './use-carousel.js';
|
|
4
4
|
import { CarouselControlProps } from './carousel-control.js';
|
|
5
5
|
import { CarouselIndicatorsProps } from './carousel-indicators.js';
|
|
6
|
-
import '@yamada-ui/utils';
|
|
7
6
|
import 'react';
|
|
8
7
|
import '@yamada-ui/button';
|
|
8
|
+
import '@yamada-ui/utils';
|
|
9
9
|
import 'embla-carousel-react';
|
|
10
10
|
|
|
11
11
|
type CarouselOptions = {
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export { CarouselControlNext, CarouselControlPrev, CarouselControlProps } from '
|
|
|
4
4
|
export { CarouselIndicators, CarouselIndicatorsProps } from './carousel-indicators.js';
|
|
5
5
|
import '@yamada-ui/core';
|
|
6
6
|
import './use-carousel.js';
|
|
7
|
-
import '@yamada-ui/utils';
|
|
8
7
|
import 'react';
|
|
9
8
|
import '@yamada-ui/button';
|
|
9
|
+
import '@yamada-ui/utils';
|
|
10
10
|
import 'embla-carousel-react';
|
package/dist/use-carousel.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import * as _yamada_ui_utils from '@yamada-ui/utils';
|
|
2
|
-
import { PropGetter, RequiredPropGetter } from '@yamada-ui/utils';
|
|
3
1
|
import * as react from 'react';
|
|
4
2
|
import { IconButtonProps } from '@yamada-ui/button';
|
|
5
3
|
import { HTMLUIProps, CSSUIObject } from '@yamada-ui/core';
|
|
4
|
+
import { PropGetter, RequiredPropGetter } from '@yamada-ui/utils';
|
|
6
5
|
import { EmblaCarouselType } from 'embla-carousel-react';
|
|
7
6
|
|
|
8
7
|
type Orientation = 'vertical' | 'horizontal';
|
|
@@ -53,29 +52,29 @@ declare const useCarousel: ({ index, defaultIndex, onChange, align, orientation,
|
|
|
53
52
|
gap: string | number;
|
|
54
53
|
slidesToScroll: number;
|
|
55
54
|
includeGapInSize: boolean;
|
|
56
|
-
getContainerProps: PropGetter
|
|
57
|
-
getSlidesProps: PropGetter
|
|
55
|
+
getContainerProps: PropGetter;
|
|
56
|
+
getSlidesProps: PropGetter;
|
|
58
57
|
};
|
|
59
58
|
type UseCarouselReturn = ReturnType<typeof useCarousel>;
|
|
60
59
|
type UseCarouselSlideProps = {
|
|
61
60
|
index?: number;
|
|
62
61
|
};
|
|
63
62
|
declare const useCarouselSlide: ({ index }: UseCarouselSlideProps) => {
|
|
64
|
-
getSlideProps: PropGetter
|
|
63
|
+
getSlideProps: PropGetter;
|
|
65
64
|
};
|
|
66
65
|
type UseCarouselSlideReturn = ReturnType<typeof useCarouselSlide>;
|
|
67
66
|
type UseCarouselControlProps = IconButtonProps & {
|
|
68
67
|
operation: 'prev' | 'next';
|
|
69
68
|
};
|
|
70
69
|
declare const useCarouselControl: ({ operation, ...rest }: UseCarouselControlProps) => {
|
|
71
|
-
getControlProps: PropGetter
|
|
70
|
+
getControlProps: PropGetter;
|
|
72
71
|
};
|
|
73
72
|
type UseCarouselControlReturn = ReturnType<typeof useCarouselControl>;
|
|
74
73
|
declare const useCarouselIndicators: () => {
|
|
75
74
|
indexes: number[];
|
|
76
75
|
getIndicatorProps: RequiredPropGetter<{
|
|
77
76
|
index: number;
|
|
78
|
-
}
|
|
77
|
+
}>;
|
|
79
78
|
};
|
|
80
79
|
type UseCarouselIndicatorsReturn = ReturnType<typeof useCarouselIndicators>;
|
|
81
80
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yamada-ui/carousel",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
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.
|
|
40
|
-
"@yamada-ui/core": "0.
|
|
41
|
-
"@yamada-ui/icon": "0.1.
|
|
39
|
+
"@yamada-ui/button": "0.1.7",
|
|
40
|
+
"@yamada-ui/core": "0.2.0",
|
|
41
|
+
"@yamada-ui/icon": "0.1.7",
|
|
42
42
|
"@yamada-ui/use-controllable-state": "0.1.1",
|
|
43
|
-
"@yamada-ui/use-token": "0.1.
|
|
44
|
-
"@yamada-ui/use-value": "0.1.
|
|
43
|
+
"@yamada-ui/use-token": "0.1.7",
|
|
44
|
+
"@yamada-ui/use-value": "0.1.7",
|
|
45
45
|
"@yamada-ui/utils": "0.1.1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|