etendo-ui-library 1.0.80 → 1.0.82
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/components/button/Button.stories.tsx +2 -2
- package/components/button/Button.styles.tsx +28 -36
- package/components/button/Button.tsx +9 -16
- package/components/button/__snapshots__/Button.test.tsx.snap +1 -1
- package/components/cards/cardDropdown/CardDropdown.stories.tsx +51 -25
- package/components/cards/cardDropdown/CardDropdown.styles.ts +65 -60
- package/components/cards/cardDropdown/component/CardDropdownOptions.tsx +5 -5
- package/components/docs/screens/changelog/ChangeLogScreen.style.ts +6 -6
- package/components/docs/screens/getStarted/GetStartedScreen.style.ts +15 -10
- package/components/index.ts +1 -12
- package/components/input/Input.style.tsx +33 -33
- package/components/input/components/InputOptions.tsx +3 -4
- package/components/input/components/InputTitle.tsx +2 -2
- package/components/navbar/Navbar.styles.ts +2 -2
- package/components/navbar/components/DrawerLateral/DrawerLateral.styles.ts +16 -16
- package/components/navbar/components/DrawerLateral/DrawerLateralHelper.tsx +6 -6
- package/components/navbar/components/DrawerLateral/DrawerLateralSubMenu.tsx +2 -2
- package/components/navbar/components/EtendoLogo/EtendoLogo.tsx +2 -2
- package/components/navbar/components/MenuBurger/MenuBurger.tsx +2 -2
- package/components/navbar/components/Notification/Notification.styles.ts +16 -17
- package/components/navbar/components/Notification/Notification.tsx +4 -4
- package/components/navbar/components/Notification/NotificationsOptions.tsx +6 -12
- package/components/navbar/components/Profile/Profile.styles.ts +19 -19
- package/components/navbar/components/Profile/ProfileOptions.tsx +4 -4
- package/components/navbar/components/Welcome/Welcome.styles.ts +3 -3
- package/components/navbar/components/Welcome/Welcome.tsx +3 -2
- package/components/pagination/Pagination.styles.tsx +3 -2
- package/components/states/componentsStates/ComponentsStatesScreen.style.ts +4 -4
- package/components/statusbar/StatusBar.stories.tsx +3 -4
- package/components/statusbar/StatusBar.styles.tsx +13 -13
- package/components/tab/Tab.tsx +7 -13
- package/components/table/Table.styles.ts +17 -12
- package/helpers/table_utils.ts +3 -3
- package/package.json +1 -1
- package/styles/colors.ts +38 -47
|
@@ -6,7 +6,7 @@ import {View} from 'react-native';
|
|
|
6
6
|
import {styles} from './Button.styles';
|
|
7
7
|
import addMarginContainer from '../../helpers/addMargin';
|
|
8
8
|
import {CheckIcon} from '../../assets/images/icons/CheckIcon';
|
|
9
|
-
import {
|
|
9
|
+
import { NEUTRALS_0 } from '../../styles/colors';
|
|
10
10
|
|
|
11
11
|
const meta: Meta = {
|
|
12
12
|
title: 'Etendo/Button',
|
|
@@ -29,7 +29,7 @@ const Template1: Story<ButtonProps> = args => (
|
|
|
29
29
|
onPress={() => {}}
|
|
30
30
|
image={
|
|
31
31
|
<CheckIcon
|
|
32
|
-
fill={
|
|
32
|
+
fill={NEUTRALS_0}
|
|
33
33
|
style={{
|
|
34
34
|
marginRight: 10,
|
|
35
35
|
width: 12,
|
|
@@ -1,19 +1,11 @@
|
|
|
1
1
|
import {StyleSheet} from 'react-native';
|
|
2
|
-
import {
|
|
3
|
-
BLUE,
|
|
4
|
-
GREY_BLUE_50,
|
|
5
|
-
PURPLE_10,
|
|
6
|
-
PURPLE_50,
|
|
7
|
-
WHITE,
|
|
8
|
-
YELLOW,
|
|
9
|
-
YELLOW_30,
|
|
10
|
-
} from '../../styles/colors';
|
|
2
|
+
import { NEUTRALS_0, PRIMARY_100, QUATERNARY_10, QUATERNARY_50, SECONDARY_100, SECONDARY_30, TERTIARY_50 } from '../../styles/colors';
|
|
11
3
|
import {buttonStyleVariant} from './Button.types';
|
|
12
4
|
|
|
13
5
|
export const ButtonStyleVariant: buttonStyleVariant = {
|
|
14
6
|
primary: {
|
|
15
7
|
container: {
|
|
16
|
-
backgroundColor:
|
|
8
|
+
backgroundColor: PRIMARY_100,
|
|
17
9
|
borderRadius: 5,
|
|
18
10
|
flexDirection: 'row',
|
|
19
11
|
justifyContent: 'center',
|
|
@@ -22,25 +14,25 @@ export const ButtonStyleVariant: buttonStyleVariant = {
|
|
|
22
14
|
padding: 24,
|
|
23
15
|
},
|
|
24
16
|
text: {
|
|
25
|
-
color:
|
|
17
|
+
color: NEUTRALS_0,
|
|
26
18
|
fontWeight: '600',
|
|
27
19
|
},
|
|
28
20
|
containerDisabled: {
|
|
29
|
-
backgroundColor:
|
|
21
|
+
backgroundColor: QUATERNARY_50,
|
|
30
22
|
borderRadius: 5,
|
|
31
23
|
flexDirection: 'row',
|
|
32
24
|
justifyContent: 'center',
|
|
33
25
|
alignItems: 'center',
|
|
34
26
|
},
|
|
35
27
|
textDisabled: {
|
|
36
|
-
color:
|
|
28
|
+
color: NEUTRALS_0,
|
|
37
29
|
fontWeight: 'bold',
|
|
38
30
|
},
|
|
39
|
-
imageColor:
|
|
31
|
+
imageColor: NEUTRALS_0,
|
|
40
32
|
},
|
|
41
33
|
secondary: {
|
|
42
34
|
container: {
|
|
43
|
-
backgroundColor:
|
|
35
|
+
backgroundColor: SECONDARY_100,
|
|
44
36
|
borderRadius: 5,
|
|
45
37
|
flexDirection: 'row',
|
|
46
38
|
alignItems: 'center',
|
|
@@ -48,25 +40,25 @@ export const ButtonStyleVariant: buttonStyleVariant = {
|
|
|
48
40
|
padding: 24,
|
|
49
41
|
},
|
|
50
42
|
text: {
|
|
51
|
-
color:
|
|
43
|
+
color: PRIMARY_100,
|
|
52
44
|
fontWeight: 'bold',
|
|
53
45
|
},
|
|
54
46
|
containerDisabled: {
|
|
55
|
-
backgroundColor:
|
|
47
|
+
backgroundColor: SECONDARY_30,
|
|
56
48
|
borderRadius: 5,
|
|
57
49
|
flexDirection: 'row',
|
|
58
50
|
justifyContent: 'center',
|
|
59
51
|
alignItems: 'center',
|
|
60
52
|
},
|
|
61
53
|
textDisabled: {
|
|
62
|
-
color:
|
|
54
|
+
color: QUATERNARY_50,
|
|
63
55
|
fontWeight: 'bold',
|
|
64
56
|
},
|
|
65
|
-
imageColor:
|
|
57
|
+
imageColor: PRIMARY_100,
|
|
66
58
|
},
|
|
67
59
|
terciary: {
|
|
68
60
|
container: {
|
|
69
|
-
backgroundColor:
|
|
61
|
+
backgroundColor: QUATERNARY_50,
|
|
70
62
|
borderRadius: 5,
|
|
71
63
|
flexDirection: 'row',
|
|
72
64
|
justifyContent: 'center',
|
|
@@ -74,55 +66,55 @@ export const ButtonStyleVariant: buttonStyleVariant = {
|
|
|
74
66
|
padding: 24,
|
|
75
67
|
},
|
|
76
68
|
text: {
|
|
77
|
-
color:
|
|
69
|
+
color: PRIMARY_100,
|
|
78
70
|
fontWeight: 'bold',
|
|
79
71
|
},
|
|
80
72
|
containerDisabled: {
|
|
81
|
-
backgroundColor:
|
|
73
|
+
backgroundColor: QUATERNARY_10,
|
|
82
74
|
borderRadius: 5,
|
|
83
75
|
flexDirection: 'row',
|
|
84
76
|
justifyContent: 'center',
|
|
85
77
|
alignItems: 'center',
|
|
86
78
|
},
|
|
87
79
|
textDisabled: {
|
|
88
|
-
color:
|
|
80
|
+
color: TERTIARY_50,
|
|
89
81
|
fontWeight: 'bold',
|
|
90
82
|
},
|
|
91
|
-
imageColor:
|
|
83
|
+
imageColor: PRIMARY_100,
|
|
92
84
|
},
|
|
93
85
|
whiteBorder: {
|
|
94
86
|
container: {
|
|
95
|
-
backgroundColor:
|
|
87
|
+
backgroundColor: NEUTRALS_0,
|
|
96
88
|
borderRadius: 5,
|
|
97
89
|
flexDirection: 'row',
|
|
98
90
|
borderWidth: 2,
|
|
99
|
-
borderColor:
|
|
91
|
+
borderColor: PRIMARY_100,
|
|
100
92
|
justifyContent: 'center',
|
|
101
93
|
alignItems: 'center',
|
|
102
94
|
padding: 24,
|
|
103
95
|
},
|
|
104
96
|
text: {
|
|
105
|
-
color:
|
|
97
|
+
color: PRIMARY_100,
|
|
106
98
|
fontWeight: 'bold',
|
|
107
99
|
},
|
|
108
100
|
containerDisabled: {
|
|
109
|
-
backgroundColor:
|
|
101
|
+
backgroundColor: NEUTRALS_0,
|
|
110
102
|
borderRadius: 5,
|
|
111
103
|
flexDirection: 'row',
|
|
112
104
|
borderWidth: 2,
|
|
113
|
-
borderColor:
|
|
105
|
+
borderColor: TERTIARY_50,
|
|
114
106
|
justifyContent: 'center',
|
|
115
107
|
alignItems: 'center',
|
|
116
108
|
},
|
|
117
109
|
textDisabled: {
|
|
118
|
-
color:
|
|
110
|
+
color: TERTIARY_50,
|
|
119
111
|
fontWeight: 'bold',
|
|
120
112
|
},
|
|
121
|
-
imageColor:
|
|
113
|
+
imageColor: PRIMARY_100,
|
|
122
114
|
},
|
|
123
115
|
white: {
|
|
124
116
|
container: {
|
|
125
|
-
backgroundColor:
|
|
117
|
+
backgroundColor: NEUTRALS_0,
|
|
126
118
|
borderRadius: 5,
|
|
127
119
|
flexDirection: 'row',
|
|
128
120
|
justifyContent: 'center',
|
|
@@ -130,21 +122,21 @@ export const ButtonStyleVariant: buttonStyleVariant = {
|
|
|
130
122
|
padding: 24,
|
|
131
123
|
},
|
|
132
124
|
text: {
|
|
133
|
-
color:
|
|
125
|
+
color: PRIMARY_100,
|
|
134
126
|
fontWeight: 'bold',
|
|
135
127
|
},
|
|
136
128
|
containerDisabled: {
|
|
137
|
-
backgroundColor:
|
|
129
|
+
backgroundColor: NEUTRALS_0,
|
|
138
130
|
borderRadius: 5,
|
|
139
131
|
flexDirection: 'row',
|
|
140
132
|
justifyContent: 'center',
|
|
141
133
|
alignItems: 'center',
|
|
142
134
|
},
|
|
143
135
|
textDisabled: {
|
|
144
|
-
color:
|
|
136
|
+
color: TERTIARY_50,
|
|
145
137
|
fontWeight: 'bold',
|
|
146
138
|
},
|
|
147
|
-
imageColor:
|
|
139
|
+
imageColor: PRIMARY_100,
|
|
148
140
|
},
|
|
149
141
|
};
|
|
150
142
|
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import React, {useState} from 'react';
|
|
2
2
|
import {Pressable, Text, View} from 'react-native';
|
|
3
|
-
import {
|
|
4
|
-
BLUE,
|
|
5
|
-
BLUE_80,
|
|
6
|
-
LIGHT_PURPLE_60,
|
|
7
|
-
PURPLE,
|
|
8
|
-
WHITE,
|
|
9
|
-
YELLOW_50,
|
|
10
|
-
} from '../../styles/colors';
|
|
3
|
+
import { NEUTRALS_100, PRIMARY_100, PRIMARY_80, QUATERNARY_100, QUATERNARY_50, SECONDARY_50 } from '../../styles/colors';
|
|
11
4
|
import {ButtonStyleVariant} from './Button.styles';
|
|
12
5
|
import {ButtonProps, ButtonStyleType} from './Button.types';
|
|
13
6
|
|
|
@@ -25,25 +18,25 @@ const Button = ({
|
|
|
25
18
|
const getHoveredBackgroundColor = (backgroundColor: ButtonStyleType) => {
|
|
26
19
|
switch (backgroundColor) {
|
|
27
20
|
case 'primary':
|
|
28
|
-
return
|
|
21
|
+
return PRIMARY_80;
|
|
29
22
|
case 'secondary':
|
|
30
|
-
return
|
|
23
|
+
return SECONDARY_50;
|
|
31
24
|
case 'terciary':
|
|
32
|
-
return
|
|
25
|
+
return QUATERNARY_50;
|
|
33
26
|
case 'whiteBorder':
|
|
34
|
-
return
|
|
27
|
+
return PRIMARY_100;
|
|
35
28
|
}
|
|
36
29
|
};
|
|
37
30
|
const getHoveredTextColorAndViewColor = (typeStyle: ButtonStyleType) => {
|
|
38
31
|
switch (typeStyle) {
|
|
39
32
|
case 'white':
|
|
40
|
-
return
|
|
33
|
+
return QUATERNARY_100;
|
|
41
34
|
case 'whiteBorder':
|
|
42
|
-
return
|
|
35
|
+
return NEUTRALS_100;
|
|
43
36
|
case 'primary':
|
|
44
|
-
return
|
|
37
|
+
return NEUTRALS_100;
|
|
45
38
|
default:
|
|
46
|
-
return
|
|
39
|
+
return PRIMARY_100;
|
|
47
40
|
}
|
|
48
41
|
};
|
|
49
42
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import {Story, Meta} from '@storybook/react';
|
|
3
|
-
import {View,ScrollView} from 'react-native';
|
|
3
|
+
import {View,ScrollView, Text} from 'react-native';
|
|
4
4
|
import addMarginContainer from '../../../helpers/addMargin';
|
|
5
5
|
import CardDropdown from './CardDropdown';
|
|
6
6
|
import {DeliveryBox} from '../../../assets/images/icons/DeliveryBox';
|
|
@@ -8,9 +8,8 @@ import {UsersIcon} from '../../../assets/images/icons/UsersIcon';
|
|
|
8
8
|
import {Binoculars} from '../../../assets/images/icons/Binoculars';
|
|
9
9
|
import {DocumentIcon} from '../../../assets/images/icons/DocumentIcon';
|
|
10
10
|
import {CardDrpopdownProps} from './CardDropdown.types';
|
|
11
|
-
import CardDropdownSkeleton from './component/CardDropdownSkeleton';
|
|
12
|
-
import CardSkeleton from './component/CardSkeleton';
|
|
13
11
|
import {styles} from './CardDropdown.styles';
|
|
12
|
+
import {styles as stylesTitle} from '../../docs/screens/changelog/ChangeLogScreen.style';
|
|
14
13
|
import { cardDataDropdown } from './CardDropdown.data';
|
|
15
14
|
|
|
16
15
|
const meta: Meta = {
|
|
@@ -26,7 +25,9 @@ const TemplateDefault: Story<CardDrpopdownProps> = args => (
|
|
|
26
25
|
);
|
|
27
26
|
|
|
28
27
|
const TemplateVariants: Story<CardDrpopdownProps> = args => (
|
|
29
|
-
<ScrollView
|
|
28
|
+
<ScrollView horizontal={true} style={[addMarginContainer()]}>
|
|
29
|
+
<ScrollView>
|
|
30
|
+
<Text style={stylesTitle.title}>Dropdown</Text>
|
|
30
31
|
<View style={styles.cardDropdownStoriesRow}>
|
|
31
32
|
<View style={styles.cardDropdownStoriesContainer}>
|
|
32
33
|
<CardDropdown
|
|
@@ -77,12 +78,9 @@ const TemplateVariants: Story<CardDrpopdownProps> = args => (
|
|
|
77
78
|
/>
|
|
78
79
|
</View>
|
|
79
80
|
</View>
|
|
81
|
+
<Text style={stylesTitle.title}>Card</Text>
|
|
80
82
|
<View
|
|
81
|
-
style={
|
|
82
|
-
display: 'flex',
|
|
83
|
-
flexDirection: 'row',
|
|
84
|
-
flexWrap: 'wrap',
|
|
85
|
-
}}
|
|
83
|
+
style={styles.cardDropdownStoriesRow}
|
|
86
84
|
>
|
|
87
85
|
<View style={styles.cardDropdownStoriesContainer}>
|
|
88
86
|
<CardDropdown
|
|
@@ -133,29 +131,57 @@ const TemplateVariants: Story<CardDrpopdownProps> = args => (
|
|
|
133
131
|
/>
|
|
134
132
|
</View>
|
|
135
133
|
</View>
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
134
|
+
<Text style={stylesTitle.title}>Placeholder</Text>
|
|
135
|
+
<View
|
|
136
|
+
style={styles.cardDropdownStoriesRow}
|
|
137
|
+
>
|
|
138
|
+
<View style={styles.cardDropdownStoriesContainer}>
|
|
139
|
+
<CardDropdown
|
|
140
|
+
title={'Physical inventory'}
|
|
141
|
+
image={<DeliveryBox />}
|
|
142
|
+
route="/home"
|
|
143
|
+
onPress={route => {}}
|
|
144
|
+
styleType={'primary'}
|
|
145
|
+
disabled={false}
|
|
146
|
+
isDropdown={true}
|
|
147
|
+
/>
|
|
148
|
+
</View>
|
|
149
|
+
<View style={styles.cardDropdownStoriesContainer}>
|
|
150
|
+
<CardDropdown
|
|
151
|
+
title={'Physical inventory'}
|
|
152
|
+
image={<DeliveryBox />}
|
|
153
|
+
route="/home"
|
|
154
|
+
onPress={route => {}}
|
|
155
|
+
styleType={'secondary'}
|
|
156
|
+
disabled={false}
|
|
157
|
+
isDropdown={true}
|
|
158
|
+
/>
|
|
159
|
+
</View>
|
|
160
|
+
<View style={styles.cardDropdownStoriesContainer}>
|
|
161
|
+
<CardDropdown
|
|
162
|
+
route="/home"
|
|
163
|
+
onPress={route => {}}
|
|
164
|
+
styleType={'primary'}
|
|
165
|
+
isDropdown={false}
|
|
166
|
+
/>
|
|
167
|
+
</View>
|
|
168
|
+
<View style={styles.cardDropdownStoriesContainer}>
|
|
169
|
+
<CardDropdown
|
|
170
|
+
route="/home"
|
|
171
|
+
onPress={route => {}}
|
|
172
|
+
dataOptions={cardDataDropdown}
|
|
173
|
+
styleType={'secondary'}
|
|
174
|
+
isDropdown={false}
|
|
175
|
+
/>
|
|
176
|
+
</View>
|
|
151
177
|
</View>
|
|
178
|
+
</ScrollView>
|
|
152
179
|
</ScrollView>
|
|
153
180
|
);
|
|
154
181
|
|
|
155
182
|
export default meta;
|
|
156
183
|
export const CardDropdownDefault = TemplateDefault.bind({});
|
|
157
184
|
export const CardDropdownVariants = TemplateVariants.bind({});
|
|
158
|
-
export const CardDropdownPlaceholder = TemplatePlaceholder.bind({});
|
|
159
185
|
|
|
160
186
|
CardDropdownDefault.args = {
|
|
161
187
|
title: 'Physical inventory',
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
import {StyleSheet} from 'react-native';
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
YELLOW,
|
|
3
|
+
NEUTRALS_0,
|
|
4
|
+
NEUTRALS_10,
|
|
5
|
+
NEUTRALS_100,
|
|
6
|
+
NEUTRALS_40,
|
|
7
|
+
NEUTRALS_5,
|
|
8
|
+
PRIMARY_100,
|
|
9
|
+
PRIMARY_30,
|
|
10
|
+
PRIMARY_40,
|
|
11
|
+
PRIMARY_50,
|
|
12
|
+
PRIMARY_80,
|
|
13
|
+
QUATERNARY_50,
|
|
14
|
+
SECONDARY_100,
|
|
15
|
+
TERTIARY_100,
|
|
16
|
+
TERTIARY_30,
|
|
17
|
+
TERTIARY_50,
|
|
19
18
|
} from '../../../styles/colors';
|
|
20
19
|
import {CardStyleVariant} from './CardDropdown.types';
|
|
21
20
|
|
|
@@ -222,7 +221,7 @@ export const styles = StyleSheet.create({
|
|
|
222
221
|
borderRadius: 16,
|
|
223
222
|
height: 168,
|
|
224
223
|
overflow: 'hidden',
|
|
225
|
-
backgroundColor:
|
|
224
|
+
backgroundColor: PRIMARY_100,
|
|
226
225
|
},
|
|
227
226
|
cardDropdownStoriesSkeletonOptionContainer: {
|
|
228
227
|
marginRight: 20,
|
|
@@ -237,52 +236,58 @@ export const styles = StyleSheet.create({
|
|
|
237
236
|
width: 276,
|
|
238
237
|
borderRadius: 16,
|
|
239
238
|
overflow: 'hidden',
|
|
240
|
-
backgroundColor:
|
|
239
|
+
backgroundColor: PRIMARY_100,
|
|
241
240
|
},
|
|
242
241
|
cardDropdownStoriesContainer: {marginBottom: 20, marginRight: 20},
|
|
243
242
|
});
|
|
244
243
|
|
|
245
244
|
export const CardVariant: CardStyleVariant = {
|
|
246
245
|
primary: {
|
|
247
|
-
colorCardContainer: {backgroundColor:
|
|
248
|
-
colorCardImageContainer: {backgroundColor:
|
|
249
|
-
colorCardTitle: {color:
|
|
250
|
-
colorCardOptionContainer: {backgroundColor:
|
|
251
|
-
colorCardOptionHeader: {
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
246
|
+
colorCardContainer: {backgroundColor: NEUTRALS_0},
|
|
247
|
+
colorCardImageContainer: {backgroundColor: QUATERNARY_50},
|
|
248
|
+
colorCardTitle: {color: PRIMARY_100},
|
|
249
|
+
colorCardOptionContainer: {backgroundColor: NEUTRALS_0},
|
|
250
|
+
colorCardOptionHeader: {
|
|
251
|
+
backgroundColor: PRIMARY_100,
|
|
252
|
+
borderBottomColor: NEUTRALS_0,
|
|
253
|
+
},
|
|
254
|
+
colorCardOptionHeaderTitle: {color: NEUTRALS_0},
|
|
255
|
+
colorCardItemContainer: {borderBottomColor: NEUTRALS_10},
|
|
256
|
+
colorCardItemTitle: {color: PRIMARY_100},
|
|
257
|
+
colorCardItemDescription: {color: TERTIARY_100},
|
|
258
|
+
colorCardOptionSkeletonContainer: {borderBottomColor: NEUTRALS_10},
|
|
259
|
+
colorCardItemImageContainer: {backgroundColor: QUATERNARY_50},
|
|
260
|
+
colorCardOptionSkeletonItem: TERTIARY_30,
|
|
261
|
+
colorCardOptionSkeletonHeaderItem: PRIMARY_80,
|
|
262
|
+
colorCardArrowImageFill: PRIMARY_100,
|
|
263
|
+
colorCardImageFill: PRIMARY_100,
|
|
264
|
+
colorCardImageOptionFill: PRIMARY_100,
|
|
263
265
|
},
|
|
264
266
|
secondary: {
|
|
265
|
-
colorCardContainer: {backgroundColor:
|
|
266
|
-
colorCardImageContainer: {backgroundColor:
|
|
267
|
-
colorCardTitle: {color:
|
|
268
|
-
colorCardOptionContainer: {backgroundColor:
|
|
269
|
-
colorCardOptionHeader: {
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
267
|
+
colorCardContainer: {backgroundColor: PRIMARY_100},
|
|
268
|
+
colorCardImageContainer: {backgroundColor: PRIMARY_80},
|
|
269
|
+
colorCardTitle: {color: NEUTRALS_0},
|
|
270
|
+
colorCardOptionContainer: {backgroundColor: PRIMARY_100},
|
|
271
|
+
colorCardOptionHeader: {
|
|
272
|
+
backgroundColor: PRIMARY_100,
|
|
273
|
+
borderBottomColor: NEUTRALS_100,
|
|
274
|
+
},
|
|
275
|
+
colorCardOptionHeaderTitle: {color: NEUTRALS_0},
|
|
276
|
+
colorCardItemContainer: {borderBottomColor: NEUTRALS_100},
|
|
277
|
+
colorCardItemTitle: {color: NEUTRALS_0},
|
|
278
|
+
colorCardItemDescription: {color: TERTIARY_50},
|
|
279
|
+
colorCardOptionSkeletonContainer: {borderBottomColor: NEUTRALS_0},
|
|
280
|
+
colorCardItemImageContainer: {backgroundColor: PRIMARY_80},
|
|
281
|
+
colorCardOptionSkeletonItem: PRIMARY_80,
|
|
282
|
+
colorCardOptionSkeletonHeaderItem: PRIMARY_80,
|
|
283
|
+
colorCardArrowImageFill: NEUTRALS_0,
|
|
284
|
+
colorCardImageFill: SECONDARY_100,
|
|
285
|
+
colorCardImageOptionFill: NEUTRALS_0,
|
|
281
286
|
},
|
|
282
287
|
disabledPrimary: {
|
|
283
|
-
colorCardContainer: {backgroundColor:
|
|
284
|
-
colorCardImageContainer: {backgroundColor:
|
|
285
|
-
colorCardTitle: {color:
|
|
288
|
+
colorCardContainer: {backgroundColor: NEUTRALS_5},
|
|
289
|
+
colorCardImageContainer: {backgroundColor: NEUTRALS_10},
|
|
290
|
+
colorCardTitle: {color: NEUTRALS_40},
|
|
286
291
|
colorCardOptionContainer: {},
|
|
287
292
|
colorCardOptionHeader: {},
|
|
288
293
|
colorCardOptionHeaderTitle: {},
|
|
@@ -293,14 +298,14 @@ export const CardVariant: CardStyleVariant = {
|
|
|
293
298
|
colorCardItemImageContainer: {},
|
|
294
299
|
colorCardOptionSkeletonItem: '',
|
|
295
300
|
colorCardOptionSkeletonHeaderItem: '',
|
|
296
|
-
colorCardArrowImageFill:
|
|
297
|
-
colorCardImageFill:
|
|
301
|
+
colorCardArrowImageFill: NEUTRALS_40,
|
|
302
|
+
colorCardImageFill: NEUTRALS_40,
|
|
298
303
|
colorCardImageOptionFill: '',
|
|
299
304
|
},
|
|
300
305
|
disabledSecondary: {
|
|
301
|
-
colorCardContainer: {backgroundColor:
|
|
302
|
-
colorCardImageContainer: {backgroundColor:
|
|
303
|
-
colorCardTitle: {color:
|
|
306
|
+
colorCardContainer: {backgroundColor: PRIMARY_40},
|
|
307
|
+
colorCardImageContainer: {backgroundColor: PRIMARY_50},
|
|
308
|
+
colorCardTitle: {color: PRIMARY_30},
|
|
304
309
|
colorCardOptionContainer: {},
|
|
305
310
|
colorCardOptionHeader: {},
|
|
306
311
|
colorCardOptionHeaderTitle: {},
|
|
@@ -311,8 +316,8 @@ export const CardVariant: CardStyleVariant = {
|
|
|
311
316
|
colorCardItemImageContainer: {},
|
|
312
317
|
colorCardOptionSkeletonItem: '',
|
|
313
318
|
colorCardOptionSkeletonHeaderItem: '',
|
|
314
|
-
colorCardArrowImageFill:
|
|
315
|
-
colorCardImageFill:
|
|
319
|
+
colorCardArrowImageFill: PRIMARY_30,
|
|
320
|
+
colorCardImageFill: PRIMARY_30,
|
|
316
321
|
colorCardImageOptionFill: '',
|
|
317
322
|
},
|
|
318
323
|
};
|
|
@@ -9,12 +9,12 @@ import {
|
|
|
9
9
|
import React, {useState} from 'react';
|
|
10
10
|
import {CardVariant, styles} from '../CardDropdown.styles';
|
|
11
11
|
import CardDropdownSkeleton from './CardDropdownSkeleton';
|
|
12
|
-
import {PURPLE_10, WHITE, YELLOW, BLUE_60} from '../../../../styles/colors';
|
|
13
12
|
import {ArrowDown} from '../../../../assets/images/icons/ArrowDown';
|
|
14
13
|
import {
|
|
15
14
|
CardDropdownData,
|
|
16
15
|
CardDropdownOptionsProps,
|
|
17
16
|
} from '../CardDropdown.types';
|
|
17
|
+
import { NEUTRALS_0, PRIMARY_60, QUATERNARY_10, SECONDARY_100 } from '../../../../styles/colors';
|
|
18
18
|
|
|
19
19
|
const CardDropdownOptions = ({
|
|
20
20
|
data,
|
|
@@ -30,7 +30,7 @@ const CardDropdownOptions = ({
|
|
|
30
30
|
const [indexHover, setIndexHover] = useState<number>(-1);
|
|
31
31
|
const newImage = image ? (
|
|
32
32
|
React.cloneElement(image, {
|
|
33
|
-
fill:
|
|
33
|
+
fill: SECONDARY_100,
|
|
34
34
|
style: styles.cardOptionHeaderImagenSize,
|
|
35
35
|
})
|
|
36
36
|
) : (
|
|
@@ -48,10 +48,10 @@ const CardDropdownOptions = ({
|
|
|
48
48
|
}
|
|
49
49
|
if (indexCurrent === indexHover) {
|
|
50
50
|
if (styleType === 'primary') {
|
|
51
|
-
styleFinal.push({backgroundColor:
|
|
51
|
+
styleFinal.push({backgroundColor: QUATERNARY_10});
|
|
52
52
|
}
|
|
53
53
|
if (styleType === 'secondary') {
|
|
54
|
-
styleFinal.push({backgroundColor:
|
|
54
|
+
styleFinal.push({backgroundColor: PRIMARY_60});
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
styleFinal.push([CardVariant[styleType].colorCardItemContainer]);
|
|
@@ -99,7 +99,7 @@ const CardDropdownOptions = ({
|
|
|
99
99
|
{title}
|
|
100
100
|
</Text>
|
|
101
101
|
<View style={styles.cardOptionArrowContainer}>
|
|
102
|
-
<ArrowDown style={styles.cardOptionArrowImage} fill={
|
|
102
|
+
<ArrowDown style={styles.cardOptionArrowImage} fill={NEUTRALS_0} />
|
|
103
103
|
</View>
|
|
104
104
|
</View>
|
|
105
105
|
</TouchableOpacity>
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {StyleSheet} from 'react-native';
|
|
2
|
-
import {
|
|
2
|
+
import {NEUTRALS_10, NEUTRALS_100} from '../../../../styles/colors';
|
|
3
3
|
|
|
4
4
|
export const styles = StyleSheet.create({
|
|
5
5
|
title: {
|
|
6
6
|
fontSize: 30,
|
|
7
7
|
fontWeight: '600',
|
|
8
8
|
marginBottom: 20,
|
|
9
|
-
color:
|
|
9
|
+
color: NEUTRALS_100,
|
|
10
10
|
},
|
|
11
11
|
version: {
|
|
12
12
|
fontSize: 30,
|
|
13
13
|
fontWeight: '600',
|
|
14
14
|
marginBottom: 10,
|
|
15
|
-
color:
|
|
15
|
+
color: NEUTRALS_100,
|
|
16
16
|
borderBottomWidth: 1,
|
|
17
|
-
borderColor:
|
|
17
|
+
borderColor: NEUTRALS_10,
|
|
18
18
|
},
|
|
19
19
|
feature: {
|
|
20
20
|
fontSize: 18,
|
|
21
21
|
fontWeight: '600',
|
|
22
|
-
color:
|
|
22
|
+
color: NEUTRALS_100,
|
|
23
23
|
marginBottom: 10,
|
|
24
24
|
},
|
|
25
|
-
items: {color:
|
|
25
|
+
items: {color: NEUTRALS_100, fontSize: 15, marginLeft: 20, marginBottom: 10},
|
|
26
26
|
});
|