tf-checkout-react-native 1.0.0
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/LICENSE +21 -0
- package/README.md +168 -0
- package/android/build.gradle +42 -0
- package/android/src/main/AndroidManifest.xml +2 -0
- package/android/src/main/java/com/theticketfairy/tfcheckoutreactnative/TFCheckoutRNModule.kt +13 -0
- package/android/src/main/java/com/theticketfairy/tfcheckoutreactnative/TFCheckoutRNPackage.kt +19 -0
- package/ios/TFCheckoutRNModule-Bridging-Header.h +5 -0
- package/ios/TFCheckoutRNModule.m +11 -0
- package/ios/TFCheckoutRNModule.swift +21 -0
- package/ios/TFCheckoutRNModule.xcodeproj/project.pbxproj +314 -0
- package/lib/api/ApiClient.d.ts +62 -0
- package/lib/api/ApiClient.js +490 -0
- package/lib/api/ApiClient.js.map +1 -0
- package/lib/api/Constants.d.ts +7 -0
- package/lib/api/Constants.js +7 -0
- package/lib/api/Constants.js.map +1 -0
- package/lib/api/types.d.ts +164 -0
- package/lib/api/types.js +3 -0
- package/lib/api/types.js.map +1 -0
- package/lib/components/button/Button.d.ts +3 -0
- package/lib/components/button/Button.js +13 -0
- package/lib/components/button/Button.js.map +1 -0
- package/lib/components/button/styles.d.ts +27 -0
- package/lib/components/button/styles.js +29 -0
- package/lib/components/button/styles.js.map +1 -0
- package/lib/components/button/types.d.ts +14 -0
- package/lib/components/button/types.js +2 -0
- package/lib/components/button/types.js.map +1 -0
- package/lib/components/checkbox/Checkbox.d.ts +3 -0
- package/lib/components/checkbox/Checkbox.js +14 -0
- package/lib/components/checkbox/Checkbox.js.map +1 -0
- package/lib/components/checkbox/styles.d.ts +38 -0
- package/lib/components/checkbox/styles.js +40 -0
- package/lib/components/checkbox/styles.js.map +1 -0
- package/lib/components/checkbox/types.d.ts +18 -0
- package/lib/components/checkbox/types.js +2 -0
- package/lib/components/checkbox/types.js.map +1 -0
- package/lib/components/datePicker/DatePicker.d.ts +3 -0
- package/lib/components/datePicker/DatePicker.js +30 -0
- package/lib/components/datePicker/DatePicker.js.map +1 -0
- package/lib/components/datePicker/styles.d.ts +18 -0
- package/lib/components/datePicker/styles.js +20 -0
- package/lib/components/datePicker/styles.js.map +1 -0
- package/lib/components/datePicker/types.d.ts +8 -0
- package/lib/components/datePicker/types.js +2 -0
- package/lib/components/datePicker/types.js.map +1 -0
- package/lib/components/dropdown/Dropdown.d.ts +3 -0
- package/lib/components/dropdown/Dropdown.js +40 -0
- package/lib/components/dropdown/Dropdown.js.map +1 -0
- package/lib/components/dropdown/DropdownListItem.d.ts +3 -0
- package/lib/components/dropdown/DropdownListItem.js +12 -0
- package/lib/components/dropdown/DropdownListItem.js.map +1 -0
- package/lib/components/dropdown/styles.d.ts +72 -0
- package/lib/components/dropdown/styles.js +75 -0
- package/lib/components/dropdown/styles.js.map +1 -0
- package/lib/components/dropdown/types.d.ts +24 -0
- package/lib/components/dropdown/types.js +2 -0
- package/lib/components/dropdown/types.js.map +1 -0
- package/lib/components/formField/FormField.d.ts +3 -0
- package/lib/components/formField/FormField.js +35 -0
- package/lib/components/formField/FormField.js.map +1 -0
- package/lib/components/formField/styles.d.ts +34 -0
- package/lib/components/formField/styles.js +36 -0
- package/lib/components/formField/styles.js.map +1 -0
- package/lib/components/formField/types.d.ts +34 -0
- package/lib/components/formField/types.js +2 -0
- package/lib/components/formField/types.js.map +1 -0
- package/lib/components/index.d.ts +12 -0
- package/lib/components/index.js +13 -0
- package/lib/components/index.js.map +1 -0
- package/lib/components/input/Input.d.ts +3 -0
- package/lib/components/input/Input.js +13 -0
- package/lib/components/input/Input.js.map +1 -0
- package/lib/components/input/styles.d.ts +41 -0
- package/lib/components/input/styles.js +46 -0
- package/lib/components/input/styles.js.map +1 -0
- package/lib/components/input/types.d.ts +22 -0
- package/lib/components/input/types.js +2 -0
- package/lib/components/input/types.js.map +1 -0
- package/lib/components/loading/Loading.d.ts +3 -0
- package/lib/components/loading/Loading.js +14 -0
- package/lib/components/loading/Loading.js.map +1 -0
- package/lib/components/loading/styles.d.ts +29 -0
- package/lib/components/loading/styles.js +31 -0
- package/lib/components/loading/styles.js.map +1 -0
- package/lib/components/loading/types.d.ts +14 -0
- package/lib/components/loading/types.js +2 -0
- package/lib/components/loading/types.js.map +1 -0
- package/lib/components/loggedIn/LoggedIn.d.ts +4 -0
- package/lib/components/loggedIn/LoggedIn.js +21 -0
- package/lib/components/loggedIn/LoggedIn.js.map +1 -0
- package/lib/components/loggedIn/styles.d.ts +8 -0
- package/lib/components/loggedIn/styles.js +9 -0
- package/lib/components/loggedIn/styles.js.map +1 -0
- package/lib/components/loggedIn/types.d.ts +11 -0
- package/lib/components/loggedIn/types.js +2 -0
- package/lib/components/loggedIn/types.js.map +1 -0
- package/lib/components/login/Login.d.ts +3 -0
- package/lib/components/login/Login.js +68 -0
- package/lib/components/login/Login.js.map +1 -0
- package/lib/components/login/LoginView.d.ts +3 -0
- package/lib/components/login/LoginView.js +121 -0
- package/lib/components/login/LoginView.js.map +1 -0
- package/lib/components/login/styles.d.ts +50 -0
- package/lib/components/login/styles.js +52 -0
- package/lib/components/login/styles.js.map +1 -0
- package/lib/components/login/types.d.ts +63 -0
- package/lib/components/login/types.js +2 -0
- package/lib/components/login/types.js.map +1 -0
- package/lib/components/promoCode/PromoCode.d.ts +3 -0
- package/lib/components/promoCode/PromoCode.js +66 -0
- package/lib/components/promoCode/PromoCode.js.map +1 -0
- package/lib/components/promoCode/styles.d.ts +56 -0
- package/lib/components/promoCode/styles.js +58 -0
- package/lib/components/promoCode/styles.js.map +1 -0
- package/lib/components/promoCode/types.d.ts +33 -0
- package/lib/components/promoCode/types.js +2 -0
- package/lib/components/promoCode/types.js.map +1 -0
- package/lib/components/separator/Separator.d.ts +3 -0
- package/lib/components/separator/Separator.js +13 -0
- package/lib/components/separator/Separator.js.map +1 -0
- package/lib/components/separator/types.d.ts +8 -0
- package/lib/components/separator/types.js +2 -0
- package/lib/components/separator/types.js.map +1 -0
- package/lib/components/waitingList/WaitingList.d.ts +3 -0
- package/lib/components/waitingList/WaitingList.js +51 -0
- package/lib/components/waitingList/WaitingList.js.map +1 -0
- package/lib/components/waitingList/WaitingListView.d.ts +3 -0
- package/lib/components/waitingList/WaitingListView.js +19 -0
- package/lib/components/waitingList/WaitingListView.js.map +1 -0
- package/lib/components/waitingList/styles.d.ts +8 -0
- package/lib/components/waitingList/styles.js +9 -0
- package/lib/components/waitingList/styles.js.map +1 -0
- package/lib/components/waitingList/types.d.ts +49 -0
- package/lib/components/waitingList/types.js +2 -0
- package/lib/components/waitingList/types.js.map +1 -0
- package/lib/containers/billingInfo/BillingInfo.d.ts +3 -0
- package/lib/containers/billingInfo/BillingInfo.js +627 -0
- package/lib/containers/billingInfo/BillingInfo.js.map +1 -0
- package/lib/containers/billingInfo/BillingInfoData.d.ts +6 -0
- package/lib/containers/billingInfo/BillingInfoData.js +79 -0
- package/lib/containers/billingInfo/BillingInfoData.js.map +1 -0
- package/lib/containers/billingInfo/BillingInfoView.d.ts +3 -0
- package/lib/containers/billingInfo/BillingInfoView.js +23 -0
- package/lib/containers/billingInfo/BillingInfoView.js.map +1 -0
- package/lib/containers/billingInfo/styles.d.ts +20 -0
- package/lib/containers/billingInfo/styles.js +21 -0
- package/lib/containers/billingInfo/styles.js.map +1 -0
- package/lib/containers/billingInfo/types.d.ts +103 -0
- package/lib/containers/billingInfo/types.js +2 -0
- package/lib/containers/billingInfo/types.js.map +1 -0
- package/lib/containers/checkout/Checkout.d.ts +3 -0
- package/lib/containers/checkout/Checkout.js +162 -0
- package/lib/containers/checkout/Checkout.js.map +1 -0
- package/lib/containers/checkout/CheckoutData.d.ts +2 -0
- package/lib/containers/checkout/CheckoutData.js +28 -0
- package/lib/containers/checkout/CheckoutData.js.map +1 -0
- package/lib/containers/checkout/CheckoutView.d.ts +3 -0
- package/lib/containers/checkout/CheckoutView.js +34 -0
- package/lib/containers/checkout/CheckoutView.js.map +1 -0
- package/lib/containers/checkout/components/Conditions.d.ts +3 -0
- package/lib/containers/checkout/components/Conditions.js +11 -0
- package/lib/containers/checkout/components/Conditions.js.map +1 -0
- package/lib/containers/checkout/components/OrderReview.d.ts +3 -0
- package/lib/containers/checkout/components/OrderReview.js +10 -0
- package/lib/containers/checkout/components/OrderReview.js.map +1 -0
- package/lib/containers/checkout/components/styles.d.ts +25 -0
- package/lib/containers/checkout/components/styles.js +27 -0
- package/lib/containers/checkout/components/styles.js.map +1 -0
- package/lib/containers/checkout/styles.d.ts +29 -0
- package/lib/containers/checkout/styles.js +31 -0
- package/lib/containers/checkout/styles.js.map +1 -0
- package/lib/containers/checkout/types.d.ts +41 -0
- package/lib/containers/checkout/types.js +2 -0
- package/lib/containers/checkout/types.js.map +1 -0
- package/lib/containers/index.d.ts +6 -0
- package/lib/containers/index.js +7 -0
- package/lib/containers/index.js.map +1 -0
- package/lib/containers/myOrderDetails/MyOrderDetails.d.ts +4 -0
- package/lib/containers/myOrderDetails/MyOrderDetails.js +11 -0
- package/lib/containers/myOrderDetails/MyOrderDetails.js.map +1 -0
- package/lib/containers/myOrderDetails/MyOrderDetailsView.d.ts +4 -0
- package/lib/containers/myOrderDetails/MyOrderDetailsView.js +60 -0
- package/lib/containers/myOrderDetails/MyOrderDetailsView.js.map +1 -0
- package/lib/containers/myOrderDetails/styles.d.ts +0 -0
- package/lib/containers/myOrderDetails/styles.js +2 -0
- package/lib/containers/myOrderDetails/styles.js.map +1 -0
- package/lib/containers/myOrderDetails/types.d.ts +11 -0
- package/lib/containers/myOrderDetails/types.js +2 -0
- package/lib/containers/myOrderDetails/types.js.map +1 -0
- package/lib/containers/myOrders/MyOrders.d.ts +9 -0
- package/lib/containers/myOrders/MyOrders.js +62 -0
- package/lib/containers/myOrders/MyOrders.js.map +1 -0
- package/lib/containers/myOrders/MyOrdersView.d.ts +3 -0
- package/lib/containers/myOrders/MyOrdersView.js +30 -0
- package/lib/containers/myOrders/MyOrdersView.js.map +1 -0
- package/lib/containers/myOrders/components/OrderListItem.d.ts +4 -0
- package/lib/containers/myOrders/components/OrderListItem.js +29 -0
- package/lib/containers/myOrders/components/OrderListItem.js.map +1 -0
- package/lib/containers/myOrders/components/styles.d.ts +51 -0
- package/lib/containers/myOrders/components/styles.js +50 -0
- package/lib/containers/myOrders/components/styles.js.map +1 -0
- package/lib/containers/myOrders/components/types.d.ts +25 -0
- package/lib/containers/myOrders/components/types.js +2 -0
- package/lib/containers/myOrders/components/types.js.map +1 -0
- package/lib/containers/myOrders/styles.d.ts +21 -0
- package/lib/containers/myOrders/styles.js +23 -0
- package/lib/containers/myOrders/styles.js.map +1 -0
- package/lib/containers/myOrders/types.d.ts +27 -0
- package/lib/containers/myOrders/types.js +2 -0
- package/lib/containers/myOrders/types.js.map +1 -0
- package/lib/containers/purchaseConfirmation/PurchaseConfirmation.d.ts +3 -0
- package/lib/containers/purchaseConfirmation/PurchaseConfirmation.js +17 -0
- package/lib/containers/purchaseConfirmation/PurchaseConfirmation.js.map +1 -0
- package/lib/containers/purchaseConfirmation/PurchaseConfirmationView.d.ts +3 -0
- package/lib/containers/purchaseConfirmation/PurchaseConfirmationView.js +15 -0
- package/lib/containers/purchaseConfirmation/PurchaseConfirmationView.js.map +1 -0
- package/lib/containers/purchaseConfirmation/styles.d.ts +73 -0
- package/lib/containers/purchaseConfirmation/styles.js +75 -0
- package/lib/containers/purchaseConfirmation/styles.js.map +1 -0
- package/lib/containers/purchaseConfirmation/types.d.ts +50 -0
- package/lib/containers/purchaseConfirmation/types.js +2 -0
- package/lib/containers/purchaseConfirmation/types.js.map +1 -0
- package/lib/containers/tickets/Tickets.d.ts +3 -0
- package/lib/containers/tickets/Tickets.js +143 -0
- package/lib/containers/tickets/Tickets.js.map +1 -0
- package/lib/containers/tickets/TicketsView.d.ts +3 -0
- package/lib/containers/tickets/TicketsView.js +35 -0
- package/lib/containers/tickets/TicketsView.js.map +1 -0
- package/lib/containers/tickets/components/TicketListItem.d.ts +3 -0
- package/lib/containers/tickets/components/TicketListItem.js +46 -0
- package/lib/containers/tickets/components/TicketListItem.js.map +1 -0
- package/lib/containers/tickets/components/styles.d.ts +50 -0
- package/lib/containers/tickets/components/styles.js +53 -0
- package/lib/containers/tickets/components/styles.js.map +1 -0
- package/lib/containers/tickets/components/types.d.ts +25 -0
- package/lib/containers/tickets/components/types.js +2 -0
- package/lib/containers/tickets/components/types.js.map +1 -0
- package/lib/containers/tickets/styles.d.ts +19 -0
- package/lib/containers/tickets/styles.js +21 -0
- package/lib/containers/tickets/styles.js.map +1 -0
- package/lib/containers/tickets/types.d.ts +69 -0
- package/lib/containers/tickets/types.js +2 -0
- package/lib/containers/tickets/types.js.map +1 -0
- package/lib/helpers/Debounced.d.ts +1 -0
- package/lib/helpers/Debounced.js +24 -0
- package/lib/helpers/Debounced.js.map +1 -0
- package/lib/helpers/LocalStorage.d.ts +16 -0
- package/lib/helpers/LocalStorage.js +58 -0
- package/lib/helpers/LocalStorage.js.map +1 -0
- package/lib/helpers/StringsHelper.d.ts +1 -0
- package/lib/helpers/StringsHelper.js +7 -0
- package/lib/helpers/StringsHelper.js.map +1 -0
- package/lib/helpers/Validators.d.ts +5 -0
- package/lib/helpers/Validators.js +36 -0
- package/lib/helpers/Validators.js.map +1 -0
- package/lib/index.d.ts +6 -0
- package/lib/index.js +6 -0
- package/lib/index.js.map +1 -0
- package/lib/res/colors.d.ts +12 -0
- package/lib/res/colors.js +27 -0
- package/lib/res/colors.js.map +1 -0
- package/lib/res/icons.d.ts +7 -0
- package/lib/res/icons.js +7 -0
- package/lib/res/icons.js.map +1 -0
- package/lib/res/images.d.ts +4 -0
- package/lib/res/images.js +4 -0
- package/lib/res/images.js.map +1 -0
- package/lib/res/index.d.ts +23 -0
- package/lib/res/index.js +10 -0
- package/lib/res/index.js.map +1 -0
- package/lib/types/IEvent.d.ts +64 -0
- package/lib/types/IEvent.js +2 -0
- package/lib/types/IEvent.js.map +1 -0
- package/lib/types/ITicket.d.ts +44 -0
- package/lib/types/ITicket.js +2 -0
- package/lib/types/ITicket.js.map +1 -0
- package/lib/types/IUserProfile.d.ts +24 -0
- package/lib/types/IUserProfile.js +2 -0
- package/lib/types/IUserProfile.js.map +1 -0
- package/lib/types/index.d.ts +3 -0
- package/lib/types/index.js +4 -0
- package/lib/types/index.js.map +1 -0
- package/package.json +80 -0
- package/tf-checkout-react-native.podspec +19 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { StyleSheet } from 'react-native';
|
|
2
|
+
import R from '../../res';
|
|
3
|
+
export default StyleSheet.create({
|
|
4
|
+
content: {
|
|
5
|
+
flexDirection: 'row',
|
|
6
|
+
marginBottom: 16,
|
|
7
|
+
justifyContent: 'space-between',
|
|
8
|
+
},
|
|
9
|
+
input: {
|
|
10
|
+
borderWidth: 1,
|
|
11
|
+
padding: 8,
|
|
12
|
+
minWidth: 100,
|
|
13
|
+
width: '50%',
|
|
14
|
+
borderColor: R.colors.black,
|
|
15
|
+
color: R.colors.black,
|
|
16
|
+
},
|
|
17
|
+
applyButton: {
|
|
18
|
+
backgroundColor: R.colors.primary,
|
|
19
|
+
paddingHorizontal: 8,
|
|
20
|
+
},
|
|
21
|
+
applyButtonDisabled: {
|
|
22
|
+
backgroundColor: R.colors.disabled,
|
|
23
|
+
paddingHorizontal: 8,
|
|
24
|
+
},
|
|
25
|
+
applyText: {
|
|
26
|
+
fontWeight: '400',
|
|
27
|
+
fontSize: 14,
|
|
28
|
+
color: R.colors.white,
|
|
29
|
+
},
|
|
30
|
+
cancelButton: {
|
|
31
|
+
borderColor: 'gray',
|
|
32
|
+
},
|
|
33
|
+
cancelText: {
|
|
34
|
+
fontWeight: '400',
|
|
35
|
+
fontSize: 14,
|
|
36
|
+
color: 'gray',
|
|
37
|
+
},
|
|
38
|
+
mainButtonContainer: {
|
|
39
|
+
marginVertical: 16,
|
|
40
|
+
},
|
|
41
|
+
mainButtonText: {
|
|
42
|
+
fontWeight: '400',
|
|
43
|
+
fontSize: 14,
|
|
44
|
+
textAlign: 'center',
|
|
45
|
+
color: R.colors.white,
|
|
46
|
+
},
|
|
47
|
+
messageContainer: {
|
|
48
|
+
padding: 8,
|
|
49
|
+
backgroundColor: 'gainsboro',
|
|
50
|
+
alignItems: 'center',
|
|
51
|
+
},
|
|
52
|
+
title: {
|
|
53
|
+
marginVertical: 16,
|
|
54
|
+
fontWeight: '600',
|
|
55
|
+
},
|
|
56
|
+
contentWrapper: {},
|
|
57
|
+
});
|
|
58
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/promoCode/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,OAAO,CAAC,MAAM,WAAW,CAAA;AAEzB,eAAe,UAAU,CAAC,MAAM,CAAC;IAC/B,OAAO,EAAE;QACP,aAAa,EAAE,KAAK;QACpB,YAAY,EAAE,EAAE;QAChB,cAAc,EAAE,eAAe;KAChC;IACD,KAAK,EAAE;QACL,WAAW,EAAE,CAAC;QACd,OAAO,EAAE,CAAC;QACV,QAAQ,EAAE,GAAG;QACb,KAAK,EAAE,KAAK;QACZ,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK;QAC3B,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK;KACtB;IACD,WAAW,EAAE;QACX,eAAe,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO;QACjC,iBAAiB,EAAE,CAAC;KACrB;IACD,mBAAmB,EAAE;QACnB,eAAe,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ;QAClC,iBAAiB,EAAE,CAAC;KACrB;IACD,SAAS,EAAE;QACT,UAAU,EAAE,KAAK;QACjB,QAAQ,EAAE,EAAE;QACZ,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK;KACtB;IACD,YAAY,EAAE;QACZ,WAAW,EAAE,MAAM;KACpB;IACD,UAAU,EAAE;QACV,UAAU,EAAE,KAAK;QACjB,QAAQ,EAAE,EAAE;QACZ,KAAK,EAAE,MAAM;KACd;IACD,mBAAmB,EAAE;QACnB,cAAc,EAAE,EAAE;KACnB;IACD,cAAc,EAAE;QACd,UAAU,EAAE,KAAK;QACjB,QAAQ,EAAE,EAAE;QACZ,SAAS,EAAE,QAAQ;QACnB,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK;KACtB;IACD,gBAAgB,EAAE;QAChB,OAAO,EAAE,CAAC;QACV,eAAe,EAAE,WAAW;QAC5B,UAAU,EAAE,QAAQ;KACrB;IACD,KAAK,EAAE;QACL,cAAc,EAAE,EAAE;QAClB,UAAU,EAAE,KAAK;KAClB;IACD,cAAc,EAAE,EAAE;CACnB,CAAC,CAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { StyleProp, TextStyle } from 'react-native';
|
|
2
|
+
import { TextInputProps, ViewStyle } from 'react-native';
|
|
3
|
+
import { IButtonStyles } from '../button/types';
|
|
4
|
+
export interface IPromoCodeStyles {
|
|
5
|
+
rootContainer?: StyleProp<ViewStyle>;
|
|
6
|
+
contentWrapper?: StyleProp<ViewStyle>;
|
|
7
|
+
content?: StyleProp<ViewStyle>;
|
|
8
|
+
input?: TextInputProps['style'];
|
|
9
|
+
inputPlaceholderColor?: string;
|
|
10
|
+
title?: StyleProp<TextStyle>;
|
|
11
|
+
mainButton?: IButtonStyles;
|
|
12
|
+
cancelButton?: IButtonStyles;
|
|
13
|
+
applyButton?: IButtonStyles;
|
|
14
|
+
applyDisabledButton?: IButtonStyles;
|
|
15
|
+
messageContainer?: StyleProp<ViewStyle>;
|
|
16
|
+
message?: StyleProp<TextStyle>;
|
|
17
|
+
}
|
|
18
|
+
export interface IPromoCodeTexts {
|
|
19
|
+
promoCodeButton?: string;
|
|
20
|
+
inputPlaceHolder?: string;
|
|
21
|
+
apply?: string;
|
|
22
|
+
cancel?: string;
|
|
23
|
+
mainButton?: string;
|
|
24
|
+
title?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface IPromoCodeProps {
|
|
27
|
+
onPressApply: (promoCode: string) => void;
|
|
28
|
+
promoCodeValidationMessage?: string;
|
|
29
|
+
isPromoCodeValid?: boolean;
|
|
30
|
+
styles?: IPromoCodeStyles;
|
|
31
|
+
texts?: IPromoCodeTexts;
|
|
32
|
+
isAccessCodeEnabled?: boolean;
|
|
33
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/promoCode/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
const Separator = ({ color, height, width, marginLeft, marginVertical, }) => {
|
|
4
|
+
return (React.createElement(View, { style: {
|
|
5
|
+
height: height || 1,
|
|
6
|
+
backgroundColor: color || '#DEDEDE',
|
|
7
|
+
width: width || '99%',
|
|
8
|
+
marginLeft: marginLeft || '0.5%',
|
|
9
|
+
marginVertical: marginVertical,
|
|
10
|
+
} }));
|
|
11
|
+
};
|
|
12
|
+
export default Separator;
|
|
13
|
+
//# sourceMappingURL=Separator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Separator.js","sourceRoot":"","sources":["../../../src/components/separator/Separator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAInC,MAAM,SAAS,GAAG,CAAC,EACjB,KAAK,EACL,MAAM,EACN,KAAK,EACL,UAAU,EACV,cAAc,GACE,EAAE,EAAE;IACpB,OAAO,CACL,oBAAC,IAAI,IACH,KAAK,EAAE;YACL,MAAM,EAAE,MAAM,IAAI,CAAC;YACnB,eAAe,EAAE,KAAK,IAAI,SAAS;YACnC,KAAK,EAAE,KAAK,IAAI,KAAK;YACrB,UAAU,EAAE,UAAU,IAAI,MAAM;YAChC,cAAc,EAAE,cAAc;SAC/B,GACD,CACH,CAAA;AACH,CAAC,CAAA;AAED,eAAe,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/separator/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import { Alert } from 'react-native';
|
|
3
|
+
import { addToWaitingList } from '../../api/ApiClient';
|
|
4
|
+
import { useDebounced } from '../../helpers/Debounced';
|
|
5
|
+
import { validateEmail, validateEmpty } from '../../helpers/Validators';
|
|
6
|
+
import WaitingListView from './WaitingListView';
|
|
7
|
+
const WaitingList = ({ styles, texts, eventId }) => {
|
|
8
|
+
const [isSuccess, setIsSuccess] = useState(undefined);
|
|
9
|
+
const [isLoading, setIsLoading] = useState(false);
|
|
10
|
+
const [firstName, setFirstName] = useState('');
|
|
11
|
+
const [lastName, setLastName] = useState('');
|
|
12
|
+
const [email, setEmail] = useState('');
|
|
13
|
+
const firstNameError = useDebounced(firstName, validateEmpty);
|
|
14
|
+
const lastNameError = useDebounced(lastName, validateEmpty);
|
|
15
|
+
const emailError = useDebounced(email, validateEmail);
|
|
16
|
+
const handleSetFirstName = (val) => setFirstName(val);
|
|
17
|
+
const handleSetLastName = (val) => setLastName(val);
|
|
18
|
+
const handleSetEmail = (val) => setEmail(val);
|
|
19
|
+
const handleOnPressButton = async () => {
|
|
20
|
+
const values = {
|
|
21
|
+
ticketTypeId: '',
|
|
22
|
+
quantity: '',
|
|
23
|
+
firstName: firstName,
|
|
24
|
+
lastName: lastName,
|
|
25
|
+
email: email,
|
|
26
|
+
};
|
|
27
|
+
setIsLoading(true);
|
|
28
|
+
const { addToWaitingListData, addToWaitingListError } = await addToWaitingList(eventId, values);
|
|
29
|
+
setIsLoading(false);
|
|
30
|
+
if (addToWaitingListError) {
|
|
31
|
+
setIsSuccess(false);
|
|
32
|
+
return Alert.alert('', addToWaitingListError);
|
|
33
|
+
}
|
|
34
|
+
if (addToWaitingListData) {
|
|
35
|
+
setIsSuccess(true);
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
return (React.createElement(WaitingListView, { data: {
|
|
39
|
+
firstName: firstName,
|
|
40
|
+
lastName: lastName,
|
|
41
|
+
email: email,
|
|
42
|
+
firstNameError: firstNameError,
|
|
43
|
+
lastNameError: lastNameError,
|
|
44
|
+
emailError: emailError,
|
|
45
|
+
onChangeEmail: handleSetEmail,
|
|
46
|
+
onChangeFirstName: handleSetFirstName,
|
|
47
|
+
onChangeLastName: handleSetLastName,
|
|
48
|
+
}, onPressButton: handleOnPressButton, isSuccess: isSuccess, styles: styles, texts: texts, isLoading: isLoading }));
|
|
49
|
+
};
|
|
50
|
+
export default WaitingList;
|
|
51
|
+
//# sourceMappingURL=WaitingList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WaitingList.js","sourceRoot":"","sources":["../../../src/components/waitingList/WaitingList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAA;AAEpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AACtD,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AAEvE,OAAO,eAAe,MAAM,mBAAmB,CAAA;AAE/C,MAAM,WAAW,GAAG,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAqB,EAAE,EAAE;IACpE,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAsB,SAAS,CAAC,CAAA;IAC1E,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAU,KAAK,CAAC,CAAA;IAC1D,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,EA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H,CAAC,CAAA;IAED,OAAO,CACL,oBAAC,eAAe,IACd,IAAI,EAAE;YACJ,SAAS,EAAE,SAAS;YACpB,QAAQ,EAAE,QAAQ;YAClB,KAAK,EAAE,KAAK;YACZ,cAAc,EAAE,cAAc;YAC9B,aAAa,EAAE,aAAa;YAC5B,UAAU,EAAE,UAAU;YACtB,aAAa,EAAE,cAAc;YAC7B,iBAAiB,EAAE,kBAAkB;YACrC,gBAAgB,EAAE,iBAAiB;SACpC,EACD,aAAa,EAAE,mBAAmB,EAClC,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,SAAS,GACpB,CACH,CAAA;AACH,CAAC,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Text, View } from 'react-native';
|
|
3
|
+
import { Button, Input } from '..';
|
|
4
|
+
import s from './styles';
|
|
5
|
+
const WaitingListView = ({ styles, texts, onPressButton, data, isSuccess, isLoading, }) => {
|
|
6
|
+
var _a, _b, _c;
|
|
7
|
+
const { firstName, lastName, email, emailError, lastNameError, firstNameError, onChangeEmail, onChangeFirstName, onChangeLastName, } = data;
|
|
8
|
+
const isDataValid = () => !!emailError || !!lastNameError || !!firstNameError;
|
|
9
|
+
return (React.createElement(View, { style: styles === null || styles === void 0 ? void 0 : styles.rootContainer }, isSuccess ? (React.createElement(View, { style: (_a = styles === null || styles === void 0 ? void 0 : styles.success) === null || _a === void 0 ? void 0 : _a.container },
|
|
10
|
+
React.createElement(Text, { style: (_b = styles === null || styles === void 0 ? void 0 : styles.success) === null || _b === void 0 ? void 0 : _b.title }, "You've been added to the waiting list!"),
|
|
11
|
+
React.createElement(Text, { style: (_c = styles === null || styles === void 0 ? void 0 : styles.success) === null || _c === void 0 ? void 0 : _c.message }, "You'll be notified if tickets become available."))) : (React.createElement(React.Fragment, null,
|
|
12
|
+
React.createElement(Text, { style: [s.title, styles === null || styles === void 0 ? void 0 : styles.title] }, (texts === null || texts === void 0 ? void 0 : texts.title) || 'Waiting list'),
|
|
13
|
+
React.createElement(Input, { label: (texts === null || texts === void 0 ? void 0 : texts.firstName) || 'First name', value: firstName, onChangeText: onChangeFirstName, error: firstNameError }),
|
|
14
|
+
React.createElement(Input, { label: (texts === null || texts === void 0 ? void 0 : texts.lastName) || 'Last name', value: lastName, onChangeText: onChangeLastName, error: lastNameError }),
|
|
15
|
+
React.createElement(Input, { label: (texts === null || texts === void 0 ? void 0 : texts.email) || 'Email', keyboardType: 'email-address', autoCapitalize: 'none', value: email, onChangeText: onChangeEmail, error: emailError }),
|
|
16
|
+
React.createElement(Button, { onPress: onPressButton, text: (texts === null || texts === void 0 ? void 0 : texts.button) || 'ADD TO WAITING LIST', styles: styles === null || styles === void 0 ? void 0 : styles.button, isDisabled: isDataValid(), isLoading: isLoading })))));
|
|
17
|
+
};
|
|
18
|
+
export default WaitingListView;
|
|
19
|
+
//# sourceMappingURL=WaitingListView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WaitingListView.js","sourceRoot":"","sources":["../../../src/components/waitingList/WaitingListView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAEzC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,IAAI,CAAA;AAClC,OAAO,CAAC,MAAM,UAAU,CAAA;AAGxB,MAAM,eAAe,GAAG,CAAC,EACvB,MAAM,EACN,KAAK,EACL,aAAa,EACb,IAAI,EACJ,SAAS,EACT,SAAS,GACa,EAAE,EAAE;;IAC1B,MAAM,EACJ,SAAS,EACT,QAAQ,EACR,KAAK,EACL,UAAU,EACV,aAAa,EACb,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,gBAAgB,GACjB,GAAG,IAAI,CAAA;IAER,MAAM,WAAW,GAAG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e,EAC5B,cAAc,EAAC,MAAM,EACrB,KAAK,EAAE,KAAK,EACZ,YAAY,EAAE,aAAa,EAC3B,KAAK,EAAE,UAAU,GACjB;QACF,oBAAC,MAAM,IACL,OAAO,EAAE,aAAa,EACtB,IAAI,EAAE,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,KAAI,qBAAqB,EAC5C,MAAM,EAAE,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,EACtB,UAAU,EAAE,WAAW,EAAE,EACzB,SAAS,EAAE,SAAS,GACpB,CACD,CACJ,CACI,CACR,CAAA;AACH,CAAC,CAAA;AAED,eAAe,eAAe,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/waitingList/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,eAAe,UAAU,CAAC,MAAM,CAAC;IAC/B,KAAK,EAAE;QACL,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,KAAK;QACjB,YAAY,EAAE,EAAE;KACjB;CACF,CAAC,CAAA"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
2
|
+
import { IButtonStyles } from '../button/types';
|
|
3
|
+
export interface IWaitingListTexts {
|
|
4
|
+
title?: string;
|
|
5
|
+
firstName?: string;
|
|
6
|
+
lastName?: string;
|
|
7
|
+
email?: string;
|
|
8
|
+
button?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface IWaitingListStyles {
|
|
11
|
+
rootContainer?: StyleProp<ViewStyle>;
|
|
12
|
+
title?: StyleProp<TextStyle>;
|
|
13
|
+
button?: IButtonStyles;
|
|
14
|
+
success?: {
|
|
15
|
+
container?: StyleProp<ViewStyle>;
|
|
16
|
+
title?: StyleProp<ViewStyle>;
|
|
17
|
+
message?: StyleProp<ViewStyle>;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export interface IWaitingListViewProps {
|
|
21
|
+
data: {
|
|
22
|
+
firstName: string;
|
|
23
|
+
lastName: string;
|
|
24
|
+
email: string;
|
|
25
|
+
firstNameError?: string;
|
|
26
|
+
lastNameError?: string;
|
|
27
|
+
emailError?: string;
|
|
28
|
+
onChangeFirstName: (value: string) => void;
|
|
29
|
+
onChangeLastName: (value: string) => void;
|
|
30
|
+
onChangeEmail: (value: string) => void;
|
|
31
|
+
};
|
|
32
|
+
onPressButton: () => void;
|
|
33
|
+
isSuccess?: boolean;
|
|
34
|
+
styles?: IWaitingListStyles;
|
|
35
|
+
texts?: IWaitingListTexts;
|
|
36
|
+
isLoading?: boolean;
|
|
37
|
+
}
|
|
38
|
+
export interface IWaitingListProps {
|
|
39
|
+
eventId: number;
|
|
40
|
+
styles?: IWaitingListStyles;
|
|
41
|
+
texts?: IWaitingListTexts;
|
|
42
|
+
}
|
|
43
|
+
export interface IWaitingListFields {
|
|
44
|
+
ticketTypeId: string;
|
|
45
|
+
quantity: string;
|
|
46
|
+
firstName: string;
|
|
47
|
+
lastName: string;
|
|
48
|
+
email: string;
|
|
49
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/waitingList/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IBillingInfoProps } from './types';
|
|
2
|
+
declare const BillingInfo: ({ cartProps: { isAgeRequired, isNameRequired }, onRegisterSuccess, onRegisterFail, onCheckoutSuccess, onCheckoutFail, onLoginSuccess, onLoginFail, onFetchUserProfileFail, onFetchUserProfileSuccess, onFetchCartError, styles, texts, customCheckboxText, privacyPolicyLinkStyle, }: IBillingInfoProps) => JSX.Element;
|
|
3
|
+
export default BillingInfo;
|