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.
Files changed (285) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +168 -0
  3. package/android/build.gradle +42 -0
  4. package/android/src/main/AndroidManifest.xml +2 -0
  5. package/android/src/main/java/com/theticketfairy/tfcheckoutreactnative/TFCheckoutRNModule.kt +13 -0
  6. package/android/src/main/java/com/theticketfairy/tfcheckoutreactnative/TFCheckoutRNPackage.kt +19 -0
  7. package/ios/TFCheckoutRNModule-Bridging-Header.h +5 -0
  8. package/ios/TFCheckoutRNModule.m +11 -0
  9. package/ios/TFCheckoutRNModule.swift +21 -0
  10. package/ios/TFCheckoutRNModule.xcodeproj/project.pbxproj +314 -0
  11. package/lib/api/ApiClient.d.ts +62 -0
  12. package/lib/api/ApiClient.js +490 -0
  13. package/lib/api/ApiClient.js.map +1 -0
  14. package/lib/api/Constants.d.ts +7 -0
  15. package/lib/api/Constants.js +7 -0
  16. package/lib/api/Constants.js.map +1 -0
  17. package/lib/api/types.d.ts +164 -0
  18. package/lib/api/types.js +3 -0
  19. package/lib/api/types.js.map +1 -0
  20. package/lib/components/button/Button.d.ts +3 -0
  21. package/lib/components/button/Button.js +13 -0
  22. package/lib/components/button/Button.js.map +1 -0
  23. package/lib/components/button/styles.d.ts +27 -0
  24. package/lib/components/button/styles.js +29 -0
  25. package/lib/components/button/styles.js.map +1 -0
  26. package/lib/components/button/types.d.ts +14 -0
  27. package/lib/components/button/types.js +2 -0
  28. package/lib/components/button/types.js.map +1 -0
  29. package/lib/components/checkbox/Checkbox.d.ts +3 -0
  30. package/lib/components/checkbox/Checkbox.js +14 -0
  31. package/lib/components/checkbox/Checkbox.js.map +1 -0
  32. package/lib/components/checkbox/styles.d.ts +38 -0
  33. package/lib/components/checkbox/styles.js +40 -0
  34. package/lib/components/checkbox/styles.js.map +1 -0
  35. package/lib/components/checkbox/types.d.ts +18 -0
  36. package/lib/components/checkbox/types.js +2 -0
  37. package/lib/components/checkbox/types.js.map +1 -0
  38. package/lib/components/datePicker/DatePicker.d.ts +3 -0
  39. package/lib/components/datePicker/DatePicker.js +30 -0
  40. package/lib/components/datePicker/DatePicker.js.map +1 -0
  41. package/lib/components/datePicker/styles.d.ts +18 -0
  42. package/lib/components/datePicker/styles.js +20 -0
  43. package/lib/components/datePicker/styles.js.map +1 -0
  44. package/lib/components/datePicker/types.d.ts +8 -0
  45. package/lib/components/datePicker/types.js +2 -0
  46. package/lib/components/datePicker/types.js.map +1 -0
  47. package/lib/components/dropdown/Dropdown.d.ts +3 -0
  48. package/lib/components/dropdown/Dropdown.js +40 -0
  49. package/lib/components/dropdown/Dropdown.js.map +1 -0
  50. package/lib/components/dropdown/DropdownListItem.d.ts +3 -0
  51. package/lib/components/dropdown/DropdownListItem.js +12 -0
  52. package/lib/components/dropdown/DropdownListItem.js.map +1 -0
  53. package/lib/components/dropdown/styles.d.ts +72 -0
  54. package/lib/components/dropdown/styles.js +75 -0
  55. package/lib/components/dropdown/styles.js.map +1 -0
  56. package/lib/components/dropdown/types.d.ts +24 -0
  57. package/lib/components/dropdown/types.js +2 -0
  58. package/lib/components/dropdown/types.js.map +1 -0
  59. package/lib/components/formField/FormField.d.ts +3 -0
  60. package/lib/components/formField/FormField.js +35 -0
  61. package/lib/components/formField/FormField.js.map +1 -0
  62. package/lib/components/formField/styles.d.ts +34 -0
  63. package/lib/components/formField/styles.js +36 -0
  64. package/lib/components/formField/styles.js.map +1 -0
  65. package/lib/components/formField/types.d.ts +34 -0
  66. package/lib/components/formField/types.js +2 -0
  67. package/lib/components/formField/types.js.map +1 -0
  68. package/lib/components/index.d.ts +12 -0
  69. package/lib/components/index.js +13 -0
  70. package/lib/components/index.js.map +1 -0
  71. package/lib/components/input/Input.d.ts +3 -0
  72. package/lib/components/input/Input.js +13 -0
  73. package/lib/components/input/Input.js.map +1 -0
  74. package/lib/components/input/styles.d.ts +41 -0
  75. package/lib/components/input/styles.js +46 -0
  76. package/lib/components/input/styles.js.map +1 -0
  77. package/lib/components/input/types.d.ts +22 -0
  78. package/lib/components/input/types.js +2 -0
  79. package/lib/components/input/types.js.map +1 -0
  80. package/lib/components/loading/Loading.d.ts +3 -0
  81. package/lib/components/loading/Loading.js +14 -0
  82. package/lib/components/loading/Loading.js.map +1 -0
  83. package/lib/components/loading/styles.d.ts +29 -0
  84. package/lib/components/loading/styles.js +31 -0
  85. package/lib/components/loading/styles.js.map +1 -0
  86. package/lib/components/loading/types.d.ts +14 -0
  87. package/lib/components/loading/types.js +2 -0
  88. package/lib/components/loading/types.js.map +1 -0
  89. package/lib/components/loggedIn/LoggedIn.d.ts +4 -0
  90. package/lib/components/loggedIn/LoggedIn.js +21 -0
  91. package/lib/components/loggedIn/LoggedIn.js.map +1 -0
  92. package/lib/components/loggedIn/styles.d.ts +8 -0
  93. package/lib/components/loggedIn/styles.js +9 -0
  94. package/lib/components/loggedIn/styles.js.map +1 -0
  95. package/lib/components/loggedIn/types.d.ts +11 -0
  96. package/lib/components/loggedIn/types.js +2 -0
  97. package/lib/components/loggedIn/types.js.map +1 -0
  98. package/lib/components/login/Login.d.ts +3 -0
  99. package/lib/components/login/Login.js +68 -0
  100. package/lib/components/login/Login.js.map +1 -0
  101. package/lib/components/login/LoginView.d.ts +3 -0
  102. package/lib/components/login/LoginView.js +121 -0
  103. package/lib/components/login/LoginView.js.map +1 -0
  104. package/lib/components/login/styles.d.ts +50 -0
  105. package/lib/components/login/styles.js +52 -0
  106. package/lib/components/login/styles.js.map +1 -0
  107. package/lib/components/login/types.d.ts +63 -0
  108. package/lib/components/login/types.js +2 -0
  109. package/lib/components/login/types.js.map +1 -0
  110. package/lib/components/promoCode/PromoCode.d.ts +3 -0
  111. package/lib/components/promoCode/PromoCode.js +66 -0
  112. package/lib/components/promoCode/PromoCode.js.map +1 -0
  113. package/lib/components/promoCode/styles.d.ts +56 -0
  114. package/lib/components/promoCode/styles.js +58 -0
  115. package/lib/components/promoCode/styles.js.map +1 -0
  116. package/lib/components/promoCode/types.d.ts +33 -0
  117. package/lib/components/promoCode/types.js +2 -0
  118. package/lib/components/promoCode/types.js.map +1 -0
  119. package/lib/components/separator/Separator.d.ts +3 -0
  120. package/lib/components/separator/Separator.js +13 -0
  121. package/lib/components/separator/Separator.js.map +1 -0
  122. package/lib/components/separator/types.d.ts +8 -0
  123. package/lib/components/separator/types.js +2 -0
  124. package/lib/components/separator/types.js.map +1 -0
  125. package/lib/components/waitingList/WaitingList.d.ts +3 -0
  126. package/lib/components/waitingList/WaitingList.js +51 -0
  127. package/lib/components/waitingList/WaitingList.js.map +1 -0
  128. package/lib/components/waitingList/WaitingListView.d.ts +3 -0
  129. package/lib/components/waitingList/WaitingListView.js +19 -0
  130. package/lib/components/waitingList/WaitingListView.js.map +1 -0
  131. package/lib/components/waitingList/styles.d.ts +8 -0
  132. package/lib/components/waitingList/styles.js +9 -0
  133. package/lib/components/waitingList/styles.js.map +1 -0
  134. package/lib/components/waitingList/types.d.ts +49 -0
  135. package/lib/components/waitingList/types.js +2 -0
  136. package/lib/components/waitingList/types.js.map +1 -0
  137. package/lib/containers/billingInfo/BillingInfo.d.ts +3 -0
  138. package/lib/containers/billingInfo/BillingInfo.js +627 -0
  139. package/lib/containers/billingInfo/BillingInfo.js.map +1 -0
  140. package/lib/containers/billingInfo/BillingInfoData.d.ts +6 -0
  141. package/lib/containers/billingInfo/BillingInfoData.js +79 -0
  142. package/lib/containers/billingInfo/BillingInfoData.js.map +1 -0
  143. package/lib/containers/billingInfo/BillingInfoView.d.ts +3 -0
  144. package/lib/containers/billingInfo/BillingInfoView.js +23 -0
  145. package/lib/containers/billingInfo/BillingInfoView.js.map +1 -0
  146. package/lib/containers/billingInfo/styles.d.ts +20 -0
  147. package/lib/containers/billingInfo/styles.js +21 -0
  148. package/lib/containers/billingInfo/styles.js.map +1 -0
  149. package/lib/containers/billingInfo/types.d.ts +103 -0
  150. package/lib/containers/billingInfo/types.js +2 -0
  151. package/lib/containers/billingInfo/types.js.map +1 -0
  152. package/lib/containers/checkout/Checkout.d.ts +3 -0
  153. package/lib/containers/checkout/Checkout.js +162 -0
  154. package/lib/containers/checkout/Checkout.js.map +1 -0
  155. package/lib/containers/checkout/CheckoutData.d.ts +2 -0
  156. package/lib/containers/checkout/CheckoutData.js +28 -0
  157. package/lib/containers/checkout/CheckoutData.js.map +1 -0
  158. package/lib/containers/checkout/CheckoutView.d.ts +3 -0
  159. package/lib/containers/checkout/CheckoutView.js +34 -0
  160. package/lib/containers/checkout/CheckoutView.js.map +1 -0
  161. package/lib/containers/checkout/components/Conditions.d.ts +3 -0
  162. package/lib/containers/checkout/components/Conditions.js +11 -0
  163. package/lib/containers/checkout/components/Conditions.js.map +1 -0
  164. package/lib/containers/checkout/components/OrderReview.d.ts +3 -0
  165. package/lib/containers/checkout/components/OrderReview.js +10 -0
  166. package/lib/containers/checkout/components/OrderReview.js.map +1 -0
  167. package/lib/containers/checkout/components/styles.d.ts +25 -0
  168. package/lib/containers/checkout/components/styles.js +27 -0
  169. package/lib/containers/checkout/components/styles.js.map +1 -0
  170. package/lib/containers/checkout/styles.d.ts +29 -0
  171. package/lib/containers/checkout/styles.js +31 -0
  172. package/lib/containers/checkout/styles.js.map +1 -0
  173. package/lib/containers/checkout/types.d.ts +41 -0
  174. package/lib/containers/checkout/types.js +2 -0
  175. package/lib/containers/checkout/types.js.map +1 -0
  176. package/lib/containers/index.d.ts +6 -0
  177. package/lib/containers/index.js +7 -0
  178. package/lib/containers/index.js.map +1 -0
  179. package/lib/containers/myOrderDetails/MyOrderDetails.d.ts +4 -0
  180. package/lib/containers/myOrderDetails/MyOrderDetails.js +11 -0
  181. package/lib/containers/myOrderDetails/MyOrderDetails.js.map +1 -0
  182. package/lib/containers/myOrderDetails/MyOrderDetailsView.d.ts +4 -0
  183. package/lib/containers/myOrderDetails/MyOrderDetailsView.js +60 -0
  184. package/lib/containers/myOrderDetails/MyOrderDetailsView.js.map +1 -0
  185. package/lib/containers/myOrderDetails/styles.d.ts +0 -0
  186. package/lib/containers/myOrderDetails/styles.js +2 -0
  187. package/lib/containers/myOrderDetails/styles.js.map +1 -0
  188. package/lib/containers/myOrderDetails/types.d.ts +11 -0
  189. package/lib/containers/myOrderDetails/types.js +2 -0
  190. package/lib/containers/myOrderDetails/types.js.map +1 -0
  191. package/lib/containers/myOrders/MyOrders.d.ts +9 -0
  192. package/lib/containers/myOrders/MyOrders.js +62 -0
  193. package/lib/containers/myOrders/MyOrders.js.map +1 -0
  194. package/lib/containers/myOrders/MyOrdersView.d.ts +3 -0
  195. package/lib/containers/myOrders/MyOrdersView.js +30 -0
  196. package/lib/containers/myOrders/MyOrdersView.js.map +1 -0
  197. package/lib/containers/myOrders/components/OrderListItem.d.ts +4 -0
  198. package/lib/containers/myOrders/components/OrderListItem.js +29 -0
  199. package/lib/containers/myOrders/components/OrderListItem.js.map +1 -0
  200. package/lib/containers/myOrders/components/styles.d.ts +51 -0
  201. package/lib/containers/myOrders/components/styles.js +50 -0
  202. package/lib/containers/myOrders/components/styles.js.map +1 -0
  203. package/lib/containers/myOrders/components/types.d.ts +25 -0
  204. package/lib/containers/myOrders/components/types.js +2 -0
  205. package/lib/containers/myOrders/components/types.js.map +1 -0
  206. package/lib/containers/myOrders/styles.d.ts +21 -0
  207. package/lib/containers/myOrders/styles.js +23 -0
  208. package/lib/containers/myOrders/styles.js.map +1 -0
  209. package/lib/containers/myOrders/types.d.ts +27 -0
  210. package/lib/containers/myOrders/types.js +2 -0
  211. package/lib/containers/myOrders/types.js.map +1 -0
  212. package/lib/containers/purchaseConfirmation/PurchaseConfirmation.d.ts +3 -0
  213. package/lib/containers/purchaseConfirmation/PurchaseConfirmation.js +17 -0
  214. package/lib/containers/purchaseConfirmation/PurchaseConfirmation.js.map +1 -0
  215. package/lib/containers/purchaseConfirmation/PurchaseConfirmationView.d.ts +3 -0
  216. package/lib/containers/purchaseConfirmation/PurchaseConfirmationView.js +15 -0
  217. package/lib/containers/purchaseConfirmation/PurchaseConfirmationView.js.map +1 -0
  218. package/lib/containers/purchaseConfirmation/styles.d.ts +73 -0
  219. package/lib/containers/purchaseConfirmation/styles.js +75 -0
  220. package/lib/containers/purchaseConfirmation/styles.js.map +1 -0
  221. package/lib/containers/purchaseConfirmation/types.d.ts +50 -0
  222. package/lib/containers/purchaseConfirmation/types.js +2 -0
  223. package/lib/containers/purchaseConfirmation/types.js.map +1 -0
  224. package/lib/containers/tickets/Tickets.d.ts +3 -0
  225. package/lib/containers/tickets/Tickets.js +143 -0
  226. package/lib/containers/tickets/Tickets.js.map +1 -0
  227. package/lib/containers/tickets/TicketsView.d.ts +3 -0
  228. package/lib/containers/tickets/TicketsView.js +35 -0
  229. package/lib/containers/tickets/TicketsView.js.map +1 -0
  230. package/lib/containers/tickets/components/TicketListItem.d.ts +3 -0
  231. package/lib/containers/tickets/components/TicketListItem.js +46 -0
  232. package/lib/containers/tickets/components/TicketListItem.js.map +1 -0
  233. package/lib/containers/tickets/components/styles.d.ts +50 -0
  234. package/lib/containers/tickets/components/styles.js +53 -0
  235. package/lib/containers/tickets/components/styles.js.map +1 -0
  236. package/lib/containers/tickets/components/types.d.ts +25 -0
  237. package/lib/containers/tickets/components/types.js +2 -0
  238. package/lib/containers/tickets/components/types.js.map +1 -0
  239. package/lib/containers/tickets/styles.d.ts +19 -0
  240. package/lib/containers/tickets/styles.js +21 -0
  241. package/lib/containers/tickets/styles.js.map +1 -0
  242. package/lib/containers/tickets/types.d.ts +69 -0
  243. package/lib/containers/tickets/types.js +2 -0
  244. package/lib/containers/tickets/types.js.map +1 -0
  245. package/lib/helpers/Debounced.d.ts +1 -0
  246. package/lib/helpers/Debounced.js +24 -0
  247. package/lib/helpers/Debounced.js.map +1 -0
  248. package/lib/helpers/LocalStorage.d.ts +16 -0
  249. package/lib/helpers/LocalStorage.js +58 -0
  250. package/lib/helpers/LocalStorage.js.map +1 -0
  251. package/lib/helpers/StringsHelper.d.ts +1 -0
  252. package/lib/helpers/StringsHelper.js +7 -0
  253. package/lib/helpers/StringsHelper.js.map +1 -0
  254. package/lib/helpers/Validators.d.ts +5 -0
  255. package/lib/helpers/Validators.js +36 -0
  256. package/lib/helpers/Validators.js.map +1 -0
  257. package/lib/index.d.ts +6 -0
  258. package/lib/index.js +6 -0
  259. package/lib/index.js.map +1 -0
  260. package/lib/res/colors.d.ts +12 -0
  261. package/lib/res/colors.js +27 -0
  262. package/lib/res/colors.js.map +1 -0
  263. package/lib/res/icons.d.ts +7 -0
  264. package/lib/res/icons.js +7 -0
  265. package/lib/res/icons.js.map +1 -0
  266. package/lib/res/images.d.ts +4 -0
  267. package/lib/res/images.js +4 -0
  268. package/lib/res/images.js.map +1 -0
  269. package/lib/res/index.d.ts +23 -0
  270. package/lib/res/index.js +10 -0
  271. package/lib/res/index.js.map +1 -0
  272. package/lib/types/IEvent.d.ts +64 -0
  273. package/lib/types/IEvent.js +2 -0
  274. package/lib/types/IEvent.js.map +1 -0
  275. package/lib/types/ITicket.d.ts +44 -0
  276. package/lib/types/ITicket.js +2 -0
  277. package/lib/types/ITicket.js.map +1 -0
  278. package/lib/types/IUserProfile.d.ts +24 -0
  279. package/lib/types/IUserProfile.js +2 -0
  280. package/lib/types/IUserProfile.js.map +1 -0
  281. package/lib/types/index.d.ts +3 -0
  282. package/lib/types/index.js +4 -0
  283. package/lib/types/index.js.map +1 -0
  284. package/package.json +80 -0
  285. 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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/promoCode/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import { ISeparatorProps } from './types';
2
+ declare const Separator: ({ color, height, width, marginLeft, marginVertical, }: ISeparatorProps) => JSX.Element;
3
+ export default Separator;
@@ -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,8 @@
1
+ import { ViewStyle } from 'react-native';
2
+ export interface ISeparatorProps {
3
+ color?: string;
4
+ height?: number;
5
+ width?: ViewStyle['width'];
6
+ marginLeft?: ViewStyle['marginLeft'];
7
+ marginVertical?: ViewStyle['marginVertical'];
8
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/separator/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import { IWaitingListProps } from './types';
2
+ declare const WaitingList: ({ styles, texts, eventId }: IWaitingListProps) => JSX.Element;
3
+ export default WaitingList;
@@ -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,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IACH,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,3 @@
1
+ import { IWaitingListViewProps } from './types';
2
+ declare const WaitingListView: ({ styles, texts, onPressButton, data, isSuccess, isLoading, }: IWaitingListViewProps) => JSX.Element;
3
+ export default WaitingListView;
@@ -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,GAAG,EAAE,CAA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AAC,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,8 @@
1
+ declare const _default: {
2
+ title: {
3
+ fontSize: number;
4
+ fontWeight: "800";
5
+ marginBottom: number;
6
+ };
7
+ };
8
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import { StyleSheet } from 'react-native';
2
+ export default StyleSheet.create({
3
+ title: {
4
+ fontSize: 20,
5
+ fontWeight: '800',
6
+ marginBottom: 24,
7
+ },
8
+ });
9
+ //# sourceMappingURL=styles.js.map
@@ -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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -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;