@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,327 +0,0 @@
1
- import React, { useState, useEffect } from 'react';
2
- import { View, Text, StyleSheet, ScrollView } from 'react-native';
3
- import NetInfo from '@react-native-community/netinfo';
4
- import { normalize } from '../CommonStyle/componentStyle';
5
- import HOCIcons from '../HOC/HOCIcons';
6
- import { Global } from '../../../../../src/Common/Global';
7
- import ABlink from '../Alerts/ABlink';
8
-
9
- const CNetworkStatus = () => {
10
- const [networkInfo, setNetworkInfo] = useState({});
11
-
12
- useEffect(() => {
13
- // Function to handle network state changes
14
- const unsubscribe = NetInfo.addEventListener(state => {
15
- setNetworkInfo({
16
- isConnected: state.isConnected,
17
- isInternetReachable: state.isInternetReachable,
18
- connectionType: state.type,
19
- effectiveType: state.effectiveType,
20
- isExpensive: state.isExpensive,
21
- details: state.details,
22
- });
23
- });
24
-
25
- // Cleanup on component unmount
26
- return () => unsubscribe();
27
- }, []);
28
-
29
- function IconButton(icongroup, iconname, text) {
30
-
31
- return (
32
- <View style={{ justifyContent: 'center', alignItems: 'center' }}>
33
- <HOCIcons.Icons
34
- icongroup={icongroup}
35
- name={iconname}
36
- size={normalize(15)}
37
- color={'white'}
38
- style={{
39
- textShadowColor: '#ffffff',
40
- textShadowOffset: { width: 1, height: 1 },
41
- textShadowRadius: 1,
42
- }}
43
- />
44
- <Text style={{
45
- color: 'white',
46
- fontSize: normalize(7),
47
- textShadowColor: '#ffffff',
48
- textShadowOffset: { width: 0.5, height: 0.5 },
49
- textShadowRadius: 0.5,
50
- textAlign: 'center',
51
- }}>{text}</Text>
52
- </View>
53
- );
54
-
55
- }
56
-
57
- function NetWorkIcons() {
58
-
59
- if (networkInfo.isConnected) {
60
- if (networkInfo.connectionType === 'cellular') {
61
- if (networkInfo.isInternetReachable) {
62
- // return (
63
- // IconButton(3, 'signal', "Mobile Data")
64
- // )
65
- return (
66
- <View />
67
- );
68
- }
69
- else {
70
- // return (
71
- // IconButton(2, 'signal-cellular-connected-no-internet-4-bar', "Mobile Data")
72
- // )
73
- return (
74
- <View />
75
- );
76
- }
77
- }
78
- else if (networkInfo.connectionType === 'wifi') {
79
- if (networkInfo.isInternetReachable) {
80
- // return (
81
- // IconButton(3, 'wifi', "Wifi")
82
- // )
83
- return (
84
- <View />
85
- );
86
- }
87
- else {
88
- // return (
89
- // IconButton(3, 'wifi-strength-4-alert', "Wifi")
90
- // )
91
- return (
92
- <View />
93
- );
94
- }
95
- }
96
- else {
97
- return (
98
- <View />
99
- );
100
- }
101
- }
102
- else {
103
- return (
104
- <ABlink>
105
- <View style={{ justifyContent: 'center', alignItems: 'center', backgroundColor: 'white', borderRadius: 10, padding: normalize(4) }}>
106
- <View style={{ flexDirection: 'row' }}>
107
- <HOCIcons.Icons
108
- icongroup={3}
109
- name={'wifi-off'}
110
- size={normalize(20)}
111
- color={'red'}
112
- style={{
113
- textShadowColor: '#ffffff',
114
- textShadowOffset: { width: 1, height: 1 },
115
- textShadowRadius: 1,
116
- }}
117
- />
118
- <HOCIcons.Icons
119
- icongroup={3}
120
- name={'signal-off'}
121
- size={normalize(20)}
122
- color={'red'}
123
- style={{
124
- textShadowColor: '#ffffff',
125
- textShadowOffset: { width: 1, height: 1 },
126
- textShadowRadius: 1,
127
- }}
128
- />
129
- </View>
130
- <Text style={{
131
- color: 'red',
132
- fontSize: normalize(9),
133
- textShadowColor: '#ffffff',
134
- textShadowOffset: { width: 0.5, height: 0.5 },
135
- textShadowRadius: 0.5,
136
- }}>NO NETWORK</Text>
137
- </View>
138
- </ABlink>
139
- );
140
- }
141
-
142
-
143
- }
144
-
145
- return (
146
-
147
- <View style={{ flexDirection: 'row' }}>
148
- {NetWorkIcons()}
149
- {/* {networkInfo.isConnected && networkInfo.isInternetReachable && networkInfo.connectionType === 'cellular' ?
150
- <View style={{ justifyContent: 'center', alignItems: 'center' }}>
151
-
152
- <HOCIcons.Icons
153
- icongroup={3}
154
- name={'signal'}
155
- size={normalize(20)}
156
- color={'darkblue'}
157
- style={{
158
- textShadowColor: '#ffffff',
159
- textShadowOffset: { width: 1, height: 1 },
160
- textShadowRadius: 1,
161
- }}
162
- />
163
- <Text style={{
164
- color: 'darkblue',
165
- fontSize: normalize(9),
166
- textShadowColor: '#ffffff',
167
- textShadowOffset: { width: 0.5, height: 0.5 },
168
- textShadowRadius: 0.5,
169
- }}>{"Mobile Data"}</Text>
170
- </View>
171
- : null} */}
172
- {/* {networkInfo.isConnected && networkInfo.isInternetReachable && networkInfo.connectionType === 'wifi' ?
173
- <View style={{ justifyContent: 'center', alignItems: 'center' }}>
174
-
175
- <HOCIcons.Icons
176
- icongroup={3}
177
- name={'wifi'}
178
- size={normalize(20)}
179
- color={'darkblue'}
180
- style={{
181
- textShadowColor: '#ffffff',
182
- textShadowOffset: { width: 1, height: 1 },
183
- textShadowRadius: 1,
184
- }}
185
- />
186
- <Text style={{
187
- color: 'darkblue',
188
- fontSize: normalize(9),
189
- textShadowColor: '#ffffff',
190
- textShadowOffset: { width: 0.5, height: 0.5 },
191
- textShadowRadius: 0.5,
192
- }}>{"Wifi"}</Text>
193
- </View>
194
- : null} */}
195
- {/* <Text style={styles.infoText}>Internet Reachable: {networkInfo.isInternetReachable ? 'Yes' : 'No'}</Text> */}
196
- {/* {networkInfo.isConnected && networkInfo.isInternetReachable ? null :
197
- <ABlink>
198
- <View style={{ justifyContent: 'center', alignItems: 'center', backgroundColor: 'white', borderRadius: 10, padding: normalize(4) }}>
199
- <View style={{ flexDirection: 'row' }}>
200
- <HOCIcons.Icons
201
- icongroup={3}
202
- name={'wifi-off'}
203
- size={normalize(20)}
204
- color={'red'}
205
- style={{
206
- textShadowColor: '#ffffff',
207
- textShadowOffset: { width: 1, height: 1 },
208
- textShadowRadius: 1,
209
- }}
210
- />
211
- <HOCIcons.Icons
212
- icongroup={3}
213
- name={'signal-off'}
214
- size={normalize(20)}
215
- color={'red'}
216
- style={{
217
- textShadowColor: '#ffffff',
218
- textShadowOffset: { width: 1, height: 1 },
219
- textShadowRadius: 1,
220
- }}
221
- />
222
- </View>
223
- <Text style={{
224
- color: 'red',
225
- fontSize: normalize(9),
226
- textShadowColor: '#ffffff',
227
- textShadowOffset: { width: 0.5, height: 0.5 },
228
- textShadowRadius: 0.5,
229
- }}>NO NETWORK</Text>
230
- </View>
231
- </ABlink> */}
232
- {/* } */}
233
-
234
-
235
- </View>
236
-
237
- );
238
- };
239
-
240
- const styles = StyleSheet.create({
241
- container: {
242
- // flex: 1,
243
- // justifyContent: 'flex-start',
244
- // padding: 20,
245
- // backgroundColor: '#f0f0f0',
246
- },
247
- title: {
248
- fontSize: 24,
249
- fontWeight: 'bold',
250
- marginBottom: 20,
251
- },
252
- infoText: {
253
- fontSize: 16,
254
- // marginBottom: 10,
255
- },
256
- });
257
-
258
- export default CNetworkStatus;
259
-
260
-
261
-
262
-
263
- // import React, { useState, useEffect } from 'react';
264
- // import { View, Text, StyleSheet, ScrollView } from 'react-native';
265
- // import NetInfo from '@react-native-community/netinfo';
266
-
267
- // const NetworkStatus = () => {
268
- // const [networkInfo, setNetworkInfo] = useState({});
269
-
270
- // useEffect(() => {
271
- // // Function to handle network state changes
272
- // const unsubscribe = NetInfo.addEventListener(state => {
273
- // setNetworkInfo({
274
- // isConnected: state.isConnected,
275
- // isInternetReachable: state.isInternetReachable,
276
- // connectionType: state.type,
277
- // effectiveType: state.effectiveType,
278
- // isExpensive: state.isExpensive,
279
- // details: state.details,
280
- // });
281
- // });
282
-
283
- // // Cleanup on component unmount
284
- // return () => unsubscribe();
285
- // }, []);
286
-
287
- // return (
288
- // <ScrollView contentContainerStyle={styles.container}>
289
- // <Text style={styles.title}>Network Information</Text>
290
- // <Text style={styles.infoText}>Connection Status: {networkInfo.isConnected ? 'Connected' : 'Disconnected'}</Text>
291
- // <Text style={styles.infoText}>Internet Reachable: {networkInfo.isInternetReachable ? 'Yes' : 'No'}</Text>
292
- // <Text style={styles.infoText}>Connection Type: {networkInfo.connectionType}</Text>
293
- // <Text style={styles.infoText}>Effective Type: {networkInfo.effectiveType}</Text>
294
- // <Text style={styles.infoText}>Expensive Connection: {networkInfo.isExpensive ? 'Yes' : 'No'}</Text>
295
-
296
- // {/* Show network details if available */}
297
- // {networkInfo.details && (
298
- // <>
299
- // <Text style={styles.infoText}>IP Address: {networkInfo.details.ipAddress || 'N/A'}</Text>
300
- // <Text style={styles.infoText}>SSID: {networkInfo.details.ssid || 'N/A'}</Text>
301
- // <Text style={styles.infoText}>Carrier: {networkInfo.details.carrier || 'N/A'}</Text>
302
- // </>
303
- // )}
304
- // </ScrollView>
305
- // );
306
- // };
307
-
308
- // const styles = StyleSheet.create({
309
- // container: {
310
- // flex: 1,
311
- // justifyContent: 'flex-start',
312
- // padding: 20,
313
- // backgroundColor: '#f0f0f0',
314
- // },
315
- // title: {
316
- // fontSize: 24,
317
- // fontWeight: 'bold',
318
- // marginBottom: 20,
319
- // },
320
- // infoText: {
321
- // fontSize: 16,
322
- // marginBottom: 10,
323
- // },
324
- // });
325
-
326
- // export default NetworkStatus;
327
-