@jescon-technologies/react-native-ui-kit 0.0.6 → 0.0.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.
Files changed (191) hide show
  1. package/index.d.ts +2 -66
  2. package/index.js +1 -66
  3. package/package.json +1 -1
  4. package/src/Alerts/AAlert.js +0 -137
  5. package/src/Alerts/AAlertIOS.js +0 -97
  6. package/src/Alerts/ABlink.js +0 -40
  7. package/src/Common/Icons.js +0 -49
  8. package/src/Common/NetworkServiceCall.js +0 -265
  9. package/src/CommonStyle/CommonTheme.js +0 -11
  10. package/src/CommonStyle/ComponentFunctions.js +0 -632
  11. package/src/CommonStyle/PopupStyle.js +0 -146
  12. package/src/CommonStyle/commonStyle.js +0 -93
  13. package/src/CommonStyle/componentStyle.js +0 -545
  14. package/src/CommonStyle/optionListStyles.js +0 -175
  15. package/src/Components/ByProductPage.js +0 -200
  16. package/src/Components/CDropDownListNew.js +0 -153
  17. package/src/Components/CSupplierList.js +0 -88
  18. package/src/Components/CVerificationCard.js +0 -2822
  19. package/src/Components/CustomButton.js +0 -67
  20. package/src/Components/CustomCard.js +0 -127
  21. package/src/Components/CustomTextInput.js +0 -47
  22. package/src/Components/EquipmentPage.js +0 -313
  23. package/src/Components/FilterInput.Copy.js +0 -723
  24. package/src/Components/FilterInput.js +0 -569
  25. package/src/Components/HSubHeading.js +0 -68
  26. package/src/Components/HeaderCard.js +0 -40
  27. package/src/Components/MoreOptionsScreen.js +0 -251
  28. package/src/Components/NonSwipableProductCard.js +0 -226
  29. package/src/Components/NonSwipableSupplierCard.js +0 -348
  30. package/src/Components/ProductCard.js +0 -1336
  31. package/src/Components/QualityProductCard.js +0 -1059
  32. package/src/Components/RateProductCard.js +0 -1452
  33. package/src/Components/RawMaterial.js +0 -261
  34. package/src/Components/SDropDownEdited.js +0 -549
  35. package/src/Components/SDropDownNew.js +0 -529
  36. package/src/Components/SHelpDescription.js +0 -147
  37. package/src/Components/STextInputNew.js +0 -510
  38. package/src/Components/SearchProductCard.js +0 -470
  39. package/src/Components/StageByProduct.js +0 -199
  40. package/src/Components/SupplierCard.js +0 -243
  41. package/src/Components/SupplierInvoiceCard.js +0 -405
  42. package/src/Components/SwipableSupplierCard.js +0 -136
  43. package/src/Components/TagTemplate.js +0 -74
  44. package/src/Components/WrappedComponent.js +0 -25
  45. package/src/Custom/CBooking.js +0 -944
  46. package/src/Custom/CBookingPostpone.js +0 -1822
  47. package/src/Custom/CCalendar.js +0 -560
  48. package/src/Custom/CCard.js +0 -880
  49. package/src/Custom/CDetailCard.js +0 -205
  50. package/src/Custom/CHelpImage.js +0 -52
  51. package/src/Custom/CReport.js +0 -569
  52. package/src/Custom/CScrollView.js +0 -73
  53. package/src/Custom/CSignature.js +0 -112
  54. package/src/Custom/CSliderMenu.js +0 -339
  55. package/src/Custom/CSupplierCard.js +0 -99
  56. package/src/Custom/CTemplateCard.js +0 -438
  57. package/src/Custom/CTokenAllocation.js +0 -1402
  58. package/src/Custom/CTokenListOverlay.js +0 -122
  59. package/src/Custom/CWardStatus.js +0 -444
  60. package/src/Custom/Charts/CBarChart.js +0 -218
  61. package/src/Custom/Charts/CDashBoardList.js +0 -133
  62. package/src/Custom/Charts/CDashBoardTable.js +0 -172
  63. package/src/Custom/Charts/CLineChart.js +0 -193
  64. package/src/Custom/Charts/CPieChart.js +0 -186
  65. package/src/Custom/Loader.js +0 -182
  66. package/src/Custom/OUserView.js +0 -1121
  67. package/src/Custom/PreviewDosage.js +0 -115
  68. package/src/Custom/SearchLoader.js +0 -32
  69. package/src/Custom/TableComponent/CActivityTable.js +0 -707
  70. package/src/Custom/TableComponent/CMoreButtonTable.js +0 -197
  71. package/src/Custom/TableComponent/CTable.js +0 -185
  72. package/src/Custom/TableComponent/CTextBody.js +0 -40
  73. package/src/Custom/TableComponent/CTextHeader.js +0 -17
  74. package/src/Custom/TableComponent/PreviewPrescriptionNew.js +0 -1011
  75. package/src/Custom/TableComponent/SDropdownTable.js +0 -491
  76. package/src/Custom/TableComponent/TagTable.js +0 -1200
  77. package/src/CustomComponents/CAddColumn.js +0 -140
  78. package/src/CustomComponents/CAssessmentDelete.js +0 -307
  79. package/src/CustomComponents/CAwesomeButton.js +0 -83
  80. package/src/CustomComponents/CAwesomeMoreButton.js +0 -54
  81. package/src/CustomComponents/CBackHandler.js +0 -273
  82. package/src/CustomComponents/CCalendar.js +0 -243
  83. package/src/CustomComponents/CCommentOverlay.js +0 -202
  84. package/src/CustomComponents/CComments.js +0 -162
  85. package/src/CustomComponents/CContainerView.js +0 -24
  86. package/src/CustomComponents/CCustomTextInput.js +0 -336
  87. package/src/CustomComponents/CDetailView.js +0 -40
  88. package/src/CustomComponents/CDropDownList.js +0 -153
  89. package/src/CustomComponents/CDropdownSelect.js +0 -555
  90. package/src/CustomComponents/CFooterView.js +0 -42
  91. package/src/CustomComponents/CImagePickerSave.js +0 -316
  92. package/src/CustomComponents/CModalOverlay.js +0 -91
  93. package/src/CustomComponents/CNetworkStatus.js +0 -327
  94. package/src/CustomComponents/CNotesInstructions.js +0 -1000
  95. package/src/CustomComponents/COverlay.js +0 -81
  96. package/src/CustomComponents/CRemarks.js +0 -176
  97. package/src/CustomComponents/CRowAdd.js +0 -143
  98. package/src/CustomComponents/CSummaryDropDown.js +0 -327
  99. package/src/CustomComponents/CText.js +0 -9
  100. package/src/CustomComponents/CVectorIcon.js +0 -34
  101. package/src/CustomComponents/HtmlContentViewer.js +0 -65
  102. package/src/CustomComponents/PdfContentViewer.js +0 -90
  103. package/src/CustomComponents/SDropDownDosage.js +0 -1087
  104. package/src/CustomComponents/SwipableProductCard.js +0 -246
  105. package/src/CustomComponents/SwipableProductImageCard.js +0 -254
  106. package/src/CustomComponents/WorkOrderDetails.js +0 -1216
  107. package/src/CustomComponents/WorkOrderDetailsPage.js +0 -1213
  108. package/src/HOC/ConfirmOverlay.js +0 -192
  109. package/src/HOC/HHeading.js +0 -70
  110. package/src/HOC/HMoreButton.js +0 -88
  111. package/src/HOC/HNatureHeading.js +0 -402
  112. package/src/HOC/HOCIcons.js +0 -80
  113. package/src/HOC/HOverlayCentered.js +0 -140
  114. package/src/HOC/HShadowButton.js +0 -45
  115. package/src/HOC/HShadowCountButton.js +0 -82
  116. package/src/HOC/OptionOverlay.js +0 -48
  117. package/src/Json/Chart.json +0 -818
  118. package/src/Json/Consultation.json +0 -622
  119. package/src/Json/CreditBill.json +0 -490
  120. package/src/Json/Dropdown.json +0 -216
  121. package/src/Json/DropdownConsultation.json +0 -228
  122. package/src/Json/DynamicReports.json +0 -623
  123. package/src/Json/Footer.json +0 -79
  124. package/src/Media/AudioScreen.js +0 -342
  125. package/src/Media/BarcodeScan.js +0 -145
  126. package/src/Media/CAudioPlay.js +0 -228
  127. package/src/Media/CCaptureImageWithoutEdit.js +0 -330
  128. package/src/Media/CImageGallery.js +0 -289
  129. package/src/Media/CImageZoom.js +0 -82
  130. package/src/Media/CSingleImage.js +0 -391
  131. package/src/Media/CSketchCanvas.js +0 -76
  132. package/src/Media/CVideoPlay.js +0 -31
  133. package/src/Media/DocumentScreen.js +0 -362
  134. package/src/Media/DrawingScreen.js +0 -578
  135. package/src/Media/ImageScreen.js +0 -309
  136. package/src/Media/RecordAudio.js +0 -250
  137. package/src/Media/RecordVideo.js +0 -223
  138. package/src/Media/VideoScreen.js +0 -378
  139. package/src/Navigation/PageNavigation.js +0 -224
  140. package/src/Navigation/useFocusEffect.js +0 -2
  141. package/src/Navigation/useFocusEffect.native.js +0 -1
  142. package/src/Navigation/useFocusEffect.web.js +0 -1
  143. package/src/Navigation/useIsFocused.js +0 -1
  144. package/src/Navigation/useIsFocused.native.js +0 -1
  145. package/src/Navigation/useIsFocused.web.js +0 -1
  146. package/src/Navigation/useNavigation.js +0 -2
  147. package/src/Navigation/useNavigation.native.js +0 -1
  148. package/src/Navigation/useNavigation.web.js +0 -1
  149. package/src/Screens/CMedications.js +0 -528
  150. package/src/Screens/CWebViewGallery.js +0 -203
  151. package/src/Screens/ChartScan.js +0 -279
  152. package/src/Screens/ChartScreenNew.js +0 -1579
  153. package/src/Screens/Consultation.js +0 -1500
  154. package/src/Screens/Dashboard.js +0 -778
  155. package/src/Screens/FileExplorer.js +0 -288
  156. package/src/Screens/Footer.js +0 -340
  157. package/src/Screens/ForgotPassword.js +0 -288
  158. package/src/Screens/HeaderBlock.js +0 -353
  159. package/src/Screens/Login.js +0 -328
  160. package/src/Screens/Notification.js +0 -149
  161. package/src/Screens/OcrScreen.js +0 -20
  162. package/src/Screens/PdfPreview.js +0 -507
  163. package/src/Screens/RegistrationDetails.js +0 -467
  164. package/src/Screens/SearchScreen.js +0 -582
  165. package/src/Screens/Splash.js +0 -788
  166. package/src/Screens/SwipeLeftView.js +0 -1867
  167. package/src/StaticComponents/SAlphabet.js +0 -47
  168. package/src/StaticComponents/SCheckBox.js +0 -42
  169. package/src/StaticComponents/SDatePicker.js +0 -208
  170. package/src/StaticComponents/SDatePickerLabel.js +0 -253
  171. package/src/StaticComponents/SDatePickerNew.js +0 -258
  172. package/src/StaticComponents/SDateTimePickerNew.js +0 -381
  173. package/src/StaticComponents/SDropDownGenerate.js +0 -450
  174. package/src/StaticComponents/SDropDownHoc.js +0 -636
  175. package/src/StaticComponents/SDropDownIcon.js +0 -500
  176. package/src/StaticComponents/SMenuBox.js +0 -131
  177. package/src/StaticComponents/SOverlay.js +0 -177
  178. package/src/StaticComponents/SOverlayTextInput.js +0 -109
  179. package/src/StaticComponents/SSearch.js +0 -438
  180. package/src/StaticComponents/SSearchBar.js +0 -53
  181. package/src/StaticComponents/SSpeedDial.js +0 -303
  182. package/src/StaticComponents/STextInput.js +0 -289
  183. package/src/StaticComponents/STextInputProps.js +0 -36
  184. package/src/StaticComponents/STimePicker.js +0 -171
  185. package/src/StaticComponents/STimingDropDownNew.js +0 -1585
  186. package/src/StaticComponents/STimingSwitch.js +0 -34
  187. package/src/layout/CContainerView.js +0 -21
  188. package/src/layout/CDetailView.js +0 -81
  189. package/src/layout/HeaderBlock.js +0 -353
  190. package/src/layout/INVLoginLayout.js +0 -657
  191. package/src/layout/Loader.js +0 -176
@@ -1,632 +0,0 @@
1
-
2
- import ComponentStyles from '../CommonStyle/componentStyle';
3
- import { colors, fontWeight } from '../CommonStyle/commonStyle';
4
- import {
5
- ToastAndroid,
6
- Platform,
7
- Alert,
8
- PermissionsAndroid,
9
- ActivityIndicator,
10
- DeviceEventEmitter,
11
- PixelRatio,
12
- Dimensions,
13
- View,
14
- Image,
15
- } from 'react-native';
16
- import Sound from 'react-native-sound';
17
- import NetInfo from '@react-native-community/netinfo';
18
- import { Global } from '../../../../../src/Common/Global';
19
- import { APIURL } from '../../../../../src/Common/apiConstants';
20
- import React from 'react';
21
-
22
- const {
23
- width: SCREEN_WIDTH,
24
- height: SCREEN_HEIGHT,
25
- } = Dimensions.get('window');
26
-
27
- const scale = SCREEN_WIDTH / 320;
28
-
29
- export function getSound(code) {
30
- Sound.setCategory('Playback');
31
- const track = new Sound(code, Sound.MAIN_BUNDLE, (e) => {
32
- if (e) {
33
- console.log('error loading track:', e);
34
- } else {
35
- console.log('Playings');
36
- track.play();
37
- }
38
- });
39
- }
40
-
41
- export function CButtonShadow() {
42
-
43
- const isAndroidBelow9 = Platform.OS === 'android' && Platform.Version < 28;
44
- return isAndroidBelow9 ? {
45
- elevation: 10,
46
- shadowColor: Global.AppTheme.primary_color,
47
- shadowOffset: { width: 5, height: 5 },
48
- shadowOpacity: 0,
49
- shadowRadius: 20,
50
- } : {
51
- boxShadow: `-3 3 6 -1 ${Global.AppTheme.primary_color}`,
52
- }; // offsetX offsetY blurRadius spreadDistance color
53
- }
54
-
55
- export function CFooterShadow() {
56
-
57
- const isAndroidBelow9 = Platform.OS === 'android' && Platform.Version < 28;
58
- return isAndroidBelow9 ? {
59
- elevation: 10,
60
- shadowColor: Global.AppTheme.primary_color,
61
- shadowOffset: { width: 5, height: 5 },
62
- shadowOpacity: 0,
63
- shadowRadius: 20,
64
- } : {
65
- boxShadow: `0 4 10 0 ${Global.AppTheme.primary_color}`,
66
- }; // offsetX offsetY blurRadius spreadDistance color
67
- }
68
-
69
- export function LoaderIndicator(i) {
70
-
71
- return (
72
-
73
- <View style={{
74
- backgroundColor: '#ffffff',
75
- padding: normalize(10),
76
- paddingHorizontal: normalize(20),
77
- borderRadius: 10,
78
- alignItems: 'center',
79
- }}>
80
- <Image
81
- style={{
82
- width: normalize(35),
83
- height: normalize(35),
84
- }}
85
- // source={require('../Assets/gif/loading.gif')}
86
- source={{uri: `${APIURL}file/getCommonFile/image/heartpulse.gif`}}
87
- resizeMode={Image.resizeMode.contain}
88
- />
89
- </View>
90
- );
91
-
92
- }
93
-
94
- export function normalize(size) {
95
- const newSize = scale < 1.5 ? size * scale : size * 1.6;
96
- if (Platform.OS === 'ios') {
97
- return Math.round(PixelRatio.roundToNearestPixel(newSize)) - 2;
98
- } else {
99
- return Math.round(PixelRatio.roundToNearestPixel(newSize)) - 2;
100
- }
101
- }
102
-
103
- export function Loader() {
104
- return (
105
- <ActivityIndicator size={normalize(30)} style={{ marginTop: normalize(10) }} color="red" />
106
- );
107
- }
108
-
109
- export function CShadowDynamic(
110
- offsetX = 0,
111
- offsetY = 2,
112
- blurRadius = 6,
113
- spreadDistance = 0,
114
- color = 'rgba(0, 0, 0, 0.2)',
115
- ) {
116
- const isAndroidBelow9 = Platform.OS === 'android' && Platform.Version < 28;
117
-
118
- return isAndroidBelow9
119
- ? {
120
- elevation: 6,
121
- shadowColor: color,
122
- shadowOffset: {width: offsetX, height: offsetY},
123
- shadowOpacity: 0.25,
124
- shadowRadius: blurRadius,
125
- }
126
- : {
127
- boxShadow: `${offsetX}px ${offsetY}px ${blurRadius}px ${spreadDistance}px ${color}`,
128
- };
129
- }
130
-
131
- export async function getAppVersion() {
132
- var Ver = 1.1;
133
- const Results = await codePush.getUpdateMetadata();
134
- if (Results) {
135
- if (Results.isPending == false) {
136
- Ver = Results.appVersion + Results.label;
137
- } else {
138
- Ver = Results.appVersion + Results.label + ' NOT UPDATED !!!';
139
- }
140
- }
141
- return Ver;
142
- }
143
-
144
-
145
- /**
146
- * To check whether value is true && null && undefined
147
- */
148
- export function isBNU(i) {
149
- return (i && i != null && i != undefined ? true : false);
150
- }
151
-
152
- /**
153
- * To check whether value is null && undefined
154
- */
155
- export function isNU(i) { return (i != null && i != undefined ? true : false); }
156
-
157
- /**
158
- * To check whether value is null && undefined && length > 0
159
- */
160
- export function isNUL(i) { return (i != null && i != undefined && i.length > 0 ? true : false); }
161
-
162
- /**
163
- * To check whether value is null && undefined && !=""
164
- */
165
- export function isNUQ(i) { return (i != null && i != undefined && i != '' ? true : false); }
166
-
167
- /**
168
- * To check whether value is null && undefined && !="" && != 0
169
- */
170
- export function isNUQZ(i) { return (i != null && i != undefined && i != '' && i != 0 ? true : false); }
171
-
172
- /**
173
- * To check whether value is true && null && undefined && length > 0
174
- */
175
- export function isBNUL(i) {
176
- return (i && i != null && i != undefined && i.length > 0 ? true : false);
177
- }
178
-
179
- export function isOrganism(i) {
180
- return (i == 3 ? true : false);
181
- }
182
-
183
- export function isDescription(i) {
184
- return (i == 1 || i == 6 || i == 7 || i == 8 ? true : false);
185
- }
186
-
187
- export function isValueBased(i) {
188
- return (i == 2 || i == 4 || i == 5 ? true : false);
189
- }
190
-
191
- export function dlog(i) {
192
- if (__DEV__) {
193
- return console.log(i);
194
- }
195
- else {
196
-
197
- }
198
- }
199
-
200
- export function cdev() {
201
- if (__DEV__) {
202
- return true;
203
- }
204
- else {
205
- return false;
206
- }
207
- }
208
-
209
- export function clog(i) {
210
- return console.log(i);
211
- }
212
-
213
-
214
-
215
-
216
- export function ValueCheck(value) {
217
- if (value) {
218
- return true;
219
- } else {
220
- false;
221
- }
222
- }
223
-
224
- export function convertStringToArrayWeekDay(inputString) {
225
- const days = [
226
- { datavalue: 1, displayvalue: 'Su', selected: true },
227
- { datavalue: 2, displayvalue: 'M', selected: true },
228
- { datavalue: 3, displayvalue: 'Tu', selected: true },
229
- { datavalue: 4, displayvalue: 'W', selected: true },
230
- { datavalue: 5, displayvalue: 'Th', selected: true },
231
- { datavalue: 6, displayvalue: 'F', selected: true },
232
- { datavalue: 7, displayvalue: 'Sa', selected: true },
233
- ];
234
- const selectedDays = inputString.split(',').map(Number);
235
- return days.map((day) => {
236
- return {
237
- datavalue: day.datavalue,
238
- displayvalue: day.displayvalue,
239
- selected: selectedDays.includes(day.datavalue) ? false : true,
240
- // selected: day.selected,
241
- };
242
- });
243
- }
244
-
245
- export function ArrayCheck(value) {
246
- if (value && value.length > 0) {
247
- return true;
248
- } else {
249
- false;
250
- }
251
- }
252
-
253
- export async function isPermitted() {
254
- if (Platform.OS === 'android') {
255
- try {
256
- const apiLevel = Platform.Version;
257
-
258
- // Android 13+ (API 33+) - need READ_MEDIA permissions
259
- if (apiLevel >= 33) {
260
- const granted = await PermissionsAndroid.request(
261
- PermissionsAndroid.PERMISSIONS.READ_MEDIA_IMAGES
262
- );
263
- return granted === PermissionsAndroid.RESULTS.GRANTED;
264
- }
265
- // Android 10-12 (API 29-32) - Scoped Storage, no permission needed
266
- else if (apiLevel >= 29) {
267
- return true;
268
- }
269
- // Android 9 and below - need WRITE_EXTERNAL_STORAGE
270
- else {
271
- const granted = await PermissionsAndroid.request(
272
- PermissionsAndroid.PERMISSIONS.WRITE_EXTERNAL_STORAGE
273
- );
274
- return granted === PermissionsAndroid.RESULTS.GRANTED;
275
- }
276
- } catch (err) {
277
- Alert.alert('File access Permission not allowed', err.toString());
278
- return false;
279
- }
280
- } else {
281
- return true;
282
- }
283
- }
284
-
285
- export function getLoading(load) {
286
- setTimeout(load, 15000);
287
- }
288
- export function isDes(i) {
289
- return (i == 1 ? true : false);
290
- }
291
-
292
- export function isVal(i) {
293
- return (i == 2 ? true : false);
294
- }
295
-
296
- export function isOrg(i) {
297
- return (i == 3 ? true : false);
298
- }
299
-
300
- export function isSero(i) {
301
- return (i == 4 ? true : false);
302
- }
303
-
304
- export function isViro(i) {
305
- return (i == 5 ? true : false);
306
- }
307
-
308
- export function isPath(i) {
309
- return (i == 6 ? true : false);
310
- }
311
-
312
- export function isConnected() {
313
- return new Promise((resolve, reject) => {
314
- NetInfo.fetch().then(state => {
315
- console.log('Connection type', state.type);
316
- console.log('Is connected?', state.isConnected);
317
- console.log('Is Internet?', state.isInternetReachable);
318
- console.log('Details: - ', state.details);
319
-
320
- if (state.isConnected && state.isInternetReachable) {
321
- resolve();
322
- }
323
- else {
324
- reject();
325
- }
326
- });
327
- });
328
- }
329
-
330
- //Footer icon
331
- export function getFooterIcon(opacity) {
332
- return (
333
- {
334
- ...ComponentStyles.footer_Icon,
335
- opacity: opacity,
336
- }
337
- );
338
- }
339
-
340
- export function notifyMessage(msg, type) {
341
- DeviceEventEmitter.emit('event.testToast', {
342
- 'displaytext': msg,
343
- 'datavalue': type,
344
- });
345
-
346
- // let X = bottom != undefined && bottom != null ? bottom : 80
347
- // if (Platform.OS === 'android') {
348
- // ToastAndroid.showWithGravityAndOffset(msg, ToastAndroid.LONG, ToastAndroid.BOTTOM,
349
- // 0,
350
- // X)
351
- // } else {
352
- // Alert.alert(msg);
353
- // }
354
- }
355
-
356
- export function getFooterIconText(opacity, color) {
357
- return (
358
- {
359
- ...ComponentStyles.footer_Icon_Text,
360
- opacity: opacity,
361
- color: color,
362
- }
363
- );
364
- }
365
-
366
- // Header Section
367
-
368
- export function getHeaderBlockContainer(width) {
369
- return (
370
- {
371
- ...ComponentStyles.header_section_conatiner_style,
372
- width: width,
373
- paddingTop: '5%',
374
- }
375
- );
376
- }
377
- export function getHeaderTitleContainer(width) {
378
- return (
379
- {
380
- justifyContent: 'flex-end', paddingLeft: width * 0.02,
381
- }
382
- );
383
- }
384
-
385
- export function getResultViewObservedvalueTextvalidate(value, minvalue, maxvalue, datatype) {
386
- switch (datatype) {
387
- case 'integer':
388
- case 'numeric':
389
- if (minvalue != null && minvalue != undefined && value < minvalue) {
390
- return colors.color_resulttext_low;
391
- }
392
- else if (maxvalue != null && maxvalue != undefined && value > maxvalue) {
393
- return colors.color_resulttext_high;
394
- }
395
- else {
396
- return colors.color_resulttext_normal;
397
- }
398
- break;
399
- default:
400
- return colors.color_resulttext_normal;
401
- }
402
- }
403
-
404
- // Profile Card
405
-
406
- export function getProfileMainContainer(item) {
407
- console.log('getProfileMainContainer', item);
408
- return (
409
- {
410
- width: '96%',
411
- backgroundColor: '#fff',
412
- flexDirection: 'row',
413
- alignItems: 'center',
414
- borderRadius: 10, elevation: 5,
415
- marginBottom: 5,
416
- borderWidth: 0.1,
417
- borderLeftWidth: 5,
418
- borderColor: item.bordercolor ? item.bordercolor : 'lightgreen',
419
- }
420
- );
421
- }
422
- export function getProfileContentLeftlogo1(item) {
423
- return (
424
- {
425
- borderRadius: 0,
426
- // backgroundColor: "blue",
427
- padding: 5,
428
- color: 'black',
429
- fontWeight: 'bold', fontSize: normalize(11),
430
- }
431
- );
432
- }
433
- export function getProfileContentLeftlogo2() {
434
- return (
435
- {
436
- backgroundColor: '#fcb5b5',
437
- padding: 5,
438
- borderRadius: 50,
439
- color: 'black',
440
- fontSize: normalize(10),
441
- }
442
- );
443
- }
444
- export function getProfileContentLogo1() {
445
- return (
446
- {
447
- fontSize: normalize(13),
448
- marginTop: 3,
449
- color: 'black',
450
- fontWeight: 'bold',
451
- }
452
- );
453
- }
454
- export function getProfileContentLogo2() {
455
- return (
456
- {
457
- fontSize: normalize(10),
458
- color: 'black',
459
- }
460
- );
461
- }
462
- export function getProfilecardSubheadingTop(color) {
463
- return (
464
- {
465
- fontSize: normalize(10),
466
- fontWeight: fontWeight.fontWeight_700,
467
- color: color,
468
- // padding: 5,
469
- paddingBottom: 0,
470
- paddingTop: 2,
471
- }
472
- );
473
- }
474
- export function getProfilecardSubheadingBottom(color, position) {
475
- return (
476
- {
477
- fontSize: normalize(10),
478
- fontWeight: fontWeight.fontWeight_100,
479
- color: color,
480
- paddingLeft: position == 'right' ? 5 : 0,
481
- paddingRight: position == 'left' ? 5 : 0,
482
- }
483
- );
484
- }
485
-
486
- export function getProfilecardMobileNO(color, position) {
487
- return (
488
- {
489
- fontSize: normalize(12),
490
- // fontWeight: fontWeight.fontWeight_100,
491
- fontWeight: fontWeight.fontWeight_Bold,
492
- color: color,
493
- paddingLeft: position == 'right' ? 5 : 0,
494
- paddingRight: position == 'left' ? 5 : 0,
495
- }
496
- );
497
- }
498
- export function getProfilecardOnlineStatusBadgeContainer(backgroundcolor) {
499
- return (
500
- {
501
- backgroundColor: backgroundcolor,
502
- height: normalize(20),
503
- // width:normalize(28),
504
- paddingHorizontal: normalize(5),
505
- borderRadius: 1000,
506
- padding: 0,
507
- //elevation: 5,
508
- //borderColor:backgroundcolor,
509
- //borderWidth:1
510
- }
511
- );
512
- }
513
- export function getGroupButtonView(width) {
514
- return (
515
- {
516
- justifyContent: 'center', margin: 5,
517
- width: width * 0.10,
518
- alignContent: 'center', alignItems: 'center',
519
- }
520
- );
521
- }
522
- export function getMediaoverlayContainerStyle(height) {
523
- return (
524
- {
525
- ...ComponentStyles.mediaoverlay_containerstyle,
526
- height: height,
527
- }
528
- );
529
- }
530
- export function getMediaViewContainer(width, height, itemwidth) {
531
- return (
532
- {
533
- ...ComponentStyles.View_col_center,
534
- width: width * (itemwidth / 100),
535
- margin: height * 0.003,
536
- }
537
- );
538
- }
539
- export function getMediaViewChildContainer(width, itemwidth) {
540
- return (
541
- {
542
- borderWidth: 0.5,
543
- borderRadius: 2,
544
- width: width * (itemwidth / 100),
545
- borderColor: colors.color_componentBordercolor,
546
- }
547
- );
548
- }
549
- export function getMediaIcon(width, itemwidth) {
550
- return (
551
- {
552
- height: 120,
553
- width: width * (itemwidth / 100),
554
- }
555
- );
556
- }
557
- export function getMediaoverlayChildrenwrapperStyle(width, height, itemheight) {
558
- return (
559
- {
560
- width: width,
561
- height: itemheight,
562
- padding: height * 0.01,
563
- }
564
- );
565
- }
566
- export function getMediaoverlayTopLineContainer(width, height) {
567
- return (
568
- {
569
- ...ComponentStyles.View_col_center,
570
- width: width * 0.15, height: height * 0.02,
571
- }
572
- );
573
- }
574
- export function getMediaoverlayOptionRow(width, height) {
575
- return (
576
- {
577
- ...ComponentStyles.View_row_spacearound,
578
- borderRadius: 14,
579
- marginTop: height * 0.02, width: width * 0.90,
580
- }
581
- );
582
- }
583
- export function getMediaoverlayOptionContainer(width, height) {
584
- return (
585
- {
586
- ...ComponentStyles.View_col_center,
587
- margin: 5,
588
- height: height * 0.1,
589
- width: width * 0.20,
590
- }
591
- );
592
- }
593
- export function getMediaoverlayMsgorLoaderView(height) {
594
- return (
595
- {
596
- height: height,
597
- ...ComponentStyles.View_col_center,
598
- }
599
- );
600
- }
601
- export function getMediaGalleryChildContainer(width, height) {
602
- return (
603
- {
604
- marginTop: height * 0.01, width: width * 0.90,
605
- justifyContent: 'center', alignItems: 'center',
606
- }
607
- );
608
- }
609
- export function getMediaGalleryDeleteView(width, height) {
610
- return (
611
- {
612
- borderWidth: 0.5, borderRadius: 2,
613
- height: height / 5, width: width * 0.90,
614
- borderColor: colors.color_componentBordercolor,
615
- alignItems: 'center', justifyContent: 'center',
616
- }
617
- );
618
- }
619
- export function getMediaIconStyle(width, height) {
620
- return (
621
- {
622
- height: height / 5, width: width * 0.90,
623
- }
624
- );
625
- }
626
- export function getMediaGalleryDeleteIcon(width) {
627
- return (
628
- {
629
- height: '40%', width: width * 0.90, resizeMode: 'contain',
630
- }
631
- );
632
- }