@dhiraj0720/report1chart 2.8.0 → 2.8.1

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.8.0",
3
+ "version": "2.8.1",
4
4
  "main": "src/index.jsx",
5
5
  "scripts": {
6
6
  "test": "echo 'No tests'"
@@ -106,33 +106,24 @@ const Report2AScreen = ({ api, token, onBack }) => {
106
106
  </View>
107
107
 
108
108
  <ScrollView style={styles.content}>
109
- {/* FULL SCREEN BUTTON */}
110
- {/* <TouchableOpacity onPress={() => setFullscreen(true)} style={styles.fullScreenBtn}>
109
+ {/* FULL SCREEN BUTTON - SIMPLE TEXT */}
110
+ <TouchableOpacity
111
+ onPress={() => setFullscreen(true)}
112
+ style={styles.fullScreenBtn}
113
+ >
111
114
  <Text style={styles.fullScreenText}>⤢ Full Screen</Text>
112
- </TouchableOpacity> */}
113
- <TouchableOpacity
114
- onPress={() => setFullscreen(true)}
115
- style={{
116
- alignSelf: 'flex-end',
117
- marginBottom: 8,
118
- padding: 6,
119
- }}
120
- >
121
- <Text style={{ fontWeight: '700' }}>⤢ Full Screen</Text>
122
- </TouchableOpacity>
115
+ </TouchableOpacity>
123
116
 
124
117
  {/* TABLE */}
125
118
  <FrozenTableReport2A rows={filteredRows} />
126
119
 
127
- {/* LINE CHART WITH TITLE */}
128
- <View style={styles.chartWrapper}>
129
- <Text style={styles.chartTitle}>AY BAZINDA KAR KARŞILAŞTIRMALARI</Text>
120
+ {/* LINE CHART */}
121
+ <View style={styles.chartContainer}>
130
122
  <SvgLineChartCompact data={filteredLine} />
131
123
  </View>
132
124
 
133
- {/* BAR CHART WITH TITLE - ONLY ONE CARD */}
134
- <View style={styles.chartWrapper}>
135
- <Text style={styles.chartTitle}>AY BAZINDA KAR KARŞILAŞTIRMALARI</Text>
125
+ {/* BAR CHART */}
126
+ <View style={styles.chartContainer}>
136
127
  <SvgBarLineChartCompact data={filteredBar} />
137
128
  </View>
138
129
  </ScrollView>
@@ -198,36 +189,22 @@ const styles = StyleSheet.create({
198
189
 
199
190
  fullScreenBtn: {
200
191
  alignSelf: 'flex-end',
201
- paddingHorizontal: 16,
202
- paddingVertical: 10,
203
- backgroundColor: '#f0f0f0',
204
- borderRadius: 8,
205
- marginVertical: 12,
206
192
  marginRight: 12,
193
+ marginVertical: 12,
194
+ paddingHorizontal: 12,
195
+ paddingVertical: 6,
207
196
  },
208
- fullScreenText: { fontSize: 16, color: '#000', fontWeight: '700' },
197
+ fullScreenText: { fontSize: 16, fontWeight: '700', color: '#000' },
209
198
 
210
- content: { flex: 1, paddingHorizontal: 12 },
199
+ content: { flex: 1, padding: 12 },
211
200
 
212
- chartWrapper: {
213
- backgroundColor: '#fff',
214
- borderRadius: 12,
215
- padding: 16,
216
- marginVertical: 12,
201
+ chartContainer: {
217
202
  borderWidth: 1,
218
203
  borderColor: '#ddd',
219
- shadowColor: '#000',
220
- shadowOffset: { width: 0, height: 2 },
221
- shadowOpacity: 0.08,
222
- shadowRadius: 6,
223
- elevation: 4,
224
- },
225
- chartTitle: {
226
- fontSize: 16,
227
- fontWeight: '700',
228
- color: '#000',
229
- textAlign: 'center',
230
- marginBottom: 16,
204
+ borderRadius: 10,
205
+ overflow: 'hidden',
206
+ marginVertical: 12,
207
+ backgroundColor: '#fff',
231
208
  },
232
209
 
233
210
  fullModal: { flex: 1, backgroundColor: '#fff' },
@@ -260,11 +237,6 @@ const styles = StyleSheet.create({
260
237
  backgroundColor: '#fff',
261
238
  borderRadius: 12,
262
239
  overflow: 'hidden',
263
- shadowColor: '#000',
264
- shadowOffset: { width: 0, height: 4 },
265
- shadowOpacity: 0.15,
266
- shadowRadius: 10,
267
- elevation: 8,
268
240
  },
269
241
  landscapeFit: {
270
242
  transform: [{ scale: 1.45 }],