@jescon-technologies/react-native-ui-kit 0.0.18 → 0.0.19

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.
@@ -1,191 +0,0 @@
1
- import { StyleSheet, ViewStyle, TextStyle, ImageStyle } from 'react-native';
2
- import { Global } from '../../../../../src/Common/Global';
3
- import { colors, fontWeight } from './commonStyle';
4
- import { normalize } from './componentStyle';
5
-
6
- // ---------------------------------------------------------------------------
7
- // Static styles
8
- // ---------------------------------------------------------------------------
9
-
10
- const styles = StyleSheet.create({
11
- profile_icon_container: {
12
- height: '100%',
13
- justifyContent: 'center',
14
- flex: 2,
15
- } as ViewStyle,
16
- profile_icon_style: {
17
- width: '100%',
18
- height: '70%',
19
- borderRadius: 0,
20
- resizeMode: 'contain',
21
- } as ImageStyle,
22
- user_details_container: {
23
- height: '100%',
24
- justifyContent: 'center',
25
- flex: 4,
26
- } as ViewStyle,
27
- logout_icon_container: {
28
- height: '100%',
29
- justifyContent: 'center',
30
- alignItems: 'center',
31
- flex: 1,
32
- } as ViewStyle,
33
- logout_icon_style: {
34
- width: '60%',
35
- height: '40%',
36
- borderRadius: 100,
37
- resizeMode: 'contain',
38
- } as ImageStyle,
39
- option_menu_icon: {
40
- width: 40,
41
- height: 40,
42
- marginLeft: 20,
43
- } as ImageStyle,
44
- option_submenu_icon: {
45
- width: 30,
46
- height: 30,
47
- marginLeft: 15,
48
- resizeMode: 'contain',
49
- } as ImageStyle,
50
- option_menu_text: {
51
- marginLeft: 5,
52
- fontSize: normalize(14),
53
- fontWeight: '600',
54
- color: '#fff',
55
- } as TextStyle,
56
- option_detail_help_url_icon: {
57
- width: 20,
58
- height: 20,
59
- marginLeft: 15,
60
- borderRadius: 100,
61
- resizeMode: 'contain',
62
- } as ImageStyle,
63
- option_selection_container: {
64
- flexDirection: 'row',
65
- justifyContent: 'flex-start',
66
- alignItems: 'center',
67
- flex: 4,
68
- } as ViewStyle,
69
- option_submenu_child_container: {
70
- flexDirection: 'row',
71
- justifyContent: 'flex-start',
72
- alignContent: 'center',
73
- alignItems: 'center',
74
- margin: 5,
75
- borderRadius: 10,
76
- } as ViewStyle,
77
- option_menu_container: {
78
- flexDirection: 'row',
79
- justifyContent: 'flex-start',
80
- alignContent: 'center',
81
- alignItems: 'center',
82
- margin: 2,
83
- height: 32,
84
- borderRadius: 10,
85
- } as ViewStyle,
86
- option_block: {
87
- flex: 1,
88
- width: '100%',
89
- backgroundColor: Global.AppTheme.primary_color,
90
- } as ViewStyle,
91
- option_error_msg: {
92
- justifyContent: 'center',
93
- alignItems: 'center',
94
- padding: 5,
95
- } as ViewStyle,
96
- usernameStyle: {
97
- color: colors.color_usernameText,
98
- fontSize: 16,
99
- fontWeight: fontWeight.fontWeight_Bold,
100
- } as TextStyle,
101
- departmeNameStyle: {
102
- color: '#C1C6D0',
103
- fontSize: 12,
104
- } as TextStyle,
105
- dataListContainerStyle: {
106
- justifyContent: 'flex-start',
107
- flex: 1,
108
- marginBottom: 20,
109
- alignItems: 'flex-start',
110
- paddingLeft: 5,
111
- paddingTop: 5,
112
- } as ViewStyle,
113
- });
114
-
115
- // ---------------------------------------------------------------------------
116
- // Helper factories
117
- // ---------------------------------------------------------------------------
118
-
119
- export function getOptionContainerStyle(height: number): ViewStyle {
120
- return {
121
- position: 'absolute',
122
- left: 0,
123
- right: 0,
124
- elevation: 999,
125
- alignItems: 'flex-start',
126
- margin: 0,
127
- zIndex: 10000,
128
- backgroundColor: 'rgba(0, 0, 0, 0.10)',
129
- justifyContent: 'flex-start',
130
- height,
131
- };
132
- }
133
-
134
- export function getOptionchildrenWrapperStyle(width: number, height: number): ViewStyle {
135
- return {
136
- backgroundColor: Global.AppTheme.primary_color,
137
- width,
138
- height,
139
- margin: -20,
140
- };
141
- }
142
-
143
- export function getOptionHeaderContainer(height: number): ViewStyle {
144
- return {
145
- backgroundColor: Global.AppTheme.primary_color,
146
- flexDirection: 'row',
147
- height: height * 0.1,
148
- alignItems: 'flex-end',
149
- };
150
- }
151
-
152
- export function getOptionMenu(width: number): ViewStyle {
153
- return {
154
- width: width * 0.85,
155
- marginLeft: width * 0.02,
156
- ...styles.option_menu_container,
157
- };
158
- }
159
-
160
- export function getOptionSubmenuContainer(width: number): ViewStyle {
161
- return { width: width * 0.85, marginLeft: width * 0.03 };
162
- }
163
-
164
- export function getOptionSubmenuChildContainer(width: number): ViewStyle {
165
- return {
166
- width: width * 0.82,
167
- ...styles.option_submenu_child_container,
168
- height: 30,
169
- };
170
- }
171
-
172
- export function getOptionSubmenuText(width: number): TextStyle {
173
- return {
174
- marginLeft: 20,
175
- fontSize: normalize(12),
176
- fontWeight: '400',
177
- color: '#fff',
178
- width: width * 0.55,
179
- };
180
- }
181
-
182
- export function getoptiondetailhelpurlContainer(width: number): ViewStyle {
183
- return {
184
- alignItems: 'flex-end',
185
- justifyContent: 'center',
186
- flex: 1,
187
- paddingRight: width * 0.02,
188
- };
189
- }
190
-
191
- export default styles;