@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,146 @@
|
|
|
1
|
+
|
|
2
|
+
import { StyleSheet } from 'react-native';
|
|
3
|
+
import ComponentStyles, { normalize } from '../CommonStyle/componentStyle';
|
|
4
|
+
import { colors } from '../CommonStyle/commonStyle';
|
|
5
|
+
export function getSearchButtonStyle(backgroundcolor) {
|
|
6
|
+
return (
|
|
7
|
+
{
|
|
8
|
+
...ComponentStyles.searchButton,
|
|
9
|
+
width: '100%',
|
|
10
|
+
backgroundColor: backgroundcolor,
|
|
11
|
+
}
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
export function getListviewItem(selected, borderbottomwidth) {
|
|
15
|
+
return (
|
|
16
|
+
{
|
|
17
|
+
borderColor: '#DCDEDD',
|
|
18
|
+
borderWidth: borderbottomwidth ? 0 : 1,
|
|
19
|
+
borderBottomWidth: 1,
|
|
20
|
+
width: '100%',
|
|
21
|
+
borderRadius: 7,
|
|
22
|
+
backgroundColor: selected ? 'lightblue' : colors.color_DeselectBgCOlor,
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
export function getListviewItemText(selected) {
|
|
27
|
+
return (
|
|
28
|
+
{
|
|
29
|
+
...ComponentStyles.select_TextStyle,
|
|
30
|
+
fontWeight: selected ? 'bold' : 'normal',
|
|
31
|
+
color:selected ? '#094485' : 'black',
|
|
32
|
+
}
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
export function getListviewItemText2(selected) {
|
|
36
|
+
return (
|
|
37
|
+
{
|
|
38
|
+
//...ComponentStyles.select_TextStyle,
|
|
39
|
+
// fontWeight: selected ? 'bold' : 'normal',
|
|
40
|
+
//color:selected ? '#094485':"black",
|
|
41
|
+
backgroundColor:selected ? '#ccd9ff' : 'white',
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
export function getPopupHeadingOption(width) {
|
|
46
|
+
return (
|
|
47
|
+
{
|
|
48
|
+
paddingBottom: 5, flexDirection: 'row',
|
|
49
|
+
justifyContent: 'space-around', width: width * 0.90,
|
|
50
|
+
margin: 5,
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
export function getPopupHeadingOptionText(color) {
|
|
55
|
+
return (
|
|
56
|
+
{
|
|
57
|
+
...ComponentStyles.popup_heading,
|
|
58
|
+
color: 'darkblue',
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
export function getPopupContainerStyle(height) {
|
|
63
|
+
return (
|
|
64
|
+
{
|
|
65
|
+
borderRadius: 20,
|
|
66
|
+
height: height * 0.60,
|
|
67
|
+
// backgroundColor:'blue'
|
|
68
|
+
}
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
export function getPopupTextAreaContainer(width, height) {
|
|
72
|
+
return (
|
|
73
|
+
{
|
|
74
|
+
justifyContent: 'center',
|
|
75
|
+
flex: 1,
|
|
76
|
+
alignItems: 'center',
|
|
77
|
+
}
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
export function getPopupTextAreaChildContainer(width, height, bordercolor) {
|
|
81
|
+
return (
|
|
82
|
+
{
|
|
83
|
+
flexDirection: 'row',
|
|
84
|
+
borderWidth: 1,
|
|
85
|
+
borderColor: bordercolor,
|
|
86
|
+
width: '80%',
|
|
87
|
+
justifyContent: 'flex-start',
|
|
88
|
+
alignItems: 'center',
|
|
89
|
+
borderRadius: 7,
|
|
90
|
+
margin: height * 0.003,
|
|
91
|
+
marginBottom: height * 0.003,
|
|
92
|
+
height: height * 0.30,
|
|
93
|
+
backgroundColor: colors.color_componentBgcolor,
|
|
94
|
+
backgroundColor:'#fff',
|
|
95
|
+
marginTop: 0,
|
|
96
|
+
}
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
export function getPopupTextAreaStyle(width, height) {
|
|
100
|
+
return (
|
|
101
|
+
{
|
|
102
|
+
...ComponentStyles.input_Text,
|
|
103
|
+
textAlignVertical: 'top',
|
|
104
|
+
width: '98%',
|
|
105
|
+
marginLeft: '1%',
|
|
106
|
+
padding: 0, height: '100%',
|
|
107
|
+
marginBottom: -(height * 0.003),
|
|
108
|
+
fontSize:normalize(14),
|
|
109
|
+
fontWeight:'bold',
|
|
110
|
+
}
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
const popupStyles = StyleSheet.create({
|
|
114
|
+
overlay_screen_listview_container: {
|
|
115
|
+
justifyContent: 'center',
|
|
116
|
+
marginBottom: 10,
|
|
117
|
+
},
|
|
118
|
+
overlay_screen_button_view: {
|
|
119
|
+
width: '99%',
|
|
120
|
+
marginTop: 20,
|
|
121
|
+
...ComponentStyles.View_row_center,
|
|
122
|
+
justifyContent: 'space-around',
|
|
123
|
+
},
|
|
124
|
+
overlay_screen_small_button_style: {
|
|
125
|
+
borderRadius: 7,
|
|
126
|
+
height: normalize(40),
|
|
127
|
+
backgroundColor: '#eae5e5',
|
|
128
|
+
width: normalize(60),
|
|
129
|
+
...ComponentStyles.View_col_center,
|
|
130
|
+
},
|
|
131
|
+
overlay_screen_big_button_style: {
|
|
132
|
+
backgroundColor: '#094485',
|
|
133
|
+
borderRadius: 7,
|
|
134
|
+
width: '100%', marginBottom: 30,
|
|
135
|
+
height: 35,
|
|
136
|
+
alignItems: 'center',
|
|
137
|
+
justifyContent: 'center',
|
|
138
|
+
},
|
|
139
|
+
overlay_screen_button_text: {
|
|
140
|
+
fontSize: normalize(12),
|
|
141
|
+
fontWeight: '500',
|
|
142
|
+
color:'black',
|
|
143
|
+
// color: colors.color_buttonText,
|
|
144
|
+
},
|
|
145
|
+
});
|
|
146
|
+
export default popupStyles;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
export let colors = {
|
|
2
|
+
|
|
3
|
+
color_Header: '#0E2F56',
|
|
4
|
+
color_dark_grey: '#606266',
|
|
5
|
+
color_StatusBar: '#0E2F56',
|
|
6
|
+
color_BorderColor: 'gray',
|
|
7
|
+
color_Background_color: '#ebecf0',
|
|
8
|
+
|
|
9
|
+
//Audio
|
|
10
|
+
color_audio_minimumTrackTintColor: '#606266',
|
|
11
|
+
color_audio_maximumTrackTintColor: '#de6a31',
|
|
12
|
+
|
|
13
|
+
//Profile card
|
|
14
|
+
color_profilecard_heading1: '#0C4F60',
|
|
15
|
+
color_profilecard_heading2: '#0C4F60',
|
|
16
|
+
color_hiddenitem_bg_color: 'lightgray',
|
|
17
|
+
|
|
18
|
+
//Error Component
|
|
19
|
+
color_alertCaptionText: '#0C4F60',
|
|
20
|
+
color_errorMoreButton:'#008de6',
|
|
21
|
+
|
|
22
|
+
//online status
|
|
23
|
+
color_Status_online: '#17A589',
|
|
24
|
+
color_Status_offline: '#E74C3C',
|
|
25
|
+
color_Status_busy: '#D4AC0D',
|
|
26
|
+
color_MenuBorderColor: '#051094',
|
|
27
|
+
color_MenuText: '#0E2F56',
|
|
28
|
+
color_SubmenuBorderColor: '#0F52BA',
|
|
29
|
+
color_submenuText: '#0E4D92',
|
|
30
|
+
color_usernameText: '#fff',
|
|
31
|
+
|
|
32
|
+
//Button
|
|
33
|
+
color_button: '#4682B4',
|
|
34
|
+
color_buttonText: '#fff',
|
|
35
|
+
color_InActiveButton: 'lightgray',
|
|
36
|
+
color_error_msg_Text: 'red',
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
//Tabpage
|
|
40
|
+
color_tabpageBgcolor: '#fff',//"#E3E4E5",
|
|
41
|
+
color_tabpageActiveText: '#3e5877',//"#0E2F56",
|
|
42
|
+
color_tabpageActiveTab: '#566d88',//"#0E2F56",
|
|
43
|
+
color_tabpageInActiveText: 'gray',
|
|
44
|
+
color_tabpagePressColor: '#b6c0cc',
|
|
45
|
+
color_tabpageProfileCardBgcolor: '#ABB2B9',
|
|
46
|
+
|
|
47
|
+
//Popup
|
|
48
|
+
color_PopupHeadingText: '#0C4F60',//"#1697B7",
|
|
49
|
+
color_SelectText: '#0C4F60',
|
|
50
|
+
color_DeselectText: 'gray',
|
|
51
|
+
color_SelectBgColor: 'wildsand',
|
|
52
|
+
color_DeselectBgCOlor: '#fff',
|
|
53
|
+
|
|
54
|
+
//Radio Button
|
|
55
|
+
color_SelectRadioBgcolor: 'whitesmoke',//'#F0F0F0',
|
|
56
|
+
color_DeselectRadioBgcolor: 'white',
|
|
57
|
+
color_SelectRadioBordercolor: '#0E2F56',
|
|
58
|
+
colorDeselectRadioBordercolor: 'gray',
|
|
59
|
+
color_RadioInnerBgcolor: 'steelblue',
|
|
60
|
+
|
|
61
|
+
//Component
|
|
62
|
+
color_componentBgcolor: 'whitesmoke',
|
|
63
|
+
color_componentText: '#0C4F60',
|
|
64
|
+
color_componentBordercolor: '#606266',
|
|
65
|
+
color_BorderColor_error: '#CD5C5C',
|
|
66
|
+
color_editedindication_Border: '#428AF8',//"#17A589",//"aqua",//"#5F6A6A",
|
|
67
|
+
color_editedindicationbgcolor: '#F1C40F',
|
|
68
|
+
|
|
69
|
+
// Template status
|
|
70
|
+
color_TemplateDefaultData: '#FFCAED',
|
|
71
|
+
color_RetrieveData: '#F24095',
|
|
72
|
+
color_AddData: 'aqua',
|
|
73
|
+
color_ClassificationData: 'gray',
|
|
74
|
+
|
|
75
|
+
//Result Report
|
|
76
|
+
color_resulttext_high: 'red',
|
|
77
|
+
color_resulttext_low: 'blue',
|
|
78
|
+
color_resulttext_normal: '#283747',
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export let fontWeight = {
|
|
82
|
+
fontWeight_Normal: 'normal',
|
|
83
|
+
fontWeight_Bold: 'bold',
|
|
84
|
+
fontWeight_100: '100',
|
|
85
|
+
fontWeight_200: '200',
|
|
86
|
+
fontWeight_300: '300',
|
|
87
|
+
fontWeight_400: '400',
|
|
88
|
+
fontWeight_500: '500',
|
|
89
|
+
fontWeight_600: '600',
|
|
90
|
+
fontWeight_700: '700',
|
|
91
|
+
fontWeight_800: '800',
|
|
92
|
+
fontWeight_900: '900',
|
|
93
|
+
};
|