@jescon-technologies/react-native-ui-kit 0.0.4 → 0.0.6
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/index.d.ts +66 -0
- package/index.js +3 -7
- package/package.json +3 -2
- package/src/Alerts/AAlert.js +4 -4
- package/src/Alerts/AAlertIOS.js +3 -3
- package/src/{common → Common}/NetworkServiceCall.js +1 -1
- package/src/CommonStyle/CommonTheme.js +11 -0
- package/src/CommonStyle/ComponentFunctions.js +632 -0
- package/src/CommonStyle/PopupStyle.js +146 -0
- package/src/CommonStyle/commonStyle.js +93 -0
- package/src/CommonStyle/componentStyle.js +545 -0
- package/src/CommonStyle/optionListStyles.js +175 -0
- package/src/Components/ByProductPage.js +200 -0
- package/src/Components/CDropDownListNew.js +153 -0
- package/src/Components/CSupplierList.js +88 -0
- package/src/Components/CVerificationCard.js +2822 -0
- package/src/Components/CustomButton.js +67 -0
- package/src/Components/CustomCard.js +127 -0
- package/src/Components/CustomTextInput.js +47 -0
- package/src/Components/EquipmentPage.js +313 -0
- package/src/Components/FilterInput.Copy.js +723 -0
- package/src/Components/FilterInput.js +569 -0
- package/src/Components/HSubHeading.js +68 -0
- package/src/Components/HeaderCard.js +40 -0
- package/src/Components/MoreOptionsScreen.js +251 -0
- package/src/Components/NonSwipableProductCard.js +226 -0
- package/src/Components/NonSwipableSupplierCard.js +348 -0
- package/src/Components/ProductCard.js +1336 -0
- package/src/Components/QualityProductCard.js +1059 -0
- package/src/Components/RateProductCard.js +1452 -0
- package/src/Components/RawMaterial.js +261 -0
- package/src/Components/SDropDownEdited.js +549 -0
- package/src/Components/SDropDownNew.js +529 -0
- package/src/Components/SHelpDescription.js +147 -0
- package/src/Components/STextInputNew.js +510 -0
- package/src/Components/SearchProductCard.js +470 -0
- package/src/Components/StageByProduct.js +199 -0
- package/src/Components/SupplierCard.js +243 -0
- package/src/Components/SupplierInvoiceCard.js +405 -0
- package/src/Components/SwipableSupplierCard.js +136 -0
- package/src/Components/TagTemplate.js +74 -0
- package/src/Components/WrappedComponent.js +25 -0
- package/src/Custom/CBooking.js +944 -0
- package/src/Custom/CBookingPostpone.js +1822 -0
- package/src/Custom/CCalendar.js +560 -0
- package/src/Custom/CCard.js +880 -0
- package/src/Custom/CDetailCard.js +205 -0
- package/src/Custom/CHelpImage.js +52 -0
- package/src/Custom/CReport.js +569 -0
- package/src/Custom/CScrollView.js +73 -0
- package/src/Custom/CSignature.js +112 -0
- package/src/Custom/CSliderMenu.js +339 -0
- package/src/Custom/CSupplierCard.js +99 -0
- package/src/Custom/CTemplateCard.js +438 -0
- package/src/Custom/CTokenAllocation.js +1402 -0
- package/src/Custom/CTokenListOverlay.js +122 -0
- package/src/Custom/CWardStatus.js +444 -0
- package/src/Custom/Charts/CBarChart.js +218 -0
- package/src/Custom/Charts/CDashBoardList.js +133 -0
- package/src/Custom/Charts/CDashBoardTable.js +172 -0
- package/src/Custom/Charts/CLineChart.js +193 -0
- package/src/Custom/Charts/CPieChart.js +186 -0
- package/src/Custom/Loader.js +182 -0
- package/src/Custom/OUserView.js +1121 -0
- package/src/Custom/PreviewDosage.js +115 -0
- package/src/Custom/SearchLoader.js +32 -0
- package/src/Custom/TableComponent/CActivityTable.js +707 -0
- package/src/Custom/TableComponent/CMoreButtonTable.js +197 -0
- package/src/Custom/TableComponent/CTable.js +185 -0
- package/src/Custom/TableComponent/CTextBody.js +40 -0
- package/src/Custom/TableComponent/CTextHeader.js +17 -0
- package/src/Custom/TableComponent/PreviewPrescriptionNew.js +1011 -0
- package/src/Custom/TableComponent/SDropdownTable.js +491 -0
- package/src/Custom/TableComponent/TagTable.js +1200 -0
- package/src/CustomComponents/CAddColumn.js +140 -0
- package/src/CustomComponents/CAssessmentDelete.js +307 -0
- package/src/CustomComponents/CAwesomeButton.js +83 -0
- package/src/CustomComponents/CAwesomeMoreButton.js +54 -0
- package/src/CustomComponents/CBackHandler.js +273 -0
- package/src/CustomComponents/CCalendar.js +243 -0
- package/src/CustomComponents/CCommentOverlay.js +202 -0
- package/src/CustomComponents/CComments.js +162 -0
- package/src/CustomComponents/CContainerView.js +24 -0
- package/src/CustomComponents/CCustomTextInput.js +336 -0
- package/src/CustomComponents/CDetailView.js +40 -0
- package/src/CustomComponents/CDropDownList.js +153 -0
- package/src/CustomComponents/CDropdownSelect.js +555 -0
- package/src/CustomComponents/CFooterView.js +42 -0
- package/src/CustomComponents/CImagePickerSave.js +316 -0
- package/src/CustomComponents/CModalOverlay.js +91 -0
- package/src/CustomComponents/CNetworkStatus.js +327 -0
- package/src/CustomComponents/CNotesInstructions.js +1000 -0
- package/src/CustomComponents/COverlay.js +81 -0
- package/src/CustomComponents/CRemarks.js +176 -0
- package/src/CustomComponents/CRowAdd.js +143 -0
- package/src/CustomComponents/CSummaryDropDown.js +327 -0
- package/src/CustomComponents/CText.js +9 -0
- package/src/CustomComponents/CVectorIcon.js +34 -0
- package/src/CustomComponents/HtmlContentViewer.js +65 -0
- package/src/CustomComponents/PdfContentViewer.js +90 -0
- package/src/CustomComponents/SDropDownDosage.js +1087 -0
- package/src/CustomComponents/SwipableProductCard.js +246 -0
- package/src/CustomComponents/SwipableProductImageCard.js +254 -0
- package/src/CustomComponents/WorkOrderDetails.js +1216 -0
- package/src/CustomComponents/WorkOrderDetailsPage.js +1213 -0
- package/src/HOC/ConfirmOverlay.js +2 -2
- package/src/HOC/HMoreButton.js +1 -1
- package/src/HOC/HNatureHeading.js +1 -1
- package/src/HOC/HShadowButton.js +1 -1
- package/src/HOC/HShadowCountButton.js +1 -1
- package/src/Json/Chart.json +818 -0
- package/src/Json/Consultation.json +622 -0
- package/src/Json/CreditBill.json +490 -0
- package/src/Json/Dropdown.json +216 -0
- package/src/Json/DropdownConsultation.json +228 -0
- package/src/Json/DynamicReports.json +623 -0
- package/src/Json/Footer.json +79 -0
- package/src/Media/AudioScreen.js +2 -7
- package/src/Media/CCaptureImageWithoutEdit.js +1 -1
- package/src/Media/CImageGallery.js +2 -2
- package/src/Media/CSingleImage.js +2 -2
- package/src/Media/CVideoPlay.js +1 -1
- package/src/Media/DocumentScreen.js +2 -7
- package/src/Media/DrawingScreen.js +2 -6
- package/src/Media/ImageScreen.js +2 -6
- package/src/Media/RecordAudio.js +1 -1
- package/src/Media/VideoScreen.js +2 -7
- package/src/Navigation/PageNavigation.js +224 -0
- package/src/Navigation/useFocusEffect.js +2 -0
- package/src/Navigation/useFocusEffect.native.js +1 -0
- package/src/Navigation/useFocusEffect.web.js +1 -0
- package/src/Navigation/useIsFocused.js +1 -0
- package/src/Navigation/useIsFocused.native.js +1 -0
- package/src/Navigation/useIsFocused.web.js +1 -0
- package/src/Navigation/useNavigation.js +2 -0
- package/src/Navigation/useNavigation.native.js +1 -0
- package/src/Navigation/useNavigation.web.js +1 -0
- package/src/Screens/CMedications.js +528 -0
- package/src/Screens/CWebViewGallery.js +203 -0
- package/src/Screens/ChartScan.js +279 -0
- package/src/Screens/ChartScreenNew.js +1579 -0
- package/src/Screens/Consultation.js +1500 -0
- package/src/Screens/Dashboard.js +778 -0
- package/src/Screens/FileExplorer.js +288 -0
- package/src/Screens/Footer.js +340 -0
- package/src/Screens/ForgotPassword.js +288 -0
- package/src/Screens/HeaderBlock.js +353 -0
- package/src/Screens/Login.js +328 -0
- package/src/Screens/Notification.js +149 -0
- package/src/Screens/OcrScreen.js +20 -0
- package/src/Screens/PdfPreview.js +507 -0
- package/src/Screens/RegistrationDetails.js +467 -0
- package/src/Screens/SearchScreen.js +582 -0
- package/src/Screens/Splash.js +788 -0
- package/src/Screens/SwipeLeftView.js +1867 -0
- package/src/StaticComponents/SDatePickerLabel.js +1 -1
- package/src/StaticComponents/SDatePickerNew.js +1 -1
- package/src/StaticComponents/SDateTimePickerNew.js +2 -2
- package/src/StaticComponents/SDropDownGenerate.js +3 -3
- package/src/StaticComponents/SDropDownHoc.js +4 -4
- package/src/StaticComponents/SDropDownIcon.js +1 -1
- package/src/StaticComponents/SMenuBox.js +2 -2
- package/src/StaticComponents/SSearch.js +2 -2
- package/src/StaticComponents/STextInput.js +1 -1
- package/src/StaticComponents/STimePicker.js +1 -1
- package/src/StaticComponents/STimingDropDownNew.js +2 -6
- package/src/StaticComponents/STimingSwitch.js +1 -1
- package/src/layout/CContainerView.js +1 -1
- package/src/layout/CDetailView.js +3 -3
- package/src/layout/HeaderBlock.js +5 -5
- package/src/layout/INVLoginLayout.js +3 -4
- package/src/layout/Loader.js +2 -2
- package/src/HOC/HAbsolute.js +0 -56
- package/src/HOC/HDiscontinue.js +0 -105
- package/src/HOC/HOverlay.js +0 -99
- package/src/layout/FooterBlock.js +0 -821
- /package/src/{common → Common}/ErrorBoundary.tsx +0 -0
- /package/src/{common → Common}/Icons.js +0 -0
|
@@ -0,0 +1,545 @@
|
|
|
1
|
+
import { StyleSheet, Dimensions, Platform, PixelRatio, Text } from 'react-native';
|
|
2
|
+
import { colors, fontWeight } from './commonStyle';
|
|
3
|
+
|
|
4
|
+
const {
|
|
5
|
+
width: SCREEN_WIDTH,
|
|
6
|
+
height: SCREEN_HEIGHT,
|
|
7
|
+
} = Dimensions.get('window');
|
|
8
|
+
|
|
9
|
+
const scale = SCREEN_WIDTH / 320;
|
|
10
|
+
var radio_height = 20;
|
|
11
|
+
export function normalize(size) {
|
|
12
|
+
const newSize = scale < 1.5 ? size * scale : size * 1.6;
|
|
13
|
+
if (Platform.OS === 'ios') {
|
|
14
|
+
return Math.round(PixelRatio.roundToNearestPixel(newSize)) - 2;
|
|
15
|
+
} else {
|
|
16
|
+
return Math.round(PixelRatio.roundToNearestPixel(newSize)) - 2;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export function width(itemwidth) {
|
|
21
|
+
return SCREEN_WIDTH * (itemwidth / 100);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export function height(itemheight) {
|
|
25
|
+
return SCREEN_HEIGHT * (itemheight / 100);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export const ComponentStyles = StyleSheet.create({
|
|
29
|
+
textinput: {
|
|
30
|
+
fontSize: normalize(15),
|
|
31
|
+
color: colors.color_componentText,
|
|
32
|
+
// ...ComponentStyles.input_Text,
|
|
33
|
+
width: width(20),
|
|
34
|
+
marginLeft: '1%',
|
|
35
|
+
marginRight: '1%',
|
|
36
|
+
padding: 0,
|
|
37
|
+
height: SCREEN_HEIGHT * 0.03,
|
|
38
|
+
marginBottom: height(3),
|
|
39
|
+
fontWeight: 'normal',
|
|
40
|
+
fontStyle: 'normal',
|
|
41
|
+
textAlign: 'left',
|
|
42
|
+
borderWidth: 1,
|
|
43
|
+
marginVertical:5,
|
|
44
|
+
borderColor:'lightgrey',
|
|
45
|
+
},
|
|
46
|
+
viewstyle: {
|
|
47
|
+
justifyContent: 'center',
|
|
48
|
+
alignContent: 'center',
|
|
49
|
+
alignItems: 'center',
|
|
50
|
+
flexDirection: 'row',
|
|
51
|
+
// width: width(10)
|
|
52
|
+
},
|
|
53
|
+
textstyle: {
|
|
54
|
+
fontSize: normalize(10),
|
|
55
|
+
// width : '50%'
|
|
56
|
+
},
|
|
57
|
+
headerTitle: {
|
|
58
|
+
fontSize: normalize(13), color: '#fff', fontWeight: fontWeight.fontWeight_Normal,
|
|
59
|
+
},
|
|
60
|
+
headerSubTitle: {
|
|
61
|
+
fontSize: normalize(11), color: '#fff', fontWeight: fontWeight.fontWeight_Normal,
|
|
62
|
+
},
|
|
63
|
+
|
|
64
|
+
component_Icon: {
|
|
65
|
+
height: 25,
|
|
66
|
+
width: 25,
|
|
67
|
+
resizeMode: 'contain',
|
|
68
|
+
},
|
|
69
|
+
group_Button: {
|
|
70
|
+
width: 22, height: 22,
|
|
71
|
+
justifyContent: 'center',
|
|
72
|
+
},
|
|
73
|
+
group_Button_BadgeStyle: {
|
|
74
|
+
backgroundColor: 'rgba(0,0,0,0)',
|
|
75
|
+
opacity: 0.7,
|
|
76
|
+
borderRadius: 100,
|
|
77
|
+
borderWidth: 1, borderColor: 'gray',
|
|
78
|
+
|
|
79
|
+
},
|
|
80
|
+
media_Gallery_Container: {
|
|
81
|
+
flex: 1, justifyContent: 'center',
|
|
82
|
+
alignItems: 'center',
|
|
83
|
+
margin: 1,
|
|
84
|
+
},
|
|
85
|
+
group_Button_Badge_TextStyle: {
|
|
86
|
+
color: colors.color_StatusBar,
|
|
87
|
+
fontSize: 10, fontWeight: 'bold',
|
|
88
|
+
|
|
89
|
+
},
|
|
90
|
+
group_Button_Badge_ContainerStyle: {
|
|
91
|
+
position: 'absolute', top: -3, left: -5,
|
|
92
|
+
},
|
|
93
|
+
no_data_found_text: {
|
|
94
|
+
fontSize: normalize(12),
|
|
95
|
+
color: colors.color_componentText,
|
|
96
|
+
fontWeight: '800', alignItems: 'center', justifyContent: 'center',
|
|
97
|
+
},
|
|
98
|
+
//footer
|
|
99
|
+
footer_Icon: {
|
|
100
|
+
height: 25,
|
|
101
|
+
width: 25,
|
|
102
|
+
alignItems: 'center',
|
|
103
|
+
alignSelf: 'center',
|
|
104
|
+
opacity: 0.9,
|
|
105
|
+
},
|
|
106
|
+
|
|
107
|
+
footer_Icon_Text: {
|
|
108
|
+
textAlign: 'center',
|
|
109
|
+
fontSize: normalize(6),
|
|
110
|
+
},
|
|
111
|
+
//Header style
|
|
112
|
+
header_section_conatiner_style: {
|
|
113
|
+
|
|
114
|
+
backgroundColor: colors.color_Header,
|
|
115
|
+
justifyContent: 'flex-end',
|
|
116
|
+
padding: 10,
|
|
117
|
+
},
|
|
118
|
+
header_section_child_container_style: {
|
|
119
|
+
flexDirection: 'row', justifyContent: 'space-between',
|
|
120
|
+
margin: 1, alignItems: 'flex-end',
|
|
121
|
+
paddingTop: Platform.OS === 'ios' ? '6%' : '3%',
|
|
122
|
+
},
|
|
123
|
+
header_left_menu_icon_container: {
|
|
124
|
+
// backgroundColor: '#F9AA33',
|
|
125
|
+
borderColor: '#000',
|
|
126
|
+
borderRadius: 5, borderWidth: 0.8, justifyContent: 'center',
|
|
127
|
+
},
|
|
128
|
+
header_right_menu_icon_container: {
|
|
129
|
+
borderColor: '#000',
|
|
130
|
+
borderRadius: 5,
|
|
131
|
+
justifyContent: 'center',
|
|
132
|
+
},
|
|
133
|
+
header_menu_icon: {
|
|
134
|
+
height: 27, width: 27, margin: 5,
|
|
135
|
+
},
|
|
136
|
+
// Result Report (ResultView, ResultViewDateWise, )
|
|
137
|
+
result_view_child_container: {
|
|
138
|
+
flexDirection: 'row', alignItems: 'center',
|
|
139
|
+
justifyContent: 'center', borderBottomWidth: 1,
|
|
140
|
+
borderColor: colors.color_componentBordercolor,
|
|
141
|
+
width: '100%',
|
|
142
|
+
|
|
143
|
+
},
|
|
144
|
+
result_view_heading_container: {
|
|
145
|
+
width: '19%', marginLeft: '1%',
|
|
146
|
+
|
|
147
|
+
},
|
|
148
|
+
result_view_display_Text: {
|
|
149
|
+
fontSize: normalize(12),
|
|
150
|
+
color: colors.color_componentText,
|
|
151
|
+
fontWeight: '800',
|
|
152
|
+
},
|
|
153
|
+
result_view_viewgraph_container: {
|
|
154
|
+
marginTop: '1%',
|
|
155
|
+
},
|
|
156
|
+
result_view_viewgraph_text: {
|
|
157
|
+
color: '#943126', fontStyle: 'italic',
|
|
158
|
+
},
|
|
159
|
+
result_view_range_container: {
|
|
160
|
+
width: '9%', alignItems: 'flex-start',
|
|
161
|
+
},
|
|
162
|
+
result_view_unit_Text: {
|
|
163
|
+
fontSize: normalize(10),
|
|
164
|
+
color: 'black',//"#606266",
|
|
165
|
+
fontWeight: 'bold',
|
|
166
|
+
},
|
|
167
|
+
result_view_range_child_container: {
|
|
168
|
+
width: '100%', flexDirection: 'column',
|
|
169
|
+
marginTop: '1%', alignItems: 'center',
|
|
170
|
+
},
|
|
171
|
+
result_view_range_Text: {
|
|
172
|
+
fontSize: normalize(10),
|
|
173
|
+
color: '#4D5656',//"#606266",
|
|
174
|
+
fontWeight: 'normal',
|
|
175
|
+
},
|
|
176
|
+
result_view_value_container: {
|
|
177
|
+
width: '68%', marginLeft: '1%',
|
|
178
|
+
flexDirection: 'row',
|
|
179
|
+
borderLeftWidth: 0.5,
|
|
180
|
+
borderColor: colors.color_componentBordercolor,
|
|
181
|
+
},
|
|
182
|
+
profilecard_dataContainer: {
|
|
183
|
+
flex: 1,
|
|
184
|
+
zIndex: 1,
|
|
185
|
+
flexDirection: 'row',
|
|
186
|
+
padding: 1,
|
|
187
|
+
},
|
|
188
|
+
profilecard_left: {
|
|
189
|
+
width: '5%',
|
|
190
|
+
backgroundColor: 'yellow',
|
|
191
|
+
// width: orientation.portrait ? width * 0.35 : width * 0.30,
|
|
192
|
+
},
|
|
193
|
+
profilecard_right: {
|
|
194
|
+
flex: 1, justifyContent: 'flex-start', paddingLeft: 10, paddingTop: 0,
|
|
195
|
+
// alignItems: 'center',
|
|
196
|
+
},
|
|
197
|
+
profilecard_end_view: {
|
|
198
|
+
width: '25%',
|
|
199
|
+
alignItems: 'flex-end',
|
|
200
|
+
// alignItems: 'center', justifyContent: 'center',
|
|
201
|
+
borderRadius: 10,
|
|
202
|
+
},
|
|
203
|
+
profilecard_end_child_view: {
|
|
204
|
+
height: 75,
|
|
205
|
+
justifyContent: 'space-around', width: '100%', alignItems: 'center',
|
|
206
|
+
},
|
|
207
|
+
profilecard_end_button: {
|
|
208
|
+
width: Dimensions.get('screen').width * 0.3,
|
|
209
|
+
height: Dimensions.get('screen').height * 0.04,
|
|
210
|
+
marginTop: 10,
|
|
211
|
+
alignItems: 'center',
|
|
212
|
+
justifyContent: 'center',
|
|
213
|
+
},
|
|
214
|
+
profilecard_end_button_icon: {
|
|
215
|
+
width: '100%', height: '100%', resizeMode: 'contain',
|
|
216
|
+
},
|
|
217
|
+
profilecard_content_left: {
|
|
218
|
+
justifyContent: 'space-around', alignItems: 'center',
|
|
219
|
+
},
|
|
220
|
+
profilecard_content_right: {
|
|
221
|
+
width: '90%',
|
|
222
|
+
justifyContent: 'flex-end', alignItems: 'center',
|
|
223
|
+
},
|
|
224
|
+
profilecard_image: {
|
|
225
|
+
height: normalize(50), width: '100%', resizeMode: 'contain',
|
|
226
|
+
|
|
227
|
+
},
|
|
228
|
+
profilecard_profilecontent_heading1: {
|
|
229
|
+
fontSize: normalize(13),
|
|
230
|
+
fontWeight: 'normal',
|
|
231
|
+
color: colors.color_profilecard_heading1,
|
|
232
|
+
|
|
233
|
+
},
|
|
234
|
+
profilecard_profilecontent_heading2: {
|
|
235
|
+
fontSize: normalize(17),
|
|
236
|
+
fontWeight: 'bold',
|
|
237
|
+
color: colors.color_profilecard_heading2,
|
|
238
|
+
|
|
239
|
+
},
|
|
240
|
+
profilecard_onlinestatus_badgecontainer: {
|
|
241
|
+
position: 'absolute',
|
|
242
|
+
top: normalize(5),
|
|
243
|
+
right: normalize(8),
|
|
244
|
+
},
|
|
245
|
+
profilecard_subheading_container: {
|
|
246
|
+
flexDirection: 'row',
|
|
247
|
+
justifyContent: 'space-between',
|
|
248
|
+
width: '98%',
|
|
249
|
+
|
|
250
|
+
},
|
|
251
|
+
profilecard_subheading_left_container: {
|
|
252
|
+
width: '50%',
|
|
253
|
+
justifyContent: 'flex-end', alignItems: 'flex-end',
|
|
254
|
+
|
|
255
|
+
},
|
|
256
|
+
profilecard_subheading_right_container: {
|
|
257
|
+
// width: orientation.portrait ? width * 0.28 : width * 0.27,
|
|
258
|
+
width: '49%',
|
|
259
|
+
paddingLeft: '1%',
|
|
260
|
+
|
|
261
|
+
},
|
|
262
|
+
profilecard_hiddenitem_container: {
|
|
263
|
+
flexDirection: 'row',
|
|
264
|
+
width: '100%',
|
|
265
|
+
height: normalize(60),
|
|
266
|
+
marginVertical: normalize(2),
|
|
267
|
+
alignItems:'center',
|
|
268
|
+
justifyContent: 'space-evenly',
|
|
269
|
+
},
|
|
270
|
+
profilecard_hiddenitem_Child_container: {
|
|
271
|
+
width: '70%',
|
|
272
|
+
backgroundColor: '#fff',
|
|
273
|
+
borderRadius: 10,
|
|
274
|
+
},
|
|
275
|
+
profilecard_hiddenitem_inner_container: {
|
|
276
|
+
width: '100%',
|
|
277
|
+
},
|
|
278
|
+
profilecard_hiddenitem_left_displaytext: {
|
|
279
|
+
marginTop: 1, marginLeft: 5,
|
|
280
|
+
textAlign: 'left', fontSize: normalize(8),
|
|
281
|
+
fontWeight: 'bold',
|
|
282
|
+
color: '#606266',
|
|
283
|
+
},
|
|
284
|
+
profilecard_hiddenitem_left_displayvalue: {
|
|
285
|
+
marginTop: 1, marginLeft: 12,
|
|
286
|
+
textAlign: 'left', fontSize: normalize(10),
|
|
287
|
+
fontWeight: 'bold',
|
|
288
|
+
color: '#0C4F60',
|
|
289
|
+
},
|
|
290
|
+
profilecard_hiddenitem_right_displaytext: {
|
|
291
|
+
marginTop: 0, marginRight: 5,
|
|
292
|
+
textAlign: 'right', fontSize: normalize(8),
|
|
293
|
+
fontWeight: 'bold',
|
|
294
|
+
color: '#606266',
|
|
295
|
+
},
|
|
296
|
+
profilecard_hiddenitem_right_displayvalue: {
|
|
297
|
+
marginTop: 1, marginRight: 12, textAlign: 'right', fontSize: normalize(10),
|
|
298
|
+
fontWeight: 'bold',
|
|
299
|
+
color: '#0C4F60',
|
|
300
|
+
},
|
|
301
|
+
doctorText: {
|
|
302
|
+
fontSize: normalize(16),
|
|
303
|
+
fontWeight: 'bold',
|
|
304
|
+
},
|
|
305
|
+
|
|
306
|
+
input_Text: {
|
|
307
|
+
fontSize: normalize(14),
|
|
308
|
+
color: colors.color_componentText,
|
|
309
|
+
},
|
|
310
|
+
select_TextStyle: {
|
|
311
|
+
alignContent: 'center',
|
|
312
|
+
margin: Dimensions.get('window').height * 0.004,
|
|
313
|
+
alignItems: 'center',
|
|
314
|
+
textAlign: 'left',
|
|
315
|
+
fontSize: normalize(14),
|
|
316
|
+
},
|
|
317
|
+
buttonStyle: {
|
|
318
|
+
flexDirection: 'row',
|
|
319
|
+
alignItems: 'center',
|
|
320
|
+
justifyContent: 'space-between',
|
|
321
|
+
borderRadius: 10,
|
|
322
|
+
},
|
|
323
|
+
buttonText: {
|
|
324
|
+
fontSize: normalize(20),
|
|
325
|
+
color: colors.color_buttonText,
|
|
326
|
+
},
|
|
327
|
+
label_underIcon: {
|
|
328
|
+
fontSize: normalize(6),
|
|
329
|
+
},
|
|
330
|
+
item_TitleLabel: {
|
|
331
|
+
fontSize: normalize(10),
|
|
332
|
+
color: colors.color_dark_grey,
|
|
333
|
+
// fontWeight:fontWeight.fontWeight_600
|
|
334
|
+
// padding:5,
|
|
335
|
+
// paddingBottom:0,
|
|
336
|
+
},
|
|
337
|
+
item_DOB: {
|
|
338
|
+
fontSize: normalize(10),
|
|
339
|
+
fontWeight: 'bold',
|
|
340
|
+
// color: colors.color_dark_grey,
|
|
341
|
+
// fontWeight:fontWeight.fontWeight_600
|
|
342
|
+
// padding:5,
|
|
343
|
+
// paddingBottom:0,
|
|
344
|
+
},
|
|
345
|
+
view_Display_Text: {
|
|
346
|
+
// justifyContent: 'center',
|
|
347
|
+
width: '100%',
|
|
348
|
+
// paddingLeft: Dimensions.get("window").width * 0.005
|
|
349
|
+
},
|
|
350
|
+
|
|
351
|
+
radioContainer: {
|
|
352
|
+
flexGrow: 1,
|
|
353
|
+
flexDirection: 'row',
|
|
354
|
+
width:'20%',
|
|
355
|
+
// padding: 10
|
|
356
|
+
// paddingRight:20,
|
|
357
|
+
paddingVertical: 5,
|
|
358
|
+
},
|
|
359
|
+
outerRadioButton: {
|
|
360
|
+
alignItems: 'center',
|
|
361
|
+
justifyContent: 'center',
|
|
362
|
+
height: radio_height,
|
|
363
|
+
width: radio_height,
|
|
364
|
+
borderRadius: radio_height / 2,
|
|
365
|
+
borderWidth: 1,
|
|
366
|
+
},
|
|
367
|
+
radioButtonText: {
|
|
368
|
+
fontSize: normalize(11),
|
|
369
|
+
},
|
|
370
|
+
innerRadioButton: {
|
|
371
|
+
height: radio_height / 1.3,
|
|
372
|
+
width: radio_height / 1.3,
|
|
373
|
+
borderRadius: radio_height / 2,
|
|
374
|
+
backgroundColor: 'darkblue',
|
|
375
|
+
},
|
|
376
|
+
|
|
377
|
+
//alignment//
|
|
378
|
+
View_row_center: {
|
|
379
|
+
justifyContent: 'center',
|
|
380
|
+
alignContent: 'center',
|
|
381
|
+
alignItems: 'center',
|
|
382
|
+
flexDirection: 'row',
|
|
383
|
+
},
|
|
384
|
+
View_row_flexstart: {
|
|
385
|
+
flexDirection: 'row',
|
|
386
|
+
justifyContent: 'flex-start',
|
|
387
|
+
alignContent: 'flex-start',
|
|
388
|
+
alignItems: 'flex-start',
|
|
389
|
+
},
|
|
390
|
+
View_row_flexend: {
|
|
391
|
+
flexDirection: 'row',
|
|
392
|
+
justifyContent: 'flex-end',
|
|
393
|
+
alignContent: 'flex-end',
|
|
394
|
+
alignItems: 'flex-end',
|
|
395
|
+
},
|
|
396
|
+
View_row_spacearound: {
|
|
397
|
+
flexDirection: 'row',
|
|
398
|
+
justifyContent: 'space-around',
|
|
399
|
+
alignContent: 'center',
|
|
400
|
+
alignItems: 'center',
|
|
401
|
+
},
|
|
402
|
+
View_col_spacearound: {
|
|
403
|
+
flexDirection: 'column',
|
|
404
|
+
justifyContent: 'space-around',
|
|
405
|
+
alignContent: 'center',
|
|
406
|
+
alignItems: 'center',
|
|
407
|
+
},
|
|
408
|
+
View_col_center: {
|
|
409
|
+
justifyContent: 'center',
|
|
410
|
+
alignContent: 'center',
|
|
411
|
+
alignItems: 'center',
|
|
412
|
+
flexDirection: 'column',
|
|
413
|
+
},
|
|
414
|
+
View_col_flexstart: {
|
|
415
|
+
flexDirection: 'column',
|
|
416
|
+
justifyContent: 'flex-start',
|
|
417
|
+
alignContent: 'flex-start',
|
|
418
|
+
alignItems: 'flex-start',
|
|
419
|
+
},
|
|
420
|
+
View_col_flexend: {
|
|
421
|
+
flexDirection: 'column',
|
|
422
|
+
justifyContent: 'flex-end',
|
|
423
|
+
alignContent: 'flex-end',
|
|
424
|
+
alignItems: 'flex-end',
|
|
425
|
+
},
|
|
426
|
+
|
|
427
|
+
//alignment ends here//
|
|
428
|
+
mediaoverlay_containerstyle: {
|
|
429
|
+
position: 'absolute',
|
|
430
|
+
left: 0,
|
|
431
|
+
right: 0,
|
|
432
|
+
elevation: 999,
|
|
433
|
+
alignItems: 'center',
|
|
434
|
+
zIndex: 10000,
|
|
435
|
+
// backgroundColor:'rgba(0,0,0,0)',
|
|
436
|
+
backgroundColor: 'rgba(0, 0, 0, 0.50)',
|
|
437
|
+
justifyContent: 'flex-end',
|
|
438
|
+
// height:Dimensions.get("window").height ,
|
|
439
|
+
flex: 1,
|
|
440
|
+
},
|
|
441
|
+
mediaoverlay_childrenwrapperstyle: {
|
|
442
|
+
// width:Dimensions.get("window").width,
|
|
443
|
+
// backgroundColor:'red',
|
|
444
|
+
borderTopLeftRadius: 20,
|
|
445
|
+
borderTopRightRadius: 20,
|
|
446
|
+
// height:Dimensions.get("window").height*0.30,
|
|
447
|
+
// padding:Dimensions.get("window").height*0.01,
|
|
448
|
+
marginBottom: 0,
|
|
449
|
+
},
|
|
450
|
+
mediaoverlay_topline: {
|
|
451
|
+
height: Dimensions.get('window').height * 0.003,
|
|
452
|
+
backgroundColor: colors.color_button,
|
|
453
|
+
width: Dimensions.get('window').width * 0.10,
|
|
454
|
+
},
|
|
455
|
+
mediaoverlay_icon: {
|
|
456
|
+
width: 35, height: 35, justifyContent: 'center', resizeMode: 'contain',
|
|
457
|
+
},
|
|
458
|
+
popup_containerStyle: {
|
|
459
|
+
backgroundColor: 'rgba(0, 0, 0, 0.65)',
|
|
460
|
+
},
|
|
461
|
+
popup_heading: {
|
|
462
|
+
fontSize: normalize(12),
|
|
463
|
+
fontWeight: 'bold',
|
|
464
|
+
paddingLeft: Dimensions.get('window').width * 0.02,
|
|
465
|
+
color: colors.color_PopupHeadingText,
|
|
466
|
+
},
|
|
467
|
+
mediaoverlay_iconundertext: {
|
|
468
|
+
fontSize: normalize(8),
|
|
469
|
+
},
|
|
470
|
+
alertHttpstatusText: {
|
|
471
|
+
fontSize: normalize(12),
|
|
472
|
+
color: colors.color_dark_grey,
|
|
473
|
+
fontWeight: fontWeight.fontWeight_Bold,
|
|
474
|
+
},
|
|
475
|
+
alertCaptionText: {
|
|
476
|
+
marginTop: 5,
|
|
477
|
+
fontWeight: 'bold',
|
|
478
|
+
fontSize: normalize(15),
|
|
479
|
+
color: colors.color_alertCaptionText,
|
|
480
|
+
},
|
|
481
|
+
alertMessageText: {
|
|
482
|
+
fontSize: normalize(12),
|
|
483
|
+
color: colors.color_dark_grey,
|
|
484
|
+
fontWeight: fontWeight.fontWeight_Bold,
|
|
485
|
+
textAlign: 'justify',
|
|
486
|
+
},
|
|
487
|
+
alertContentText: {
|
|
488
|
+
fontSize: normalize(10),
|
|
489
|
+
color: 'red',
|
|
490
|
+
fontWeight: 'bold',
|
|
491
|
+
textAlign: 'center',
|
|
492
|
+
textAlign: 'justify',
|
|
493
|
+
},
|
|
494
|
+
errorMoreButton: {
|
|
495
|
+
fontSize: normalize(10),
|
|
496
|
+
color: colors.color_errorMoreButton,
|
|
497
|
+
fontWeight: 'bold',
|
|
498
|
+
textAlign: 'center',
|
|
499
|
+
},
|
|
500
|
+
|
|
501
|
+
searchTextbox_View: {
|
|
502
|
+
flexDirection: 'row',
|
|
503
|
+
borderWidth: 0,
|
|
504
|
+
borderColor: colors.color_componentBordercolor,
|
|
505
|
+
justifyContent: 'flex-start',
|
|
506
|
+
alignItems: 'flex-start',
|
|
507
|
+
borderRadius: 7,
|
|
508
|
+
// margin: Dimensions.get("window").height * 0.002,
|
|
509
|
+
marginBottom: Dimensions.get('window').height * 0.003,
|
|
510
|
+
height: 35,
|
|
511
|
+
// width:'100%',
|
|
512
|
+
backgroundColor: '#f1f3f6',
|
|
513
|
+
// backgroundColor:colors.color_componentBgcolor,
|
|
514
|
+
marginTop: 0,padding:5,
|
|
515
|
+
},
|
|
516
|
+
searchTextbox: {
|
|
517
|
+
color: 'black',
|
|
518
|
+
width: '100%', marginLeft: '1%', marginRight: '1%',
|
|
519
|
+
fontWeight:'bold',
|
|
520
|
+
fontSize: normalize(18),
|
|
521
|
+
textAlign: 'justify',
|
|
522
|
+
padding: 0, height: '100%', marginBottom: -(Dimensions.get('window').height * 0.003),
|
|
523
|
+
},
|
|
524
|
+
searchIcon: {
|
|
525
|
+
width: 20, height: 20, margin: 5, resizeMode: 'contain',
|
|
526
|
+
},
|
|
527
|
+
searchButton: {
|
|
528
|
+
height: 35,
|
|
529
|
+
width: '20%',
|
|
530
|
+
borderRadius: 7,
|
|
531
|
+
justifyContent: 'center',
|
|
532
|
+
alignItems: 'center',
|
|
533
|
+
alignContent: 'center',
|
|
534
|
+
},
|
|
535
|
+
searchButtonText: {
|
|
536
|
+
fontSize: normalize(10),
|
|
537
|
+
fontWeight: 'bold',
|
|
538
|
+
color: colors.color_buttonText,
|
|
539
|
+
padding: 1,
|
|
540
|
+
},
|
|
541
|
+
errorMsgText: {
|
|
542
|
+
color: colors.color_error_msg_Text,
|
|
543
|
+
},
|
|
544
|
+
});
|
|
545
|
+
export default ComponentStyles;
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { StyleSheet} from 'react-native';
|
|
2
|
+
import { Global } from '../../../../../src/Common/Global';
|
|
3
|
+
import { colors, fontWeight } from './commonStyle'; import { normalize } from './componentStyle';
|
|
4
|
+
|
|
5
|
+
const styles = StyleSheet.create({
|
|
6
|
+
profile_icon_container: {
|
|
7
|
+
height: '100%', justifyContent: 'center', flex: 2,
|
|
8
|
+
},
|
|
9
|
+
profile_icon_style: {
|
|
10
|
+
width: '100%', height: '70%', borderRadius: 0, resizeMode: 'contain',
|
|
11
|
+
},
|
|
12
|
+
user_details_container: {
|
|
13
|
+
height: '100%',
|
|
14
|
+
justifyContent: 'center',
|
|
15
|
+
flex: 4,
|
|
16
|
+
},
|
|
17
|
+
logout_icon_container: {
|
|
18
|
+
height: '100%',
|
|
19
|
+
justifyContent: 'center',
|
|
20
|
+
alignItems: 'center',
|
|
21
|
+
flex: 1,
|
|
22
|
+
},
|
|
23
|
+
logout_icon_style: {
|
|
24
|
+
width: '60%',
|
|
25
|
+
height: '40%',
|
|
26
|
+
borderRadius: 100,
|
|
27
|
+
resizeMode: 'contain',
|
|
28
|
+
},
|
|
29
|
+
option_menu_icon: {
|
|
30
|
+
width: 40, height: 40, marginLeft: 20,
|
|
31
|
+
},
|
|
32
|
+
option_submenu_icon: {
|
|
33
|
+
width: 30, height: 30, marginLeft: 15, resizeMode: 'contain',
|
|
34
|
+
},
|
|
35
|
+
option_menu_text: {
|
|
36
|
+
marginLeft: 5, fontSize: normalize(14),
|
|
37
|
+
fontWeight: '600',
|
|
38
|
+
color:'#fff',
|
|
39
|
+
},
|
|
40
|
+
option_detail_help_url_icon: {
|
|
41
|
+
width: 20, height: 20, marginLeft: 15, borderRadius: 100,
|
|
42
|
+
resizeMode:'contain',
|
|
43
|
+
},
|
|
44
|
+
option_selection_container: {
|
|
45
|
+
flexDirection: 'row', justifyContent: 'flex-start', alignItems: 'center', flex: 4,
|
|
46
|
+
},
|
|
47
|
+
option_submenu_child_container: {
|
|
48
|
+
// backgroundColor: '#fff',
|
|
49
|
+
flexDirection: 'row',
|
|
50
|
+
justifyContent: 'flex-start',
|
|
51
|
+
alignContent: 'center',
|
|
52
|
+
alignItems: 'center', margin: 5,
|
|
53
|
+
borderRadius: 10,
|
|
54
|
+
// elevation: 5,
|
|
55
|
+
// borderLeftWidth: 5,
|
|
56
|
+
// borderWidth: 0.5,
|
|
57
|
+
// borderColor: colors.color_SubmenuBorderColor
|
|
58
|
+
},
|
|
59
|
+
option_menu_container: {
|
|
60
|
+
// backgroundColor: '#fff',
|
|
61
|
+
flexDirection: 'row',
|
|
62
|
+
justifyContent: 'flex-start',
|
|
63
|
+
alignContent: 'center',
|
|
64
|
+
alignItems: 'center',
|
|
65
|
+
margin: 2,
|
|
66
|
+
height: 32,
|
|
67
|
+
borderRadius: 10,
|
|
68
|
+
//elevation: 5,
|
|
69
|
+
// borderLeftWidth: 5,
|
|
70
|
+
// elevation:1,
|
|
71
|
+
// borderWidth: 0.5,
|
|
72
|
+
// borderColor: colors.color_MenuBorderColor,
|
|
73
|
+
},
|
|
74
|
+
option_block: {
|
|
75
|
+
flex: 1, width: '100%',backgroundColor: Global.AppTheme.primary_color,
|
|
76
|
+
},
|
|
77
|
+
option_error_msg: {
|
|
78
|
+
justifyContent: 'center', alignItems: 'center', padding: 5,
|
|
79
|
+
},
|
|
80
|
+
usernameStyle: {
|
|
81
|
+
color: colors.color_usernameText,
|
|
82
|
+
fontSize: 16,
|
|
83
|
+
fontWeight: fontWeight.fontWeight_Bold,
|
|
84
|
+
},
|
|
85
|
+
departmeNameStyle: {
|
|
86
|
+
color: '#C1C6D0',
|
|
87
|
+
fontSize: 12,
|
|
88
|
+
},
|
|
89
|
+
dataListContainerStyle: {
|
|
90
|
+
justifyContent: 'flex-start',
|
|
91
|
+
flex: 1,
|
|
92
|
+
marginBottom: 20,
|
|
93
|
+
alignItems: 'flex-start',
|
|
94
|
+
paddingLeft: 5,
|
|
95
|
+
paddingTop: 5,
|
|
96
|
+
},
|
|
97
|
+
});
|
|
98
|
+
export function getOptionContainerStyle(height) {
|
|
99
|
+
return (
|
|
100
|
+
{
|
|
101
|
+
position: 'absolute',
|
|
102
|
+
left: 0,
|
|
103
|
+
right: 0,
|
|
104
|
+
elevation: 999,
|
|
105
|
+
alignItems: 'flex-start',
|
|
106
|
+
margin: 0,
|
|
107
|
+
zIndex: 10000,
|
|
108
|
+
backgroundColor: 'rgba(0, 0, 0, 0.10)',
|
|
109
|
+
justifyContent: 'flex-start',
|
|
110
|
+
height: height,
|
|
111
|
+
}
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
export function getOptionchildrenWrapperStyle(width, height) {
|
|
115
|
+
return (
|
|
116
|
+
{
|
|
117
|
+
// backgroundColor: colors.color_Header,
|
|
118
|
+
backgroundColor: Global.AppTheme.primary_color,
|
|
119
|
+
width: width,
|
|
120
|
+
height: height,
|
|
121
|
+
margin: -20,
|
|
122
|
+
}
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
export function getOptionHeaderContainer(height) {
|
|
126
|
+
return (
|
|
127
|
+
{
|
|
128
|
+
backgroundColor: Global.AppTheme.primary_color,
|
|
129
|
+
// backgroundColor: colors.color_Header,
|
|
130
|
+
flexDirection: 'row',
|
|
131
|
+
height: height * 0.10, alignItems: 'flex-end',
|
|
132
|
+
}
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
export function getOptionMenu(width) {
|
|
136
|
+
return (
|
|
137
|
+
{
|
|
138
|
+
width: width * 0.85,
|
|
139
|
+
marginLeft: width * 0.02,
|
|
140
|
+
...styles.option_menu_container,
|
|
141
|
+
}
|
|
142
|
+
);
|
|
143
|
+
}
|
|
144
|
+
export function getOptionSubmenuContainer(width) {
|
|
145
|
+
return (
|
|
146
|
+
{ width: width * 0.85, marginLeft: width * 0.03 }
|
|
147
|
+
);
|
|
148
|
+
}
|
|
149
|
+
export function getOptionSubmenuChildContainer(width) {
|
|
150
|
+
return (
|
|
151
|
+
{
|
|
152
|
+
width: width * 0.82,
|
|
153
|
+
...styles.option_submenu_child_container,
|
|
154
|
+
height:30,
|
|
155
|
+
}
|
|
156
|
+
);
|
|
157
|
+
}
|
|
158
|
+
export function getOptionSubmenuText(width) {
|
|
159
|
+
return (
|
|
160
|
+
{
|
|
161
|
+
marginLeft: 20, fontSize: normalize(12), fontWeight: '400',
|
|
162
|
+
color:'#fff',
|
|
163
|
+
width: width * 0.55,
|
|
164
|
+
}
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
export function getoptiondetailhelpurlContainer(width) {
|
|
168
|
+
return (
|
|
169
|
+
{
|
|
170
|
+
alignItems: 'flex-end',
|
|
171
|
+
justifyContent: 'center', flex: 1, paddingRight: width * 0.02,
|
|
172
|
+
}
|
|
173
|
+
);
|
|
174
|
+
}
|
|
175
|
+
export default styles;
|