@dhiraj0720/report1chart 2.9.0 → 2.9.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhiraj0720/report1chart",
3
- "version": "2.9.0",
3
+ "version": "2.9.2",
4
4
  "main": "src/index.jsx",
5
5
  "scripts": {
6
6
  "test": "echo 'No tests'"
@@ -28,6 +28,8 @@ const Report1AScreen = ({ endpoint, token, onBack }) => {
28
28
  </TouchableOpacity>
29
29
  <Text style={styles.headerTitle}>PERFORMANS RAPORU (USD)</Text>
30
30
  </View>
31
+
32
+
31
33
 
32
34
  {/* FULLSCREEN BUTTON */}
33
35
  <TouchableOpacity
@@ -65,7 +67,9 @@ const Report1AScreen = ({ endpoint, token, onBack }) => {
65
67
 
66
68
  // ONLY ADDED THIS STYLES PART — NOTHING ELSE CHANGED
67
69
  const styles = StyleSheet.create({
68
- header: {
70
+
71
+
72
+ header: {
69
73
  flexDirection: 'row',
70
74
  alignItems: 'center',
71
75
  paddingHorizontal: 16,
@@ -73,7 +77,6 @@ const styles = StyleSheet.create({
73
77
  backgroundColor: '#4E79A7',
74
78
  borderBottomWidth: 1,
75
79
  borderColor: '#4E79A7',
76
- marginBottom: 12,
77
80
  },
78
81
  backIcon: {
79
82
  fontSize: 32,
@@ -106,22 +106,22 @@ const Report3AScreen = ({ api, token, onBack }) => {
106
106
 
107
107
  {/* FILTER WITH FUNNEL ICON */}
108
108
  <View style={styles.filterBar}>
109
- <TouchableOpacity onPress={() => setMonthsModal(true)} style={styles.filterItem}>
110
- <Svg width={22} height={22} viewBox="0 0 24 24" fill="none">
111
- <Path d="M20 4H4V6.5L12 14.5L20 6.5V4Z" stroke="#000" strokeWidth={2} strokeLinecap="round" strokeLinejoin="round" />
112
- <Path d="M8 11V19L16 19V11" stroke="#000" strokeWidth={2} strokeLinecap="round" strokeLinejoin="round" />
113
- </Svg>
114
- <Text style={styles.filterText}>
115
- Months ({selectedMonths.length}/{months.length})
116
- </Text>
117
- </TouchableOpacity>
118
-
119
- <TouchableOpacity
120
- onPress={() => setFullscreen(true)} style={styles.filterItem}
121
- >
122
- <Text style={styles.filterText}>⤢ Full Screen</Text>
123
- </TouchableOpacity>
124
- </View>
109
+ {/* MONTHS FILTER - LEFT */}
110
+ <TouchableOpacity onPress={() => setMonthsModal(true)} style={styles.filterItemLeft}>
111
+ <Svg width={22} height={22} viewBox="0 0 24 24" fill="none">
112
+ <Path d="M20 4H4V6.5L12 14.5L20 6.5V4Z" stroke="#000" strokeWidth={2} strokeLinecap="round" strokeLinejoin="round" />
113
+ <Path d="M8 11V19L16 19V11" stroke="#000" strokeWidth={2} strokeLinecap="round" strokeLinejoin="round" />
114
+ </Svg>
115
+ <Text style={styles.filterText}>
116
+ Months ({selectedMonths.length}/{months.length})
117
+ </Text>
118
+ </TouchableOpacity>
119
+
120
+ {/* FULL SCREEN - RIGHT */}
121
+ <TouchableOpacity onPress={() => setFullscreen(true)} style={styles.filterItemRight}>
122
+ <Text style={styles.fullScreenFilterText}>⤢ Full Screen</Text>
123
+ </TouchableOpacity>
124
+ </View>
125
125
 
126
126
 
127
127
  <ScrollView style={styles.content}>
@@ -205,31 +205,38 @@ const styles = StyleSheet.create({
205
205
  borderBottomWidth: 1,
206
206
  borderColor: '#4E79A7',
207
207
  },
208
- backIcon: { fontSize: 28, color: '#fff', fontWeight: '700' },
208
+ backIcon: { fontSize: 28, color: '#fff', fontWeight: '800' },
209
209
  headerTitle: { fontSize: 19, fontWeight: '700', color: '#fff', flex: 1, textAlign: 'center' },
210
210
 
211
211
  filterBar: {
212
212
  flexDirection: 'row',
213
- justifyContent: 'flex-start',
213
+ justifyContent: 'space-between', // Perfectly pushes left & right
214
+ alignItems: 'center',
214
215
  paddingHorizontal: 16,
215
216
  paddingVertical: 14,
216
217
  backgroundColor: '#fff',
217
218
  borderBottomWidth: 1,
218
219
  borderColor: '#eee',
219
220
  },
220
- filterItem: { flexDirection: 'row', alignItems: 'center' },
221
- filterText: { fontSize: 16, color: '#000', fontWeight: '600', marginLeft: 8 },
222
-
223
- fullScreenBtn: {
224
- flexDirection: 'row',
225
- alignItems: 'center',
226
- justifyContent: 'center',
227
- padding: 14,
228
- backgroundColor: '#f0f0f0',
229
- borderRadius: 8,
230
- marginVertical: 12,
231
- },
232
- fullScreenText: { marginLeft: 10, fontSize: 16, color: '#000', fontWeight: '600' },
221
+ filterItemLeft: {
222
+ flexDirection: 'row',
223
+ alignItems: 'center',
224
+ },
225
+ filterItemRight: {
226
+ flexDirection: 'row',
227
+ alignItems: 'center',
228
+ },
229
+ filterText: {
230
+ fontSize: 16,
231
+ color: '#000',
232
+ fontWeight: '600',
233
+ marginLeft: 8,
234
+ },
235
+ fullScreenFilterText: {
236
+ fontSize: 16,
237
+ color: '#000',
238
+ fontWeight: '700',
239
+ },
233
240
 
234
241
  content: { flex: 1, padding: 12 },
235
242
  chartContainer: {