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

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,651 +0,0 @@
1
- import { StyleSheet, Dimensions, Platform, PixelRatio, Text, ViewStyle, TextStyle, ImageStyle } 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
- const radio_height = 20;
11
-
12
- // Type definitions for component styles
13
- interface ComponentStylesType {
14
- textinput: ViewStyle;
15
- viewstyle: ViewStyle;
16
- textstyle: TextStyle;
17
- headerTitle: TextStyle;
18
- headerSubTitle: TextStyle;
19
- component_Icon: ImageStyle;
20
- group_Button: ViewStyle;
21
- group_Button_BadgeStyle: ViewStyle;
22
- media_Gallery_Container: ViewStyle;
23
- group_Button_Badge_TextStyle: TextStyle;
24
- group_Button_Badge_ContainerStyle: ViewStyle;
25
- no_data_found_text: TextStyle;
26
- footer_Icon: ImageStyle;
27
- footer_Icon_Text: TextStyle;
28
- header_section_conatiner_style: ViewStyle;
29
- header_section_child_container_style: ViewStyle;
30
- header_left_menu_icon_container: ViewStyle;
31
- header_right_menu_icon_container: ViewStyle;
32
- header_menu_icon: ImageStyle;
33
- result_view_child_container: ViewStyle;
34
- result_view_heading_container: ViewStyle;
35
- result_view_display_Text: TextStyle;
36
- result_view_viewgraph_container: ViewStyle;
37
- result_view_viewgraph_text: TextStyle;
38
- result_view_range_container: ViewStyle;
39
- result_view_unit_Text: TextStyle;
40
- result_view_range_child_container: ViewStyle;
41
- result_view_range_Text: TextStyle;
42
- result_view_value_container: ViewStyle;
43
- profilecard_dataContainer: ViewStyle;
44
- profilecard_left: ViewStyle;
45
- profilecard_right: ViewStyle;
46
- profilecard_end_view: ViewStyle;
47
- profilecard_end_child_view: ViewStyle;
48
- profilecard_end_button: ViewStyle;
49
- profilecard_end_button_icon: ImageStyle;
50
- profilecard_content_left: ViewStyle;
51
- profilecard_content_right: ViewStyle;
52
- profilecard_image: ImageStyle;
53
- profilecard_profilecontent_heading1: TextStyle;
54
- profilecard_profilecontent_heading2: TextStyle;
55
- profilecard_onlinestatus_badgecontainer: ViewStyle;
56
- profilecard_subheading_container: ViewStyle;
57
- profilecard_subheading_left_container: ViewStyle;
58
- profilecard_subheading_right_container: ViewStyle;
59
- profilecard_hiddenitem_container: ViewStyle;
60
- profilecard_hiddenitem_Child_container: ViewStyle;
61
- profilecard_hiddenitem_inner_container: ViewStyle;
62
- profilecard_hiddenitem_left_displaytext: TextStyle;
63
- profilecard_hiddenitem_left_displayvalue: TextStyle;
64
- profilecard_hiddenitem_right_displaytext: TextStyle;
65
- profilecard_hiddenitem_right_displayvalue: TextStyle;
66
- doctorText: TextStyle;
67
- input_Text: TextStyle;
68
- select_TextStyle: TextStyle;
69
- buttonStyle: ViewStyle;
70
- buttonText: TextStyle;
71
- label_underIcon: TextStyle;
72
- item_TitleLabel: TextStyle;
73
- item_DOB: TextStyle;
74
- view_Display_Text: ViewStyle;
75
- radioContainer: ViewStyle;
76
- outerRadioButton: ViewStyle;
77
- radioButtonText: TextStyle;
78
- innerRadioButton: ViewStyle;
79
- View_row_center: ViewStyle;
80
- View_row_flexstart: ViewStyle;
81
- View_row_flexend: ViewStyle;
82
- View_row_spacearound: ViewStyle;
83
- View_col_spacearound: ViewStyle;
84
- View_col_center: ViewStyle;
85
- View_col_flexstart: ViewStyle;
86
- View_col_flexend: ViewStyle;
87
- mediaoverlay_containerstyle: ViewStyle;
88
- mediaoverlay_childrenwrapperstyle: ViewStyle;
89
- mediaoverlay_topline: ViewStyle;
90
- mediaoverlay_icon: ImageStyle;
91
- popup_containerStyle: ViewStyle;
92
- popup_heading: TextStyle;
93
- mediaoverlay_iconundertext: TextStyle;
94
- alertHttpstatusText: TextStyle;
95
- alertCaptionText: TextStyle;
96
- alertMessageText: TextStyle;
97
- alertContentText: TextStyle;
98
- errorMoreButton: TextStyle;
99
- searchTextbox_View: ViewStyle;
100
- searchTextbox: TextStyle;
101
- searchIcon: ImageStyle;
102
- searchButton: ViewStyle;
103
- searchButtonText: TextStyle;
104
- errorMsgText: TextStyle;
105
- [key: string]: any; // Index signature for any additional styles
106
- }
107
-
108
- // Utility Functions
109
- export function normalize(size: number): number {
110
- const newSize = scale < 1.5 ? size * scale : size * 1.6;
111
- if (Platform.OS === 'ios') {
112
- return Math.round(PixelRatio.roundToNearestPixel(newSize)) - 2;
113
- } else {
114
- return Math.round(PixelRatio.roundToNearestPixel(newSize)) - 2;
115
- }
116
- }
117
-
118
- export function width(itemwidth: number): number {
119
- return SCREEN_WIDTH * (itemwidth / 100);
120
- }
121
-
122
- export function height(itemheight: number): number {
123
- return SCREEN_HEIGHT * (itemheight / 100);
124
- }
125
-
126
- const ComponentStyles = StyleSheet.create<ComponentStylesType>({
127
- textinput: {
128
- fontSize: normalize(15),
129
- color: colors.color_componentText,
130
- width: width(20),
131
- marginLeft: '1%',
132
- marginRight: '1%',
133
- padding: 0,
134
- height: SCREEN_HEIGHT * 0.03,
135
- marginBottom: height(3),
136
- fontWeight: 'normal',
137
- fontStyle: 'normal',
138
- textAlign: 'left',
139
- borderWidth: 1,
140
- marginVertical: 5,
141
- borderColor: 'lightgrey',
142
- },
143
- viewstyle: {
144
- justifyContent: 'center',
145
- alignContent: 'center',
146
- alignItems: 'center',
147
- flexDirection: 'row',
148
- },
149
- textstyle: {
150
- fontSize: normalize(10),
151
- },
152
- headerTitle: {
153
- fontSize: normalize(13),
154
- color: '#fff',
155
- fontWeight: fontWeight.fontWeight_Normal,
156
- },
157
- headerSubTitle: {
158
- fontSize: normalize(11),
159
- color: '#fff',
160
- fontWeight: fontWeight.fontWeight_Normal,
161
- },
162
- component_Icon: {
163
- height: 25,
164
- width: 25,
165
- resizeMode: 'contain',
166
- },
167
- group_Button: {
168
- width: 22,
169
- height: 22,
170
- justifyContent: 'center',
171
- },
172
- group_Button_BadgeStyle: {
173
- backgroundColor: 'rgba(0,0,0,0)',
174
- opacity: 0.7,
175
- borderRadius: 100,
176
- borderWidth: 1,
177
- borderColor: 'gray',
178
- },
179
- media_Gallery_Container: {
180
- flex: 1,
181
- justifyContent: 'center',
182
- alignItems: 'center',
183
- margin: 1,
184
- },
185
- group_Button_Badge_TextStyle: {
186
- color: colors.color_StatusBar,
187
- fontSize: 10,
188
- fontWeight: 'bold',
189
- },
190
- group_Button_Badge_ContainerStyle: {
191
- position: 'absolute',
192
- top: -3,
193
- left: -5,
194
- },
195
- no_data_found_text: {
196
- fontSize: normalize(12),
197
- color: colors.color_componentText,
198
- fontWeight: '800',
199
- alignItems: 'center',
200
- justifyContent: 'center',
201
- },
202
- footer_Icon: {
203
- height: 25,
204
- width: 25,
205
- alignItems: 'center',
206
- alignSelf: 'center',
207
- opacity: 0.9,
208
- },
209
- footer_Icon_Text: {
210
- textAlign: 'center',
211
- fontSize: normalize(6),
212
- },
213
- header_section_conatiner_style: {
214
- backgroundColor: colors.color_Header,
215
- justifyContent: 'flex-end',
216
- padding: 10,
217
- },
218
- header_section_child_container_style: {
219
- flexDirection: 'row',
220
- justifyContent: 'space-between',
221
- margin: 1,
222
- alignItems: 'flex-end',
223
- paddingTop: Platform.OS === 'ios' ? '6%' : '3%',
224
- },
225
- header_left_menu_icon_container: {
226
- borderColor: '#000',
227
- borderRadius: 5,
228
- borderWidth: 0.8,
229
- justifyContent: 'center',
230
- },
231
- header_right_menu_icon_container: {
232
- borderColor: '#000',
233
- borderRadius: 5,
234
- justifyContent: 'center',
235
- },
236
- header_menu_icon: {
237
- height: 27,
238
- width: 27,
239
- margin: 5,
240
- },
241
- result_view_child_container: {
242
- flexDirection: 'row',
243
- alignItems: 'center',
244
- justifyContent: 'center',
245
- borderBottomWidth: 1,
246
- borderColor: colors.color_componentBordercolor,
247
- width: '100%',
248
- },
249
- result_view_heading_container: {
250
- width: '19%',
251
- marginLeft: '1%',
252
- },
253
- result_view_display_Text: {
254
- fontSize: normalize(12),
255
- color: colors.color_componentText,
256
- fontWeight: '800',
257
- },
258
- result_view_viewgraph_container: {
259
- marginTop: '1%',
260
- },
261
- result_view_viewgraph_text: {
262
- color: '#943126',
263
- fontStyle: 'italic',
264
- },
265
- result_view_range_container: {
266
- width: '9%',
267
- alignItems: 'flex-start',
268
- },
269
- result_view_unit_Text: {
270
- fontSize: normalize(10),
271
- color: 'black',
272
- fontWeight: 'bold',
273
- },
274
- result_view_range_child_container: {
275
- width: '100%',
276
- flexDirection: 'column',
277
- marginTop: '1%',
278
- alignItems: 'center',
279
- },
280
- result_view_range_Text: {
281
- fontSize: normalize(10),
282
- color: '#4D5656',
283
- fontWeight: 'normal',
284
- },
285
- result_view_value_container: {
286
- width: '68%',
287
- marginLeft: '1%',
288
- flexDirection: 'row',
289
- borderLeftWidth: 0.5,
290
- borderColor: colors.color_componentBordercolor,
291
- },
292
- profilecard_dataContainer: {
293
- flex: 1,
294
- zIndex: 1,
295
- flexDirection: 'row',
296
- padding: 1,
297
- },
298
- profilecard_left: {
299
- width: '5%',
300
- backgroundColor: 'yellow',
301
- },
302
- profilecard_right: {
303
- flex: 1,
304
- justifyContent: 'flex-start',
305
- paddingLeft: 10,
306
- paddingTop: 0,
307
- },
308
- profilecard_end_view: {
309
- width: '25%',
310
- alignItems: 'flex-end',
311
- borderRadius: 10,
312
- },
313
- profilecard_end_child_view: {
314
- height: 75,
315
- justifyContent: 'space-around',
316
- width: '100%',
317
- alignItems: 'center',
318
- },
319
- profilecard_end_button: {
320
- width: Dimensions.get('screen').width * 0.3,
321
- height: Dimensions.get('screen').height * 0.04,
322
- marginTop: 10,
323
- alignItems: 'center',
324
- justifyContent: 'center',
325
- },
326
- profilecard_end_button_icon: {
327
- width: '100%',
328
- height: '100%',
329
- resizeMode: 'contain',
330
- },
331
- profilecard_content_left: {
332
- justifyContent: 'space-around',
333
- alignItems: 'center',
334
- },
335
- profilecard_content_right: {
336
- width: '90%',
337
- justifyContent: 'flex-end',
338
- alignItems: 'center',
339
- },
340
- profilecard_image: {
341
- height: normalize(50),
342
- width: '100%',
343
- resizeMode: 'contain',
344
- },
345
- profilecard_profilecontent_heading1: {
346
- fontSize: normalize(13),
347
- fontWeight: 'normal',
348
- color: colors.color_profilecard_heading1,
349
- },
350
- profilecard_profilecontent_heading2: {
351
- fontSize: normalize(17),
352
- fontWeight: 'bold',
353
- color: colors.color_profilecard_heading2,
354
- },
355
- profilecard_onlinestatus_badgecontainer: {
356
- position: 'absolute',
357
- top: normalize(5),
358
- right: normalize(8),
359
- },
360
- profilecard_subheading_container: {
361
- flexDirection: 'row',
362
- justifyContent: 'space-between',
363
- width: '98%',
364
- },
365
- profilecard_subheading_left_container: {
366
- width: '50%',
367
- justifyContent: 'flex-end',
368
- alignItems: 'flex-end',
369
- },
370
- profilecard_subheading_right_container: {
371
- width: '49%',
372
- paddingLeft: '1%',
373
- },
374
- profilecard_hiddenitem_container: {
375
- flexDirection: 'row',
376
- width: '100%',
377
- height: normalize(60),
378
- marginVertical: normalize(2),
379
- alignItems: 'center',
380
- justifyContent: 'space-evenly',
381
- },
382
- profilecard_hiddenitem_Child_container: {
383
- width: '70%',
384
- backgroundColor: '#fff',
385
- borderRadius: 10,
386
- },
387
- profilecard_hiddenitem_inner_container: {
388
- width: '100%',
389
- },
390
- profilecard_hiddenitem_left_displaytext: {
391
- marginTop: 1,
392
- marginLeft: 5,
393
- textAlign: 'left',
394
- fontSize: normalize(8),
395
- fontWeight: 'bold',
396
- color: '#606266',
397
- },
398
- profilecard_hiddenitem_left_displayvalue: {
399
- marginTop: 1,
400
- marginLeft: 12,
401
- textAlign: 'left',
402
- fontSize: normalize(10),
403
- fontWeight: 'bold',
404
- color: '#0C4F60',
405
- },
406
- profilecard_hiddenitem_right_displaytext: {
407
- marginTop: 0,
408
- marginRight: 5,
409
- textAlign: 'right',
410
- fontSize: normalize(8),
411
- fontWeight: 'bold',
412
- color: '#606266',
413
- },
414
- profilecard_hiddenitem_right_displayvalue: {
415
- marginTop: 1,
416
- marginRight: 12,
417
- textAlign: 'right',
418
- fontSize: normalize(10),
419
- fontWeight: 'bold',
420
- color: '#0C4F60',
421
- },
422
- doctorText: {
423
- fontSize: normalize(16),
424
- fontWeight: 'bold',
425
- },
426
- input_Text: {
427
- fontSize: normalize(14),
428
- color: colors.color_componentText,
429
- },
430
- select_TextStyle: {
431
- alignContent: 'center',
432
- margin: Dimensions.get('window').height * 0.004,
433
- alignItems: 'center',
434
- textAlign: 'left',
435
- fontSize: normalize(14),
436
- },
437
- buttonStyle: {
438
- flexDirection: 'row',
439
- alignItems: 'center',
440
- justifyContent: 'space-between',
441
- borderRadius: 10,
442
- },
443
- buttonText: {
444
- fontSize: normalize(20),
445
- color: colors.color_buttonText,
446
- },
447
- label_underIcon: {
448
- fontSize: normalize(6),
449
- },
450
- item_TitleLabel: {
451
- fontSize: normalize(10),
452
- color: colors.color_dark_grey,
453
- },
454
- item_DOB: {
455
- fontSize: normalize(10),
456
- fontWeight: 'bold',
457
- },
458
- view_Display_Text: {
459
- width: '100%',
460
- },
461
- radioContainer: {
462
- flexGrow: 1,
463
- flexDirection: 'row',
464
- width: '20%',
465
- paddingVertical: 5,
466
- },
467
- outerRadioButton: {
468
- alignItems: 'center',
469
- justifyContent: 'center',
470
- height: radio_height,
471
- width: radio_height,
472
- borderRadius: radio_height / 2,
473
- borderWidth: 1,
474
- },
475
- radioButtonText: {
476
- fontSize: normalize(11),
477
- },
478
- innerRadioButton: {
479
- height: radio_height / 1.3,
480
- width: radio_height / 1.3,
481
- borderRadius: radio_height / 2,
482
- backgroundColor: 'darkblue',
483
- },
484
- View_row_center: {
485
- justifyContent: 'center',
486
- alignContent: 'center',
487
- alignItems: 'center',
488
- flexDirection: 'row',
489
- },
490
- View_row_flexstart: {
491
- flexDirection: 'row',
492
- justifyContent: 'flex-start',
493
- alignContent: 'flex-start',
494
- alignItems: 'flex-start',
495
- },
496
- View_row_flexend: {
497
- flexDirection: 'row',
498
- justifyContent: 'flex-end',
499
- alignContent: 'flex-end',
500
- alignItems: 'flex-end',
501
- },
502
- View_row_spacearound: {
503
- flexDirection: 'row',
504
- justifyContent: 'space-around',
505
- alignContent: 'center',
506
- alignItems: 'center',
507
- },
508
- View_col_spacearound: {
509
- flexDirection: 'column',
510
- justifyContent: 'space-around',
511
- alignContent: 'center',
512
- alignItems: 'center',
513
- },
514
- View_col_center: {
515
- justifyContent: 'center',
516
- alignContent: 'center',
517
- alignItems: 'center',
518
- flexDirection: 'column',
519
- },
520
- View_col_flexstart: {
521
- flexDirection: 'column',
522
- justifyContent: 'flex-start',
523
- alignContent: 'flex-start',
524
- alignItems: 'flex-start',
525
- },
526
- View_col_flexend: {
527
- flexDirection: 'column',
528
- justifyContent: 'flex-end',
529
- alignContent: 'flex-end',
530
- alignItems: 'flex-end',
531
- },
532
- mediaoverlay_containerstyle: {
533
- position: 'absolute',
534
- left: 0,
535
- right: 0,
536
- elevation: 999,
537
- alignItems: 'center',
538
- zIndex: 10000,
539
- backgroundColor: 'rgba(0, 0, 0, 0.50)',
540
- justifyContent: 'flex-end',
541
- flex: 1,
542
- },
543
- mediaoverlay_childrenwrapperstyle: {
544
- borderTopLeftRadius: 20,
545
- borderTopRightRadius: 20,
546
- marginBottom: 0,
547
- },
548
- mediaoverlay_topline: {
549
- height: Dimensions.get('window').height * 0.003,
550
- backgroundColor: colors.color_button,
551
- width: Dimensions.get('window').width * 0.10,
552
- },
553
- mediaoverlay_icon: {
554
- width: 35,
555
- height: 35,
556
- justifyContent: 'center',
557
- resizeMode: 'contain',
558
- },
559
- popup_containerStyle: {
560
- backgroundColor: 'rgba(0, 0, 0, 0.65)',
561
- },
562
- popup_heading: {
563
- fontSize: normalize(12),
564
- fontWeight: 'bold',
565
- paddingLeft: Dimensions.get('window').width * 0.02,
566
- color: colors.color_PopupHeadingText,
567
- },
568
- mediaoverlay_iconundertext: {
569
- fontSize: normalize(8),
570
- },
571
- alertHttpstatusText: {
572
- fontSize: normalize(12),
573
- color: colors.color_dark_grey,
574
- fontWeight: fontWeight.fontWeight_Bold,
575
- },
576
- alertCaptionText: {
577
- marginTop: 5,
578
- fontWeight: 'bold',
579
- fontSize: normalize(15),
580
- color: colors.color_alertCaptionText,
581
- },
582
- alertMessageText: {
583
- fontSize: normalize(12),
584
- color: colors.color_dark_grey,
585
- fontWeight: fontWeight.fontWeight_Bold,
586
- textAlign: 'justify',
587
- },
588
- alertContentText: {
589
- fontSize: normalize(10),
590
- color: 'red',
591
- fontWeight: 'bold',
592
- textAlign: 'center',
593
- textAlign: 'justify',
594
- },
595
- errorMoreButton: {
596
- fontSize: normalize(10),
597
- color: colors.color_errorMoreButton,
598
- fontWeight: 'bold',
599
- textAlign: 'center',
600
- },
601
- searchTextbox_View: {
602
- flexDirection: 'row',
603
- borderWidth: 0,
604
- borderColor: colors.color_componentBordercolor,
605
- justifyContent: 'flex-start',
606
- alignItems: 'flex-start',
607
- borderRadius: 7,
608
- marginBottom: Dimensions.get('window').height * 0.003,
609
- height: 35,
610
- backgroundColor: '#f1f3f6',
611
- marginTop: 0,
612
- padding: 5,
613
- },
614
- searchTextbox: {
615
- color: 'black',
616
- width: '100%',
617
- marginLeft: '1%',
618
- marginRight: '1%',
619
- fontWeight: 'bold',
620
- fontSize: normalize(18),
621
- textAlign: 'justify',
622
- padding: 0,
623
- height: '100%',
624
- marginBottom: -(Dimensions.get('window').height * 0.003),
625
- },
626
- searchIcon: {
627
- width: 20,
628
- height: 20,
629
- margin: 5,
630
- resizeMode: 'contain',
631
- },
632
- searchButton: {
633
- height: 35,
634
- width: '20%',
635
- borderRadius: 7,
636
- justifyContent: 'center',
637
- alignItems: 'center',
638
- alignContent: 'center',
639
- },
640
- searchButtonText: {
641
- fontSize: normalize(10),
642
- fontWeight: 'bold',
643
- color: colors.color_buttonText,
644
- padding: 1,
645
- },
646
- errorMsgText: {
647
- color: colors.color_error_msg_Text,
648
- },
649
- });
650
-
651
- export default ComponentStyles;