related-ui-components 1.6.2 → 1.6.4

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/lib/module/app.js CHANGED
@@ -1,286 +1,149 @@
1
1
  "use strict";
2
2
 
3
- import React, { useRef, useState } from "react";
4
- import { StyleSheet, Text } from "react-native";
5
- import { Ionicons } from "@expo/vector-icons";
3
+ import React, { useState } from "react";
4
+ import { View, StyleSheet, Text, TouchableOpacity, Alert, Modal // Import Modal
5
+ } from "react-native";
6
6
  import { RelatedProvider, useTheme } from "./theme/index.js";
7
- import { ScratchCard, ScratchCardContent } from "./components/index.js";
7
+ import { ScratchCard,
8
+ // Your component
9
+ ScratchCardContent } from "./components/index.js";
8
10
  import { SafeAreaView } from "react-native-safe-area-context";
9
- import { GestureHandlerRootView } from "react-native-gesture-handler";
10
- // import BRANDS from "./constants/BRANDS";
11
+ // ... other imports
12
+ import { GestureHandlerRootView } from "react-native-gesture-handler"; // Ensure import
11
13
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
12
14
  export default function App() {
13
15
  const {
14
16
  theme
15
17
  } = useTheme();
16
- const [filtersVisible, setFiltersVisible] = useState(false);
17
- const [mode, setMode] = useState("flight");
18
+ // ... other state and constants
18
19
 
19
- // Define some sort options for the filter
20
- const sortOptions = [{
21
- id: 1,
22
- name: "Price: Low to High",
23
- value: "price_asc"
24
- }, {
25
- id: 2,
26
- name: "Price: High to Low",
27
- value: "price_desc"
28
- }, {
29
- id: 3,
30
- name: "Newest",
31
- value: "newest"
32
- }];
33
- const iconSize = 24;
34
- const iconColor = theme.onSurface;
35
- const redemptionOption = [{
36
- icon: /*#__PURE__*/_jsx(Ionicons, {
37
- name: "bag-handle-outline",
38
- size: iconSize,
39
- color: iconColor
40
- }),
41
- key: "redemptionOptions.onlineShopping",
42
- // Use translation key
43
- orientation: "horizontal",
44
- width: 150
45
- }, {
46
- icon: /*#__PURE__*/_jsx(Ionicons, {
47
- name: "ticket-outline",
48
- size: iconSize,
49
- color: iconColor
50
- }),
51
- key: "redemptionOptions.eVouchers",
52
- // Use translation key
53
- width: 105
54
- }, {
55
- icon: /*#__PURE__*/_jsx(Ionicons, {
56
- name: "cash-outline",
57
- size: iconSize,
58
- color: iconColor
59
- }),
60
- key: "redemptionOptions.cashback",
61
- // Use translation key
62
- width: 105
63
- }, {
64
- icon: /*#__PURE__*/_jsx(Ionicons, {
65
- name: "heart-outline",
66
- size: iconSize,
67
- color: iconColor
68
- }),
69
- key: "redemptionOptions.donate",
70
- // Use translation key
71
- width: 87
72
- }, {
73
- icon: /*#__PURE__*/_jsx(Ionicons, {
74
- name: "airplane-outline",
75
- size: iconSize,
76
- color: iconColor
77
- }),
78
- key: "redemptionOptions.travel",
79
- // Use translation key
80
- width: 87
81
- }, {
82
- icon: /*#__PURE__*/_jsx(Ionicons, {
83
- name: "swap-horizontal-outline",
84
- size: iconSize,
85
- color: iconColor
86
- }),
87
- key: "redemptionOptions.pointsExchange",
88
- // Use translation key
89
- width: 87
90
- }, {
91
- icon: /*#__PURE__*/_jsx(Ionicons, {
92
- name: "send-outline",
93
- size: iconSize,
94
- color: iconColor
95
- }),
96
- key: "redemptionOptions.transferPoints",
97
- // Use translation key
98
- width: 87
99
- }];
100
- const redemptionOptions = redemptionOption.map(item => ({
101
- ...item,
102
- text: "Online shopping"
103
- }));
104
- const debounceTimerRef = useRef(null);
105
- const rewardsData = [{
106
- icon: /*#__PURE__*/_jsx(Ionicons, {
107
- name: "water-outline",
108
- size: 24,
109
- color: theme.helper
110
- }),
111
- activeIcon: /*#__PURE__*/_jsx(Ionicons, {
112
- name: "water",
113
- size: 24,
114
- color: theme.primary
115
- }),
116
- title: "Aqua Guardian",
117
- description: "Maintain water usage below the community average for a month.",
118
- isActive: false,
119
- status: "0/1",
120
- statusBackgroundColor: theme.disabled,
121
- statusTextColor: theme.text
122
- }, {
123
- icon: /*#__PURE__*/_jsx(Ionicons, {
124
- name: "build-outline",
125
- size: 24,
126
- color: theme.helper
127
- }),
128
- activeIcon: /*#__PURE__*/_jsx(Ionicons, {
129
- name: "build",
130
- size: 24,
131
- color: theme.secondary
132
- }),
133
- title: "Leak Detective",
134
- description: "Successfully report and fix a water leak on your property.",
135
- isActive: true,
136
- status: "1/1",
137
- statusBackgroundColor: theme.primary,
138
- statusTextColor: theme.secondary
139
- }, {
140
- icon: /*#__PURE__*/_jsx(Ionicons, {
141
- name: "leaf-outline",
142
- size: 24,
143
- color: theme.helper
144
- }),
145
- activeIcon: /*#__PURE__*/_jsx(Ionicons, {
146
- name: "leaf",
147
- size: 24,
148
- color: theme.primary
149
- }),
150
- title: "Eco-Warrior",
151
- description: "Implement a rainwater harvesting system or greywater recycling.",
152
- isActive: false,
153
- status: "0/1",
154
- statusBackgroundColor: theme.disabled,
155
- statusTextColor: theme.text
156
- }, {
157
- icon: /*#__PURE__*/_jsx(Ionicons, {
158
- name: "leaf-outline",
159
- size: 24,
160
- color: theme.helper
161
- }),
162
- activeIcon: /*#__PURE__*/_jsx(Ionicons, {
163
- name: "leaf",
164
- size: 24,
165
- color: theme.primary
166
- }),
167
- title: "Eco-Warrior",
168
- description: "Implement a rainwater harvesting system or greywater recycling.",
169
- isActive: false,
170
- status: "0/1",
171
- statusBackgroundColor: theme.disabled,
172
- statusTextColor: theme.text
173
- }, {
174
- icon: /*#__PURE__*/_jsx(Ionicons, {
175
- name: "leaf-outline",
176
- size: 24,
177
- color: theme.helper
178
- }),
179
- activeIcon: /*#__PURE__*/_jsx(Ionicons, {
180
- name: "leaf",
181
- size: 24,
182
- color: theme.primary
183
- }),
184
- title: "Eco-Warrior",
185
- description: "Implement a rainwater harvesting system or greywater recycling.",
186
- isActive: false,
187
- status: "0/1",
188
- statusBackgroundColor: theme.disabled,
189
- statusTextColor: theme.text
190
- }, {
191
- icon: /*#__PURE__*/_jsx(Ionicons, {
192
- name: "leaf-outline",
193
- size: 24,
194
- color: theme.helper
195
- }),
196
- activeIcon: /*#__PURE__*/_jsx(Ionicons, {
197
- name: "leaf",
198
- size: 24,
199
- color: theme.primary
200
- }),
201
- title: "Eco-Warrior",
202
- description: "Implement a rainwater harvesting system or greywater recycling.",
203
- isActive: false,
204
- status: "0/1",
205
- statusBackgroundColor: theme.disabled,
206
- statusTextColor: theme.text
207
- }, {
208
- icon: /*#__PURE__*/_jsx(Ionicons, {
209
- name: "leaf-outline",
210
- size: 24,
211
- color: theme.helper
212
- }),
213
- activeIcon: /*#__PURE__*/_jsx(Ionicons, {
214
- name: "leaf",
215
- size: 24,
216
- color: theme.primary
217
- }),
218
- title: "Eco-Warrior",
219
- description: "Implement a rainwater harvesting system or greywater recycling.",
220
- isActive: false,
221
- status: "0/1",
222
- statusBackgroundColor: theme.disabled,
223
- statusTextColor: theme.text
224
- }];
225
- return /*#__PURE__*/_jsx(GestureHandlerRootView, {
226
- children: /*#__PURE__*/_jsx(RelatedProvider, {
227
- children: /*#__PURE__*/_jsx(SafeAreaView, {
228
- style: {
229
- padding: 10,
230
- flex: 1,
231
- backgroundColor: theme.background
232
- },
233
- children: /*#__PURE__*/_jsx(ScratchCard, {
234
- backgroundColor: "#8A2BE2",
235
- text: "Scratch to reveal your prize!",
236
- textFontColor: "#FFFFFF",
237
- textFontSize: 18,
238
- width: 300,
239
- height: 150
240
- // onScratched={() => alert("Congratulations! You won a prize!")}
241
- ,
242
- children: /*#__PURE__*/_jsxs(ScratchCardContent, {
243
- style: {
244
- backgroundColor: "#FFD700"
245
- },
246
- children: [/*#__PURE__*/_jsx(Text, {
247
- style: {
248
- fontSize: 24,
249
- fontWeight: "bold",
250
- color: "#000"
251
- },
252
- children: "50% OFF COUPON"
253
- }), /*#__PURE__*/_jsx(Text, {
254
- style: {
255
- marginTop: 8,
256
- color: "#333"
257
- },
258
- children: "Use code: SCRATCH50"
259
- })]
260
- })
20
+ // State to control modal visibility
21
+ const [isScratchModalVisible, setScratchModalVisible] = useState(false); // Example state
22
+
23
+ return (
24
+ /*#__PURE__*/
25
+ // Root view for the main app
26
+ _jsx(GestureHandlerRootView, {
27
+ style: {
28
+ flex: 1
29
+ },
30
+ children: /*#__PURE__*/_jsx(RelatedProvider, {
31
+ children: /*#__PURE__*/_jsxs(SafeAreaView, {
32
+ style: {
33
+ flex: 1,
34
+ padding: 10,
35
+ backgroundColor: theme.background
36
+ },
37
+ children: [/*#__PURE__*/_jsx(TouchableOpacity, {
38
+ onPress: () => setScratchModalVisible(true),
39
+ style: styles.testButton,
40
+ children: /*#__PURE__*/_jsx(Text, {
41
+ style: styles.buttonText,
42
+ children: "Show Scratch Card Modal"
43
+ })
44
+ }), /*#__PURE__*/_jsx(Modal, {
45
+ visible: isScratchModalVisible,
46
+ onRequestClose: () => setScratchModalVisible(false) // Allow closing
47
+ ,
48
+ transparent: true // Example: make it transparent
49
+ ,
50
+ animationType: "slide" // Example animation
51
+ ,
52
+ children: /*#__PURE__*/_jsx(GestureHandlerRootView, {
53
+ style: styles.modalRootView,
54
+ children: /*#__PURE__*/_jsx(View, {
55
+ style: styles.modalOverlay,
56
+ children: /*#__PURE__*/_jsxs(View, {
57
+ style: styles.modalContentContainer,
58
+ children: [/*#__PURE__*/_jsx(ScratchCard, {
59
+ backgroundColor: "#8A2BE2",
60
+ text: "Scratch to reveal your prize!",
61
+ textFontColor: "#FFFFFF",
62
+ textFontSize: 18,
63
+ width: 300,
64
+ height: 150,
65
+ onScratched: () => {
66
+ Alert.alert("Congratulations!", "You won a prize!");
67
+ // Optionally close modal after scratching
68
+ // setTimeout(() => setScratchModalVisible(false), 500);
69
+ },
70
+ children: /*#__PURE__*/_jsxs(ScratchCardContent, {
71
+ style: {
72
+ backgroundColor: "#FFD700"
73
+ },
74
+ children: [/*#__PURE__*/_jsx(Text, {
75
+ style: {
76
+ fontSize: 24,
77
+ fontWeight: "bold",
78
+ color: "#000"
79
+ },
80
+ children: "50% OFF COUPON"
81
+ }), /*#__PURE__*/_jsx(Text, {
82
+ style: {
83
+ marginTop: 8,
84
+ color: "#333"
85
+ },
86
+ children: "Use code: SCRATCH50"
87
+ })]
88
+ })
89
+ }), /*#__PURE__*/_jsx(TouchableOpacity, {
90
+ onPress: () => setScratchModalVisible(false),
91
+ style: styles.closeButton,
92
+ children: /*#__PURE__*/_jsx(Text, {
93
+ style: styles.buttonText,
94
+ children: "Close"
95
+ })
96
+ })]
97
+ })
98
+ })
99
+ })
100
+ })]
261
101
  })
262
102
  })
263
103
  })
264
- });
104
+ );
265
105
  }
266
106
  const styles = StyleSheet.create({
267
- container: {
268
- flex: 1,
269
- backgroundColor: "black",
270
- padding: 10
271
- },
107
+ // ... your existing styles
272
108
  testButton: {
273
109
  backgroundColor: "#4a90e2",
274
110
  paddingVertical: 12,
275
111
  paddingHorizontal: 30,
276
112
  borderRadius: 8,
277
- marginBottom: 20
113
+ marginBottom: 20,
114
+ alignSelf: "center"
278
115
  },
279
116
  buttonText: {
280
117
  color: "#FFFFFF",
281
118
  fontSize: 16,
282
119
  fontWeight: "bold",
283
120
  textAlign: "center"
121
+ },
122
+ // Styles for the Modal
123
+ modalRootView: {
124
+ flex: 1 // Important for the root view to take up space
125
+ },
126
+ modalOverlay: {
127
+ flex: 1,
128
+ backgroundColor: "rgba(0, 0, 0, 0.5)",
129
+ // Semi-transparent background
130
+ justifyContent: "center",
131
+ // Center content vertically
132
+ alignItems: "center" // Center content horizontally
133
+ },
134
+ modalContentContainer: {
135
+ // Optional: Add padding or background to the content area if needed
136
+ // backgroundColor: 'white',
137
+ // padding: 20,
138
+ // borderRadius: 10,
139
+ alignItems: "center" // Center items like the close button
140
+ },
141
+ closeButton: {
142
+ marginTop: 20,
143
+ backgroundColor: "#d9534f",
144
+ paddingVertical: 10,
145
+ paddingHorizontal: 25,
146
+ borderRadius: 8
284
147
  }
285
148
  });
286
149
  //# sourceMappingURL=app.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","useRef","useState","StyleSheet","Text","Ionicons","RelatedProvider","useTheme","ScratchCard","ScratchCardContent","SafeAreaView","GestureHandlerRootView","jsx","_jsx","jsxs","_jsxs","App","theme","filtersVisible","setFiltersVisible","mode","setMode","sortOptions","id","name","value","iconSize","iconColor","onSurface","redemptionOption","icon","size","color","key","orientation","width","redemptionOptions","map","item","text","debounceTimerRef","rewardsData","helper","activeIcon","primary","title","description","isActive","status","statusBackgroundColor","disabled","statusTextColor","secondary","children","style","padding","flex","backgroundColor","background","textFontColor","textFontSize","height","fontSize","fontWeight","marginTop","styles","create","container","testButton","paddingVertical","paddingHorizontal","borderRadius","marginBottom","buttonText","textAlign"],"sourceRoot":"..\\..\\src","sources":["app.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AAC/C,SAEEC,UAAU,EACVC,IAAI,QAKC,cAAc;AACrB,SAASC,QAAQ,QAAQ,oBAAoB;AAC7C,SAASC,eAAe,EAAEC,QAAQ,QAAQ,kBAAS;AACnD,SAKEC,WAAW,EACXC,kBAAkB,QAEb,uBAAc;AACrB,SAASC,YAAY,QAAQ,gCAAgC;AAa7D,SAASC,sBAAsB,QAAQ,8BAA8B;AACrE;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEA,eAAe,SAASC,GAAGA,CAAA,EAAG;EAC5B,MAAM;IAAEC;EAAM,CAAC,GAAGV,QAAQ,CAAC,CAAC;EAC5B,MAAM,CAACW,cAAc,EAAEC,iBAAiB,CAAC,GAAGjB,QAAQ,CAAC,KAAK,CAAC;EAC3D,MAAM,CAACkB,IAAI,EAAEC,OAAO,CAAC,GAAGnB,QAAQ,CAAqB,QAAQ,CAAC;;EAE9D;EACA,MAAMoB,WAAW,GAAG,CAClB;IAAEC,EAAE,EAAE,CAAC;IAAEC,IAAI,EAAE,oBAAoB;IAAEC,KAAK,EAAE;EAAY,CAAC,EACzD;IAAEF,EAAE,EAAE,CAAC;IAAEC,IAAI,EAAE,oBAAoB;IAAEC,KAAK,EAAE;EAAa,CAAC,EAC1D;IAAEF,EAAE,EAAE,CAAC;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E,CAAC;IACPC,eAAe,EAAE,OAAO;IACxBF,OAAO,EAAE;EACX,CAAC;EACDa,UAAU,EAAE;IACVX,eAAe,EAAE,SAAS;IAC1BY,eAAe,EAAE,EAAE;IACnBC,iBAAiB,EAAE,EAAE;IACrBC,YAAY,EAAE,CAAC;IACfC,YAAY,EAAE;EAChB,CAAC;EACDC,UAAU,EAAE;IACVzC,KAAK,EAAE,SAAS;IAChB8B,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,MAAM;IAClBW,SAAS,EAAE;EACb;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","useState","View","StyleSheet","Text","TouchableOpacity","Alert","Modal","RelatedProvider","useTheme","ScratchCard","ScratchCardContent","SafeAreaView","GestureHandlerRootView","jsx","_jsx","jsxs","_jsxs","App","theme","isScratchModalVisible","setScratchModalVisible","style","flex","children","padding","backgroundColor","background","onPress","styles","testButton","buttonText","visible","onRequestClose","transparent","animationType","modalRootView","modalOverlay","modalContentContainer","text","textFontColor","textFontSize","width","height","onScratched","alert","fontSize","fontWeight","color","marginTop","closeButton","create","paddingVertical","paddingHorizontal","borderRadius","marginBottom","alignSelf","textAlign","justifyContent","alignItems"],"sourceRoot":"..\\..\\src","sources":["app.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAYC,QAAQ,QAAQ,OAAO;AAC/C,SACEC,IAAI,EACJC,UAAU,EACVC,IAAI,EACJC,gBAAgB,EAGhBC,KAAK,EACLC,KAAK,CAAE;AAAA,OACF,cAAc;AAErB,SAASC,eAAe,EAAEC,QAAQ,QAAQ,kBAAS;AACnD,SAKEC,WAAW;AAAE;AACbC,kBAAkB,QAEb,uBAAc;AACrB,SAASC,YAAY,QAAQ,gCAAgC;AAC7D;AACA,SAASC,sBAAsB,QAAQ,8BAA8B,CAAC,CAAC;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEvE,eAAe,SAASC,GAAGA,CAAA,EAAG;EAC5B,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