etendo-ui-library 1.0.82 → 1.0.83

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.
Files changed (41) hide show
  1. package/.ondevice/storybook.requires.js +1 -2
  2. package/components/button/Button.stories.tsx +2 -2
  3. package/components/button/Button.styles.tsx +8 -8
  4. package/components/button/Button.tsx +3 -3
  5. package/components/cards/cardDropdown/CardDropdown.styles.ts +24 -24
  6. package/components/cards/cardDropdown/CardDropdown.tsx +7 -2
  7. package/components/cards/cardDropdown/component/CardDropdownOptions.tsx +2 -2
  8. package/components/docs/screens/changelog/ChangeLogScreen.style.ts +6 -6
  9. package/components/docs/screens/getStarted/GetStartedScreen.style.ts +13 -13
  10. package/components/input/Input.style.tsx +9 -9
  11. package/components/input/components/InputOptions.tsx +5 -3
  12. package/components/navbar/components/DrawerLateral/DrawerLateral.styles.ts +8 -8
  13. package/components/navbar/components/DrawerLateral/DrawerLateralHelper.tsx +3 -3
  14. package/components/navbar/components/DrawerLateral/DrawerLateralSubMenu.tsx +2 -2
  15. package/components/navbar/components/EtendoLogo/EtendoLogo.tsx +2 -2
  16. package/components/navbar/components/MenuBurger/MenuBurger.tsx +2 -2
  17. package/components/navbar/components/Notification/Notification.styles.ts +11 -11
  18. package/components/navbar/components/Notification/Notification.tsx +3 -3
  19. package/components/navbar/components/Profile/Profile.styles.ts +12 -12
  20. package/components/navbar/components/Welcome/Welcome.styles.ts +3 -3
  21. package/components/states/componentsStates/ComponentsStatesScreen.style.ts +4 -4
  22. package/components/statusbar/StatusBar.styles.tsx +2 -2
  23. package/components/tab/Tab.stories.tsx +47 -0
  24. package/components/tab/Tab.styles.ts +20 -0
  25. package/components/tab/Tab.test.tsx +1 -2
  26. package/components/tab/Tab.tsx +20 -35
  27. package/components/tab/Tab.types.ts +8 -7
  28. package/components/tab/__snapshots__/Tab.test.tsx.snap +29 -23
  29. package/components/table/Table.stories.tsx +2 -0
  30. package/components/table/Table.styles.ts +9 -10
  31. package/components/table/Table.tsx +3 -3
  32. package/components/table/Table.types.ts +2 -2
  33. package/components/table/__snapshots__/Table.test.tsx.snap +124 -54
  34. package/components/table/components/TableCell.tsx +1 -1
  35. package/components/table/components/TableCellEdit.tsx +6 -4
  36. package/components/table/components/TableHeaders.tsx +2 -2
  37. package/helpers/table_utils.ts +3 -3
  38. package/package.json +1 -1
  39. package/styles/colors.ts +6 -6
  40. package/components/statusbar/StatusBar.stories.tsx +0 -84
  41. package/components/tab/Tabs.stories.tsx +0 -41
@@ -38,8 +38,7 @@ const getStories = () => {
38
38
  require('../components/navbar/Navbar.stories.tsx'),
39
39
  require('../components/pagination/Pagination.stories.tsx'),
40
40
  require('../components/states/States.stories.tsx'),
41
- require('../components/statusbar/StatusBar.stories.tsx'),
42
- require('../components/tab/Tabs.stories.tsx'),
41
+ require('../components/tab/Tab.stories.tsx'),
43
42
  require('../components/table/Table.stories.tsx'),
44
43
  ];
45
44
  };
@@ -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 { NEUTRALS_0 } from '../../styles/colors';
9
+ import { NEUTRAL_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={NEUTRALS_0}
32
+ fill={NEUTRAL_0}
33
33
  style={{
34
34
  marginRight: 10,
35
35
  width: 12,
@@ -1,5 +1,5 @@
1
1
  import {StyleSheet} from 'react-native';
2
- import { NEUTRALS_0, PRIMARY_100, QUATERNARY_10, QUATERNARY_50, SECONDARY_100, SECONDARY_30, TERTIARY_50 } from '../../styles/colors';
2
+ import { NEUTRAL_0, PRIMARY_100, QUATERNARY_10, QUATERNARY_50, SECONDARY_100, SECONDARY_30, TERTIARY_50 } from '../../styles/colors';
3
3
  import {buttonStyleVariant} from './Button.types';
4
4
 
5
5
  export const ButtonStyleVariant: buttonStyleVariant = {
@@ -14,7 +14,7 @@ export const ButtonStyleVariant: buttonStyleVariant = {
14
14
  padding: 24,
15
15
  },
16
16
  text: {
17
- color: NEUTRALS_0,
17
+ color: NEUTRAL_0,
18
18
  fontWeight: '600',
19
19
  },
20
20
  containerDisabled: {
@@ -25,10 +25,10 @@ export const ButtonStyleVariant: buttonStyleVariant = {
25
25
  alignItems: 'center',
26
26
  },
27
27
  textDisabled: {
28
- color: NEUTRALS_0,
28
+ color: NEUTRAL_0,
29
29
  fontWeight: 'bold',
30
30
  },
31
- imageColor: NEUTRALS_0,
31
+ imageColor: NEUTRAL_0,
32
32
  },
33
33
  secondary: {
34
34
  container: {
@@ -84,7 +84,7 @@ export const ButtonStyleVariant: buttonStyleVariant = {
84
84
  },
85
85
  whiteBorder: {
86
86
  container: {
87
- backgroundColor: NEUTRALS_0,
87
+ backgroundColor: NEUTRAL_0,
88
88
  borderRadius: 5,
89
89
  flexDirection: 'row',
90
90
  borderWidth: 2,
@@ -98,7 +98,7 @@ export const ButtonStyleVariant: buttonStyleVariant = {
98
98
  fontWeight: 'bold',
99
99
  },
100
100
  containerDisabled: {
101
- backgroundColor: NEUTRALS_0,
101
+ backgroundColor: NEUTRAL_0,
102
102
  borderRadius: 5,
103
103
  flexDirection: 'row',
104
104
  borderWidth: 2,
@@ -114,7 +114,7 @@ export const ButtonStyleVariant: buttonStyleVariant = {
114
114
  },
115
115
  white: {
116
116
  container: {
117
- backgroundColor: NEUTRALS_0,
117
+ backgroundColor: NEUTRAL_0,
118
118
  borderRadius: 5,
119
119
  flexDirection: 'row',
120
120
  justifyContent: 'center',
@@ -126,7 +126,7 @@ export const ButtonStyleVariant: buttonStyleVariant = {
126
126
  fontWeight: 'bold',
127
127
  },
128
128
  containerDisabled: {
129
- backgroundColor: NEUTRALS_0,
129
+ backgroundColor: NEUTRAL_0,
130
130
  borderRadius: 5,
131
131
  flexDirection: 'row',
132
132
  justifyContent: 'center',
@@ -1,6 +1,6 @@
1
1
  import React, {useState} from 'react';
2
2
  import {Pressable, Text, View} from 'react-native';
3
- import { NEUTRALS_100, PRIMARY_100, PRIMARY_80, QUATERNARY_100, QUATERNARY_50, SECONDARY_50 } from '../../styles/colors';
3
+ import { NEUTRAL_100, PRIMARY_100, PRIMARY_80, QUATERNARY_100, QUATERNARY_50, SECONDARY_50 } from '../../styles/colors';
4
4
  import {ButtonStyleVariant} from './Button.styles';
5
5
  import {ButtonProps, ButtonStyleType} from './Button.types';
6
6
 
@@ -32,9 +32,9 @@ const Button = ({
32
32
  case 'white':
33
33
  return QUATERNARY_100;
34
34
  case 'whiteBorder':
35
- return NEUTRALS_100;
35
+ return NEUTRAL_100;
36
36
  case 'primary':
37
- return NEUTRALS_100;
37
+ return NEUTRAL_100;
38
38
  default:
39
39
  return PRIMARY_100;
40
40
  }
@@ -1,10 +1,10 @@
1
1
  import {StyleSheet} from 'react-native';
2
2
  import {
3
- NEUTRALS_0,
4
- NEUTRALS_10,
5
- NEUTRALS_100,
6
- NEUTRALS_40,
7
- NEUTRALS_5,
3
+ NEUTRAL_0,
4
+ NEUTRAL_10,
5
+ NEUTRAL_100,
6
+ NEUTRAL_40,
7
+ NEUTRAL_5,
8
8
  PRIMARY_100,
9
9
  PRIMARY_30,
10
10
  PRIMARY_40,
@@ -243,19 +243,19 @@ export const styles = StyleSheet.create({
243
243
 
244
244
  export const CardVariant: CardStyleVariant = {
245
245
  primary: {
246
- colorCardContainer: {backgroundColor: NEUTRALS_0},
246
+ colorCardContainer: {backgroundColor: NEUTRAL_0},
247
247
  colorCardImageContainer: {backgroundColor: QUATERNARY_50},
248
248
  colorCardTitle: {color: PRIMARY_100},
249
- colorCardOptionContainer: {backgroundColor: NEUTRALS_0},
249
+ colorCardOptionContainer: {backgroundColor: NEUTRAL_0},
250
250
  colorCardOptionHeader: {
251
251
  backgroundColor: PRIMARY_100,
252
- borderBottomColor: NEUTRALS_0,
252
+ borderBottomColor: NEUTRAL_0,
253
253
  },
254
- colorCardOptionHeaderTitle: {color: NEUTRALS_0},
255
- colorCardItemContainer: {borderBottomColor: NEUTRALS_10},
254
+ colorCardOptionHeaderTitle: {color: NEUTRAL_0},
255
+ colorCardItemContainer: {borderBottomColor: NEUTRAL_10},
256
256
  colorCardItemTitle: {color: PRIMARY_100},
257
257
  colorCardItemDescription: {color: TERTIARY_100},
258
- colorCardOptionSkeletonContainer: {borderBottomColor: NEUTRALS_10},
258
+ colorCardOptionSkeletonContainer: {borderBottomColor: NEUTRAL_10},
259
259
  colorCardItemImageContainer: {backgroundColor: QUATERNARY_50},
260
260
  colorCardOptionSkeletonItem: TERTIARY_30,
261
261
  colorCardOptionSkeletonHeaderItem: PRIMARY_80,
@@ -266,28 +266,28 @@ export const CardVariant: CardStyleVariant = {
266
266
  secondary: {
267
267
  colorCardContainer: {backgroundColor: PRIMARY_100},
268
268
  colorCardImageContainer: {backgroundColor: PRIMARY_80},
269
- colorCardTitle: {color: NEUTRALS_0},
269
+ colorCardTitle: {color: NEUTRAL_0},
270
270
  colorCardOptionContainer: {backgroundColor: PRIMARY_100},
271
271
  colorCardOptionHeader: {
272
272
  backgroundColor: PRIMARY_100,
273
- borderBottomColor: NEUTRALS_100,
273
+ borderBottomColor: NEUTRAL_100,
274
274
  },
275
- colorCardOptionHeaderTitle: {color: NEUTRALS_0},
276
- colorCardItemContainer: {borderBottomColor: NEUTRALS_100},
277
- colorCardItemTitle: {color: NEUTRALS_0},
275
+ colorCardOptionHeaderTitle: {color: NEUTRAL_0},
276
+ colorCardItemContainer: {borderBottomColor: NEUTRAL_100},
277
+ colorCardItemTitle: {color: NEUTRAL_0},
278
278
  colorCardItemDescription: {color: TERTIARY_50},
279
- colorCardOptionSkeletonContainer: {borderBottomColor: NEUTRALS_0},
279
+ colorCardOptionSkeletonContainer: {borderBottomColor: NEUTRAL_100},
280
280
  colorCardItemImageContainer: {backgroundColor: PRIMARY_80},
281
281
  colorCardOptionSkeletonItem: PRIMARY_80,
282
282
  colorCardOptionSkeletonHeaderItem: PRIMARY_80,
283
- colorCardArrowImageFill: NEUTRALS_0,
283
+ colorCardArrowImageFill: NEUTRAL_0,
284
284
  colorCardImageFill: SECONDARY_100,
285
- colorCardImageOptionFill: NEUTRALS_0,
285
+ colorCardImageOptionFill: NEUTRAL_0,
286
286
  },
287
287
  disabledPrimary: {
288
- colorCardContainer: {backgroundColor: NEUTRALS_5},
289
- colorCardImageContainer: {backgroundColor: NEUTRALS_10},
290
- colorCardTitle: {color: NEUTRALS_40},
288
+ colorCardContainer: {backgroundColor: NEUTRAL_5},
289
+ colorCardImageContainer: {backgroundColor: NEUTRAL_10},
290
+ colorCardTitle: {color: NEUTRAL_40},
291
291
  colorCardOptionContainer: {},
292
292
  colorCardOptionHeader: {},
293
293
  colorCardOptionHeaderTitle: {},
@@ -298,8 +298,8 @@ export const CardVariant: CardStyleVariant = {
298
298
  colorCardItemImageContainer: {},
299
299
  colorCardOptionSkeletonItem: '',
300
300
  colorCardOptionSkeletonHeaderItem: '',
301
- colorCardArrowImageFill: NEUTRALS_40,
302
- colorCardImageFill: NEUTRALS_40,
301
+ colorCardArrowImageFill: NEUTRAL_40,
302
+ colorCardImageFill: NEUTRAL_40,
303
303
  colorCardImageOptionFill: '',
304
304
  },
305
305
  disabledSecondary: {
@@ -68,6 +68,12 @@ const CardDropdown = ({
68
68
  }
69
69
  setVisibleOptions(false);
70
70
  };
71
+ const handleTopLeft = (pageY:number, height:number) => {
72
+ if(windowHeight - heightDropdown - heightExtra > pageY - height){
73
+ return windowHeight - heightDropdown - heightExtra
74
+ }
75
+ return pageY + height - heightDropdown
76
+ }
71
77
 
72
78
  useEffect(() => {
73
79
  if (visibleOptions){
@@ -87,10 +93,9 @@ const CardDropdown = ({
87
93
  pageY: number,
88
94
  ) => {
89
95
  let dropdownHeight = pageY + heightDropdown;
90
-
91
96
  if (dropdownHeight > windowHeight) {
92
97
  setpositionModal({
93
- top: windowHeight - heightDropdown - heightExtra,
98
+ top: handleTopLeft(pageY,height),
94
99
  left: pageX,
95
100
  width,
96
101
  height,
@@ -14,7 +14,7 @@ import {
14
14
  CardDropdownData,
15
15
  CardDropdownOptionsProps,
16
16
  } from '../CardDropdown.types';
17
- import { NEUTRALS_0, PRIMARY_60, QUATERNARY_10, SECONDARY_100 } from '../../../../styles/colors';
17
+ import { NEUTRAL_0, PRIMARY_60, QUATERNARY_10, SECONDARY_100 } from '../../../../styles/colors';
18
18
 
19
19
  const CardDropdownOptions = ({
20
20
  data,
@@ -99,7 +99,7 @@ const CardDropdownOptions = ({
99
99
  {title}
100
100
  </Text>
101
101
  <View style={styles.cardOptionArrowContainer}>
102
- <ArrowDown style={styles.cardOptionArrowImage} fill={NEUTRALS_0} />
102
+ <ArrowDown style={styles.cardOptionArrowImage} fill={NEUTRAL_0} />
103
103
  </View>
104
104
  </View>
105
105
  </TouchableOpacity>
@@ -1,26 +1,26 @@
1
1
  import {StyleSheet} from 'react-native';
2
- import {NEUTRALS_10, NEUTRALS_100} from '../../../../styles/colors';
2
+ import {NEUTRAL_10, NEUTRAL_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: NEUTRALS_100,
9
+ color: NEUTRAL_100,
10
10
  },
11
11
  version: {
12
12
  fontSize: 30,
13
13
  fontWeight: '600',
14
14
  marginBottom: 10,
15
- color: NEUTRALS_100,
15
+ color: NEUTRAL_100,
16
16
  borderBottomWidth: 1,
17
- borderColor: NEUTRALS_10,
17
+ borderColor: NEUTRAL_10,
18
18
  },
19
19
  feature: {
20
20
  fontSize: 18,
21
21
  fontWeight: '600',
22
- color: NEUTRALS_100,
22
+ color: NEUTRAL_100,
23
23
  marginBottom: 10,
24
24
  },
25
- items: {color: NEUTRALS_100, fontSize: 15, marginLeft: 20, marginBottom: 10},
25
+ items: {color: NEUTRAL_100, fontSize: 15, marginLeft: 20, marginBottom: 10},
26
26
  });
@@ -1,9 +1,9 @@
1
1
  import {StyleSheet} from 'react-native';
2
2
  import {
3
- NEUTRALS_0,
4
- NEUTRALS_10,
5
- NEUTRALS_100,
6
- NEUTRALS_40,
3
+ NEUTRAL_0,
4
+ NEUTRAL_10,
5
+ NEUTRAL_100,
6
+ NEUTRAL_40,
7
7
  } from '../../../../styles/colors';
8
8
 
9
9
  export const styles = StyleSheet.create({
@@ -11,46 +11,46 @@ export const styles = StyleSheet.create({
11
11
  fontSize: 30,
12
12
  fontWeight: '600',
13
13
  marginBottom: 20,
14
- color: NEUTRALS_100,
14
+ color: NEUTRAL_100,
15
15
  },
16
- description: {color: NEUTRALS_100, marginBottom: 20},
16
+ description: {color: NEUTRAL_100, marginBottom: 20},
17
17
  subTitle: {
18
18
  fontSize: 26,
19
19
  fontWeight: '600',
20
20
  borderBottomWidth: 1,
21
- borderBottomColor: NEUTRALS_10,
22
- color: NEUTRALS_100,
21
+ borderBottomColor: NEUTRAL_10,
22
+ color: NEUTRAL_100,
23
23
  },
24
24
  clipboardContainer: {alignItems: 'flex-start'},
25
25
  clipboardTitle: {
26
26
  fontSize: 22,
27
27
  fontWeight: '600',
28
28
  marginTop: 20,
29
- color: NEUTRALS_100,
29
+ color: NEUTRAL_100,
30
30
  },
31
31
  clipboardContent: {
32
32
  alignItems: 'flex-end',
33
33
  borderWidth: 1,
34
- borderColor: NEUTRALS_10,
34
+ borderColor: NEUTRAL_10,
35
35
  padding: 15,
36
36
  paddingBottom: 0,
37
37
  paddingRight: 0,
38
38
  },
39
39
  clipboardText: {
40
40
  fontSize: 15,
41
- color: NEUTRALS_100,
41
+ color: NEUTRAL_100,
42
42
  letterSpacing: 1,
43
43
  width: 400,
44
44
  },
45
45
  clipboardCopyContainer: {
46
46
  borderLeftWidth: 1,
47
47
  borderTopWidth: 1,
48
- borderColor: NEUTRALS_10,
48
+ borderColor: NEUTRAL_10,
49
49
  padding: 2,
50
50
  },
51
51
  clipboardCopyText: {
52
52
  fontWeight: '600',
53
53
  paddingHorizontal: 10,
54
- color: NEUTRALS_100,
54
+ color: NEUTRAL_100,
55
55
  },
56
56
  });
@@ -8,10 +8,10 @@ import {ShowPassword} from '../../assets/images/icons/ShowPassword';
8
8
  import {
9
9
  DESTRUCTIVE_10,
10
10
  DESTRUCTIVE_100,
11
- NEUTRALS_0,
12
- NEUTRALS_10,
13
- NEUTRALS_5,
14
- NEUTRALS_60,
11
+ NEUTRAL_0,
12
+ NEUTRAL_10,
13
+ NEUTRAL_5,
14
+ NEUTRAL_60,
15
15
  PRIMARY_100,
16
16
  QUATERNARY_50,
17
17
  TERTIARY_100,
@@ -122,7 +122,7 @@ const defaultTextPlaceholder: TextStyle = {
122
122
  };
123
123
 
124
124
  const defaultHelperText: TextStyle = {
125
- color: NEUTRALS_60,
125
+ color: NEUTRAL_60,
126
126
  fontSize: 14,
127
127
  };
128
128
 
@@ -170,7 +170,7 @@ export const inputStyleVariants: TypeInputStyleVariant = {
170
170
  readOnly: {
171
171
  titleStyle: defaultTitle,
172
172
  fieldStyle: {
173
- field: [defaultField, {backgroundColor: NEUTRALS_5}],
173
+ field: [defaultField, {backgroundColor: NEUTRAL_5}],
174
174
  focus: defaultFocus,
175
175
  textDefault: defaultText,
176
176
  textPlaceholder: defaultTextPlaceholder,
@@ -264,10 +264,10 @@ export const styles = StyleSheet.create({
264
264
  },
265
265
  optionsContainer: {
266
266
  position: 'absolute',
267
- backgroundColor: NEUTRALS_0,
267
+ backgroundColor: NEUTRAL_0,
268
268
  borderRadius: 5,
269
269
  borderWidth: 1.5,
270
- borderColor: NEUTRALS_10,
270
+ borderColor: NEUTRAL_10,
271
271
  zIndex: 2,
272
272
  },
273
273
  optionsItemsContainer: {
@@ -276,7 +276,7 @@ export const styles = StyleSheet.create({
276
276
  optionFilterContainer: {
277
277
  height: 35,
278
278
  borderBottomWidth: 1,
279
- borderBottomColor: NEUTRALS_10,
279
+ borderBottomColor: NEUTRAL_10,
280
280
  marginHorizontal: 9,
281
281
  display: 'flex',
282
282
  flexDirection: 'row',
@@ -12,7 +12,7 @@ import React, {useState} from 'react';
12
12
  import {styles} from '../Input.style';
13
13
  import {InputOptionsProps} from '../Input.types';
14
14
  import {SearchIcon} from '../../../assets/images/icons/SearchIcon';
15
- import { NEUTRALS_40, QUATERNARY_10 } from '../../../styles/colors';
15
+ import { NEUTRAL_40, QUATERNARY_10 } from '../../../styles/colors';
16
16
 
17
17
  const InputOptions = ({
18
18
  data,
@@ -29,7 +29,9 @@ const InputOptions = ({
29
29
  const [indexHover, setIndexHover] = useState<number>(-1);
30
30
 
31
31
  const handleOptionSelected = (item: any, index: number) => {
32
- onOptionSelected(item, index);
32
+ if(onOptionSelected){
33
+ onOptionSelected(item, index);
34
+ }
33
35
  onClose();
34
36
  };
35
37
 
@@ -102,7 +104,7 @@ const InputOptions = ({
102
104
  value={filterValue}
103
105
  onChangeText={onChangeFilterText}
104
106
  placeholder={placeholderText}
105
- placeholderTextColor={NEUTRALS_40}
107
+ placeholderTextColor={NEUTRAL_40}
106
108
  />
107
109
  </View>
108
110
  <ScrollView
@@ -1,7 +1,7 @@
1
1
  import {StyleSheet} from 'react-native';
2
2
  import {
3
- NEUTRALS_0,
4
- NEUTRALS_60,
3
+ NEUTRAL_0,
4
+ NEUTRAL_60,
5
5
  PRIMARY_100,
6
6
  PRIMARY_80,
7
7
  QUATERNARY_10,
@@ -67,13 +67,13 @@ export const styles = StyleSheet.create({
67
67
  marginRight: 12,
68
68
  },
69
69
  modalCurrentLabel: {
70
- color: NEUTRALS_0,
70
+ color: NEUTRAL_0,
71
71
  fontSize: 16,
72
72
  },
73
73
  modalSectionsContainer: {},
74
74
  modalSection: {},
75
75
  modalSectionTitle: {
76
- color: NEUTRALS_60,
76
+ color: NEUTRAL_60,
77
77
  fontSize: 16,
78
78
  },
79
79
  modalSectionContentContainer: {
@@ -103,7 +103,7 @@ export const styles = StyleSheet.create({
103
103
  marginRight: 12,
104
104
  },
105
105
  modalSectionItemText: {
106
- color: NEUTRALS_0,
106
+ color: NEUTRAL_0,
107
107
  fontSize: 16,
108
108
  width: 150,
109
109
  },
@@ -119,8 +119,8 @@ export const styles = StyleSheet.create({
119
119
  marginBottom: 20,
120
120
  marginTop: 5,
121
121
  borderLeftWidth: 1,
122
- borderColor: NEUTRALS_60,
122
+ borderColor: NEUTRAL_60,
123
123
  },
124
- copyright: {color: NEUTRALS_60},
125
- version: {color: NEUTRALS_60},
124
+ copyright: {color: NEUTRAL_60},
125
+ version: {color: NEUTRAL_60},
126
126
  });
@@ -1,6 +1,6 @@
1
1
  import {ColorValue, ViewStyle} from 'react-native';
2
2
  import {DrawerCurrentIndexType} from '../../Navbar.types';
3
- import { NEUTRALS_0, PRIMARY_80, SECONDARY_100 } from '../../../../styles/colors';
3
+ import { NEUTRAL_0, PRIMARY_80, SECONDARY_100 } from '../../../../styles/colors';
4
4
 
5
5
  export const getCurrentSelectIndex = (
6
6
  indexSection: number,
@@ -42,7 +42,7 @@ export const getStyleImageSelected = (
42
42
  ) {
43
43
  return SECONDARY_100;
44
44
  }
45
- return NEUTRALS_0;
45
+ return NEUTRAL_0;
46
46
  };
47
47
 
48
48
  export const getStyleImageSelectedSubSection = (
@@ -56,5 +56,5 @@ export const getStyleImageSelectedSubSection = (
56
56
  ) {
57
57
  return SECONDARY_100;
58
58
  }
59
- return NEUTRALS_0;
59
+ return NEUTRAL_0;
60
60
  };
@@ -12,7 +12,7 @@ import {
12
12
  getStyleImageSelectedSubSection,
13
13
  getStyleSelected,
14
14
  } from './DrawerLateralHelper';
15
- import { NEUTRALS_0 } from '../../../../styles/colors';
15
+ import { NEUTRAL_0 } from '../../../../styles/colors';
16
16
 
17
17
  const DrawerLateralSubMenu = ({
18
18
  data,
@@ -84,7 +84,7 @@ const DrawerLateralSubMenu = ({
84
84
  >
85
85
  {label}
86
86
  </Text>
87
- <ArrowDown style={styles.modalSectionMenuDropdownImage} fill={NEUTRALS_0} />
87
+ <ArrowDown style={styles.modalSectionMenuDropdownImage} fill={NEUTRAL_0} />
88
88
  </Pressable>
89
89
  {showSubMenu && (
90
90
  <View style={styles.modalSectionSubMenuContainer}>
@@ -3,12 +3,12 @@ import React from 'react';
3
3
  import {styles} from './EtendoLogo.styles';
4
4
  import {EtendoLogoProps} from '../../Navbar.types';
5
5
  import {EtendoWhiteLogo} from '../../../../assets/images/logo/EtendoWhiteLogo';
6
- import { NEUTRALS_0 } from '../../../../styles/colors';
6
+ import { NEUTRAL_0 } from '../../../../styles/colors';
7
7
 
8
8
  const EtendoLogo = ({onPress}: EtendoLogoProps) => {
9
9
  return (
10
10
  <TouchableOpacity onPress={onPress}>
11
- <EtendoWhiteLogo fill={NEUTRALS_0} style={styles.image} />
11
+ <EtendoWhiteLogo fill={NEUTRAL_0} style={styles.image} />
12
12
  </TouchableOpacity>
13
13
  );
14
14
  };
@@ -2,13 +2,13 @@ import {TouchableOpacity} from 'react-native';
2
2
  import React from 'react';
3
3
  import {MenuBurgerProps} from '../../Navbar.types';
4
4
  import {MenuburgerIcon} from '../../../../assets/images/icons/MenuburgerIcon';
5
- import {NEUTRALS_0} from '../../../../styles/colors';
5
+ import {NEUTRAL_0} from '../../../../styles/colors';
6
6
  import {styles} from './MenuBurger.styles';
7
7
 
8
8
  const MenuBurger = ({onPress}: MenuBurgerProps) => {
9
9
  return (
10
10
  <TouchableOpacity onPress={onPress}>
11
- <MenuburgerIcon fill={NEUTRALS_0} style={styles.menuBurgerImage} />
11
+ <MenuburgerIcon fill={NEUTRAL_0} style={styles.menuBurgerImage} />
12
12
  </TouchableOpacity>
13
13
  );
14
14
  };
@@ -1,11 +1,11 @@
1
1
  import {StyleSheet} from 'react-native';
2
2
  import {
3
3
  INITIAL_100,
4
- NEUTRALS_0,
5
- NEUTRALS_10,
6
- NEUTRALS_100,
7
- NEUTRALS_40,
8
- NEUTRALS_5,
4
+ NEUTRAL_0,
5
+ NEUTRAL_10,
6
+ NEUTRAL_100,
7
+ NEUTRAL_40,
8
+ NEUTRAL_5,
9
9
  PRIMARY_100,
10
10
  } from '../../../../styles/colors';
11
11
 
@@ -24,7 +24,7 @@ export const styles = StyleSheet.create({
24
24
  },
25
25
  selectedOptionContainer: {
26
26
  padding: 10,
27
- backgroundColor: NEUTRALS_40,
27
+ backgroundColor: NEUTRAL_40,
28
28
  borderRadius: 5,
29
29
  },
30
30
  selectedOption: {
@@ -32,7 +32,7 @@ export const styles = StyleSheet.create({
32
32
  },
33
33
  optionsContainer: {
34
34
  position: 'absolute',
35
- backgroundColor: NEUTRALS_0,
35
+ backgroundColor: NEUTRAL_0,
36
36
  borderRadius: 5,
37
37
  zIndex: 2,
38
38
  width: 350,
@@ -41,26 +41,26 @@ export const styles = StyleSheet.create({
41
41
  flexDirection: 'row',
42
42
  justifyContent: 'space-between',
43
43
  borderBottomWidth: 1,
44
- borderBottomColor: NEUTRALS_10,
44
+ borderBottomColor: NEUTRAL_10,
45
45
  padding: 15,
46
46
  },
47
47
  option: {
48
48
  paddingVertical: 12,
49
49
  paddingHorizontal: 16,
50
50
  borderBottomWidth: 1,
51
- borderBottomColor: NEUTRALS_5,
51
+ borderBottomColor: NEUTRAL_5,
52
52
  flexDirection: 'row',
53
53
  alignItems: 'center',
54
54
  },
55
55
  optionText: {
56
56
  fontSize: 12,
57
- color: NEUTRALS_100,
57
+ color: NEUTRAL_100,
58
58
  marginBottom: 5,
59
59
  width: 300,
60
60
  },
61
61
  optionTimeText: {
62
62
  fontSize: 12,
63
- color: NEUTRALS_40,
63
+ color: NEUTRAL_40,
64
64
  },
65
65
  optionMarkAllText: {color: INITIAL_100, fontSize: 12},
66
66
  optionNotificationText: {color: PRIMARY_100, fontWeight: '600', fontSize: 14},
@@ -5,7 +5,7 @@ import { BellIcon } from '../../../../assets/images/icons/BellIcon';
5
5
  import { NotificationProps, OptionNotificationItem, PosicionModalType } from '../../Navbar.types';
6
6
  import NotificationsOptions from './NotificationsOptions';
7
7
  import { styles } from './Notification.styles';
8
- import { NEUTRALS_0 } from '../../../../styles/colors';
8
+ import { NEUTRAL_0 } from '../../../../styles/colors';
9
9
 
10
10
  const Notification = ({
11
11
  anyNotification,
@@ -65,9 +65,9 @@ const Notification = ({
65
65
  }}
66
66
  >
67
67
  {anyNotification ? (
68
- <BellActiveIcon style={styles.imageNotification} fill={NEUTRALS_0} />
68
+ <BellActiveIcon style={styles.imageNotification} fill={NEUTRAL_0} />
69
69
  ) : (
70
- <BellIcon style={styles.imageNotification} fill={NEUTRALS_0} />
70
+ <BellIcon style={styles.imageNotification} fill={NEUTRAL_0} />
71
71
  )}
72
72
  </TouchableOpacity>
73
73
  <Modal transparent={true} visible={showOptions} animationType="fade">