etendo-ui-library 1.0.21 → 1.0.23

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 (69) hide show
  1. package/assets/images/icons/back-button.png +0 -0
  2. package/assets/images/icons/back-double-button.png +0 -0
  3. package/assets/images/{binoculars.png → icons/binoculars.png} +0 -0
  4. package/assets/images/{chat.png → icons/chat.png} +0 -0
  5. package/assets/images/{more.png → icons/hamburger.png} +0 -0
  6. package/assets/images/icons/next-button.png +0 -0
  7. package/assets/images/icons/next-double-button.png +0 -0
  8. package/assets/images/{pencil.png → icons/pencil.png} +0 -0
  9. package/assets/images/{reports.png → icons/reports.png} +0 -0
  10. package/assets/images/icons/search.png +0 -0
  11. package/assets/images/{tracing.png → icons/tracing.png} +0 -0
  12. package/assets/images/{user.png → icons/userNoBorder.png} +0 -0
  13. package/assets/images/{video.png → icons/video.png} +0 -0
  14. package/assets/images/{way.png → icons/way.png} +0 -0
  15. package/components/button/Button.stories.tsx +5 -5
  16. package/components/button/Button.styles.tsx +15 -0
  17. package/components/button/Button.test.tsx +1 -1
  18. package/components/button/Button.tsx +1 -1
  19. package/components/button/Button.types.tsx +2 -1
  20. package/components/button/__snapshots__/Button.test.tsx.snap +4 -1
  21. package/components/navbar/Navbar.stories.tsx +8 -8
  22. package/components/navbar/Navbar.test.tsx +5 -5
  23. package/components/navbar/__snapshots__/Navbar.test.tsx.snap +4 -4
  24. package/components/pagination/Pagination.styles.tsx +1 -1
  25. package/components/pagination/Pagination.tsx +4 -4
  26. package/components/pagination/__snapshots__/Pagination.test.tsx.snap +8 -8
  27. package/helpers/{utilimage.tsx → utilimage.ts} +0 -0
  28. package/package.json +1 -1
  29. package/storybook-static/{0.d46b4c7c.iframe.bundle.js → 0.80458c68.iframe.bundle.js} +1 -1
  30. package/storybook-static/{4.5a4214ed.iframe.bundle.js → 4.7a0ebe65.iframe.bundle.js} +3 -3
  31. package/storybook-static/{4.5a4214ed.iframe.bundle.js.LICENSE.txt → 4.7a0ebe65.iframe.bundle.js.LICENSE.txt} +0 -0
  32. package/storybook-static/4.7a0ebe65.iframe.bundle.js.map +1 -0
  33. package/storybook-static/{5.0c180334.iframe.bundle.js → 5.e2d3b4fb.iframe.bundle.js} +1 -1
  34. package/storybook-static/{6.4ec58b20.iframe.bundle.js → 6.1e198358.iframe.bundle.js} +3 -3
  35. package/storybook-static/{6.4ec58b20.iframe.bundle.js.LICENSE.txt → 6.1e198358.iframe.bundle.js.LICENSE.txt} +0 -0
  36. package/storybook-static/6.1e198358.iframe.bundle.js.map +1 -0
  37. package/storybook-static/{7.9e361e0a.iframe.bundle.js → 7.606df0d6.iframe.bundle.js} +1 -1
  38. package/storybook-static/iframe.html +1 -1
  39. package/storybook-static/main.97ce53dc.iframe.bundle.js +1 -0
  40. package/storybook-static/{runtime~main.0937d19d.iframe.bundle.js → runtime~main.d44a6cf4.iframe.bundle.js} +1 -1
  41. package/storybook-static/static/media/check.31be0da4.png +0 -0
  42. package/storybook-static/static/media/{more.eb5c797f.png → hamburger.eb5c797f.png} +0 -0
  43. package/storybook-static/static/media/{user.1f2abb7e.png → userNoBorder.1f2abb7e.png} +0 -0
  44. package/storybook-static/{vendors~main.641b391e.iframe.bundle.js → vendors~main.195287a6.iframe.bundle.js} +3 -3
  45. package/storybook-static/{vendors~main.641b391e.iframe.bundle.js.LICENSE.txt → vendors~main.195287a6.iframe.bundle.js.LICENSE.txt} +0 -0
  46. package/storybook-static/vendors~main.195287a6.iframe.bundle.js.map +1 -0
  47. package/assets/images/back-button.png +0 -0
  48. package/assets/images/back-double-button.png +0 -0
  49. package/assets/images/icons/pencil-edit.png +0 -0
  50. package/assets/images/next-button.png +0 -0
  51. package/assets/images/next-double-button.png +0 -0
  52. package/assets/images/search.png +0 -0
  53. package/components/asset/Check.png +0 -0
  54. package/components/asset/CheckWhite.png +0 -0
  55. package/components/asset/fonts/Inter-Black.ttf +0 -0
  56. package/components/asset/fonts/Inter-Bold.ttf +0 -0
  57. package/components/asset/fonts/Inter-ExtraBold.ttf +0 -0
  58. package/components/asset/fonts/Inter-ExtraLight.ttf +0 -0
  59. package/components/asset/fonts/Inter-Light.ttf +0 -0
  60. package/components/asset/fonts/Inter-Medium.ttf +0 -0
  61. package/components/asset/fonts/Inter-Regular.ttf +0 -0
  62. package/components/asset/fonts/Inter-SemiBold.ttf +0 -0
  63. package/components/asset/fonts/Inter-Thin.ttf +0 -0
  64. package/storybook-static/4.5a4214ed.iframe.bundle.js.map +0 -1
  65. package/storybook-static/6.4ec58b20.iframe.bundle.js.map +0 -1
  66. package/storybook-static/main.0b3a580d.iframe.bundle.js +0 -1
  67. package/storybook-static/static/media/Check.56f332a7.png +0 -0
  68. package/storybook-static/static/media/CheckWhite.ca633081.png +0 -0
  69. package/storybook-static/vendors~main.641b391e.iframe.bundle.js.map +0 -1
Binary file
File without changes
File without changes
Binary file
File without changes
File without changes
Binary file
File without changes
File without changes
File without changes
@@ -28,7 +28,7 @@ primary.args =
28
28
  },
29
29
  typeStyle: 'primary',
30
30
  image: {
31
- imgRoute: require('../asset/CheckWhite.png'),
31
+ imgRoute: require('../../assets/images/icons/check.png'),
32
32
  imgHeight: 10,
33
33
  imgWidth: 12,
34
34
  imgMarginRight: 10
@@ -44,7 +44,7 @@ secondary.args =
44
44
  onPress: ()=> {console.log('Press Button')},
45
45
  typeStyle: 'secondary',
46
46
  image: {
47
- imgRoute: require('../asset/Check.png'),
47
+ imgRoute: require('../../assets/images/icons/check.png'),
48
48
  imgHeight: 10,
49
49
  imgWidth: 12,
50
50
  imgMarginRight: 10
@@ -61,7 +61,7 @@ terciary.args =
61
61
  },
62
62
  typeStyle: 'terciary',
63
63
  image: {
64
- imgRoute: require('../asset/Check.png'),
64
+ imgRoute: require('../../assets/images/icons/check.png'),
65
65
  imgHeight: 10,
66
66
  imgWidth: 12,
67
67
  imgMarginRight: 10
@@ -79,7 +79,7 @@ whiteBorder.args =
79
79
  },
80
80
  typeStyle: 'whiteBorder',
81
81
  image: {
82
- imgRoute:require('../asset/Check.png'),
82
+ imgRoute:require('../../assets/images/icons/check.png'),
83
83
  imgHeight:10,
84
84
  imgWidth: 12,
85
85
  imgMarginRight: 10
@@ -97,7 +97,7 @@ white.args =
97
97
  },
98
98
  typeStyle: 'white',
99
99
  image: {
100
- imgRoute:require('../asset/Check.png'),
100
+ imgRoute:require('../../assets/images/icons/check.png'),
101
101
  imgHeight:10,
102
102
  imgWidth: 12,
103
103
  imgMarginRight: 10
@@ -25,6 +25,9 @@ export const ButtonStyleVariant:buttonStyleVariant = {
25
25
  color: WHITE,
26
26
  fontWeight: 'bold',
27
27
  },
28
+ imageColor: {
29
+ tintColor: WHITE
30
+ }
28
31
  },
29
32
  secondary: {
30
33
  container: {
@@ -49,6 +52,9 @@ export const ButtonStyleVariant:buttonStyleVariant = {
49
52
  color: GREY_BLUE_50,
50
53
  fontWeight: 'bold',
51
54
  },
55
+ imageColor: {
56
+ tintColor: BLUE
57
+ }
52
58
  },
53
59
  terciary: {
54
60
  container: {
@@ -73,6 +79,9 @@ export const ButtonStyleVariant:buttonStyleVariant = {
73
79
  color: GREY_BLUE_50,
74
80
  fontWeight: 'bold',
75
81
  },
82
+ imageColor: {
83
+ tintColor: BLUE
84
+ }
76
85
  },
77
86
  whiteBorder: {
78
87
  container: {
@@ -101,6 +110,9 @@ export const ButtonStyleVariant:buttonStyleVariant = {
101
110
  color: GREY_BLUE_50,
102
111
  fontWeight: 'bold',
103
112
  },
113
+ imageColor: {
114
+ tintColor: BLUE
115
+ }
104
116
  },
105
117
  white: {
106
118
  container: {
@@ -125,6 +137,9 @@ export const ButtonStyleVariant:buttonStyleVariant = {
125
137
  color: GREY_BLUE_50,
126
138
  fontWeight: 'bold',
127
139
  },
140
+ imageColor: {
141
+ tintColor: BLUE
142
+ }
128
143
  }
129
144
  }
130
145
 
@@ -11,7 +11,7 @@ describe('Running Test for Input', () => {
11
11
  onPress={() => { } }
12
12
  typeStyle={'primary'}
13
13
  image={{
14
- imgRoute:require('../asset/CheckWhite.png'),
14
+ imgRoute:require('../../assets/images/icons/check.png'),
15
15
  imgHeight:12,
16
16
  imgWidth:16,
17
17
  imgMarginRight:10
@@ -27,7 +27,7 @@ const Button = ({ text, onPress, typeStyle, image, disabled, typeSize }: ButtonP
27
27
  onPress= { onPress }>
28
28
  {
29
29
  image?.imgRoute && <Image source={image.imgRoute}
30
- style= {[addImageStyle(image), { opacity:disabled? 0.2 : 1 }]}></Image>
30
+ style= {[addImageStyle(image), { opacity:disabled? 0.2 : 1 }, ButtonStyleVariant[typeStyle].imageColor]}></Image>
31
31
  }
32
32
  <Text style= {[ stateStyleText(), ButtonSizeVariant[typeSize].buttonSize ]}> { text } </Text>
33
33
  </TouchableOpacity>
@@ -1,4 +1,4 @@
1
- import {ImageSourcePropType, TextStyle, ViewStyle} from 'react-native'
1
+ import {ImageSourcePropType, ImageStyle, TextStyle, ViewStyle} from 'react-native'
2
2
 
3
3
  export type ButtonStyleType = 'primary' | 'secondary' |'terciary' |'whiteBorder' | 'white' ;
4
4
 
@@ -10,6 +10,7 @@ ButtonStyleType, {
10
10
  text: TextStyle,
11
11
  containerDisabled: ViewStyle,
12
12
  textDisabled: TextStyle,
13
+ imageColor: ImageStyle,
13
14
  }>
14
15
 
15
16
  export type buttonSizeVariant = Record<
@@ -29,7 +29,7 @@ exports[`Running Test for Input Check Button disabled 1`] = `
29
29
  <Image
30
30
  source={
31
31
  Object {
32
- "testUri": "../../../components/asset/CheckWhite.png",
32
+ "testUri": "../../../assets/images/icons/check.png",
33
33
  }
34
34
  }
35
35
  style={
@@ -48,6 +48,9 @@ exports[`Running Test for Input Check Button disabled 1`] = `
48
48
  Object {
49
49
  "opacity": 0.2,
50
50
  },
51
+ Object {
52
+ "tintColor": "#FFFFFF",
53
+ },
51
54
  ]
52
55
  }
53
56
  />
@@ -19,31 +19,31 @@ const datasetNavbarH = [
19
19
  name: 'FirstName LastName',
20
20
  },
21
21
  {
22
- routeImage: require('../../assets/images/more.png'),
22
+ routeImage: require('../../assets/images/icons/hamburger.png'),
23
23
  routeNav: '',
24
24
  key: 'dataset1',
25
25
  name: 'FirstName LastName',
26
26
  },
27
27
  {
28
- routeImage: require('../../assets/images/binoculars.png'),
28
+ routeImage: require('../../assets/images/icons/binoculars.png'),
29
29
  routeNav: '',
30
30
  key: 'dataset2',
31
31
  name: 'FirstName LastName',
32
32
  },
33
33
  {
34
- routeImage: require('../../assets/images/video.png'),
34
+ routeImage: require('../../assets/images/icons/video.png'),
35
35
  routeNav: '',
36
36
  key: 'dataset3',
37
37
  name: 'FirstName LastName',
38
38
  },
39
39
  {
40
- routeImage: require('../../assets/images/chat.png'),
40
+ routeImage: require('../../assets/images/icons/chat.png'),
41
41
  routeNav: '',
42
42
  key: 'dataset4',
43
43
  name: 'FirstName LastName',
44
44
  },
45
45
  {
46
- routeImage: require('../../assets/images/user.png'),
46
+ routeImage: require('../../assets/images/icons/userNoBorder.png'),
47
47
  routeNav: '',
48
48
  key: 'dataset5',
49
49
  name: 'FirstName LastName',
@@ -52,19 +52,19 @@ const datasetNavbarH = [
52
52
 
53
53
  const datasetNavbarV = [
54
54
  {
55
- routeImage: require('../../assets/images/way.png'),
55
+ routeImage: require('../../assets/images/icons/way.png'),
56
56
  routeNav: '',
57
57
  key: 'dataset0',
58
58
  name: 'Routes',
59
59
  },
60
60
  {
61
- routeImage: require('../../assets/images/tracing.png'),
61
+ routeImage: require('../../assets/images/icons/tracing.png'),
62
62
  routeNav: '',
63
63
  key: 'dataset1',
64
64
  name: 'Tracing',
65
65
  },
66
66
  {
67
- routeImage: require('../../assets/images/reports.png'),
67
+ routeImage: require('../../assets/images/icons/reports.png'),
68
68
  routeNav: '',
69
69
  key: 'dataset2',
70
70
  name: 'Reports',
@@ -11,31 +11,31 @@ const datasetNavbarH = [
11
11
  name: 'FirstName LastName',
12
12
  },
13
13
  {
14
- routeImage: require('../../assets/images/more.png'),
14
+ routeImage: require('../../assets/images/icons/hamburger.png'),
15
15
  routeNav: '',
16
16
  key: 'dataset1',
17
17
  name: 'FirstName LastName',
18
18
  },
19
19
  {
20
- routeImage: require('../../assets/images/binoculars.png'),
20
+ routeImage: require('../../assets/images/icons/binoculars.png'),
21
21
  routeNav: '',
22
22
  key: 'dataset2',
23
23
  name: 'FirstName LastName',
24
24
  },
25
25
  {
26
- routeImage: require('../../assets/images/video.png'),
26
+ routeImage: require('../../assets/images/icons/video.png'),
27
27
  routeNav: '',
28
28
  key: 'dataset3',
29
29
  name: 'FirstName LastName',
30
30
  },
31
31
  {
32
- routeImage: require('../../assets/images/chat.png'),
32
+ routeImage: require('../../assets/images/icons/chat.png'),
33
33
  routeNav: '',
34
34
  key: 'dataset4',
35
35
  name: 'FirstName LastName',
36
36
  },
37
37
  {
38
- routeImage: require('../../assets/images/user.png'),
38
+ routeImage: require('../../assets/images/icons/userNoBorder.png'),
39
39
  routeNav: '',
40
40
  key: 'dataset5',
41
41
  name: 'FirstName LastName',
@@ -73,7 +73,7 @@ exports[`Running Test for Navbar Check Navbar Disabled 1`] = `
73
73
  <Image
74
74
  source={
75
75
  Object {
76
- "testUri": "../../../assets/images/binoculars.png",
76
+ "testUri": "../../../assets/images/icons/binoculars.png",
77
77
  }
78
78
  }
79
79
  style={
@@ -105,7 +105,7 @@ exports[`Running Test for Navbar Check Navbar Disabled 1`] = `
105
105
  <Image
106
106
  source={
107
107
  Object {
108
- "testUri": "../../../assets/images/video.png",
108
+ "testUri": "../../../assets/images/icons/video.png",
109
109
  }
110
110
  }
111
111
  style={
@@ -137,7 +137,7 @@ exports[`Running Test for Navbar Check Navbar Disabled 1`] = `
137
137
  <Image
138
138
  source={
139
139
  Object {
140
- "testUri": "../../../assets/images/chat.png",
140
+ "testUri": "../../../assets/images/icons/chat.png",
141
141
  }
142
142
  }
143
143
  style={
@@ -169,7 +169,7 @@ exports[`Running Test for Navbar Check Navbar Disabled 1`] = `
169
169
  <Image
170
170
  source={
171
171
  Object {
172
- "testUri": "../../../assets/images/user.png",
172
+ "testUri": "../../../assets/images/icons/userNoBorder.png",
173
173
  }
174
174
  }
175
175
  style={
@@ -13,7 +13,7 @@ export const PaginationStyleVariant: PaginationStyleRecord = {
13
13
  flexDirection: 'row',
14
14
  },
15
15
  icon: {
16
- width: 20,
16
+ width: 22,
17
17
  height: 22,
18
18
  marginRight: 17,
19
19
  },
@@ -56,7 +56,7 @@ export const Pagination = ({
56
56
  >
57
57
  <Image
58
58
  style={PaginationStyleVariant.primary.icon}
59
- source={require('../../assets/images/back-double-button.png')}
59
+ source={require('../../assets/images/icons/back-double-button.png')}
60
60
  />
61
61
  </TouchableOpacity>
62
62
 
@@ -73,7 +73,7 @@ export const Pagination = ({
73
73
  >
74
74
  <Image
75
75
  style={PaginationStyleVariant.primary.icon}
76
- source={require('../../assets/images/back-button.png')}
76
+ source={require('../../assets/images/icons/back-button.png')}
77
77
  />
78
78
  </TouchableOpacity>
79
79
 
@@ -97,7 +97,7 @@ export const Pagination = ({
97
97
  >
98
98
  <Image
99
99
  style={PaginationStyleVariant.primary.icon}
100
- source={require('../../assets/images/next-button.png')}
100
+ source={require('../../assets/images/icons/next-button.png')}
101
101
  />
102
102
  </TouchableOpacity>
103
103
 
@@ -114,7 +114,7 @@ export const Pagination = ({
114
114
  >
115
115
  <Image
116
116
  style={PaginationStyleVariant.primary.icon}
117
- source={require('../../assets/images/next-double-button.png')}
117
+ source={require('../../assets/images/icons/next-double-button.png')}
118
118
  />
119
119
  </TouchableOpacity>
120
120
  </View>
@@ -46,14 +46,14 @@ exports[`Running Test for Pagination Check Pagination Disabled 1`] = `
46
46
  <Image
47
47
  source={
48
48
  Object {
49
- "testUri": "../../../assets/images/back-double-button.png",
49
+ "testUri": "../../../assets/images/icons/back-double-button.png",
50
50
  }
51
51
  }
52
52
  style={
53
53
  Object {
54
54
  "height": 22,
55
55
  "marginRight": 17,
56
- "width": 20,
56
+ "width": 22,
57
57
  }
58
58
  }
59
59
  />
@@ -83,14 +83,14 @@ exports[`Running Test for Pagination Check Pagination Disabled 1`] = `
83
83
  <Image
84
84
  source={
85
85
  Object {
86
- "testUri": "../../../assets/images/back-button.png",
86
+ "testUri": "../../../assets/images/icons/back-button.png",
87
87
  }
88
88
  }
89
89
  style={
90
90
  Object {
91
91
  "height": 22,
92
92
  "marginRight": 17,
93
- "width": 20,
93
+ "width": 22,
94
94
  }
95
95
  }
96
96
  />
@@ -144,14 +144,14 @@ exports[`Running Test for Pagination Check Pagination Disabled 1`] = `
144
144
  <Image
145
145
  source={
146
146
  Object {
147
- "testUri": "../../../assets/images/next-button.png",
147
+ "testUri": "../../../assets/images/icons/next-button.png",
148
148
  }
149
149
  }
150
150
  style={
151
151
  Object {
152
152
  "height": 22,
153
153
  "marginRight": 17,
154
- "width": 20,
154
+ "width": 22,
155
155
  }
156
156
  }
157
157
  />
@@ -181,14 +181,14 @@ exports[`Running Test for Pagination Check Pagination Disabled 1`] = `
181
181
  <Image
182
182
  source={
183
183
  Object {
184
- "testUri": "../../../assets/images/next-double-button.png",
184
+ "testUri": "../../../assets/images/icons/next-double-button.png",
185
185
  }
186
186
  }
187
187
  style={
188
188
  Object {
189
189
  "height": 22,
190
190
  "marginRight": 17,
191
- "width": 20,
191
+ "width": 22,
192
192
  }
193
193
  }
194
194
  />
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "etendo-ui-library",
3
- "version": "1.0.21",
3
+ "version": "1.0.23",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "android": "react-native run-android",