@@ -3,6 +3,14 @@ import { CarouselArrowStateType, CarouselStylesType } from '@/components/carouse
3
3
import { COLORS , SIZES , SPACINGS } from '../../foundations' ;
4
4
import { CarouselVariantType } from './variants' ;
5
5
6
+ const iconContainerTokens = {
7
+ display : 'flex' ,
8
+ align_items : 'center' ,
9
+ position : 'relative' ,
10
+ width : SIZES . size_250 ,
11
+ height : SIZES . size_250 ,
12
+ } ;
13
+
6
14
export const CAROUSEL_STYLES : CarouselStylesType < CarouselVariantType > = {
7
15
[ CarouselVariantType . DEFAULT ] : {
8
16
container : {
@@ -26,10 +34,34 @@ export const CAROUSEL_STYLES: CarouselStylesType<CarouselVariantType> = {
26
34
} ,
27
35
[ CarouselArrowStateType . DEFAULT ] : {
28
36
arrowLeftIconContainer : {
29
- width : SPACINGS . spacing_400 ,
37
+ ...iconContainerTokens ,
38
+ } ,
39
+ arrowRightIconContainer : {
40
+ ...iconContainerTokens ,
41
+ } ,
42
+ } ,
43
+ [ CarouselArrowStateType . HOVER ] : {
44
+ arrowLeftIconContainer : {
45
+ ...iconContainerTokens ,
46
+ } ,
47
+ arrowRightIconContainer : {
48
+ ...iconContainerTokens ,
49
+ } ,
50
+ } ,
51
+ [ CarouselArrowStateType . PRESSED ] : {
52
+ arrowLeftIconContainer : {
53
+ ...iconContainerTokens ,
54
+ } ,
55
+ arrowRightIconContainer : {
56
+ ...iconContainerTokens ,
57
+ } ,
58
+ } ,
59
+ [ CarouselArrowStateType . DISABLED ] : {
60
+ arrowLeftIconContainer : {
61
+ ...iconContainerTokens ,
30
62
} ,
31
63
arrowRightIconContainer : {
32
- width : SPACINGS . spacing_400 ,
64
+ ... iconContainerTokens ,
33
65
} ,
34
66
} ,
35
67
} ,
0 commit comments