@originallyus/feedback-rn-sdk 3.0.9 → 4.0.0-beta.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.
Potentially problematic release.
This version of @originallyus/feedback-rn-sdk might be problematic. Click here for more details.
- package/{LICENSE.txt → LICENSE} +1 -2
- package/README.md +69 -176
- package/lib/module/AIAContentUsefulness.js +273 -0
- package/lib/module/AIAContentUsefulness.js.map +1 -0
- package/lib/module/AIAFeedback.js +295 -0
- package/lib/module/AIAFeedback.js.map +1 -0
- package/lib/module/AIAFeedbackForm.js +212 -0
- package/lib/module/AIAFeedbackForm.js.map +1 -0
- package/lib/module/AIAFeedbackSplash.js +57 -0
- package/lib/module/AIAFeedbackSplash.js.map +1 -0
- package/lib/module/AIAFeedbackStyles.js +329 -0
- package/lib/module/AIAFeedbackStyles.js.map +1 -0
- package/lib/module/AIAFeedbackSuccess.js +68 -0
- package/lib/module/AIAFeedbackSuccess.js.map +1 -0
- package/lib/module/assets/CheckIcon.js +21 -0
- package/lib/module/assets/CheckIcon.js.map +1 -0
- package/lib/module/assets/CloseIcon.js +21 -0
- package/lib/module/assets/CloseIcon.js.map +1 -0
- package/lib/module/assets/ErrorIcon.js +23 -0
- package/lib/module/assets/ErrorIcon.js.map +1 -0
- package/lib/module/assets/PlusIcon.js +21 -0
- package/lib/module/assets/PlusIcon.js.map +1 -0
- package/lib/module/assets/StarIcon.js +21 -0
- package/lib/module/assets/StarIcon.js.map +1 -0
- package/lib/module/component/Button.js +49 -0
- package/lib/module/component/Button.js.map +1 -0
- package/lib/module/component/ButtonSubmit.js +194 -0
- package/lib/module/component/ButtonSubmit.js.map +1 -0
- package/lib/module/component/Input.js +172 -0
- package/lib/module/component/Input.js.map +1 -0
- package/lib/module/component/MultiSelectButtons.js +174 -0
- package/lib/module/component/MultiSelectButtons.js.map +1 -0
- package/lib/module/component/README.md +215 -0
- package/lib/module/component/READMEVI.md +192 -0
- package/lib/module/component/Rating.js +168 -0
- package/lib/module/component/Rating.js.map +1 -0
- package/lib/module/component/RatingNumber.js +268 -0
- package/lib/module/component/RatingNumber.js.map +1 -0
- package/lib/module/component/Textarea.js +163 -0
- package/lib/module/component/Textarea.js.map +1 -0
- package/lib/module/component/YesNoButtons.js +161 -0
- package/lib/module/component/YesNoButtons.js.map +1 -0
- package/lib/module/index.js +13 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/service/feedbackService.js +77 -0
- package/lib/module/service/feedbackService.js.map +1 -0
- package/lib/module/utils/common.js +199 -0
- package/lib/module/utils/common.js.map +1 -0
- package/lib/module/utils/constants.js +48 -0
- package/lib/module/utils/constants.js.map +1 -0
- package/lib/module/utils/index.js +140 -0
- package/lib/module/utils/index.js.map +1 -0
- package/lib/module/utils/networking.js +121 -0
- package/lib/module/utils/networking.js.map +1 -0
- package/lib/typescript/AIAContentUsefulness.d.ts +14 -0
- package/lib/typescript/AIAContentUsefulness.d.ts.map +1 -0
- package/lib/typescript/AIAFeedback.d.ts +15 -0
- package/lib/typescript/AIAFeedback.d.ts.map +1 -0
- package/lib/typescript/AIAFeedbackForm.d.ts +22 -0
- package/lib/typescript/AIAFeedbackForm.d.ts.map +1 -0
- package/lib/typescript/AIAFeedbackSplash.d.ts +10 -0
- package/lib/typescript/AIAFeedbackSplash.d.ts.map +1 -0
- package/lib/typescript/AIAFeedbackStyles.d.ts +342 -0
- package/lib/typescript/AIAFeedbackStyles.d.ts.map +1 -0
- package/lib/typescript/AIAFeedbackSuccess.d.ts +11 -0
- package/lib/typescript/AIAFeedbackSuccess.d.ts.map +1 -0
- package/lib/typescript/assets/CheckIcon.d.ts +7 -0
- package/lib/typescript/assets/CheckIcon.d.ts.map +1 -0
- package/lib/typescript/assets/CloseIcon.d.ts +7 -0
- package/lib/typescript/assets/CloseIcon.d.ts.map +1 -0
- package/lib/typescript/assets/ErrorIcon.d.ts +7 -0
- package/lib/typescript/assets/ErrorIcon.d.ts.map +1 -0
- package/lib/typescript/assets/PlusIcon.d.ts +7 -0
- package/lib/typescript/assets/PlusIcon.d.ts.map +1 -0
- package/lib/typescript/assets/StarIcon.d.ts +7 -0
- package/lib/typescript/assets/StarIcon.d.ts.map +1 -0
- package/lib/typescript/component/Button.d.ts +30 -0
- package/lib/typescript/component/Button.d.ts.map +1 -0
- package/lib/typescript/component/ButtonSubmit.d.ts +115 -0
- package/lib/typescript/component/ButtonSubmit.d.ts.map +1 -0
- package/lib/typescript/component/Input.d.ts +112 -0
- package/lib/typescript/component/Input.d.ts.map +1 -0
- package/lib/typescript/component/MultiSelectButtons.d.ts +103 -0
- package/lib/typescript/component/MultiSelectButtons.d.ts.map +1 -0
- package/lib/typescript/component/Rating.d.ts +83 -0
- package/lib/typescript/component/Rating.d.ts.map +1 -0
- package/lib/typescript/component/RatingNumber.d.ts +135 -0
- package/lib/typescript/component/RatingNumber.d.ts.map +1 -0
- package/lib/typescript/component/Textarea.d.ts +115 -0
- package/lib/typescript/component/Textarea.d.ts.map +1 -0
- package/lib/typescript/component/YesNoButtons.d.ts +94 -0
- package/lib/typescript/component/YesNoButtons.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +21 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/service/feedbackService.d.ts +33 -0
- package/lib/typescript/service/feedbackService.d.ts.map +1 -0
- package/lib/typescript/utils/common.d.ts +23 -0
- package/lib/typescript/utils/common.d.ts.map +1 -0
- package/lib/typescript/utils/constants.d.ts +38 -0
- package/lib/typescript/utils/constants.d.ts.map +1 -0
- package/lib/typescript/utils/index.d.ts +12 -0
- package/lib/typescript/utils/index.d.ts.map +1 -0
- package/lib/typescript/utils/networking.d.ts +12 -0
- package/lib/typescript/utils/networking.d.ts.map +1 -0
- package/package.json +175 -39
- package/src/AIAContentUsefulness.tsx +296 -0
- package/src/AIAFeedback.tsx +354 -0
- package/src/AIAFeedbackForm.tsx +267 -0
- package/src/AIAFeedbackSplash.tsx +49 -0
- package/src/AIAFeedbackStyles.ts +311 -0
- package/src/AIAFeedbackSuccess.tsx +67 -0
- package/src/assets/CheckIcon.tsx +18 -0
- package/src/assets/CloseIcon.tsx +18 -0
- package/src/assets/ErrorIcon.tsx +18 -0
- package/src/assets/PlusIcon.tsx +18 -0
- package/src/assets/StarIcon.tsx +18 -0
- package/src/component/Button.tsx +68 -0
- package/src/component/ButtonSubmit.tsx +335 -0
- package/src/component/Input.tsx +288 -0
- package/src/component/MultiSelectButtons.tsx +272 -0
- package/src/component/README.md +215 -0
- package/src/component/READMEVI.md +192 -0
- package/src/component/Rating.tsx +248 -0
- package/src/component/RatingNumber.tsx +421 -0
- package/src/component/Textarea.tsx +282 -0
- package/src/component/YesNoButtons.tsx +236 -0
- package/src/index.tsx +33 -0
- package/src/service/feedbackService.ts +108 -0
- package/src/utils/common.ts +241 -0
- package/src/utils/constants.ts +60 -0
- package/src/utils/index.ts +167 -0
- package/src/utils/networking.ts +134 -0
- package/fonts/AIAEverest-CondensedMedium.ttf +0 -0
- package/fonts/AIAEverest-Medium.ttf +0 -0
- package/fonts/AIAEverest-Regular.ttf +0 -0
- package/fonts/AIAEverestBold.ttf +0 -0
- package/fonts/OpenSans-Bold.ttf +0 -0
- package/fonts/OpenSans-Light.ttf +0 -0
- package/fonts/OpenSans-Regular.ttf +0 -0
- package/fonts/OpenSans-SemiBold.ttf +0 -0
- package/lib/commonjs/api/index.js +0 -1
- package/lib/commonjs/assets/index.js +0 -1
- package/lib/commonjs/component/confirmStep.js +0 -1
- package/lib/commonjs/component/confirmStepTablet.js +0 -1
- package/lib/commonjs/component/contentUI.js +0 -1
- package/lib/commonjs/component/contentUITablet.js +0 -1
- package/lib/commonjs/component/header.js +0 -1
- package/lib/commonjs/component/index.js +0 -1
- package/lib/commonjs/component/inlineSurvey.js +0 -1
- package/lib/commonjs/index.js +0 -1
- package/lib/commonjs/ui/ButtonSubmit.js +0 -1
- package/lib/commonjs/ui/Fineprint.js +0 -1
- package/lib/commonjs/ui/Instruction.js +0 -1
- package/lib/commonjs/ui/MultipleSelectInput.js +0 -1
- package/lib/commonjs/ui/Question.js +0 -1
- package/lib/commonjs/ui/RatingNumber.js +0 -1
- package/lib/commonjs/ui/RatingStar.js +0 -1
- package/lib/commonjs/ui/SecondaryQuestion.js +0 -1
- package/lib/commonjs/ui/TextArea.js +0 -1
- package/lib/commonjs/ui/index.js +0 -1
- package/lib/commonjs/utils/MyFunction.js +0 -1
- package/lib/commonjs/utils/NetworkHelper.js +0 -1
- package/lib/commonjs/utils/StatusBarHeight.js +0 -1
- package/lib/commonjs/utils/const.js +0 -1
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { Platform, StyleSheet } from 'react-native';
|
|
4
|
+
import * as f from "./utils/common.js";
|
|
5
|
+
export const feedbackStyles = StyleSheet.create({
|
|
6
|
+
overlay: {
|
|
7
|
+
flex: 1,
|
|
8
|
+
backgroundColor: 'rgba(20, 24, 28, 0.5)',
|
|
9
|
+
justifyContent: 'flex-end'
|
|
10
|
+
},
|
|
11
|
+
nonBlockingOverlay: {
|
|
12
|
+
backgroundColor: 'transparent'
|
|
13
|
+
},
|
|
14
|
+
splashOverlay: {
|
|
15
|
+
justifyContent: 'center',
|
|
16
|
+
alignItems: 'center',
|
|
17
|
+
paddingHorizontal: 6
|
|
18
|
+
},
|
|
19
|
+
intrusiveOverlay: {
|
|
20
|
+
backgroundColor: '#FFF',
|
|
21
|
+
justifyContent: 'flex-start'
|
|
22
|
+
},
|
|
23
|
+
dismissArea: {
|
|
24
|
+
flex: 1
|
|
25
|
+
},
|
|
26
|
+
modalContent: {
|
|
27
|
+
backgroundColor: '#FFF',
|
|
28
|
+
borderTopLeftRadius: 16,
|
|
29
|
+
borderTopRightRadius: 16,
|
|
30
|
+
width: '100%',
|
|
31
|
+
maxHeight: '90%',
|
|
32
|
+
minHeight: 180,
|
|
33
|
+
overflow: 'hidden'
|
|
34
|
+
},
|
|
35
|
+
splashContent: {
|
|
36
|
+
...Platform.select({
|
|
37
|
+
ios: {
|
|
38
|
+
shadowColor: '#000',
|
|
39
|
+
shadowOffset: {
|
|
40
|
+
width: 0,
|
|
41
|
+
height: 10
|
|
42
|
+
},
|
|
43
|
+
shadowOpacity: 0.2,
|
|
44
|
+
shadowRadius: 20
|
|
45
|
+
},
|
|
46
|
+
android: {
|
|
47
|
+
elevation: 10
|
|
48
|
+
}
|
|
49
|
+
}),
|
|
50
|
+
borderTopLeftRadius: 16,
|
|
51
|
+
borderTopRightRadius: 16,
|
|
52
|
+
borderBottomLeftRadius: 16,
|
|
53
|
+
borderBottomRightRadius: 16
|
|
54
|
+
},
|
|
55
|
+
splashTabletContent: {
|
|
56
|
+
width: '90%',
|
|
57
|
+
maxWidth: 350,
|
|
58
|
+
borderRadius: 16,
|
|
59
|
+
maxHeight: '80%',
|
|
60
|
+
minHeight: 0
|
|
61
|
+
},
|
|
62
|
+
splashInner: {
|
|
63
|
+
paddingTop: 20
|
|
64
|
+
},
|
|
65
|
+
intrusiveContent: {
|
|
66
|
+
flex: 1,
|
|
67
|
+
maxHeight: '100%',
|
|
68
|
+
minHeight: '100%',
|
|
69
|
+
borderTopLeftRadius: 0,
|
|
70
|
+
borderTopRightRadius: 0
|
|
71
|
+
},
|
|
72
|
+
safeArea: {
|
|
73
|
+
flexShrink: 1,
|
|
74
|
+
flexGrow: 1,
|
|
75
|
+
flexDirection: 'column'
|
|
76
|
+
},
|
|
77
|
+
flex1: {
|
|
78
|
+
flex: 1
|
|
79
|
+
},
|
|
80
|
+
header: {
|
|
81
|
+
alignItems: 'center',
|
|
82
|
+
justifyContent: 'flex-start',
|
|
83
|
+
position: 'relative'
|
|
84
|
+
},
|
|
85
|
+
headerRow: {
|
|
86
|
+
height: 30,
|
|
87
|
+
width: '100%',
|
|
88
|
+
alignItems: 'center',
|
|
89
|
+
justifyContent: 'center',
|
|
90
|
+
position: 'relative'
|
|
91
|
+
},
|
|
92
|
+
handle: {
|
|
93
|
+
width: 40,
|
|
94
|
+
height: 4,
|
|
95
|
+
backgroundColor: '#E0E0E0',
|
|
96
|
+
borderRadius: 2
|
|
97
|
+
},
|
|
98
|
+
closeBtn: {
|
|
99
|
+
position: 'absolute',
|
|
100
|
+
right: 16,
|
|
101
|
+
padding: 8,
|
|
102
|
+
zIndex: 10
|
|
103
|
+
},
|
|
104
|
+
intrusiveCloseBtn: {
|
|
105
|
+
top: 0
|
|
106
|
+
},
|
|
107
|
+
closeText: {
|
|
108
|
+
fontSize: 18,
|
|
109
|
+
color: '#999'
|
|
110
|
+
},
|
|
111
|
+
scrollContent: {
|
|
112
|
+
flexGrow: 1,
|
|
113
|
+
paddingHorizontal: f.isTablet ? 20 : 12,
|
|
114
|
+
paddingBottom: 30
|
|
115
|
+
},
|
|
116
|
+
scrollContentInner: {
|
|
117
|
+
flex: 1,
|
|
118
|
+
minHeight: 1
|
|
119
|
+
},
|
|
120
|
+
center: {
|
|
121
|
+
height: 200,
|
|
122
|
+
justifyContent: 'center',
|
|
123
|
+
alignItems: 'center'
|
|
124
|
+
},
|
|
125
|
+
mtAuto: {
|
|
126
|
+
marginTop: 'auto'
|
|
127
|
+
},
|
|
128
|
+
w100: {
|
|
129
|
+
width: '100%'
|
|
130
|
+
},
|
|
131
|
+
section: {
|
|
132
|
+
marginBottom: 20,
|
|
133
|
+
gap: 24,
|
|
134
|
+
alignSelf: 'stretch',
|
|
135
|
+
width: '100%'
|
|
136
|
+
},
|
|
137
|
+
secondarySection: {
|
|
138
|
+
flexGrow: 1,
|
|
139
|
+
alignItems: 'center',
|
|
140
|
+
gap: 24
|
|
141
|
+
},
|
|
142
|
+
satisfactionRating: {
|
|
143
|
+
alignItems: 'center',
|
|
144
|
+
marginBottom: 16
|
|
145
|
+
},
|
|
146
|
+
title: {
|
|
147
|
+
fontSize: 24,
|
|
148
|
+
fontWeight: '500',
|
|
149
|
+
color: '#14181C',
|
|
150
|
+
marginBottom: 8
|
|
151
|
+
},
|
|
152
|
+
externalIcon: {
|
|
153
|
+
width: 140,
|
|
154
|
+
height: 140,
|
|
155
|
+
marginBottom: 10
|
|
156
|
+
},
|
|
157
|
+
question: {
|
|
158
|
+
fontSize: 16,
|
|
159
|
+
color: '#082065',
|
|
160
|
+
marginBottom: 16,
|
|
161
|
+
fontWeight: '600'
|
|
162
|
+
},
|
|
163
|
+
successContainer: {
|
|
164
|
+
padding: 24,
|
|
165
|
+
alignItems: 'center'
|
|
166
|
+
},
|
|
167
|
+
successTitle: {
|
|
168
|
+
fontSize: 20,
|
|
169
|
+
fontWeight: '700',
|
|
170
|
+
color: '#082065',
|
|
171
|
+
marginBottom: 12,
|
|
172
|
+
textAlign: 'center'
|
|
173
|
+
},
|
|
174
|
+
successDesc: {
|
|
175
|
+
fontSize: 16,
|
|
176
|
+
color: '#444',
|
|
177
|
+
marginBottom: 24,
|
|
178
|
+
textAlign: 'center',
|
|
179
|
+
lineHeight: 22
|
|
180
|
+
},
|
|
181
|
+
mt16: {
|
|
182
|
+
marginTop: 16
|
|
183
|
+
},
|
|
184
|
+
mt24: {
|
|
185
|
+
marginTop: 24
|
|
186
|
+
},
|
|
187
|
+
splashContainer: {
|
|
188
|
+
padding: 16,
|
|
189
|
+
alignItems: 'center'
|
|
190
|
+
},
|
|
191
|
+
splashTitle: {
|
|
192
|
+
fontSize: 24,
|
|
193
|
+
fontWeight: '700',
|
|
194
|
+
textAlign: 'center',
|
|
195
|
+
marginBottom: 16
|
|
196
|
+
},
|
|
197
|
+
splashQuestion: {
|
|
198
|
+
fontSize: 16,
|
|
199
|
+
textAlign: 'center',
|
|
200
|
+
marginBottom: 24,
|
|
201
|
+
lineHeight: 22
|
|
202
|
+
},
|
|
203
|
+
skipBtn: {
|
|
204
|
+
marginTop: 16,
|
|
205
|
+
padding: 8
|
|
206
|
+
},
|
|
207
|
+
skipBtnText: {
|
|
208
|
+
fontSize: 14,
|
|
209
|
+
textDecorationLine: 'underline',
|
|
210
|
+
fontWeight: '700'
|
|
211
|
+
},
|
|
212
|
+
successIcon: {
|
|
213
|
+
width: 80,
|
|
214
|
+
height: 80,
|
|
215
|
+
marginBottom: 20
|
|
216
|
+
},
|
|
217
|
+
fineprint: {
|
|
218
|
+
fontSize: 12,
|
|
219
|
+
marginTop: 16,
|
|
220
|
+
textAlign: 'center',
|
|
221
|
+
opacity: 0.8
|
|
222
|
+
},
|
|
223
|
+
centeredScrollContent: {
|
|
224
|
+
flexGrow: 1,
|
|
225
|
+
justifyContent: 'center'
|
|
226
|
+
},
|
|
227
|
+
formRoot: {
|
|
228
|
+
flex: 1,
|
|
229
|
+
justifyContent: 'space-between'
|
|
230
|
+
},
|
|
231
|
+
formContent: {
|
|
232
|
+
flexGrow: 1
|
|
233
|
+
},
|
|
234
|
+
submitSection: {
|
|
235
|
+
width: '100%',
|
|
236
|
+
marginTop: 'auto'
|
|
237
|
+
},
|
|
238
|
+
successRoot: {
|
|
239
|
+
flex: 1,
|
|
240
|
+
justifyContent: 'space-between'
|
|
241
|
+
},
|
|
242
|
+
successContentCenter: {
|
|
243
|
+
flex: 1,
|
|
244
|
+
justifyContent: 'center'
|
|
245
|
+
},
|
|
246
|
+
tabletOverlay: {
|
|
247
|
+
justifyContent: 'center',
|
|
248
|
+
alignItems: 'center'
|
|
249
|
+
},
|
|
250
|
+
tabletIntrusive: {
|
|
251
|
+
width: '90%',
|
|
252
|
+
maxWidth: 850,
|
|
253
|
+
height: 'auto',
|
|
254
|
+
maxHeight: '90%',
|
|
255
|
+
borderRadius: 16,
|
|
256
|
+
overflow: 'hidden',
|
|
257
|
+
...Platform.select({
|
|
258
|
+
ios: {
|
|
259
|
+
shadowColor: '#000',
|
|
260
|
+
shadowOffset: {
|
|
261
|
+
width: 0,
|
|
262
|
+
height: 10
|
|
263
|
+
},
|
|
264
|
+
shadowOpacity: 0.2,
|
|
265
|
+
shadowRadius: 20
|
|
266
|
+
},
|
|
267
|
+
android: {
|
|
268
|
+
elevation: 10
|
|
269
|
+
}
|
|
270
|
+
})
|
|
271
|
+
},
|
|
272
|
+
tabletNonIntrusive: {
|
|
273
|
+
position: 'absolute',
|
|
274
|
+
bottom: 30,
|
|
275
|
+
right: 30,
|
|
276
|
+
width: 400,
|
|
277
|
+
maxHeight: '70%',
|
|
278
|
+
borderRadius: 16,
|
|
279
|
+
overflow: 'hidden',
|
|
280
|
+
...Platform.select({
|
|
281
|
+
ios: {
|
|
282
|
+
shadowColor: '#000',
|
|
283
|
+
shadowOffset: {
|
|
284
|
+
width: 0,
|
|
285
|
+
height: 10
|
|
286
|
+
},
|
|
287
|
+
shadowOpacity: 0.2,
|
|
288
|
+
shadowRadius: 20
|
|
289
|
+
},
|
|
290
|
+
android: {
|
|
291
|
+
elevation: 10
|
|
292
|
+
}
|
|
293
|
+
})
|
|
294
|
+
},
|
|
295
|
+
errorWrap: {
|
|
296
|
+
flexDirection: 'row',
|
|
297
|
+
alignItems: 'center',
|
|
298
|
+
gap: 6
|
|
299
|
+
},
|
|
300
|
+
error: {
|
|
301
|
+
fontSize: 14,
|
|
302
|
+
lineHeight: 20,
|
|
303
|
+
flex: 1,
|
|
304
|
+
fontWeight: '400'
|
|
305
|
+
},
|
|
306
|
+
mb12: {
|
|
307
|
+
marginBottom: 12
|
|
308
|
+
},
|
|
309
|
+
divider: {
|
|
310
|
+
width: '100%',
|
|
311
|
+
height: 1,
|
|
312
|
+
backgroundColor: '#E5E5E5',
|
|
313
|
+
marginTop: 12
|
|
314
|
+
},
|
|
315
|
+
centeredContent: {
|
|
316
|
+
justifyContent: 'center',
|
|
317
|
+
alignItems: 'center'
|
|
318
|
+
},
|
|
319
|
+
autoHeightReset: {
|
|
320
|
+
flexGrow: 0
|
|
321
|
+
},
|
|
322
|
+
autoHeightFlexReset: {
|
|
323
|
+
flex: 0
|
|
324
|
+
},
|
|
325
|
+
autoHeightMargin: {
|
|
326
|
+
marginTop: 16
|
|
327
|
+
}
|
|
328
|
+
});
|
|
329
|
+
//# sourceMappingURL=AIAFeedbackStyles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Platform","StyleSheet","f","feedbackStyles","create","overlay","flex","backgroundColor","justifyContent","nonBlockingOverlay","splashOverlay","alignItems","paddingHorizontal","intrusiveOverlay","dismissArea","modalContent","borderTopLeftRadius","borderTopRightRadius","width","maxHeight","minHeight","overflow","splashContent","select","ios","shadowColor","shadowOffset","height","shadowOpacity","shadowRadius","android","elevation","borderBottomLeftRadius","borderBottomRightRadius","splashTabletContent","maxWidth","borderRadius","splashInner","paddingTop","intrusiveContent","safeArea","flexShrink","flexGrow","flexDirection","flex1","header","position","headerRow","handle","closeBtn","right","padding","zIndex","intrusiveCloseBtn","top","closeText","fontSize","color","scrollContent","isTablet","paddingBottom","scrollContentInner","center","mtAuto","marginTop","w100","section","marginBottom","gap","alignSelf","secondarySection","satisfactionRating","title","fontWeight","externalIcon","question","successContainer","successTitle","textAlign","successDesc","lineHeight","mt16","mt24","splashContainer","splashTitle","splashQuestion","skipBtn","skipBtnText","textDecorationLine","successIcon","fineprint","opacity","centeredScrollContent","formRoot","formContent","submitSection","successRoot","successContentCenter","tabletOverlay","tabletIntrusive","tabletNonIntrusive","bottom","errorWrap","error","mb12","divider","centeredContent","autoHeightReset","autoHeightFlexReset","autoHeightMargin"],"sourceRoot":"../../src","sources":["AIAFeedbackStyles.ts"],"mappings":";;AAAA,SAAQA,QAAQ,EAAEC,UAAU,QAAO,cAAc;AACjD,OAAO,KAAKC,CAAC,MAAM,mBAAgB;AAEnC,OAAO,MAAMC,cAAc,GAAGF,UAAU,CAACG,MAAM,CAAC;EAC/CC,OAAO,EAAE;IACRC,IAAI,EAAE,CAAC;IACPC,eAAe,EAAE,uBAAuB;IACxCC,cAAc,EAAE;EACjB,CAAC;EACDC,kBAAkB,EAAE;IACnBF,eAAe,EAAE;EAClB,CAAC;EACDG,aAAa,EAAE;IACdF,cAAc,EAAE,QAAQ;IACxBG,UAAU,EAAE,QAAQ;IACpBC,iBAAiB,EAAE;EACpB,CAAC;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B,EAAE;IAACtG,IAAI,EAAE;EAAC,CAAC;EAC9BuG,gBAAgB,EAAE;IAAC7C,SAAS,EAAE;EAAE;AACjC,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Image, Text, View } from 'react-native';
|
|
5
|
+
import ButtonSubmit from "./component/ButtonSubmit.js";
|
|
6
|
+
import * as f from "./utils/common.js";
|
|
7
|
+
import { feedbackStyles as styles } from "./AIAFeedbackStyles.js";
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
const AIAFeedbackSuccess = ({
|
|
10
|
+
submitRes,
|
|
11
|
+
shouldCenter,
|
|
12
|
+
getThemeColor,
|
|
13
|
+
onClose,
|
|
14
|
+
autoHeight
|
|
15
|
+
}) => {
|
|
16
|
+
if (!submitRes) return null;
|
|
17
|
+
const align = submitRes.alignment === 'left' ? 'flex-start' : 'center';
|
|
18
|
+
const textAlign = submitRes.alignment === 'left' ? 'left' : 'center';
|
|
19
|
+
const btnBg = getThemeColor('button_bg_color', '#D31145');
|
|
20
|
+
const btnText = getThemeColor('button_text_color', '#FFFFFF');
|
|
21
|
+
const titleColor = getThemeColor('title_color', '#333D47');
|
|
22
|
+
const instructionColor = getThemeColor('instruction_color', '#444');
|
|
23
|
+
const titleFont = getThemeColor('title_font', '');
|
|
24
|
+
const instructionFont = getThemeColor('instruction_font', '');
|
|
25
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
26
|
+
style: [styles.successRoot, autoHeight && styles.autoHeightFlexReset],
|
|
27
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
28
|
+
style: [styles.successContentCenter, autoHeight && styles.autoHeightFlexReset, shouldCenter && styles.centeredScrollContent],
|
|
29
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
30
|
+
style: [styles.w100, {
|
|
31
|
+
alignItems: align
|
|
32
|
+
}],
|
|
33
|
+
children: [submitRes.image_file_url && /*#__PURE__*/_jsx(Image, {
|
|
34
|
+
source: {
|
|
35
|
+
uri: submitRes.image_file_url
|
|
36
|
+
},
|
|
37
|
+
style: styles.successIcon,
|
|
38
|
+
resizeMode: "contain"
|
|
39
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
40
|
+
style: [styles.successTitle, {
|
|
41
|
+
color: titleColor,
|
|
42
|
+
textAlign,
|
|
43
|
+
fontFamily: titleFont
|
|
44
|
+
}],
|
|
45
|
+
children: submitRes.title || 'Thank You!'
|
|
46
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
47
|
+
style: [styles.successDesc, {
|
|
48
|
+
color: instructionColor,
|
|
49
|
+
textAlign,
|
|
50
|
+
fontFamily: instructionFont
|
|
51
|
+
}],
|
|
52
|
+
children: submitRes.instruction || 'Your feedback has been submitted successfully.'
|
|
53
|
+
})]
|
|
54
|
+
})
|
|
55
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
56
|
+
style: [styles.submitSection, autoHeight && styles.autoHeightMargin],
|
|
57
|
+
children: /*#__PURE__*/_jsx(ButtonSubmit, {
|
|
58
|
+
title: submitRes.button_text || 'Close',
|
|
59
|
+
onPress: onClose,
|
|
60
|
+
appWidth: f.getAppWidth(true),
|
|
61
|
+
backgroundColor: btnBg,
|
|
62
|
+
textColor: btnText
|
|
63
|
+
})
|
|
64
|
+
})]
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
export default AIAFeedbackSuccess;
|
|
68
|
+
//# sourceMappingURL=AIAFeedbackSuccess.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Image","Text","View","ButtonSubmit","f","feedbackStyles","styles","jsx","_jsx","jsxs","_jsxs","AIAFeedbackSuccess","submitRes","shouldCenter","getThemeColor","onClose","autoHeight","align","alignment","textAlign","btnBg","btnText","titleColor","instructionColor","titleFont","instructionFont","style","successRoot","autoHeightFlexReset","children","successContentCenter","centeredScrollContent","w100","alignItems","image_file_url","source","uri","successIcon","resizeMode","successTitle","color","fontFamily","title","successDesc","instruction","submitSection","autoHeightMargin","button_text","onPress","appWidth","getAppWidth","backgroundColor","textColor"],"sourceRoot":"../../src","sources":["AIAFeedbackSuccess.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAQC,KAAK,EAAEC,IAAI,EAAEC,IAAI,QAAO,cAAc;AAC9C,OAAOC,YAAY,MAAM,6BAA0B;AACnD,OAAO,KAAKC,CAAC,MAAM,mBAAgB;AACnC,SAAQC,cAAc,IAAIC,MAAM,QAAO,wBAAqB;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAU5D,MAAMC,kBAAmC,GAAGA,CAAC;EAACC,SAAS;EAAEC,YAAY;EAAEC,aAAa;EAAEC,OAAO;EAAEC;AAAU,CAAC,KAAK;EAC9G,IAAI,CAACJ,SAAS,EAAE,OAAO,IAAI;EAE3B,MAAMK,KAAU,GAAGL,SAAS,CAACM,SAAS,KAAK,MAAM,GAAG,YAAY,GAAG,QAAQ;EAC3E,MAAMC,SAAc,GAAGP,SAAS,CAACM,SAAS,KAAK,MAAM,GAAG,MAAM,GAAG,QAAQ;EACzE,MAAME,KAAK,GAAGN,aAAa,CAAC,iBAAiB,EAAE,SAAS,CAAC;EACzD,MAAMO,OAAO,GAAGP,aAAa,CAAC,mBAAmB,EAAE,SAAS,CAAC;EAC7D,MAAMQ,UAAU,GAAGR,aAAa,CAAC,aAAa,EAAE,SAAS,CAAC;EAC1D,MAAMS,gBAAgB,GAAGT,aAAa,CAAC,mBAAmB,EAAE,MAAM,CAAC;EACnE,MAAMU,SAAS,GAAGV,aAAa,CAAC,YAAY,EAAE,EAAE,CAAC;EACjD,MAAMW,eAAe,GAAGX,aAAa,CAAC,kBAAkB,EAAE,EAAE,CAAC;EAE7D,oBACCJ,KAAA,CAACR,IAAI;IAACwB,KAAK,EAAE,CAACpB,MAAM,CAACqB,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KAAK,EAAE9B,SAAS,CAACmC,WAAW,IAAI,OAAQ;QACxCC,OAAO,EAAEjC,OAAQ;QACjBkC,QAAQ,EAAE7C,CAAC,CAAC8C,WAAW,CAAC,IAAI,CAAE;QAC9BC,eAAe,EAAE/B,KAAM;QACvBgC,SAAS,EAAE/B;MAAQ,CACnB;IAAC,CACG,CAAC;EAAA,CACF,CAAC;AAET,CAAC;AAED,eAAeV,kBAAkB","ignoreList":[]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { memo } from 'react';
|
|
4
|
+
import Svg, { Path } from 'react-native-svg';
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
const CHECK_PATH = 'M13.66 0.390759C14.181 -0.130253 15.0257 -0.130253 15.5467 0.390759C16.0678 0.911771 16.0678 1.7565 15.5467 2.27751L6.60443 11.2198C6.08342 11.7408 5.23869 11.7408 4.71768 11.2198L0.390759 6.89289C-0.130253 6.37188 -0.130253 5.52716 0.390759 5.00614C0.911771 4.48513 1.7565 4.48513 2.27751 5.00614L5.66106 8.38969L13.66 0.390759Z';
|
|
7
|
+
const CheckIcon = /*#__PURE__*/memo(({
|
|
8
|
+
size = 16,
|
|
9
|
+
color = '#082065'
|
|
10
|
+
}) => /*#__PURE__*/_jsx(Svg, {
|
|
11
|
+
width: size,
|
|
12
|
+
height: size * (12 / 16),
|
|
13
|
+
viewBox: "0 0 16 12",
|
|
14
|
+
fill: "none",
|
|
15
|
+
children: /*#__PURE__*/_jsx(Path, {
|
|
16
|
+
d: CHECK_PATH,
|
|
17
|
+
fill: color
|
|
18
|
+
})
|
|
19
|
+
}));
|
|
20
|
+
export default CheckIcon;
|
|
21
|
+
//# sourceMappingURL=CheckIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["memo","Svg","Path","jsx","_jsx","CHECK_PATH","CheckIcon","size","color","width","height","viewBox","fill","children","d"],"sourceRoot":"../../../src","sources":["assets/CheckIcon.tsx"],"mappings":";;AAAA,SAAQA,IAAI,QAAO,OAAO;AAC1B,OAAOC,GAAG,IAAGC,IAAI,QAAO,kBAAkB;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAE1C,MAAMC,UAAU,GACf,2UAA2U;AAO5U,MAAMC,SAAS,gBAAGN,IAAI,CAAC,CAAC;EAACO,IAAI,GAAG,EAAE;EAAEC,KAAK,GAAG;AAAyB,CAAC,kBACrEJ,IAAA,CAACH,GAAG;EAACQ,KAAK,EAAEF,IAAK;EAACG,MAAM,EAAEH,IAAI,IAAI,EAAE,GAAG,EAAE,CAAE;EAACI,OAAO,EAAC,WAAW;EAACC,IAAI,EAAC,MAAM;EAAAC,QAAA,eAC1ET,IAAA,CAACF,IAAI;IAACY,CAAC,EAAET,UAAW;IAACO,IAAI,EAAEJ;EAAM,CAAE;AAAC,CAChC,CACL,CAAC;AAEF,eAAeF,SAAS","ignoreList":[]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { memo } from 'react';
|
|
4
|
+
import Svg, { Path } from 'react-native-svg';
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
const CLOSE_PATH = 'M0.329505 1.9205C-0.109835 1.48116 -0.109835 0.768845 0.329505 0.329505C0.768845 -0.109835 1.48116 -0.109835 1.9205 0.329505L7.50001 5.90902L13.0795 0.329505C13.5189 -0.109835 14.2312 -0.109835 14.6705 0.329505C15.1099 0.768845 15.1099 1.48116 14.6705 1.9205L9.091 7.50001L14.6705 13.0795C15.1098 13.5188 15.1098 14.2312 14.6705 14.6705C14.2312 15.1098 13.5188 15.1098 13.0795 14.6705L7.50001 9.091L1.92052 14.6705C1.48118 15.1098 0.76887 15.1098 0.32953 14.6705C-0.109809 14.2312 -0.109809 13.5188 0.32953 13.0795L5.90902 7.50001L0.329505 1.9205Z';
|
|
7
|
+
const CloseIcon = /*#__PURE__*/memo(({
|
|
8
|
+
size = 15,
|
|
9
|
+
color = '#14181C'
|
|
10
|
+
}) => /*#__PURE__*/_jsx(Svg, {
|
|
11
|
+
width: size,
|
|
12
|
+
height: size,
|
|
13
|
+
viewBox: "0 0 15 15",
|
|
14
|
+
fill: "none",
|
|
15
|
+
children: /*#__PURE__*/_jsx(Path, {
|
|
16
|
+
d: CLOSE_PATH,
|
|
17
|
+
fill: color
|
|
18
|
+
})
|
|
19
|
+
}));
|
|
20
|
+
export default CloseIcon;
|
|
21
|
+
//# sourceMappingURL=CloseIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["memo","Svg","Path","jsx","_jsx","CLOSE_PATH","CloseIcon","size","color","width","height","viewBox","fill","children","d"],"sourceRoot":"../../../src","sources":["assets/CloseIcon.tsx"],"mappings":";;AAAA,SAAQA,IAAI,QAAO,OAAO;AAC1B,OAAOC,GAAG,IAAGC,IAAI,QAAO,kBAAkB;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAE1C,MAAMC,UAAU,GACf,qiBAAqiB;AAOtiB,MAAMC,SAAS,gBAAGN,IAAI,CAAC,CAAC;EAACO,IAAI,GAAG,EAAE;EAAEC,KAAK,GAAG;AAAyB,CAAC,kBACrEJ,IAAA,CAACH,GAAG;EAACQ,KAAK,EAAEF,IAAK;EAACG,MAAM,EAAEH,IAAK;EAACI,OAAO,EAAC,WAAW;EAACC,IAAI,EAAC,MAAM;EAAAC,QAAA,eAC9DT,IAAA,CAACF,IAAI;IAACY,CAAC,EAAET,UAAW;IAACO,IAAI,EAAEJ;EAAM,CAAE;AAAC,CAChC,CACL,CAAC;AAEF,eAAeF,SAAS","ignoreList":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { memo } from 'react';
|
|
4
|
+
import Svg, { Path } from 'react-native-svg';
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
const ERROR_PATH = 'M0.156466 13.1473L7.03005 0.647682C7.50494 -0.215894 8.7458 -0.215894 9.22068 0.647682L16.0943 13.1473C16.5524 13.9804 15.9497 14.9996 14.999 14.9996H1.25178C0.301066 14.9996 -0.301639 13.9804 0.156466 13.1473ZM9.06281 11.5621C9.06281 11.0444 8.64307 10.6246 8.12531 10.6246C7.60754 10.6246 7.18781 11.0444 7.18781 11.5621C7.18781 12.0799 7.60754 12.4996 8.12531 12.4996C8.64307 12.4996 9.06281 12.0799 9.06281 11.5621ZM7.50031 8.74962C7.50031 9.0948 7.78013 9.37462 8.12531 9.37462C8.47048 9.37462 8.75031 9.0948 8.75031 8.74962L8.75031 5.62462C8.75031 5.27944 8.47048 4.99962 8.12531 4.99962C7.78013 4.99962 7.50031 5.27944 7.50031 5.62462L7.50031 8.74962Z';
|
|
7
|
+
const ErrorIcon = /*#__PURE__*/memo(({
|
|
8
|
+
size = 17,
|
|
9
|
+
color = '#D40C74'
|
|
10
|
+
}) => /*#__PURE__*/_jsx(Svg, {
|
|
11
|
+
width: size,
|
|
12
|
+
height: size * (15 / 17),
|
|
13
|
+
viewBox: "0 0 17 15",
|
|
14
|
+
fill: "none",
|
|
15
|
+
children: /*#__PURE__*/_jsx(Path, {
|
|
16
|
+
fillRule: "evenodd",
|
|
17
|
+
clipRule: "evenodd",
|
|
18
|
+
d: ERROR_PATH,
|
|
19
|
+
fill: color
|
|
20
|
+
})
|
|
21
|
+
}));
|
|
22
|
+
export default ErrorIcon;
|
|
23
|
+
//# sourceMappingURL=ErrorIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["memo","Svg","Path","jsx","_jsx","ERROR_PATH","ErrorIcon","size","color","width","height","viewBox","fill","children","fillRule","clipRule","d"],"sourceRoot":"../../../src","sources":["assets/ErrorIcon.tsx"],"mappings":";;AAAA,SAAQA,IAAI,QAAO,OAAO;AAC1B,OAAOC,GAAG,IAAGC,IAAI,QAAO,kBAAkB;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAE1C,MAAMC,UAAU,GACf,opBAAopB;AAOrpB,MAAMC,SAAS,gBAAGN,IAAI,CAAC,CAAC;EAACO,IAAI,GAAG,EAAE;EAAEC,KAAK,GAAG;AAAyB,CAAC,kBACrEJ,IAAA,CAACH,GAAG;EAACQ,KAAK,EAAEF,IAAK;EAACG,MAAM,EAAEH,IAAI,IAAI,EAAE,GAAG,EAAE,CAAE;EAACI,OAAO,EAAC,WAAW;EAACC,IAAI,EAAC,MAAM;EAAAC,QAAA,eAC1ET,IAAA,CAACF,IAAI;IAACY,QAAQ,EAAC,SAAS;IAACC,QAAQ,EAAC,SAAS;IAACC,CAAC,EAAEX,UAAW;IAACO,IAAI,EAAEJ;EAAM,CAAE;AAAC,CACtE,CACL,CAAC;AAEF,eAAeF,SAAS","ignoreList":[]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { memo } from 'react';
|
|
4
|
+
import Svg, { Path } from 'react-native-svg';
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
const PLUS_PATH = 'M10.9375 2.8125C10.9375 2.29473 10.5178 1.875 10 1.875C9.48223 1.875 9.0625 2.29473 9.0625 2.8125V9.0625H2.8125C2.29473 9.0625 1.875 9.48223 1.875 10C1.875 10.5178 2.29473 10.9375 2.8125 10.9375H9.0625V17.1875C9.0625 17.7053 9.48223 18.125 10 18.125C10.5178 18.125 10.9375 17.7053 10.9375 17.1875V10.9375H17.1875C17.7053 10.9375 18.125 10.5178 18.125 10C18.125 9.48223 17.7053 9.0625 17.1875 9.0625H10.9375V2.8125Z';
|
|
7
|
+
const PlusIcon = /*#__PURE__*/memo(({
|
|
8
|
+
size = 20,
|
|
9
|
+
color = '#14181C'
|
|
10
|
+
}) => /*#__PURE__*/_jsx(Svg, {
|
|
11
|
+
width: size,
|
|
12
|
+
height: size,
|
|
13
|
+
viewBox: "0 0 20 20",
|
|
14
|
+
fill: "none",
|
|
15
|
+
children: /*#__PURE__*/_jsx(Path, {
|
|
16
|
+
d: PLUS_PATH,
|
|
17
|
+
fill: color
|
|
18
|
+
})
|
|
19
|
+
}));
|
|
20
|
+
export default PlusIcon;
|
|
21
|
+
//# sourceMappingURL=PlusIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["memo","Svg","Path","jsx","_jsx","PLUS_PATH","PlusIcon","size","color","width","height","viewBox","fill","children","d"],"sourceRoot":"../../../src","sources":["assets/PlusIcon.tsx"],"mappings":";;AAAA,SAAQA,IAAI,QAAO,OAAO;AAC1B,OAAOC,GAAG,IAAGC,IAAI,QAAO,kBAAkB;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAE1C,MAAMC,SAAS,GACd,gaAAga;AAOja,MAAMC,QAAQ,gBAAGN,IAAI,CAAC,CAAC;EAACO,IAAI,GAAG,EAAE;EAAEC,KAAK,GAAG;AAAwB,CAAC,kBACnEJ,IAAA,CAACH,GAAG;EAACQ,KAAK,EAAEF,IAAK;EAACG,MAAM,EAAEH,IAAK;EAACI,OAAO,EAAC,WAAW;EAACC,IAAI,EAAC,MAAM;EAAAC,QAAA,eAC9DT,IAAA,CAACF,IAAI;IAACY,CAAC,EAAET,SAAU;IAACO,IAAI,EAAEJ;EAAM,CAAE;AAAC,CAC/B,CACL,CAAC;AAEF,eAAeF,QAAQ","ignoreList":[]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { memo } from 'react';
|
|
4
|
+
import Svg, { Path } from 'react-native-svg';
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
const STAR_PATH = 'M19.501 0C18.376 0 17.3907 0.665167 16.9393 1.66397L16.926 1.69418L12.8583 11.2479L2.56085 12.1664L2.5561 12.1668C1.41701 12.2642 0.498481 13.0334 0.14345 14.0747L0.135281 14.0994C-0.2017 15.1468 0.100079 16.318 0.937835 17.0669L8.72953 24.0082L6.44915 34.0612C6.2016 35.1515 6.63026 36.2947 7.53285 36.952C8.43089 37.6059 9.63575 37.6688 10.5975 37.1072L19.501 31.7697L28.3897 37.0983L28.4136 37.1124C28.799 37.3338 29.2845 37.5 29.8232 37.5C30.4271 37.5 30.9801 37.3051 31.4392 36.9877L31.4528 36.9782L31.4692 36.9664C32.3716 36.3093 32.8 35.1651 32.5528 34.075L30.2593 23.9427L38.0549 17.0897C38.0727 17.074 38.0902 17.0579 38.1073 17.0414C38.857 16.3165 39.2148 15.1812 38.8668 14.0994C38.527 13.0432 37.577 12.2635 36.446 12.1668L36.4412 12.1664L26.1432 11.2479L22.078 1.71323L22.0767 1.71031C21.6427 0.684685 20.6281 0 19.501 0Z';
|
|
7
|
+
const StarIcon = /*#__PURE__*/memo(({
|
|
8
|
+
size = 39,
|
|
9
|
+
color = '#D6D8DA'
|
|
10
|
+
}) => /*#__PURE__*/_jsx(Svg, {
|
|
11
|
+
width: size,
|
|
12
|
+
height: size * (38 / 39),
|
|
13
|
+
viewBox: "0 0 39 38",
|
|
14
|
+
fill: "none",
|
|
15
|
+
children: /*#__PURE__*/_jsx(Path, {
|
|
16
|
+
d: STAR_PATH,
|
|
17
|
+
fill: color
|
|
18
|
+
})
|
|
19
|
+
}));
|
|
20
|
+
export default StarIcon;
|
|
21
|
+
//# sourceMappingURL=StarIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["memo","Svg","Path","jsx","_jsx","STAR_PATH","StarIcon","size","color","width","height","viewBox","fill","children","d"],"sourceRoot":"../../../src","sources":["assets/StarIcon.tsx"],"mappings":";;AAAA,SAAQA,IAAI,QAAO,OAAO;AAC1B,OAAOC,GAAG,IAAGC,IAAI,QAAO,kBAAkB;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAE1C,MAAMC,SAAS,GACd,o0BAAo0B;AAOr0B,MAAMC,QAAQ,gBAAGN,IAAI,CAAC,CAAC;EAACO,IAAI,GAAG,EAAE;EAAEC,KAAK,GAAG;AAAwB,CAAC,kBACnEJ,IAAA,CAACH,GAAG;EAACQ,KAAK,EAAEF,IAAK;EAACG,MAAM,EAAEH,IAAI,IAAI,EAAE,GAAG,EAAE,CAAE;EAACI,OAAO,EAAC,WAAW;EAACC,IAAI,EAAC,MAAM;EAAAC,QAAA,eAC1ET,IAAA,CAACF,IAAI;IAACY,CAAC,EAAET,SAAU;IAACO,IAAI,EAAEJ;EAAM,CAAE;AAAC,CAC/B,CACL,CAAC;AAEF,eAAeF,QAAQ","ignoreList":[]}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { Pressable, Text, StyleSheet } from 'react-native';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Basic pressable button (thin wrapper around React Native `Pressable` + `Text`).
|
|
7
|
+
*/
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
export function Button({
|
|
10
|
+
title,
|
|
11
|
+
onPress,
|
|
12
|
+
disabled = false,
|
|
13
|
+
style,
|
|
14
|
+
textStyle
|
|
15
|
+
}) {
|
|
16
|
+
return /*#__PURE__*/_jsx(Pressable, {
|
|
17
|
+
onPress: onPress,
|
|
18
|
+
disabled: disabled,
|
|
19
|
+
style: ({
|
|
20
|
+
pressed
|
|
21
|
+
}) => [styles.button, pressed && styles.buttonPressed, disabled && styles.buttonDisabled, style],
|
|
22
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
23
|
+
style: [styles.text, textStyle],
|
|
24
|
+
children: title
|
|
25
|
+
})
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
const styles = StyleSheet.create({
|
|
29
|
+
button: {
|
|
30
|
+
paddingHorizontal: 20,
|
|
31
|
+
paddingVertical: 12,
|
|
32
|
+
backgroundColor: '#007AFF',
|
|
33
|
+
borderRadius: 8,
|
|
34
|
+
alignItems: 'center',
|
|
35
|
+
justifyContent: 'center'
|
|
36
|
+
},
|
|
37
|
+
buttonPressed: {
|
|
38
|
+
opacity: 0.8
|
|
39
|
+
},
|
|
40
|
+
buttonDisabled: {
|
|
41
|
+
opacity: 0.5
|
|
42
|
+
},
|
|
43
|
+
text: {
|
|
44
|
+
color: '#FFFFFF',
|
|
45
|
+
fontSize: 16,
|
|
46
|
+
fontWeight: '600'
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
//# sourceMappingURL=Button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Pressable","Text","StyleSheet","jsx","_jsx","Button","title","onPress","disabled","style","textStyle","pressed","styles","button","buttonPressed","buttonDisabled","children","text","create","paddingHorizontal","paddingVertical","backgroundColor","borderRadius","alignItems","justifyContent","opacity","color","fontSize","fontWeight"],"sourceRoot":"../../../src","sources":["component/Button.tsx"],"mappings":";;AAAA,SAAQA,SAAS,EAAEC,IAAI,EAAEC,UAAU,QAAuC,cAAc;;AAExF;AACA;AACA;AAFA,SAAAC,GAAA,IAAAC,IAAA;AA4BA,OAAO,SAASC,MAAMA,CAAC;EAACC,KAAK;EAAEC,OAAO;EAAEC,QAAQ,GAAG,KAAK;EAAEC,KAAK;EAAEC;AAAsB,CAAC,EAAE;EACzF,oBACCN,IAAA,CAACJ,SAAS;IACTO,OAAO,EAAEA,OAAQ;IACjBC,QAAQ,EAAEA,QAAS;IACnBC,KAAK,EAAEA,CAAC;MAACE;IAAO,CAAC,KAAK,CACrBC,MAAM,CAACC,MAAM,EACbF,OAAO,IAAIC,MAAM,CAACE,aAAa,EAC/BN,QAAQ,IAAII,MAAM,CAACG,cAAc,EACjCN,KAAK,CACJ;IAAAO,QAAA,eAEFZ,IAAA,CAACH,IAAI;MAACQ,KAAK,EAAE,CAACG,MAAM,CAACK,IAAI,EAAEP,SAAS,CAAE;MAAAM,QAAA,EAAEV;IAAK,CAAO;EAAC,CAC3C,CAAC;AAEd;AAEA,MAAMM,MAAM,GAAGV,UAAU,CAACgB,MAAM,CAAC;EAChCL,MAAM,EAAE;IACPM,iBAAiB,EAAE,EAAE;IACrBC,eAAe,EAAE,EAAE;IACnBC,eAAe,EAAE,SAAS;IAC1BC,YAAY,EAAE,CAAC;IACfC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EACjB,CAAC;EACDV,aAAa,EAAE;IACdW,OAAO,EAAE;EACV,CAAC;EACDV,cAAc,EAAE;IACfU,OAAO,EAAE;EACV,CAAC;EACDR,IAAI,EAAE;IACLS,KAAK,EAAE,SAAS;IAChBC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACb;AACD,CAAC,CAAC","ignoreList":[]}
|