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,53 @@
|
|
|
1
|
+
import { StyleSheet } from 'react-native';
|
|
2
|
+
import R from '../../../res';
|
|
3
|
+
export const CartListItemStyles = StyleSheet.create({
|
|
4
|
+
container: {
|
|
5
|
+
width: '100%',
|
|
6
|
+
paddingVertical: 16,
|
|
7
|
+
flexDirection: 'row',
|
|
8
|
+
},
|
|
9
|
+
ticketNumber: {
|
|
10
|
+
fontWeight: '600',
|
|
11
|
+
fontSize: 16,
|
|
12
|
+
marginBottom: 4,
|
|
13
|
+
color: R.colors.primary,
|
|
14
|
+
},
|
|
15
|
+
price: {
|
|
16
|
+
fontWeight: '800',
|
|
17
|
+
fontSize: 18,
|
|
18
|
+
color: R.colors.primary,
|
|
19
|
+
},
|
|
20
|
+
soldOut: {
|
|
21
|
+
fontWeight: '800',
|
|
22
|
+
fontSize: 20,
|
|
23
|
+
color: R.colors.primary,
|
|
24
|
+
},
|
|
25
|
+
leftContainer: {
|
|
26
|
+
flex: 7,
|
|
27
|
+
},
|
|
28
|
+
rightContainer: {
|
|
29
|
+
flex: 3,
|
|
30
|
+
alignItems: 'flex-end',
|
|
31
|
+
justifyContent: 'center',
|
|
32
|
+
},
|
|
33
|
+
tax: {
|
|
34
|
+
marginTop: 4,
|
|
35
|
+
fontWeight: '600',
|
|
36
|
+
color: R.colors.primary,
|
|
37
|
+
},
|
|
38
|
+
soldOutContainer: {
|
|
39
|
+
borderRadius: 2,
|
|
40
|
+
borderWidth: 2,
|
|
41
|
+
justifyContent: 'center',
|
|
42
|
+
alignItems: 'center',
|
|
43
|
+
paddingVertical: 8,
|
|
44
|
+
marginTop: 8,
|
|
45
|
+
borderColor: R.colors.primary,
|
|
46
|
+
},
|
|
47
|
+
oldPrice: {
|
|
48
|
+
fontSize: 16,
|
|
49
|
+
color: R.colors.danger,
|
|
50
|
+
textDecorationLine: 'line-through',
|
|
51
|
+
},
|
|
52
|
+
});
|
|
53
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/containers/tickets/components/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,OAAO,CAAC,MAAM,cAAc,CAAA;AAE5B,MAAM,CAAC,MAAM,kBAAkB,GAAG,UAAU,CAAC,MAAM,CAAC;IAClD,SAAS,EAAE;QACT,KAAK,EAAE,MAAM;QACb,eAAe,EAAE,EAAE;QACnB,aAAa,EAAE,KAAK;KACrB;IACD,YAAY,EAAE;QACZ,UAAU,EAAE,KAAK;QACjB,QAAQ,EAAE,EAAE;QACZ,YAAY,EAAE,CAAC;QACf,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO;KACxB;IACD,KAAK,EAAE;QACL,UAAU,EAAE,KAAK;QACjB,QAAQ,EAAE,EAAE;QACZ,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO;KACxB;IACD,OAAO,EAAE;QACP,UAAU,EAAE,KAAK;QACjB,QAAQ,EAAE,EAAE;QACZ,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO;KACxB;IACD,aAAa,EAAE;QACb,IAAI,EAAE,CAAC;KACR;IACD,cAAc,EAAE;QACd,IAAI,EAAE,CAAC;QACP,UAAU,EAAE,UAAU;QACtB,cAAc,EAAE,QAAQ;KACzB;IACD,GAAG,EAAE;QACH,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,KAAK;QACjB,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO;KACxB;IACD,gBAAgB,EAAE;QAChB,YAAY,EAAE,CAAC;QACf,WAAW,EAAE,CAAC;QACd,cAAc,EAAE,QAAQ;QACxB,UAAU,EAAE,QAAQ;QACpB,eAAe,EAAE,CAAC;QAClB,SAAS,EAAE,CAAC;QACZ,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO;KAC9B;IACD,QAAQ,EAAE;QACR,QAAQ,EAAE,EAAE;QACZ,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM;QACtB,kBAAkB,EAAE,cAAc;KACnC;CACF,CAAC,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
2
|
+
import { IDropdownStyles } from '../../../components/dropdown/types';
|
|
3
|
+
import { ISelectedTicket, ITicket } from '../../../types';
|
|
4
|
+
export interface ITicketListItemStyles {
|
|
5
|
+
container?: ViewStyle;
|
|
6
|
+
ticketName?: TextStyle;
|
|
7
|
+
price?: TextStyle;
|
|
8
|
+
oldPrice?: TextStyle;
|
|
9
|
+
fees?: TextStyle;
|
|
10
|
+
soldOutText?: TextStyle;
|
|
11
|
+
soldOutContainer?: ViewStyle;
|
|
12
|
+
dropdown?: IDropdownStyles;
|
|
13
|
+
pricesContainer?: StyleProp<ViewStyle>;
|
|
14
|
+
}
|
|
15
|
+
export interface ITicketListItemTexts {
|
|
16
|
+
soldOut?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface ITicketListItemProps extends ITicket {
|
|
19
|
+
ticket: ISelectedTicket;
|
|
20
|
+
ticketNumber: number;
|
|
21
|
+
onSelectTicketItem: (selectedTicket: ISelectedTicket) => void;
|
|
22
|
+
selectedTicket?: ISelectedTicket;
|
|
23
|
+
styles?: ITicketListItemStyles;
|
|
24
|
+
texts?: ITicketListItemTexts;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/containers/tickets/components/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
container: {
|
|
3
|
+
flex: number;
|
|
4
|
+
};
|
|
5
|
+
header: {
|
|
6
|
+
paddingVertical: number;
|
|
7
|
+
};
|
|
8
|
+
headerText: {
|
|
9
|
+
fontSize: number;
|
|
10
|
+
color: string;
|
|
11
|
+
fontWeight: "800";
|
|
12
|
+
};
|
|
13
|
+
headerTextBold: {
|
|
14
|
+
fontSize: number;
|
|
15
|
+
fontWeight: "800";
|
|
16
|
+
color: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { StyleSheet } from 'react-native';
|
|
2
|
+
import R from '../../res';
|
|
3
|
+
export default StyleSheet.create({
|
|
4
|
+
container: {
|
|
5
|
+
flex: 1,
|
|
6
|
+
},
|
|
7
|
+
header: {
|
|
8
|
+
paddingVertical: 16,
|
|
9
|
+
},
|
|
10
|
+
headerText: {
|
|
11
|
+
fontSize: 22,
|
|
12
|
+
color: R.colors.primary,
|
|
13
|
+
fontWeight: '800',
|
|
14
|
+
},
|
|
15
|
+
headerTextBold: {
|
|
16
|
+
fontSize: 18,
|
|
17
|
+
fontWeight: '800',
|
|
18
|
+
color: R.colors.primary,
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/containers/tickets/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,SAAS,EAAE;QACT,IAAI,EAAE,CAAC;KACR;IACD,MAAM,EAAE;QACN,eAAe,EAAE,EAAE;KACpB;IACD,UAAU,EAAE;QACV,QAAQ,EAAE,EAAE;QACZ,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO;QACvB,UAAU,EAAE,KAAK;KAClB;IACD,cAAc,EAAE;QACd,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,KAAK;QACjB,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO;KACxB;CACF,CAAC,CAAA"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { TextStyle, ViewStyle } from 'react-native';
|
|
2
|
+
import { ILoadingStyles } from '../../components/loading/types';
|
|
3
|
+
import { IPromoCodeStyles, IPromoCodeTexts } from '../../components/promoCode/types';
|
|
4
|
+
import { IWaitingListStyles, IWaitingListTexts } from '../../components/waitingList/types';
|
|
5
|
+
import { IEvent, ISelectedTicket, ITicket } from '../../types';
|
|
6
|
+
import { ITicketListItemStyles, ITicketListItemTexts } from './components/types';
|
|
7
|
+
export interface ITicketsViewProps {
|
|
8
|
+
eventId: number;
|
|
9
|
+
isGettingTickets?: boolean;
|
|
10
|
+
isBookingTickets?: boolean;
|
|
11
|
+
isGettingEvent?: boolean;
|
|
12
|
+
tickets: ITicket[];
|
|
13
|
+
styles?: ITicketsViewStyles;
|
|
14
|
+
onPressGetTickets: () => void;
|
|
15
|
+
onPressApplyPromoCode: (promoCode: string) => void;
|
|
16
|
+
promoCodeValidationMessage?: string;
|
|
17
|
+
isPromoCodeValid?: boolean;
|
|
18
|
+
onSelectTicketOption: (selectedTicket: ISelectedTicket) => void;
|
|
19
|
+
selectedTicket?: ISelectedTicket;
|
|
20
|
+
texts?: {
|
|
21
|
+
promoCode?: IPromoCodeTexts;
|
|
22
|
+
getTicketsButton?: string;
|
|
23
|
+
title?: string;
|
|
24
|
+
waitingList?: IWaitingListTexts;
|
|
25
|
+
};
|
|
26
|
+
event?: IEvent;
|
|
27
|
+
isWaitingListVisible?: boolean;
|
|
28
|
+
isGetTicketsButtonVisible?: boolean;
|
|
29
|
+
isPromoEnabled?: boolean;
|
|
30
|
+
isAccessCodeEnabled?: boolean;
|
|
31
|
+
isUserLogged?: boolean;
|
|
32
|
+
onPressMyOrders: () => void;
|
|
33
|
+
}
|
|
34
|
+
export interface IAddToCartSuccess {
|
|
35
|
+
isBillingRequired: boolean;
|
|
36
|
+
isNameRequired: boolean;
|
|
37
|
+
isAgeRequired: boolean;
|
|
38
|
+
}
|
|
39
|
+
export interface ITicketListStyles {
|
|
40
|
+
listContainer?: ViewStyle;
|
|
41
|
+
item?: ITicketListItemStyles;
|
|
42
|
+
}
|
|
43
|
+
export interface ITicketsViewStyles {
|
|
44
|
+
container?: ViewStyle;
|
|
45
|
+
title?: TextStyle;
|
|
46
|
+
getTicketsButton?: ViewStyle;
|
|
47
|
+
getTicketText?: TextStyle;
|
|
48
|
+
promoCode?: IPromoCodeStyles;
|
|
49
|
+
ticketList?: ITicketListStyles;
|
|
50
|
+
loading?: ILoadingStyles;
|
|
51
|
+
waitingList?: IWaitingListStyles;
|
|
52
|
+
}
|
|
53
|
+
export interface ITicketsViewTexts {
|
|
54
|
+
promoCode?: IPromoCodeTexts;
|
|
55
|
+
getTicketsButton?: string;
|
|
56
|
+
title?: string;
|
|
57
|
+
item?: ITicketListItemTexts;
|
|
58
|
+
}
|
|
59
|
+
export interface ITicketsProps {
|
|
60
|
+
eventId: number;
|
|
61
|
+
onAddToCartSuccess: (data: IAddToCartSuccess) => void;
|
|
62
|
+
onAddToCartError?: (error: any) => void;
|
|
63
|
+
onFetchTicketsError?: (error: any) => void;
|
|
64
|
+
styles?: ITicketsViewStyles;
|
|
65
|
+
texts?: ITicketsViewTexts;
|
|
66
|
+
isPromoEnabled?: boolean;
|
|
67
|
+
isAccessCodeEnabled?: boolean;
|
|
68
|
+
onPressMyOrders: () => void;
|
|
69
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/containers/tickets/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useDebounced: (value: string, validate: (value: string) => string) => string | undefined;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { useEffect, useState } from 'react';
|
|
2
|
+
const DELAY = 300;
|
|
3
|
+
export const useDebounced = (value, validate) => {
|
|
4
|
+
const [debouncedValue, setDebouncedValue] = useState(value);
|
|
5
|
+
const [error, setError] = useState();
|
|
6
|
+
useEffect(() => {
|
|
7
|
+
// Update debounced value after delay
|
|
8
|
+
const handler = setTimeout(() => {
|
|
9
|
+
setDebouncedValue(value);
|
|
10
|
+
if (debouncedValue) {
|
|
11
|
+
setError(validate(value));
|
|
12
|
+
}
|
|
13
|
+
}, DELAY);
|
|
14
|
+
// Cancel the timeout if value changes (also on delay change or unmount)
|
|
15
|
+
// This is how we prevent debounced value from updating if value is changed ...
|
|
16
|
+
// .. within the delay period. Timeout gets cleared and restarted.
|
|
17
|
+
return () => {
|
|
18
|
+
clearTimeout(handler);
|
|
19
|
+
};
|
|
20
|
+
}, [debouncedValue, validate, value] // Only re-call effect if value or delay changes
|
|
21
|
+
);
|
|
22
|
+
return error;
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=Debounced.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Debounced.js","sourceRoot":"","sources":["../../src/helpers/Debounced.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC3C,MAAM,KAAK,GAAG,GAAG,CAAA;AAEjB,MAAM,CAAC,MAAM,YAAY,GAAG,CAC1B,KAAa,EACb,QAAmC,EACnC,EAAE;IACF,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAA;IAC3D,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,EAAU,CAAA;IAC5C,SAAS,CACP,GAAG,EAAE;QACH,qCAAqC;QACrC,MAAM,OAAO,GAAG,UAAU,CAAC,GAAG,EAAE;YAC9B,iBAAiB,CAAC,KAAK,CAAC,CAAA;YACxB,IAAI,cAAc,EAAE;gBAClB,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAA;aAC1B;QACH,CAAC,EAAE,KAAK,CAAC,CAAA;QAET,wEAAwE;QACxE,+EAA+E;QAC/E,kEAAkE;QAClE,OAAO,GAAG,EAAE;YACV,YAAY,CAAC,OAAO,CAAC,CAAA;QACvB,CAAC,CAAA;IACH,CAAC,EACD,CAAC,cAAc,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC,gDAAgD;KACnF,CAAA;IACD,OAAO,KAAK,CAAA;AACd,CAAC,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const LocalStorageKeys: {
|
|
2
|
+
AUTH_GUEST_TOKEN: string;
|
|
3
|
+
USER_DATA: string;
|
|
4
|
+
ACCESS_TOKEN: string;
|
|
5
|
+
CHECKOUT_DATA: string;
|
|
6
|
+
};
|
|
7
|
+
export interface IStoredUserData {
|
|
8
|
+
id: string;
|
|
9
|
+
firstName: string;
|
|
10
|
+
lastName: string;
|
|
11
|
+
email: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const storeData: (key: string, value: string) => Promise<undefined>;
|
|
14
|
+
export declare const getData: (key: string) => Promise<string | undefined>;
|
|
15
|
+
export declare const deleteData: (key: string) => Promise<void>;
|
|
16
|
+
export declare const deleteAllData: () => Promise<void>;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import AsyncStorage from '@react-native-async-storage/async-storage';
|
|
2
|
+
export const LocalStorageKeys = {
|
|
3
|
+
AUTH_GUEST_TOKEN: 'AUTH_GUEST_TOKEN',
|
|
4
|
+
USER_DATA: 'USER_DATA',
|
|
5
|
+
ACCESS_TOKEN: 'ACCESS_TOKEN',
|
|
6
|
+
CHECKOUT_DATA: 'CHECKOUT_DATA',
|
|
7
|
+
};
|
|
8
|
+
export const storeData = async (key, value) => {
|
|
9
|
+
console.log(`StoreData with key ${key} and value ${value}`);
|
|
10
|
+
try {
|
|
11
|
+
await AsyncStorage.setItem(key, value);
|
|
12
|
+
}
|
|
13
|
+
catch (ex) {
|
|
14
|
+
console.log('Local Storage StoreData Error', ex);
|
|
15
|
+
return undefined;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
export const getData = async (key) => {
|
|
19
|
+
try {
|
|
20
|
+
const value = await AsyncStorage.getItem(key);
|
|
21
|
+
if (value !== null) {
|
|
22
|
+
return value;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
catch (ex) {
|
|
26
|
+
console.log('Local Storage GetData Error', ex);
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
export const deleteData = async (key) => {
|
|
31
|
+
try {
|
|
32
|
+
const value = await AsyncStorage.removeItem(key);
|
|
33
|
+
if (value !== null) {
|
|
34
|
+
return value;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
catch (ex) {
|
|
38
|
+
console.log('Local Storage GetData Error', ex);
|
|
39
|
+
return undefined;
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
export const deleteAllData = async () => {
|
|
43
|
+
try {
|
|
44
|
+
const value = await AsyncStorage.multiRemove([
|
|
45
|
+
LocalStorageKeys.ACCESS_TOKEN,
|
|
46
|
+
LocalStorageKeys.AUTH_GUEST_TOKEN,
|
|
47
|
+
LocalStorageKeys.USER_DATA,
|
|
48
|
+
]);
|
|
49
|
+
if (value !== null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
catch (ex) {
|
|
54
|
+
console.log('Local Storage GetData Error', ex);
|
|
55
|
+
return undefined;
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=LocalStorage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LocalStorage.js","sourceRoot":"","sources":["../../src/helpers/LocalStorage.tsx"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,2CAA2C,CAAA;AAEpE,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,gBAAgB,EAAE,kBAAkB;IACpC,SAAS,EAAE,WAAW;IACtB,YAAY,EAAE,cAAc;IAC5B,aAAa,EAAE,eAAe;CAC/B,CAAA;AASD,MAAM,CAAC,MAAM,SAAS,GAAG,KAAK,EAAE,GAAW,EAAE,KAAa,EAAE,EAAE;IAC5D,OAAO,CAAC,GAAG,CAAC,sBAAsB,GAAG,cAAc,KAAK,EAAE,CAAC,CAAA;IAE3D,IAAI;QACF,MAAM,YAAY,CAAC,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,CAAA;KACvC;IAAC,OAAO,EAAE,EAAE;QACX,OAAO,CAAC,GAAG,CAAC,+BAA+B,EAAE,EAAE,CAAC,CAAA;QAChD,OAAO,SAAS,CAAA;KACjB;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,GAAW,EAAE,EAAE;IAC3C,IAAI;QACF,MAAM,KAAK,GAAG,MAAM,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,CAAA;QAC7C,IAAI,KAAK,KAAK,IAAI,EAAE;YAClB,OAAO,KAAK,CAAA;SACb;KACF;IAAC,OAAO,EAAE,EAAE;QACX,OAAO,CAAC,GAAG,CAAC,6BAA6B,EAAE,EAAE,CAAC,CAAA;QAC9C,OAAO,SAAS,CAAA;KACjB;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,EAAE,GAAW,EAAE,EAAE;IAC9C,IAAI;QACF,MAAM,KAAK,GAAG,MAAM,YAAY,CAAC,UAAU,CAAC,GAAG,CAAC,CAAA;QAChD,IAAI,KAAK,KAAK,IAAI,EAAE;YAClB,OAAO,KAAK,CAAA;SACb;KACF;IAAC,OAAO,EAAE,EAAE;QACX,OAAO,CAAC,GAAG,CAAC,6BAA6B,EAAE,EAAE,CAAC,CAAA;QAC9C,OAAO,SAAS,CAAA;KACjB;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,IAAI,EAAE;IACtC,IAAI;QACF,MAAM,KAAK,GAAG,MAAM,YAAY,CAAC,WAAW,CAAC;YAC3C,gBAAgB,CAAC,YAAY;YAC7B,gBAAgB,CAAC,gBAAgB;YACjC,gBAAgB,CAAC,SAAS;SAC3B,CAAC,CAAA;QACF,IAAI,KAAK,KAAK,IAAI,EAAE;YAClB,OAAO,KAAK,CAAA;SACb;KACF;IAAC,OAAO,EAAE,EAAE;QACX,OAAO,CAAC,GAAG,CAAC,6BAA6B,EAAE,EAAE,CAAC,CAAA;QAC9C,OAAO,SAAS,CAAA;KACjB;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const priceWithCurrency: (value?: string, currency?: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StringsHelper.js","sourceRoot":"","sources":["../../src/helpers/StringsHelper.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAAK,GAAG,EAAE,EAAE,QAAQ,GAAG,KAAK,EAAU,EAAE,CACxE,QAAQ;IACR,GAAG;IACH,UAAU,CAAC,KAAK,CAAC,CAAC,cAAc,CAAC,OAAO,EAAE;QACxC,qBAAqB,EAAE,CAAC;QACxB,qBAAqB,EAAE,CAAC;KACzB,CAAC,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const emailRegex: RegExp;
|
|
2
|
+
export declare const validateEmpty: (value?: string | number | undefined, message?: string | undefined) => string;
|
|
3
|
+
export declare const validateMinLength: (value: string, minLength: number, fieldName?: string) => string;
|
|
4
|
+
export declare const validateEmail: (email: string, equalTo?: string | undefined) => string;
|
|
5
|
+
export declare const validatePasswords: (password: string, equalTo: string) => string;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export const emailRegex = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
|
2
|
+
export const validateEmpty = (value, message) => {
|
|
3
|
+
let errorMessage = '';
|
|
4
|
+
if (!value) {
|
|
5
|
+
errorMessage = message || 'Required';
|
|
6
|
+
}
|
|
7
|
+
return errorMessage;
|
|
8
|
+
};
|
|
9
|
+
export const validateMinLength = (value, minLength, fieldName = 'Field') => value.length < minLength
|
|
10
|
+
? `${fieldName} requires at least ${minLength} characters`
|
|
11
|
+
: '';
|
|
12
|
+
export const validateEmail = (email, equalTo) => {
|
|
13
|
+
let validation = '';
|
|
14
|
+
if (equalTo) {
|
|
15
|
+
validation = email === equalTo ? '' : 'Emails must match';
|
|
16
|
+
}
|
|
17
|
+
if (validation) {
|
|
18
|
+
return validation;
|
|
19
|
+
}
|
|
20
|
+
return !emailRegex.test(email) ? 'Please enter a valid email address' : '';
|
|
21
|
+
};
|
|
22
|
+
export const validatePasswords = (password, equalTo) => {
|
|
23
|
+
let validation = '';
|
|
24
|
+
if (equalTo) {
|
|
25
|
+
validation = password === equalTo ? '' : 'Passwords must match';
|
|
26
|
+
}
|
|
27
|
+
if (validation) {
|
|
28
|
+
return validation;
|
|
29
|
+
}
|
|
30
|
+
validation = validateEmpty(password);
|
|
31
|
+
if (validation) {
|
|
32
|
+
return validation;
|
|
33
|
+
}
|
|
34
|
+
return validateMinLength(password, 6, 'Password');
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=Validators.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Validators.js","sourceRoot":"","sources":["../../src/helpers/Validators.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GACrB,wJAAwJ,CAAA;AAE1J,MAAM,CAAC,MAAM,aAAa,GAAG,CAC3B,KAAuB,EACvB,OAAgB,EACR,EAAE;IACV,IAAI,YAAY,GAAG,EAAE,CAAA;IACrB,IAAI,CAAC,KAAK,EAAE;QACV,YAAY,GAAG,OAAO,IAAI,UAAU,CAAA;KACrC;IACD,OAAO,YAAY,CAAA;AACrB,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAC/B,KAAa,EACb,SAAiB,EACjB,YAAoB,OAAO,EAC3B,EAAE,CACF,KAAK,CAAC,MAAM,GAAG,SAAS;IACtB,CAAC,CAAC,GAAG,SAAS,sBAAsB,SAAS,aAAa;IAC1D,CAAC,CAAC,EAAE,CAAA;AAER,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAa,EAAE,OAAgB,EAAE,EAAE;IAC/D,IAAI,UAAU,GAAG,EAAE,CAAA;IACnB,IAAI,OAAO,EAAE;QACX,UAAU,GAAG,KAAK,KAAK,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,mBAAmB,CAAA;KAC1D;IACD,IAAI,UAAU,EAAE;QACd,OAAO,UAAU,CAAA;KAClB;IACD,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,oCAAoC,CAAC,CAAC,CAAC,EAAE,CAAA;AAC5E,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,QAAgB,EAAE,OAAe,EAAE,EAAE;IACrE,IAAI,UAAU,GAAG,EAAE,CAAA;IACnB,IAAI,OAAO,EAAE;QACX,UAAU,GAAG,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,sBAAsB,CAAA;KAChE;IACD,IAAI,UAAU,EAAE;QACd,OAAO,UAAU,CAAA;KAClB;IACD,UAAU,GAAG,aAAa,CAAC,QAAQ,CAAC,CAAA;IACpC,IAAI,UAAU,EAAE;QACd,OAAO,UAAU,CAAA;KAClB;IAED,OAAO,iBAAiB,CAAC,QAAQ,EAAE,CAAC,EAAE,UAAU,CAAC,CAAA;AACnD,CAAC,CAAA"}
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BillingInfo, Checkout, MyOrderDetails, PurchaseConfirmation, Tickets } from './containers';
|
|
2
|
+
import { IOnCheckoutSuccess } from './containers/billingInfo/types';
|
|
3
|
+
import { IAddToCartSuccess, ITicketsProps } from './containers/tickets/types';
|
|
4
|
+
export { BillingInfo, Checkout, IAddToCartSuccess, IOnCheckoutSuccess, ITicketsProps, MyOrderDetails, PurchaseConfirmation, Tickets, };
|
|
5
|
+
declare const _default: any;
|
|
6
|
+
export default _default;
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { LogBox, NativeModules } from 'react-native';
|
|
2
|
+
import { BillingInfo, Checkout, MyOrderDetails, PurchaseConfirmation, Tickets, } from './containers';
|
|
3
|
+
LogBox.ignoreAllLogs();
|
|
4
|
+
export { BillingInfo, Checkout, MyOrderDetails, PurchaseConfirmation, Tickets, };
|
|
5
|
+
export default NativeModules.TFCheckoutRNModule;
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAEpD,OAAO,EACL,WAAW,EACX,QAAQ,EACR,cAAc,EACd,oBAAoB,EACpB,OAAO,GACR,MAAM,cAAc,CAAA;AAIrB,MAAM,CAAC,aAAa,EAAE,CAAA;AAEtB,OAAO,EACL,WAAW,EACX,QAAQ,EAIR,cAAc,EACd,oBAAoB,EACpB,OAAO,GACR,CAAA;AAED,eAAe,aAAa,CAAC,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Appearance } from 'react-native';
|
|
2
|
+
const isDark = Appearance.getColorScheme() === 'dark';
|
|
3
|
+
const lightTheme = {
|
|
4
|
+
primary: 'black',
|
|
5
|
+
disabled: 'gray',
|
|
6
|
+
white: 'white',
|
|
7
|
+
black: 'black',
|
|
8
|
+
tint: 'rgba(0,0,0,0.1)',
|
|
9
|
+
transparentBlack: 'rgba(0,0,0,0.5)',
|
|
10
|
+
transparent: 'rgba(0,0,0,0)',
|
|
11
|
+
danger: '#D9534F',
|
|
12
|
+
listBackground: 'rgba(0,0,0,0.1)',
|
|
13
|
+
};
|
|
14
|
+
const darkTheme = {
|
|
15
|
+
primary: 'white',
|
|
16
|
+
disabled: 'gray',
|
|
17
|
+
white: 'black',
|
|
18
|
+
black: 'white',
|
|
19
|
+
tint: 'rgba(100,100,100,0.7)',
|
|
20
|
+
transparentBlack: 'rgba(0,0,0,0.5)',
|
|
21
|
+
transparent: 'rgba(0,0,0,0)',
|
|
22
|
+
danger: '#D9534F',
|
|
23
|
+
listBackground: 'rgba(0,0,0,0.1)',
|
|
24
|
+
};
|
|
25
|
+
const currentTheme = isDark ? darkTheme : lightTheme;
|
|
26
|
+
export default currentTheme;
|
|
27
|
+
//# sourceMappingURL=colors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colors.js","sourceRoot":"","sources":["../../src/res/colors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,MAAM,MAAM,GAAG,UAAU,CAAC,cAAc,EAAE,KAAK,MAAM,CAAA;AAErD,MAAM,UAAU,GAAG;IACjB,OAAO,EAAE,OAAO;IAChB,QAAQ,EAAE,MAAM;IAChB,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,iBAAiB;IACvB,gBAAgB,EAAE,iBAAiB;IACnC,WAAW,EAAE,eAAe;IAC5B,MAAM,EAAE,SAAS;IACjB,cAAc,EAAE,iBAAiB;CAClC,CAAA;AAED,MAAM,SAAS,GAAG;IAChB,OAAO,EAAE,OAAO;IAChB,QAAQ,EAAE,MAAM;IAChB,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,uBAAuB;IAC7B,gBAAgB,EAAE,iBAAiB;IACnC,WAAW,EAAE,eAAe;IAC5B,MAAM,EAAE,SAAS;IACjB,cAAc,EAAE,iBAAiB;CAClC,CAAA;AAED,MAAM,YAAY,GAAG,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,CAAA;AAEpD,eAAe,YAAY,CAAA"}
|
package/lib/res/icons.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.js","sourceRoot":"","sources":["../../src/res/icons.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,QAAQ,EAAE,OAAO,CAAC,iCAAiC,CAAC;IACpD,KAAK,EAAE,OAAO,CAAC,8BAA8B,CAAC;IAC9C,IAAI,EAAE,OAAO,CAAC,6BAA6B,CAAC;IAC5C,IAAI,EAAE,OAAO,CAAC,6BAA6B,CAAC;CAC7C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"images.js","sourceRoot":"","sources":["../../src/res/images.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,KAAK,EAAE,OAAO,CAAC,4BAA4B,CAAC;CAC7C,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
declare const R: {
|
|
2
|
+
icons: {
|
|
3
|
+
dropdown: any;
|
|
4
|
+
check: any;
|
|
5
|
+
copy: any;
|
|
6
|
+
next: any;
|
|
7
|
+
};
|
|
8
|
+
colors: {
|
|
9
|
+
primary: string;
|
|
10
|
+
disabled: string;
|
|
11
|
+
white: string;
|
|
12
|
+
black: string;
|
|
13
|
+
tint: string;
|
|
14
|
+
transparentBlack: string;
|
|
15
|
+
transparent: string;
|
|
16
|
+
danger: string;
|
|
17
|
+
listBackground: string;
|
|
18
|
+
};
|
|
19
|
+
images: {
|
|
20
|
+
brand: any;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export default R;
|
package/lib/res/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/res/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAA;AAC7B,OAAO,KAAK,MAAM,SAAS,CAAA;AAC3B,OAAO,MAAM,MAAM,UAAU,CAAA;AAE7B,MAAM,CAAC,GAAG;IACR,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE,MAAM;IACd,MAAM,EAAE,MAAM;CACf,CAAA;AAED,eAAe,CAAC,CAAA"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export interface IEvent {
|
|
2
|
+
passwordProtected: boolean;
|
|
3
|
+
passwordAuthenticated: boolean;
|
|
4
|
+
name: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
slug: string;
|
|
7
|
+
redirectUrl?: string;
|
|
8
|
+
facebookEvent?: string;
|
|
9
|
+
title: string;
|
|
10
|
+
relatedProducts: [];
|
|
11
|
+
country: string;
|
|
12
|
+
date: string;
|
|
13
|
+
startDate: string;
|
|
14
|
+
endDate: string;
|
|
15
|
+
timezone: string;
|
|
16
|
+
formattedDate: string;
|
|
17
|
+
venueCountry: string;
|
|
18
|
+
venueCity?: string;
|
|
19
|
+
venueState?: string;
|
|
20
|
+
hideVenueUntil?: string;
|
|
21
|
+
hideVenue?: boolean;
|
|
22
|
+
venueName?: string;
|
|
23
|
+
venueGooglePlaceId?: string;
|
|
24
|
+
venueLatitude?: string;
|
|
25
|
+
venueLongitude?: string;
|
|
26
|
+
venuePostalCode?: string;
|
|
27
|
+
venueStreet?: string;
|
|
28
|
+
venueStreetNumber?: string;
|
|
29
|
+
eventType: any;
|
|
30
|
+
productImage: string;
|
|
31
|
+
imageUrl: string;
|
|
32
|
+
imageUrlHd: string;
|
|
33
|
+
backgroundImage: string;
|
|
34
|
+
backgroundVideo?: string;
|
|
35
|
+
twitterImage?: string;
|
|
36
|
+
ogImage?: string;
|
|
37
|
+
tags: [];
|
|
38
|
+
preregEnabled: boolean;
|
|
39
|
+
presalesStarted: boolean;
|
|
40
|
+
presalesEnded: boolean;
|
|
41
|
+
salesStart?: string;
|
|
42
|
+
salesEnd: string;
|
|
43
|
+
salesStarted: boolean;
|
|
44
|
+
salesEnded: boolean;
|
|
45
|
+
feeMode: string;
|
|
46
|
+
feesIncluded?: any;
|
|
47
|
+
minimumAge?: any;
|
|
48
|
+
enableWaitingList: boolean;
|
|
49
|
+
alwaysShowWaitingList?: any;
|
|
50
|
+
titleReplacementImage?: any;
|
|
51
|
+
titleReplacementHeight?: any;
|
|
52
|
+
titleReplacementImageSvg?: any;
|
|
53
|
+
fullTitleReplacement?: any;
|
|
54
|
+
affirmAllowed: boolean;
|
|
55
|
+
subHeading?: any;
|
|
56
|
+
isTimeSlotEvent: boolean;
|
|
57
|
+
preregistered: [];
|
|
58
|
+
referralsEnabled: boolean;
|
|
59
|
+
referrals: [];
|
|
60
|
+
faq: [];
|
|
61
|
+
l10nLanguages: [];
|
|
62
|
+
imageURLs: any;
|
|
63
|
+
descriptions: any;
|
|
64
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IEvent.js","sourceRoot":"","sources":["../../src/types/IEvent.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { IDropdownItem } from '../components/dropdown/types';
|
|
2
|
+
export interface ITicket {
|
|
3
|
+
sortOrder: number;
|
|
4
|
+
displayTicket?: boolean;
|
|
5
|
+
salesEnded: boolean;
|
|
6
|
+
salesStarted: boolean;
|
|
7
|
+
id: string;
|
|
8
|
+
displayName: string;
|
|
9
|
+
optionName: string;
|
|
10
|
+
optionValue: string;
|
|
11
|
+
isTable: string;
|
|
12
|
+
feeIncluded: boolean;
|
|
13
|
+
price: number;
|
|
14
|
+
basePrice: number;
|
|
15
|
+
chosen: number;
|
|
16
|
+
priceCurrency: string;
|
|
17
|
+
priceSymbol: string;
|
|
18
|
+
taxesIncluded: boolean;
|
|
19
|
+
taxName: string;
|
|
20
|
+
minQuantity: number;
|
|
21
|
+
maxQuantity: number;
|
|
22
|
+
multiplier: number;
|
|
23
|
+
tags: [];
|
|
24
|
+
allowMultiplePurchases: number;
|
|
25
|
+
priceReplacementText: string;
|
|
26
|
+
waitingListEnabled: boolean;
|
|
27
|
+
soldOut?: boolean;
|
|
28
|
+
soldOutMessage: string;
|
|
29
|
+
minGuests?: number;
|
|
30
|
+
maxGuests?: number;
|
|
31
|
+
buyButtonText?: string;
|
|
32
|
+
totalStock: number;
|
|
33
|
+
guestPrice?: number;
|
|
34
|
+
alwaysAvailable: string;
|
|
35
|
+
feeText: string;
|
|
36
|
+
x_face_value: number;
|
|
37
|
+
sold_out?: boolean;
|
|
38
|
+
oldPrice?: number;
|
|
39
|
+
oldBasePrice?: number;
|
|
40
|
+
descriptionRich?: string;
|
|
41
|
+
}
|
|
42
|
+
export interface ISelectedTicket extends ITicket {
|
|
43
|
+
selectedOption?: IDropdownItem;
|
|
44
|
+
}
|