related-ui-components 1.9.6 → 1.9.8

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 (562) hide show
  1. package/README.md +200 -0
  2. package/lib/commonjs/app.js +161 -0
  3. package/lib/commonjs/app.js.map +1 -0
  4. package/lib/commonjs/assets/components/BannerWithDetails.png +0 -0
  5. package/lib/commonjs/assets/components/DealCard-Horizontal.png +0 -0
  6. package/lib/commonjs/assets/components/DealCard-Vertical.png +0 -0
  7. package/lib/commonjs/assets/components/DealCard-floating.png +0 -0
  8. package/lib/commonjs/assets/components/DealCard-nested.png +0 -0
  9. package/lib/commonjs/assets/components/Filters.png +0 -0
  10. package/lib/commonjs/assets/components/Popup-1.png +0 -0
  11. package/lib/commonjs/assets/components/Popup-2.png +0 -0
  12. package/lib/commonjs/assets/components/Popup-3.png +0 -0
  13. package/lib/commonjs/assets/components/RedemptionOption-Horizontal.png +0 -0
  14. package/lib/commonjs/assets/components/RedemptionOption-Vertical.png +0 -0
  15. package/lib/commonjs/assets/components/SimpleBanner.png +0 -0
  16. package/lib/commonjs/assets/components/SimpleTrendingCard.png +0 -0
  17. package/lib/commonjs/assets/components/SimpleTrendingCardV2.png +0 -0
  18. package/lib/commonjs/assets/components/UnlockRewards-1.png +0 -0
  19. package/lib/commonjs/assets/components/UnlockRewards-2.png +0 -0
  20. package/lib/commonjs/assets/fonts/SpaceMono-Regular.ttf +0 -0
  21. package/lib/commonjs/assets/images/adaptive-icon.png +0 -0
  22. package/lib/commonjs/assets/images/face.jpg +0 -0
  23. package/lib/commonjs/assets/images/favicon.png +0 -0
  24. package/lib/commonjs/assets/images/giftvoucher.jpg +0 -0
  25. package/lib/commonjs/assets/images/icon.png +0 -0
  26. package/lib/commonjs/assets/images/insta.webp +0 -0
  27. package/lib/commonjs/assets/images/muse.jpg +0 -0
  28. package/lib/commonjs/assets/images/namshi-banner.png +0 -0
  29. package/lib/commonjs/assets/images/namshi.webp +0 -0
  30. package/lib/commonjs/assets/images/partial-react-logo.png +0 -0
  31. package/lib/commonjs/assets/images/pb-logo.jpg +0 -0
  32. package/lib/commonjs/assets/images/pb.jpg +0 -0
  33. package/lib/commonjs/assets/images/react-logo.png +0 -0
  34. package/lib/commonjs/assets/images/react-logo@2x.png +0 -0
  35. package/lib/commonjs/assets/images/react-logo@3x.png +0 -0
  36. package/lib/commonjs/assets/images/scratch_foreground.png +0 -0
  37. package/lib/commonjs/assets/images/splash-icon.png +0 -0
  38. package/lib/commonjs/assets/images/upgrade.png +0 -0
  39. package/lib/commonjs/components/Badges/Badge.js +67 -0
  40. package/lib/commonjs/components/Badges/Badge.js.map +1 -0
  41. package/lib/commonjs/components/Badges/README.md +98 -0
  42. package/lib/commonjs/components/Badges/index.js +29 -0
  43. package/lib/commonjs/components/Badges/index.js.map +1 -0
  44. package/lib/commonjs/components/Banner/Banner.js +138 -0
  45. package/lib/commonjs/components/Banner/Banner.js.map +1 -0
  46. package/lib/commonjs/components/Banner/BannerWithDetails.js +120 -0
  47. package/lib/commonjs/components/Banner/BannerWithDetails.js.map +1 -0
  48. package/lib/commonjs/components/Banner/README.md +101 -0
  49. package/lib/commonjs/components/Banner/index.js +48 -0
  50. package/lib/commonjs/components/Banner/index.js.map +1 -0
  51. package/lib/commonjs/components/BrandIcon/BrandIcon.js +115 -0
  52. package/lib/commonjs/components/BrandIcon/BrandIcon.js.map +1 -0
  53. package/lib/commonjs/components/BrandIcon/index.js +29 -0
  54. package/lib/commonjs/components/BrandIcon/index.js.map +1 -0
  55. package/lib/commonjs/components/Button/Button.js +124 -0
  56. package/lib/commonjs/components/Button/Button.js.map +1 -0
  57. package/lib/commonjs/components/Button/index.js +29 -0
  58. package/lib/commonjs/components/Button/index.js.map +1 -0
  59. package/lib/commonjs/components/Card/Card.js +116 -0
  60. package/lib/commonjs/components/Card/Card.js.map +1 -0
  61. package/lib/commonjs/components/Card/CardContent.js +42 -0
  62. package/lib/commonjs/components/Card/CardContent.js.map +1 -0
  63. package/lib/commonjs/components/Card/CardFooter.js +34 -0
  64. package/lib/commonjs/components/Card/CardFooter.js.map +1 -0
  65. package/lib/commonjs/components/Card/CardHeader.js +79 -0
  66. package/lib/commonjs/components/Card/CardHeader.js.map +1 -0
  67. package/lib/commonjs/components/Card/CardImage.js +52 -0
  68. package/lib/commonjs/components/Card/CardImage.js.map +1 -0
  69. package/lib/commonjs/components/Card/index.js +98 -0
  70. package/lib/commonjs/components/Card/index.js.map +1 -0
  71. package/lib/commonjs/components/Card/templates/DealCard.js +194 -0
  72. package/lib/commonjs/components/Card/templates/DealCard.js.map +1 -0
  73. package/lib/commonjs/components/Card/templates/DealCardWithBackgroundImage.js +237 -0
  74. package/lib/commonjs/components/Card/templates/DealCardWithBackgroundImage.js.map +1 -0
  75. package/lib/commonjs/components/Card/templates/README.md +233 -0
  76. package/lib/commonjs/components/Card/templates/SimpleTrendingCard.js +59 -0
  77. package/lib/commonjs/components/Card/templates/SimpleTrendingCard.js.map +1 -0
  78. package/lib/commonjs/components/Card/types.js +6 -0
  79. package/lib/commonjs/components/Card/types.js.map +1 -0
  80. package/lib/commonjs/components/CloseIcon/CloseIcon.js +75 -0
  81. package/lib/commonjs/components/CloseIcon/CloseIcon.js.map +1 -0
  82. package/lib/commonjs/components/CloseIcon/index.js +29 -0
  83. package/lib/commonjs/components/CloseIcon/index.js.map +1 -0
  84. package/lib/commonjs/components/DateRangePicker/DateRangePicker.js +358 -0
  85. package/lib/commonjs/components/DateRangePicker/DateRangePicker.js.map +1 -0
  86. package/lib/commonjs/components/DateRangePicker/index.js +4 -0
  87. package/lib/commonjs/components/DateRangePicker/index.js.map +1 -0
  88. package/lib/commonjs/components/Filters/Filters.js +345 -0
  89. package/lib/commonjs/components/Filters/Filters.js.map +1 -0
  90. package/lib/commonjs/components/Filters/PointsRangeSelector.js +264 -0
  91. package/lib/commonjs/components/Filters/PointsRangeSelector.js.map +1 -0
  92. package/lib/commonjs/components/Filters/README.md +212 -0
  93. package/lib/commonjs/components/Filters/index.js +48 -0
  94. package/lib/commonjs/components/Filters/index.js.map +1 -0
  95. package/lib/commonjs/components/Input/Input.js +161 -0
  96. package/lib/commonjs/components/Input/Input.js.map +1 -0
  97. package/lib/commonjs/components/Input/README.md +128 -0
  98. package/lib/commonjs/components/Input/index.js +29 -0
  99. package/lib/commonjs/components/Input/index.js.map +1 -0
  100. package/lib/commonjs/components/LockOverlay/LockOverlay.js +65 -0
  101. package/lib/commonjs/components/LockOverlay/LockOverlay.js.map +1 -0
  102. package/lib/commonjs/components/LockOverlay/index.js +29 -0
  103. package/lib/commonjs/components/LockOverlay/index.js.map +1 -0
  104. package/lib/commonjs/components/Marquee/Marquee.js +105 -0
  105. package/lib/commonjs/components/Marquee/Marquee.js.map +1 -0
  106. package/lib/commonjs/components/Marquee/index.js +29 -0
  107. package/lib/commonjs/components/Marquee/index.js.map +1 -0
  108. package/lib/commonjs/components/NumericStepper/NumericStepper.js +103 -0
  109. package/lib/commonjs/components/NumericStepper/NumericStepper.js.map +1 -0
  110. package/lib/commonjs/components/NumericStepper/index.js +29 -0
  111. package/lib/commonjs/components/NumericStepper/index.js.map +1 -0
  112. package/lib/commonjs/components/Popup/Popup.js +342 -0
  113. package/lib/commonjs/components/Popup/Popup.js.map +1 -0
  114. package/lib/commonjs/components/Popup/README.md +133 -0
  115. package/lib/commonjs/components/Popup/index.js +29 -0
  116. package/lib/commonjs/components/Popup/index.js.map +1 -0
  117. package/lib/commonjs/components/ProgressBar/ProgressBar.js +125 -0
  118. package/lib/commonjs/components/ProgressBar/ProgressBar.js.map +1 -0
  119. package/lib/commonjs/components/ProgressBar/index.js +29 -0
  120. package/lib/commonjs/components/ProgressBar/index.js.map +1 -0
  121. package/lib/commonjs/components/RedeemedVoucher/RedeemedVoucherSheet.js +459 -0
  122. package/lib/commonjs/components/RedeemedVoucher/RedeemedVoucherSheet.js.map +1 -0
  123. package/lib/commonjs/components/RedeemedVoucher/index.js +29 -0
  124. package/lib/commonjs/components/RedeemedVoucher/index.js.map +1 -0
  125. package/lib/commonjs/components/RedemptionOption/README.md +148 -0
  126. package/lib/commonjs/components/RedemptionOption/RedemptionOption.js +132 -0
  127. package/lib/commonjs/components/RedemptionOption/RedemptionOption.js.map +1 -0
  128. package/lib/commonjs/components/RedemptionOption/index.js +29 -0
  129. package/lib/commonjs/components/RedemptionOption/index.js.map +1 -0
  130. package/lib/commonjs/components/ScratchCard/README.md +119 -0
  131. package/lib/commonjs/components/ScratchCard/ScratchCard.js +222 -0
  132. package/lib/commonjs/components/ScratchCard/ScratchCard.js.map +1 -0
  133. package/lib/commonjs/components/ScratchCard/ScratchCardContent.js +28 -0
  134. package/lib/commonjs/components/ScratchCard/ScratchCardContent.js.map +1 -0
  135. package/lib/commonjs/components/ScratchCard/index.js +48 -0
  136. package/lib/commonjs/components/ScratchCard/index.js.map +1 -0
  137. package/lib/commonjs/components/SelectAmount/SelectAmount.js +189 -0
  138. package/lib/commonjs/components/SelectAmount/SelectAmount.js.map +1 -0
  139. package/lib/commonjs/components/SelectAmount/index.js +4 -0
  140. package/lib/commonjs/components/SelectAmount/index.js.map +1 -0
  141. package/lib/commonjs/components/Skeleton/Shimmer.js +75 -0
  142. package/lib/commonjs/components/Skeleton/Shimmer.js.map +1 -0
  143. package/lib/commonjs/components/Skeleton/SkeletonElement.js +36 -0
  144. package/lib/commonjs/components/Skeleton/SkeletonElement.js.map +1 -0
  145. package/lib/commonjs/components/Skeleton/index.js +48 -0
  146. package/lib/commonjs/components/Skeleton/index.js.map +1 -0
  147. package/lib/commonjs/components/Suggestions/SuggestionList.js +98 -0
  148. package/lib/commonjs/components/Suggestions/SuggestionList.js.map +1 -0
  149. package/lib/commonjs/components/TravelBooking/CarRentalForm.js +370 -0
  150. package/lib/commonjs/components/TravelBooking/CarRentalForm.js.map +1 -0
  151. package/lib/commonjs/components/TravelBooking/FlightForm.js +347 -0
  152. package/lib/commonjs/components/TravelBooking/FlightForm.js.map +1 -0
  153. package/lib/commonjs/components/TravelBooking/FlightSummary.js +257 -0
  154. package/lib/commonjs/components/TravelBooking/FlightSummary.js.map +1 -0
  155. package/lib/commonjs/components/TravelBooking/HotelForm.js +290 -0
  156. package/lib/commonjs/components/TravelBooking/HotelForm.js.map +1 -0
  157. package/lib/commonjs/components/TravelBooking/HotelSummary.js +246 -0
  158. package/lib/commonjs/components/TravelBooking/HotelSummary.js.map +1 -0
  159. package/lib/commonjs/components/TravelBooking/README.md +421 -0
  160. package/lib/commonjs/components/TravelBooking/SummaryBar.js +181 -0
  161. package/lib/commonjs/components/TravelBooking/SummaryBar.js.map +1 -0
  162. package/lib/commonjs/components/TravelBooking/TabSelector.js +115 -0
  163. package/lib/commonjs/components/TravelBooking/TabSelector.js.map +1 -0
  164. package/lib/commonjs/components/TravelBooking/TravelBooking.js +261 -0
  165. package/lib/commonjs/components/TravelBooking/TravelBooking.js.map +1 -0
  166. package/lib/commonjs/components/TravelBooking/index.js +22 -0
  167. package/lib/commonjs/components/TravelBooking/index.js.map +1 -0
  168. package/lib/commonjs/components/TravelBooking/types.js +15 -0
  169. package/lib/commonjs/components/TravelBooking/types.js.map +1 -0
  170. package/lib/commonjs/components/UnlockRewards/README.md +187 -0
  171. package/lib/commonjs/components/UnlockRewards/RewardItem.js +129 -0
  172. package/lib/commonjs/components/UnlockRewards/RewardItem.js.map +1 -0
  173. package/lib/commonjs/components/UnlockRewards/UnlockRewards.js +230 -0
  174. package/lib/commonjs/components/UnlockRewards/UnlockRewards.js.map +1 -0
  175. package/lib/commonjs/components/UnlockRewards/index.js +48 -0
  176. package/lib/commonjs/components/UnlockRewards/index.js.map +1 -0
  177. package/lib/commonjs/components/Wheel/README.md +141 -0
  178. package/lib/commonjs/components/Wheel/Wheel.js +361 -0
  179. package/lib/commonjs/components/Wheel/Wheel.js.map +1 -0
  180. package/lib/commonjs/components/Wheel/index.js +29 -0
  181. package/lib/commonjs/components/Wheel/index.js.map +1 -0
  182. package/lib/commonjs/components/index.js +204 -0
  183. package/lib/commonjs/components/index.js.map +1 -0
  184. package/lib/commonjs/constants/BRANDS.js +58 -0
  185. package/lib/commonjs/constants/BRANDS.js.map +1 -0
  186. package/lib/commonjs/index.js +28 -0
  187. package/lib/commonjs/index.js.map +1 -0
  188. package/lib/commonjs/theme/Colors.js +154 -0
  189. package/lib/commonjs/theme/Colors.js.map +1 -0
  190. package/lib/commonjs/theme/ThemeContext.js +57 -0
  191. package/lib/commonjs/theme/ThemeContext.js.map +1 -0
  192. package/lib/commonjs/theme/index.js +28 -0
  193. package/lib/commonjs/theme/index.js.map +1 -0
  194. package/lib/module/theme/ThemeContext.js +7 -2
  195. package/lib/module/theme/ThemeContext.js.map +1 -1
  196. package/lib/typescript/lib/commonjs/app.d.ts +4 -0
  197. package/lib/typescript/lib/commonjs/app.d.ts.map +1 -0
  198. package/lib/typescript/lib/commonjs/components/Badges/Badge.d.ts +14 -0
  199. package/lib/typescript/lib/commonjs/components/Badges/Badge.d.ts.map +1 -0
  200. package/lib/typescript/lib/commonjs/components/Badges/index.d.ts +3 -0
  201. package/lib/typescript/lib/commonjs/components/Badges/index.d.ts.map +1 -0
  202. package/lib/typescript/lib/commonjs/components/Banner/Banner.d.ts +24 -0
  203. package/lib/typescript/lib/commonjs/components/Banner/Banner.d.ts.map +1 -0
  204. package/lib/typescript/lib/commonjs/components/Banner/BannerWithDetails.d.ts +16 -0
  205. package/lib/typescript/lib/commonjs/components/Banner/BannerWithDetails.d.ts.map +1 -0
  206. package/lib/typescript/lib/commonjs/components/Banner/index.d.ts +4 -0
  207. package/lib/typescript/lib/commonjs/components/Banner/index.d.ts.map +1 -0
  208. package/lib/typescript/lib/commonjs/components/BrandIcon/BrandIcon.d.ts +18 -0
  209. package/lib/typescript/lib/commonjs/components/BrandIcon/BrandIcon.d.ts.map +1 -0
  210. package/lib/typescript/lib/commonjs/components/BrandIcon/index.d.ts +3 -0
  211. package/lib/typescript/lib/commonjs/components/BrandIcon/index.d.ts.map +1 -0
  212. package/lib/typescript/lib/commonjs/components/Button/Button.d.ts +17 -0
  213. package/lib/typescript/lib/commonjs/components/Button/Button.d.ts.map +1 -0
  214. package/lib/typescript/lib/commonjs/components/Button/index.d.ts +3 -0
  215. package/lib/typescript/lib/commonjs/components/Button/index.d.ts.map +1 -0
  216. package/lib/typescript/lib/commonjs/components/Card/Card.d.ts +17 -0
  217. package/lib/typescript/lib/commonjs/components/Card/Card.d.ts.map +1 -0
  218. package/lib/typescript/lib/commonjs/components/Card/CardContent.d.ts +8 -0
  219. package/lib/typescript/lib/commonjs/components/Card/CardContent.d.ts.map +1 -0
  220. package/lib/typescript/lib/commonjs/components/Card/CardFooter.d.ts +9 -0
  221. package/lib/typescript/lib/commonjs/components/Card/CardFooter.d.ts.map +1 -0
  222. package/lib/typescript/lib/commonjs/components/Card/CardHeader.d.ts +14 -0
  223. package/lib/typescript/lib/commonjs/components/Card/CardHeader.d.ts.map +1 -0
  224. package/lib/typescript/lib/commonjs/components/Card/CardImage.d.ts +12 -0
  225. package/lib/typescript/lib/commonjs/components/Card/CardImage.d.ts.map +1 -0
  226. package/lib/typescript/lib/commonjs/components/Card/index.d.ts +10 -0
  227. package/lib/typescript/lib/commonjs/components/Card/index.d.ts.map +1 -0
  228. package/lib/typescript/lib/commonjs/components/Card/templates/DealCard.d.ts +30 -0
  229. package/lib/typescript/lib/commonjs/components/Card/templates/DealCard.d.ts.map +1 -0
  230. package/lib/typescript/lib/commonjs/components/Card/templates/DealCardWithBackgroundImage.d.ts +37 -0
  231. package/lib/typescript/lib/commonjs/components/Card/templates/DealCardWithBackgroundImage.d.ts.map +1 -0
  232. package/lib/typescript/lib/commonjs/components/Card/templates/SimpleTrendingCard.d.ts +12 -0
  233. package/lib/typescript/lib/commonjs/components/Card/templates/SimpleTrendingCard.d.ts.map +1 -0
  234. package/lib/typescript/lib/commonjs/components/Card/types.d.ts +2 -0
  235. package/lib/typescript/lib/commonjs/components/Card/types.d.ts.map +1 -0
  236. package/lib/typescript/lib/commonjs/components/CloseIcon/CloseIcon.d.ts +14 -0
  237. package/lib/typescript/lib/commonjs/components/CloseIcon/CloseIcon.d.ts.map +1 -0
  238. package/lib/typescript/lib/commonjs/components/CloseIcon/index.d.ts +3 -0
  239. package/lib/typescript/lib/commonjs/components/CloseIcon/index.d.ts.map +1 -0
  240. package/lib/typescript/lib/commonjs/components/DateRangePicker/DateRangePicker.d.ts +20 -0
  241. package/lib/typescript/lib/commonjs/components/DateRangePicker/DateRangePicker.d.ts.map +1 -0
  242. package/lib/typescript/lib/commonjs/components/DateRangePicker/index.d.ts.map +1 -0
  243. package/lib/typescript/lib/commonjs/components/Filters/Filters.d.ts +56 -0
  244. package/lib/typescript/lib/commonjs/components/Filters/Filters.d.ts.map +1 -0
  245. package/lib/typescript/lib/commonjs/components/Filters/PointsRangeSelector.d.ts +27 -0
  246. package/lib/typescript/lib/commonjs/components/Filters/PointsRangeSelector.d.ts.map +1 -0
  247. package/lib/typescript/lib/commonjs/components/Filters/index.d.ts +4 -0
  248. package/lib/typescript/lib/commonjs/components/Filters/index.d.ts.map +1 -0
  249. package/lib/typescript/lib/commonjs/components/Input/Input.d.ts +4 -0
  250. package/lib/typescript/lib/commonjs/components/Input/Input.d.ts.map +1 -0
  251. package/lib/typescript/lib/commonjs/components/Input/index.d.ts +3 -0
  252. package/lib/typescript/lib/commonjs/components/Input/index.d.ts.map +1 -0
  253. package/lib/typescript/lib/commonjs/components/LockOverlay/LockOverlay.d.ts +15 -0
  254. package/lib/typescript/lib/commonjs/components/LockOverlay/LockOverlay.d.ts.map +1 -0
  255. package/lib/typescript/lib/commonjs/components/LockOverlay/index.d.ts +3 -0
  256. package/lib/typescript/lib/commonjs/components/LockOverlay/index.d.ts.map +1 -0
  257. package/lib/typescript/lib/commonjs/components/Marquee/Marquee.d.ts +14 -0
  258. package/lib/typescript/lib/commonjs/components/Marquee/Marquee.d.ts.map +1 -0
  259. package/lib/typescript/lib/commonjs/components/Marquee/index.d.ts +3 -0
  260. package/lib/typescript/lib/commonjs/components/Marquee/index.d.ts.map +1 -0
  261. package/lib/typescript/lib/commonjs/components/NumericStepper/NumericStepper.d.ts +16 -0
  262. package/lib/typescript/lib/commonjs/components/NumericStepper/NumericStepper.d.ts.map +1 -0
  263. package/lib/typescript/lib/commonjs/components/NumericStepper/index.d.ts +3 -0
  264. package/lib/typescript/lib/commonjs/components/NumericStepper/index.d.ts.map +1 -0
  265. package/lib/typescript/lib/commonjs/components/Popup/Popup.d.ts +39 -0
  266. package/lib/typescript/lib/commonjs/components/Popup/Popup.d.ts.map +1 -0
  267. package/lib/typescript/lib/commonjs/components/Popup/index.d.ts +3 -0
  268. package/lib/typescript/lib/commonjs/components/Popup/index.d.ts.map +1 -0
  269. package/lib/typescript/lib/commonjs/components/ProgressBar/ProgressBar.d.ts +22 -0
  270. package/lib/typescript/lib/commonjs/components/ProgressBar/ProgressBar.d.ts.map +1 -0
  271. package/lib/typescript/lib/commonjs/components/ProgressBar/index.d.ts +3 -0
  272. package/lib/typescript/lib/commonjs/components/ProgressBar/index.d.ts.map +1 -0
  273. package/lib/typescript/lib/commonjs/components/RedeemedVoucher/RedeemedVoucherSheet.d.ts +4 -0
  274. package/lib/typescript/lib/commonjs/components/RedeemedVoucher/RedeemedVoucherSheet.d.ts.map +1 -0
  275. package/lib/typescript/lib/commonjs/components/RedeemedVoucher/index.d.ts +3 -0
  276. package/lib/typescript/lib/commonjs/components/RedeemedVoucher/index.d.ts.map +1 -0
  277. package/lib/typescript/lib/commonjs/components/RedemptionOption/RedemptionOption.d.ts +23 -0
  278. package/lib/typescript/lib/commonjs/components/RedemptionOption/RedemptionOption.d.ts.map +1 -0
  279. package/lib/typescript/lib/commonjs/components/RedemptionOption/index.d.ts +3 -0
  280. package/lib/typescript/lib/commonjs/components/RedemptionOption/index.d.ts.map +1 -0
  281. package/lib/typescript/lib/commonjs/components/ScratchCard/ScratchCard.d.ts +19 -0
  282. package/lib/typescript/lib/commonjs/components/ScratchCard/ScratchCard.d.ts.map +1 -0
  283. package/lib/typescript/lib/commonjs/components/ScratchCard/ScratchCardContent.d.ts +7 -0
  284. package/lib/typescript/lib/commonjs/components/ScratchCard/ScratchCardContent.d.ts.map +1 -0
  285. package/lib/typescript/lib/commonjs/components/ScratchCard/index.d.ts +4 -0
  286. package/lib/typescript/lib/commonjs/components/ScratchCard/index.d.ts.map +1 -0
  287. package/lib/typescript/lib/commonjs/components/SelectAmount/SelectAmount.d.ts +29 -0
  288. package/lib/typescript/lib/commonjs/components/SelectAmount/SelectAmount.d.ts.map +1 -0
  289. package/lib/typescript/lib/commonjs/components/SelectAmount/index.d.ts.map +1 -0
  290. package/lib/typescript/lib/commonjs/components/Skeleton/Shimmer.d.ts +11 -0
  291. package/lib/typescript/lib/commonjs/components/Skeleton/Shimmer.d.ts.map +1 -0
  292. package/lib/typescript/lib/commonjs/components/Skeleton/SkeletonElement.d.ts +10 -0
  293. package/lib/typescript/lib/commonjs/components/Skeleton/SkeletonElement.d.ts.map +1 -0
  294. package/lib/typescript/lib/commonjs/components/Skeleton/index.d.ts +4 -0
  295. package/lib/typescript/lib/commonjs/components/Skeleton/index.d.ts.map +1 -0
  296. package/lib/typescript/lib/commonjs/components/Suggestions/SuggestionList.d.ts +12 -0
  297. package/lib/typescript/lib/commonjs/components/Suggestions/SuggestionList.d.ts.map +1 -0
  298. package/lib/typescript/lib/commonjs/components/TravelBooking/CarRentalForm.d.ts +52 -0
  299. package/lib/typescript/lib/commonjs/components/TravelBooking/CarRentalForm.d.ts.map +1 -0
  300. package/lib/typescript/lib/commonjs/components/TravelBooking/FlightForm.d.ts +47 -0
  301. package/lib/typescript/lib/commonjs/components/TravelBooking/FlightForm.d.ts.map +1 -0
  302. package/lib/typescript/lib/commonjs/components/TravelBooking/FlightSummary.d.ts +32 -0
  303. package/lib/typescript/lib/commonjs/components/TravelBooking/FlightSummary.d.ts.map +1 -0
  304. package/lib/typescript/lib/commonjs/components/TravelBooking/HotelForm.d.ts +45 -0
  305. package/lib/typescript/lib/commonjs/components/TravelBooking/HotelForm.d.ts.map +1 -0
  306. package/lib/typescript/lib/commonjs/components/TravelBooking/HotelSummary.d.ts +36 -0
  307. package/lib/typescript/lib/commonjs/components/TravelBooking/HotelSummary.d.ts.map +1 -0
  308. package/lib/typescript/lib/commonjs/components/TravelBooking/SummaryBar.d.ts +12 -0
  309. package/lib/typescript/lib/commonjs/components/TravelBooking/SummaryBar.d.ts.map +1 -0
  310. package/lib/typescript/lib/commonjs/components/TravelBooking/TabSelector.d.ts +15 -0
  311. package/lib/typescript/lib/commonjs/components/TravelBooking/TabSelector.d.ts.map +1 -0
  312. package/lib/typescript/lib/commonjs/components/TravelBooking/TravelBooking.d.ts +47 -0
  313. package/lib/typescript/lib/commonjs/components/TravelBooking/TravelBooking.d.ts.map +1 -0
  314. package/lib/typescript/lib/commonjs/components/TravelBooking/index.d.ts.map +1 -0
  315. package/lib/typescript/lib/commonjs/components/TravelBooking/types.d.ts +3 -0
  316. package/lib/typescript/lib/commonjs/components/TravelBooking/types.d.ts.map +1 -0
  317. package/lib/typescript/lib/commonjs/components/UnlockRewards/RewardItem.d.ts +23 -0
  318. package/lib/typescript/lib/commonjs/components/UnlockRewards/RewardItem.d.ts.map +1 -0
  319. package/lib/typescript/lib/commonjs/components/UnlockRewards/UnlockRewards.d.ts +41 -0
  320. package/lib/typescript/lib/commonjs/components/UnlockRewards/UnlockRewards.d.ts.map +1 -0
  321. package/lib/typescript/lib/commonjs/components/UnlockRewards/index.d.ts +4 -0
  322. package/lib/typescript/lib/commonjs/components/UnlockRewards/index.d.ts.map +1 -0
  323. package/lib/typescript/lib/commonjs/components/Wheel/Wheel.d.ts +25 -0
  324. package/lib/typescript/lib/commonjs/components/Wheel/Wheel.d.ts.map +1 -0
  325. package/lib/typescript/lib/commonjs/components/Wheel/index.d.ts +3 -0
  326. package/lib/typescript/lib/commonjs/components/Wheel/index.d.ts.map +1 -0
  327. package/lib/typescript/lib/commonjs/components/index.d.ts +2 -0
  328. package/lib/typescript/lib/commonjs/components/index.d.ts.map +1 -0
  329. package/lib/typescript/lib/commonjs/constants/BRANDS.d.ts +14 -0
  330. package/lib/typescript/lib/commonjs/constants/BRANDS.d.ts.map +1 -0
  331. package/lib/typescript/lib/commonjs/index.d.ts +2 -0
  332. package/lib/typescript/lib/commonjs/index.d.ts.map +1 -0
  333. package/lib/typescript/lib/commonjs/theme/Colors.d.ts +110 -0
  334. package/lib/typescript/lib/commonjs/theme/Colors.d.ts.map +1 -0
  335. package/lib/typescript/lib/commonjs/theme/ThemeContext.d.ts +11 -0
  336. package/lib/typescript/lib/commonjs/theme/ThemeContext.d.ts.map +1 -0
  337. package/lib/typescript/lib/commonjs/theme/index.d.ts +2 -0
  338. package/lib/typescript/lib/commonjs/theme/index.d.ts.map +1 -0
  339. package/lib/typescript/src/app.d.ts.map +1 -0
  340. package/lib/typescript/src/components/Badges/Badge.d.ts.map +1 -0
  341. package/lib/typescript/src/components/Badges/index.d.ts.map +1 -0
  342. package/lib/typescript/src/components/Banner/Banner.d.ts.map +1 -0
  343. package/lib/typescript/src/components/Banner/BannerWithDetails.d.ts.map +1 -0
  344. package/lib/typescript/src/components/Banner/index.d.ts.map +1 -0
  345. package/lib/typescript/src/components/BrandIcon/BrandIcon.d.ts.map +1 -0
  346. package/lib/typescript/src/components/BrandIcon/index.d.ts.map +1 -0
  347. package/lib/typescript/src/components/Button/Button.d.ts.map +1 -0
  348. package/lib/typescript/src/components/Button/index.d.ts.map +1 -0
  349. package/lib/typescript/src/components/Card/Card.d.ts.map +1 -0
  350. package/lib/typescript/src/components/Card/CardContent.d.ts.map +1 -0
  351. package/lib/typescript/src/components/Card/CardFooter.d.ts.map +1 -0
  352. package/lib/typescript/src/components/Card/CardHeader.d.ts.map +1 -0
  353. package/lib/typescript/src/components/Card/CardImage.d.ts.map +1 -0
  354. package/lib/typescript/src/components/Card/index.d.ts.map +1 -0
  355. package/lib/typescript/src/components/Card/templates/DealCard.d.ts.map +1 -0
  356. package/lib/typescript/src/components/Card/templates/DealCardWithBackgroundImage.d.ts.map +1 -0
  357. package/lib/typescript/src/components/Card/templates/SimpleTrendingCard.d.ts.map +1 -0
  358. package/lib/typescript/src/components/Card/types.d.ts.map +1 -0
  359. package/lib/typescript/src/components/CloseIcon/CloseIcon.d.ts.map +1 -0
  360. package/lib/typescript/src/components/CloseIcon/index.d.ts.map +1 -0
  361. package/lib/typescript/src/components/DateRangePicker/DateRangePicker.d.ts.map +1 -0
  362. package/lib/typescript/src/components/DateRangePicker/index.d.ts +2 -0
  363. package/lib/typescript/src/components/DateRangePicker/index.d.ts.map +1 -0
  364. package/lib/typescript/src/components/Filters/Filters.d.ts.map +1 -0
  365. package/lib/typescript/src/components/Filters/PointsRangeSelector.d.ts.map +1 -0
  366. package/lib/typescript/src/components/Filters/index.d.ts.map +1 -0
  367. package/lib/typescript/src/components/Input/Input.d.ts.map +1 -0
  368. package/lib/typescript/src/components/Input/index.d.ts.map +1 -0
  369. package/lib/typescript/src/components/LockOverlay/LockOverlay.d.ts.map +1 -0
  370. package/lib/typescript/src/components/LockOverlay/index.d.ts.map +1 -0
  371. package/lib/typescript/src/components/Marquee/Marquee.d.ts.map +1 -0
  372. package/lib/typescript/src/components/Marquee/index.d.ts.map +1 -0
  373. package/lib/typescript/src/components/NumericStepper/NumericStepper.d.ts.map +1 -0
  374. package/lib/typescript/src/components/NumericStepper/index.d.ts.map +1 -0
  375. package/lib/typescript/src/components/Popup/Popup.d.ts.map +1 -0
  376. package/lib/typescript/src/components/Popup/index.d.ts.map +1 -0
  377. package/lib/typescript/src/components/ProgressBar/ProgressBar.d.ts.map +1 -0
  378. package/lib/typescript/src/components/ProgressBar/index.d.ts.map +1 -0
  379. package/lib/typescript/src/components/RedeemedVoucher/RedeemedVoucherSheet.d.ts.map +1 -0
  380. package/lib/typescript/src/components/RedeemedVoucher/index.d.ts.map +1 -0
  381. package/lib/typescript/src/components/RedemptionOption/RedemptionOption.d.ts.map +1 -0
  382. package/lib/typescript/src/components/RedemptionOption/index.d.ts.map +1 -0
  383. package/lib/typescript/src/components/ScratchCard/ScratchCard.d.ts.map +1 -0
  384. package/lib/typescript/src/components/ScratchCard/ScratchCardContent.d.ts.map +1 -0
  385. package/lib/typescript/src/components/ScratchCard/index.d.ts.map +1 -0
  386. package/lib/typescript/src/components/SelectAmount/SelectAmount.d.ts.map +1 -0
  387. package/lib/typescript/src/components/SelectAmount/index.d.ts +2 -0
  388. package/lib/typescript/src/components/SelectAmount/index.d.ts.map +1 -0
  389. package/lib/typescript/src/components/Skeleton/Shimmer.d.ts.map +1 -0
  390. package/lib/typescript/src/components/Skeleton/SkeletonElement.d.ts.map +1 -0
  391. package/lib/typescript/src/components/Skeleton/index.d.ts.map +1 -0
  392. package/lib/typescript/src/components/Suggestions/SuggestionList.d.ts.map +1 -0
  393. package/lib/typescript/src/components/TravelBooking/CarRentalForm.d.ts.map +1 -0
  394. package/lib/typescript/src/components/TravelBooking/FlightForm.d.ts.map +1 -0
  395. package/lib/typescript/src/components/TravelBooking/FlightSummary.d.ts.map +1 -0
  396. package/lib/typescript/src/components/TravelBooking/HotelForm.d.ts.map +1 -0
  397. package/lib/typescript/src/components/TravelBooking/HotelSummary.d.ts.map +1 -0
  398. package/lib/typescript/src/components/TravelBooking/SummaryBar.d.ts.map +1 -0
  399. package/lib/typescript/src/components/TravelBooking/TabSelector.d.ts.map +1 -0
  400. package/lib/typescript/src/components/TravelBooking/TravelBooking.d.ts.map +1 -0
  401. package/lib/typescript/src/components/TravelBooking/index.d.ts +2 -0
  402. package/lib/typescript/src/components/TravelBooking/index.d.ts.map +1 -0
  403. package/lib/typescript/src/components/TravelBooking/types.d.ts.map +1 -0
  404. package/lib/typescript/src/components/UnlockRewards/RewardItem.d.ts.map +1 -0
  405. package/lib/typescript/src/components/UnlockRewards/UnlockRewards.d.ts.map +1 -0
  406. package/lib/typescript/src/components/UnlockRewards/index.d.ts.map +1 -0
  407. package/lib/typescript/src/components/Wheel/Wheel.d.ts.map +1 -0
  408. package/lib/typescript/src/components/Wheel/index.d.ts.map +1 -0
  409. package/lib/typescript/src/components/index.d.ts.map +1 -0
  410. package/lib/typescript/src/constants/BRANDS.d.ts.map +1 -0
  411. package/lib/typescript/src/index.d.ts.map +1 -0
  412. package/lib/typescript/src/theme/Colors.d.ts.map +1 -0
  413. package/lib/typescript/{theme → src/theme}/ThemeContext.d.ts +2 -0
  414. package/lib/typescript/src/theme/ThemeContext.d.ts.map +1 -0
  415. package/lib/typescript/src/theme/index.d.ts.map +1 -0
  416. package/package.json +3 -3
  417. package/src/theme/ThemeContext.tsx +8 -0
  418. package/lib/typescript/app.d.ts.map +0 -1
  419. package/lib/typescript/components/Badges/Badge.d.ts.map +0 -1
  420. package/lib/typescript/components/Badges/index.d.ts.map +0 -1
  421. package/lib/typescript/components/Banner/Banner.d.ts.map +0 -1
  422. package/lib/typescript/components/Banner/BannerWithDetails.d.ts.map +0 -1
  423. package/lib/typescript/components/Banner/index.d.ts.map +0 -1
  424. package/lib/typescript/components/BrandIcon/BrandIcon.d.ts.map +0 -1
  425. package/lib/typescript/components/BrandIcon/index.d.ts.map +0 -1
  426. package/lib/typescript/components/Button/Button.d.ts.map +0 -1
  427. package/lib/typescript/components/Button/index.d.ts.map +0 -1
  428. package/lib/typescript/components/Card/Card.d.ts.map +0 -1
  429. package/lib/typescript/components/Card/CardContent.d.ts.map +0 -1
  430. package/lib/typescript/components/Card/CardFooter.d.ts.map +0 -1
  431. package/lib/typescript/components/Card/CardHeader.d.ts.map +0 -1
  432. package/lib/typescript/components/Card/CardImage.d.ts.map +0 -1
  433. package/lib/typescript/components/Card/index.d.ts.map +0 -1
  434. package/lib/typescript/components/Card/templates/DealCard.d.ts.map +0 -1
  435. package/lib/typescript/components/Card/templates/DealCardWithBackgroundImage.d.ts.map +0 -1
  436. package/lib/typescript/components/Card/templates/SimpleTrendingCard.d.ts.map +0 -1
  437. package/lib/typescript/components/Card/types.d.ts.map +0 -1
  438. package/lib/typescript/components/CloseIcon/CloseIcon.d.ts.map +0 -1
  439. package/lib/typescript/components/CloseIcon/index.d.ts.map +0 -1
  440. package/lib/typescript/components/DateRangePicker/DateRangePicker.d.ts.map +0 -1
  441. package/lib/typescript/components/DateRangePicker/index.d.ts.map +0 -1
  442. package/lib/typescript/components/Filters/Filters.d.ts.map +0 -1
  443. package/lib/typescript/components/Filters/PointsRangeSelector.d.ts.map +0 -1
  444. package/lib/typescript/components/Filters/index.d.ts.map +0 -1
  445. package/lib/typescript/components/Input/Input.d.ts.map +0 -1
  446. package/lib/typescript/components/Input/index.d.ts.map +0 -1
  447. package/lib/typescript/components/LockOverlay/LockOverlay.d.ts.map +0 -1
  448. package/lib/typescript/components/LockOverlay/index.d.ts.map +0 -1
  449. package/lib/typescript/components/Marquee/Marquee.d.ts.map +0 -1
  450. package/lib/typescript/components/Marquee/index.d.ts.map +0 -1
  451. package/lib/typescript/components/NumericStepper/NumericStepper.d.ts.map +0 -1
  452. package/lib/typescript/components/NumericStepper/index.d.ts.map +0 -1
  453. package/lib/typescript/components/Popup/Popup.d.ts.map +0 -1
  454. package/lib/typescript/components/Popup/index.d.ts.map +0 -1
  455. package/lib/typescript/components/ProgressBar/ProgressBar.d.ts.map +0 -1
  456. package/lib/typescript/components/ProgressBar/index.d.ts.map +0 -1
  457. package/lib/typescript/components/RedeemedVoucher/RedeemedVoucherSheet.d.ts.map +0 -1
  458. package/lib/typescript/components/RedeemedVoucher/index.d.ts.map +0 -1
  459. package/lib/typescript/components/RedemptionOption/RedemptionOption.d.ts.map +0 -1
  460. package/lib/typescript/components/RedemptionOption/index.d.ts.map +0 -1
  461. package/lib/typescript/components/ScratchCard/ScratchCard.d.ts.map +0 -1
  462. package/lib/typescript/components/ScratchCard/ScratchCardContent.d.ts.map +0 -1
  463. package/lib/typescript/components/ScratchCard/index.d.ts.map +0 -1
  464. package/lib/typescript/components/SelectAmount/SelectAmount.d.ts.map +0 -1
  465. package/lib/typescript/components/SelectAmount/index.d.ts.map +0 -1
  466. package/lib/typescript/components/Skeleton/Shimmer.d.ts.map +0 -1
  467. package/lib/typescript/components/Skeleton/SkeletonElement.d.ts.map +0 -1
  468. package/lib/typescript/components/Skeleton/index.d.ts.map +0 -1
  469. package/lib/typescript/components/Suggestions/SuggestionList.d.ts.map +0 -1
  470. package/lib/typescript/components/TravelBooking/CarRentalForm.d.ts.map +0 -1
  471. package/lib/typescript/components/TravelBooking/FlightForm.d.ts.map +0 -1
  472. package/lib/typescript/components/TravelBooking/FlightSummary.d.ts.map +0 -1
  473. package/lib/typescript/components/TravelBooking/HotelForm.d.ts.map +0 -1
  474. package/lib/typescript/components/TravelBooking/HotelSummary.d.ts.map +0 -1
  475. package/lib/typescript/components/TravelBooking/SummaryBar.d.ts.map +0 -1
  476. package/lib/typescript/components/TravelBooking/TabSelector.d.ts.map +0 -1
  477. package/lib/typescript/components/TravelBooking/TravelBooking.d.ts.map +0 -1
  478. package/lib/typescript/components/TravelBooking/index.d.ts.map +0 -1
  479. package/lib/typescript/components/TravelBooking/types.d.ts.map +0 -1
  480. package/lib/typescript/components/UnlockRewards/RewardItem.d.ts.map +0 -1
  481. package/lib/typescript/components/UnlockRewards/UnlockRewards.d.ts.map +0 -1
  482. package/lib/typescript/components/UnlockRewards/index.d.ts.map +0 -1
  483. package/lib/typescript/components/Wheel/Wheel.d.ts.map +0 -1
  484. package/lib/typescript/components/Wheel/index.d.ts.map +0 -1
  485. package/lib/typescript/components/index.d.ts.map +0 -1
  486. package/lib/typescript/constants/BRANDS.d.ts.map +0 -1
  487. package/lib/typescript/index.d.ts.map +0 -1
  488. package/lib/typescript/theme/Colors.d.ts.map +0 -1
  489. package/lib/typescript/theme/ThemeContext.d.ts.map +0 -1
  490. package/lib/typescript/theme/index.d.ts.map +0 -1
  491. /package/lib/typescript/{components → lib/commonjs/components}/DateRangePicker/index.d.ts +0 -0
  492. /package/lib/typescript/{components → lib/commonjs/components}/SelectAmount/index.d.ts +0 -0
  493. /package/lib/typescript/{components → lib/commonjs/components}/TravelBooking/index.d.ts +0 -0
  494. /package/lib/typescript/{app.d.ts → src/app.d.ts} +0 -0
  495. /package/lib/typescript/{components → src/components}/Badges/Badge.d.ts +0 -0
  496. /package/lib/typescript/{components → src/components}/Badges/index.d.ts +0 -0
  497. /package/lib/typescript/{components → src/components}/Banner/Banner.d.ts +0 -0
  498. /package/lib/typescript/{components → src/components}/Banner/BannerWithDetails.d.ts +0 -0
  499. /package/lib/typescript/{components → src/components}/Banner/index.d.ts +0 -0
  500. /package/lib/typescript/{components → src/components}/BrandIcon/BrandIcon.d.ts +0 -0
  501. /package/lib/typescript/{components → src/components}/BrandIcon/index.d.ts +0 -0
  502. /package/lib/typescript/{components → src/components}/Button/Button.d.ts +0 -0
  503. /package/lib/typescript/{components → src/components}/Button/index.d.ts +0 -0
  504. /package/lib/typescript/{components → src/components}/Card/Card.d.ts +0 -0
  505. /package/lib/typescript/{components → src/components}/Card/CardContent.d.ts +0 -0
  506. /package/lib/typescript/{components → src/components}/Card/CardFooter.d.ts +0 -0
  507. /package/lib/typescript/{components → src/components}/Card/CardHeader.d.ts +0 -0
  508. /package/lib/typescript/{components → src/components}/Card/CardImage.d.ts +0 -0
  509. /package/lib/typescript/{components → src/components}/Card/index.d.ts +0 -0
  510. /package/lib/typescript/{components → src/components}/Card/templates/DealCard.d.ts +0 -0
  511. /package/lib/typescript/{components → src/components}/Card/templates/DealCardWithBackgroundImage.d.ts +0 -0
  512. /package/lib/typescript/{components → src/components}/Card/templates/SimpleTrendingCard.d.ts +0 -0
  513. /package/lib/typescript/{components → src/components}/Card/types.d.ts +0 -0
  514. /package/lib/typescript/{components → src/components}/CloseIcon/CloseIcon.d.ts +0 -0
  515. /package/lib/typescript/{components → src/components}/CloseIcon/index.d.ts +0 -0
  516. /package/lib/typescript/{components → src/components}/DateRangePicker/DateRangePicker.d.ts +0 -0
  517. /package/lib/typescript/{components → src/components}/Filters/Filters.d.ts +0 -0
  518. /package/lib/typescript/{components → src/components}/Filters/PointsRangeSelector.d.ts +0 -0
  519. /package/lib/typescript/{components → src/components}/Filters/index.d.ts +0 -0
  520. /package/lib/typescript/{components → src/components}/Input/Input.d.ts +0 -0
  521. /package/lib/typescript/{components → src/components}/Input/index.d.ts +0 -0
  522. /package/lib/typescript/{components → src/components}/LockOverlay/LockOverlay.d.ts +0 -0
  523. /package/lib/typescript/{components → src/components}/LockOverlay/index.d.ts +0 -0
  524. /package/lib/typescript/{components → src/components}/Marquee/Marquee.d.ts +0 -0
  525. /package/lib/typescript/{components → src/components}/Marquee/index.d.ts +0 -0
  526. /package/lib/typescript/{components → src/components}/NumericStepper/NumericStepper.d.ts +0 -0
  527. /package/lib/typescript/{components → src/components}/NumericStepper/index.d.ts +0 -0
  528. /package/lib/typescript/{components → src/components}/Popup/Popup.d.ts +0 -0
  529. /package/lib/typescript/{components → src/components}/Popup/index.d.ts +0 -0
  530. /package/lib/typescript/{components → src/components}/ProgressBar/ProgressBar.d.ts +0 -0
  531. /package/lib/typescript/{components → src/components}/ProgressBar/index.d.ts +0 -0
  532. /package/lib/typescript/{components → src/components}/RedeemedVoucher/RedeemedVoucherSheet.d.ts +0 -0
  533. /package/lib/typescript/{components → src/components}/RedeemedVoucher/index.d.ts +0 -0
  534. /package/lib/typescript/{components → src/components}/RedemptionOption/RedemptionOption.d.ts +0 -0
  535. /package/lib/typescript/{components → src/components}/RedemptionOption/index.d.ts +0 -0
  536. /package/lib/typescript/{components → src/components}/ScratchCard/ScratchCard.d.ts +0 -0
  537. /package/lib/typescript/{components → src/components}/ScratchCard/ScratchCardContent.d.ts +0 -0
  538. /package/lib/typescript/{components → src/components}/ScratchCard/index.d.ts +0 -0
  539. /package/lib/typescript/{components → src/components}/SelectAmount/SelectAmount.d.ts +0 -0
  540. /package/lib/typescript/{components → src/components}/Skeleton/Shimmer.d.ts +0 -0
  541. /package/lib/typescript/{components → src/components}/Skeleton/SkeletonElement.d.ts +0 -0
  542. /package/lib/typescript/{components → src/components}/Skeleton/index.d.ts +0 -0
  543. /package/lib/typescript/{components → src/components}/Suggestions/SuggestionList.d.ts +0 -0
  544. /package/lib/typescript/{components → src/components}/TravelBooking/CarRentalForm.d.ts +0 -0
  545. /package/lib/typescript/{components → src/components}/TravelBooking/FlightForm.d.ts +0 -0
  546. /package/lib/typescript/{components → src/components}/TravelBooking/FlightSummary.d.ts +0 -0
  547. /package/lib/typescript/{components → src/components}/TravelBooking/HotelForm.d.ts +0 -0
  548. /package/lib/typescript/{components → src/components}/TravelBooking/HotelSummary.d.ts +0 -0
  549. /package/lib/typescript/{components → src/components}/TravelBooking/SummaryBar.d.ts +0 -0
  550. /package/lib/typescript/{components → src/components}/TravelBooking/TabSelector.d.ts +0 -0
  551. /package/lib/typescript/{components → src/components}/TravelBooking/TravelBooking.d.ts +0 -0
  552. /package/lib/typescript/{components → src/components}/TravelBooking/types.d.ts +0 -0
  553. /package/lib/typescript/{components → src/components}/UnlockRewards/RewardItem.d.ts +0 -0
  554. /package/lib/typescript/{components → src/components}/UnlockRewards/UnlockRewards.d.ts +0 -0
  555. /package/lib/typescript/{components → src/components}/UnlockRewards/index.d.ts +0 -0
  556. /package/lib/typescript/{components → src/components}/Wheel/Wheel.d.ts +0 -0
  557. /package/lib/typescript/{components → src/components}/Wheel/index.d.ts +0 -0
  558. /package/lib/typescript/{components → src/components}/index.d.ts +0 -0
  559. /package/lib/typescript/{constants → src/constants}/BRANDS.d.ts +0 -0
  560. /package/lib/typescript/{index.d.ts → src/index.d.ts} +0 -0
  561. /package/lib/typescript/{theme → src/theme}/Colors.d.ts +0 -0
  562. /package/lib/typescript/{theme → src/theme}/index.d.ts +0 -0
@@ -0,0 +1,421 @@
1
+ # TravelBooking
2
+
3
+ The `TravelBooking` component is a comprehensive travel booking solution that provides interfaces for flights, hotels, and car rentals. It offers customizable forms with search functionality, suggestions, date selection, and detailed summary options. The component is fully RTL-compatible and includes various styling options for seamless integration into any application design.
4
+
5
+ ![TravelBooking Flight Example](../../assets/components/TravelBooking-1.png)
6
+ ![TravelBooking Hotel Example](../../assets/components/TravelBooking-2.png)
7
+
8
+ ## Usage
9
+
10
+ ```tsx
11
+ import { TravelBooking } from "@/components/TravelBooking";
12
+ import { useTheme } from "@/theme";
13
+
14
+ const MyBookingScreen = () => {
15
+ const { theme } = useTheme();
16
+
17
+ const handleSearch = (details) => {
18
+ console.log("Search details:", details);
19
+ // Handle search logic
20
+ };
21
+
22
+ const handleTabChange = (tab) => {
23
+ console.log("Selected tab:", tab);
24
+ // Handle tab change logic
25
+ };
26
+
27
+ return (
28
+ <TravelBooking
29
+ tabs={["Flights", "Hotels", "Car Rentals"]}
30
+ initialTab="Flights"
31
+ onTabChange={handleTabChange}
32
+ onSearch={handleSearch}
33
+ flightFormProps={{
34
+ fromLabel: "FROM",
35
+ toLabel: "TO",
36
+ departureLabel: "DEPARTURE",
37
+ returnLabel: "RETURN"
38
+ }}
39
+ hotelFormProps={{
40
+ destinationLabel: "DESTINATION",
41
+ checkinLabel: "CHECK-IN",
42
+ checkoutLabel: "CHECK-OUT"
43
+ }}
44
+ searchButtonStyle={{ backgroundColor: theme.primary }}
45
+ labelStyle={{ color: theme.labelText }}
46
+ />
47
+ );
48
+ };
49
+ ```
50
+
51
+ ## Core Components
52
+
53
+ The TravelBooking component integrates several specialized components:
54
+
55
+ ### TabSelector
56
+ Allows users to switch between different booking types (flights, hotels, car rentals).
57
+
58
+ ### FlightForm
59
+ A complete form for flight bookings with location inputs, date selection, and search functionality.
60
+
61
+ ### HotelForm
62
+ A form for hotel bookings with destination input, date selection, and nationality picker.
63
+
64
+ ### CarRentalForm
65
+ A form for car rentals with location inputs, date selection, and driver age selection.
66
+
67
+ ### SummaryBar
68
+ A collapsible bar that displays booking summaries and allows for additional configuration.
69
+
70
+ ### FlightSummary
71
+ Displays and manages flight details including passenger counts and class selection.
72
+
73
+ ### HotelSummary
74
+ Displays and manages hotel booking details including room and guest configurations.
75
+
76
+ ## TravelBooking Props
77
+
78
+ ### Core Props
79
+
80
+ | Prop | Type | Default | Description |
81
+ |------|------|---------|-------------|
82
+ | `tabs` | `string[]` | `["Flights", "Hotels", "Car Rentals"]` | Array of tab names to display |
83
+ | `initialTab` | `string` | First tab in the `tabs` array | The initially selected tab |
84
+ | `onTabChange` | `(tab: string) => void` | `undefined` | Callback when the selected tab changes |
85
+ | `onSearch` | `(details: any) => void` | `undefined` | Callback when the search button is pressed |
86
+ | `onInputFocus` | `(input: FormInputType) => void` | `undefined` | Callback when any form input gains focus |
87
+ | `onTextChange` | `(text: string) => void` | `undefined` | Callback when text changes in location inputs |
88
+
89
+ ### Selection Props
90
+
91
+ | Prop | Type | Default | Description |
92
+ |------|------|---------|-------------|
93
+ | `initialFlightSelection` | `FlightSelection` | `undefined` | Initial selection state for flight options |
94
+ | `initialHotelSelection` | `RoomState[]` | `undefined` | Initial selection state for hotel options |
95
+ | `onSummarySelectionChange` | `(selection: SelectionCallbackDataType) => void` | `undefined` | Callback when selection changes |
96
+
97
+ ### Suggestion Data Props
98
+
99
+ | Prop | Type | Default | Description |
100
+ |------|------|---------|-------------|
101
+ | `flightSuggestionData` | `FlightSuggestions[]` | Default mock data | Suggestion data for flight locations |
102
+ | `hotelSuggestionData` | `HotelSuggestions[]` | Default mock data | Suggestion data for hotel destinations |
103
+ | `carSuggestionData` | `CarSuggestions[]` | Default mock data | Suggestion data for car rental locations |
104
+
105
+ ### Style Props
106
+
107
+ | Prop | Type | Default | Description |
108
+ |------|------|---------|-------------|
109
+ | `formContainerStyle` | `StyleProp<ViewStyle>` | `undefined` | Style for the root container of each form |
110
+ | `labelStyle` | `StyleProp<TextStyle>` | `undefined` | Style for input labels |
111
+ | `inputStyle` | `StyleProp<ViewStyle>` | `undefined` | Style for the CustomInput's TextInput component |
112
+ | `inputTouchableStyle` | `StyleProp<ViewStyle>` | `undefined` | Style for the touchable wrapper around date displays |
113
+ | `inputTextStyle` | `StyleProp<TextStyle>` | `undefined` | Style for the text inside inputs or date displays |
114
+ | `dateSearchRowStyle` | `StyleProp<ViewStyle>` | `undefined` | Style for the container holding date picker(s) and search button |
115
+ | `dateInputGroupStyle` | `StyleProp<ViewStyle>` | `undefined` | Style for individual date display groups |
116
+ | `searchButtonStyle` | `StyleProp<ViewStyle>` | `undefined` | Style for the search button |
117
+ | `searchIconStyle` | `StyleProp<TextStyle>` | `undefined` | Style for the search icon |
118
+ | `calendarThemeOverrides` | `object` | `{}` | Theme overrides for the calendar component |
119
+ | `calendarContainerStyle` | `StyleProp<ViewStyle>` | `undefined` | Style for the container wrapping the calendar |
120
+ | `swapButtonContainerStyle` | `StyleProp<ViewStyle>` | `undefined` | Style for the container wrapping the swap button |
121
+ | `swapButtonStyle` | `StyleProp<ViewStyle>` | `undefined` | Style for the swap button itself |
122
+ | `swapIconStyle` | `StyleProp<TextStyle>` | `undefined` | Style for the swap icon |
123
+ | `inputGroupContainerStyle` | `StyleProp<ViewStyle>` | `undefined` | Style for the container wrapping input fields |
124
+
125
+ ### Child Component Props
126
+
127
+ | Prop | Type | Default | Description |
128
+ |------|------|---------|-------------|
129
+ | `tabSelectorProps` | `Partial<TabSelectorProps>` | `undefined` | Props to pass to the TabSelector component |
130
+ | `summaryBarProps` | `Partial<SummaryBarProps>` | `undefined` | Props to pass to the SummaryBar component |
131
+ | `flightSummaryProps` | `Partial<FlightSummaryProps>` | `undefined` | Props to pass to the FlightSummary component |
132
+ | `hotelSummaryProps` | `Partial<HotelSummaryProps>` | `undefined` | Props to pass to the HotelSummary component |
133
+ | `flightFormProps` | `Partial<FlightFormProps>` | `undefined` | Props to pass to the FlightForm component |
134
+ | `hotelFormProps` | `Partial<HotelFormProps>` | `undefined` | Props to pass to the HotelForm component |
135
+ | `carRentalFormProps` | `Partial<CarRentalFormProps>` | `undefined` | Props to pass to the CarRentalForm component |
136
+
137
+ ## FlightForm Props
138
+
139
+ | Prop | Type | Default | Description |
140
+ |------|------|---------|-------------|
141
+ | `initialFromLocation` | `string` | `"Beirut, Beirut Intl Arpt - BEY"` | Initial from location |
142
+ | `initialToLocation` | `string` | `"Dubai, Dubai Intl Arpt - DXB"` | Initial to location |
143
+ | `initialDepartureDate` | `string` | `undefined` | Initial departure date (YYYY-MM-DD) |
144
+ | `initialReturnDate` | `string` | `undefined` | Initial return date (YYYY-MM-DD) |
145
+ | `fromLabel` | `string` | `"FROM"` | Label for the from location input |
146
+ | `toLabel` | `string` | `"TO"` | Label for the to location input |
147
+ | `departureLabel` | `string` | `"DEPARTURE"` | Label for the departure date picker |
148
+ | `returnLabel` | `string` | `"RETURN"` | Label for the return date picker |
149
+ | `isOneWay` | `boolean` | `undefined` | If true, only departure date is required |
150
+ | `suggestionData` | `FlightSuggestions[]` | `undefined` | Suggestion data for locations |
151
+
152
+ ## HotelForm Props
153
+
154
+ | Prop | Type | Default | Description |
155
+ |------|------|---------|-------------|
156
+ | `initialDestination` | `string` | `undefined` | Initial destination |
157
+ | `initialCheckinDate` | `string` | `undefined` | Initial check-in date (YYYY-MM-DD) |
158
+ | `initialCheckoutDate` | `string` | `undefined` | Initial check-out date (YYYY-MM-DD) |
159
+ | `initialNationality` | `string` | `undefined` | Initial nationality selection |
160
+ | `destinationLabel` | `string` | `"DESTINATION"` | Label for the destination input |
161
+ | `checkinLabel` | `string` | `"CHECK-IN"` | Label for the check-in date picker |
162
+ | `checkoutLabel` | `string` | `"CHECK-OUT"` | Label for the check-out date picker |
163
+ | `nationalityLabel` | `string` | `"NATIONALITY"` | Label for the nationality picker |
164
+ | `suggestionData` | `HotelSuggestions[]` | `undefined` | Suggestion data for destinations |
165
+ | `nationalityData` | `{ label: string; value: string }[]` | Default nationalities | Data for nationality picker |
166
+
167
+ ## CarRentalForm Props
168
+
169
+ | Prop | Type | Default | Description |
170
+ |------|------|---------|-------------|
171
+ | `initialFromLocation` | `string` | `undefined` | Initial pick-up location |
172
+ | `initialToLocation` | `string` | `undefined` | Initial drop-off location |
173
+ | `initialPickupDate` | `string` | `undefined` | Initial pick-up date (YYYY-MM-DD) |
174
+ | `initialDropoffDate` | `string` | `undefined` | Initial drop-off date (YYYY-MM-DD) |
175
+ | `fromLabel` | `string` | `"PICK-UP"` | Label for the pick-up location input |
176
+ | `toLabel` | `string` | `"DROP-OFF"` | Label for the drop-off location input |
177
+ | `pickupLabel` | `string` | `"PICK-UP DATE"` | Label for the pick-up date picker |
178
+ | `dropoffLabel` | `string` | `"DROP-OFF DATE"` | Label for the drop-off date picker |
179
+ | `isOneWay` | `boolean` | `undefined` | If true, drop-off location can differ from pick-up |
180
+ | `suggestionData` | `CarSuggestions[]` | `undefined` | Suggestion data for locations |
181
+
182
+ ## SummaryBar Props
183
+
184
+ | Prop | Type | Default | Description |
185
+ |------|------|---------|-------------|
186
+ | `containerStyle` | `StyleProp<ViewStyle>` | `undefined` | Style for the container |
187
+ | `summaryTextStyle` | `StyleProp<TextStyle>` | `undefined` | Style for the summary text |
188
+ | `iconStyle` | `StyleProp<TextStyle>` | `undefined` | Style for the icon |
189
+ | `onSelectionChange` | `(selection: SelectionCallbackDataType) => void` | `undefined` | Callback when selection changes |
190
+ | `mode` | `"flight" \| "hotel"` | Required | The mode of the summary bar |
191
+ | `flightProps` | `FlightSummaryProps` | `undefined` | Props for the FlightSummary component |
192
+ | `hotelProps` | `HotelSummaryProps` | `undefined` | Props for the HotelSummary component |
193
+
194
+ ## Type Definitions
195
+
196
+ ### FormInputType
197
+ ```typescript
198
+ enum FormInputType {
199
+ FLIGHT_FROM = "flightFrom",
200
+ FLIGHT_TO = "flightTo",
201
+ HOTEL_DEST = "hotelDest",
202
+ CAR_PICKUP = "carPickup",
203
+ CAR_DROP_OFF = "carDropoff",
204
+ }
205
+ ```
206
+
207
+ ### FlightSuggestions
208
+ ```typescript
209
+ interface FlightSuggestions {
210
+ id: string | number;
211
+ city: string;
212
+ value: string;
213
+ airports: string[];
214
+ }
215
+ ```
216
+
217
+ ### HotelSuggestions
218
+ ```typescript
219
+ interface HotelSuggestions {
220
+ id: string | number;
221
+ city: string;
222
+ country: string;
223
+ value: string;
224
+ }
225
+ ```
226
+
227
+ ### CarSuggestions
228
+ ```typescript
229
+ interface CarSuggestions {
230
+ id: string | number;
231
+ city: string;
232
+ country: string;
233
+ value: string;
234
+ }
235
+ ```
236
+
237
+ ### FlightSelection
238
+ ```typescript
239
+ interface FlightSelection {
240
+ flightType: string;
241
+ flightClass: string;
242
+ passengers: Record<string, number>;
243
+ }
244
+ ```
245
+
246
+ ### RoomState
247
+ ```typescript
248
+ interface RoomState {
249
+ id: string;
250
+ [key: string]: any; // Typically includes adults, children counts
251
+ }
252
+ ```
253
+
254
+ ## Advanced Usage
255
+
256
+ ### Complete Example with Customization
257
+
258
+ ```tsx
259
+ import { TravelBooking } from "@/components/TravelBooking";
260
+ import { useTheme } from "@/theme";
261
+ import { Ionicons } from "@expo/vector-icons";
262
+ import { useState } from "react";
263
+
264
+ const AdvancedBookingScreen = () => {
265
+ const { theme, isRTL } = useTheme();
266
+ const [currentTab, setCurrentTab] = useState("Flights");
267
+
268
+ // Custom flight suggestions
269
+ const customFlightSuggestions = [
270
+ {
271
+ id: 1,
272
+ city: "Paris",
273
+ value: "Paris, France",
274
+ airports: ["Charles de Gaulle (CDG)", "Orly (ORY)"]
275
+ },
276
+ {
277
+ id: 2,
278
+ city: "Tokyo",
279
+ value: "Tokyo, Japan",
280
+ airports: ["Narita (NRT)", "Haneda (HND)"]
281
+ }
282
+ ];
283
+
284
+ // Handle search submission
285
+ const handleSearch = (details) => {
286
+ if (currentTab === "Flights") {
287
+ // Process flight search
288
+ const { from, to, departure, return: returnDate } = details;
289
+ console.log("Flight search:", { from, to, departure, returnDate });
290
+ } else if (currentTab === "Hotels") {
291
+ // Process hotel search
292
+ const { destination, checkin, checkout, nationality } = details;
293
+ console.log("Hotel search:", { destination, checkin, checkout, nationality });
294
+ } else if (currentTab === "Car Rentals") {
295
+ // Process car rental search
296
+ const { from, to, pickup, dropoff, driverAge } = details;
297
+ console.log("Car rental search:", { from, to, pickup, dropoff, driverAge });
298
+ }
299
+ };
300
+
301
+ return (
302
+ <TravelBooking
303
+ tabs={["Flights", "Hotels", "Car Rentals"]}
304
+ initialTab={currentTab}
305
+ onTabChange={setCurrentTab}
306
+ onSearch={handleSearch}
307
+ onInputFocus={(input) => console.log("Focus on:", input)}
308
+
309
+ // Custom flight form configuration
310
+ flightFormProps={{
311
+ fromLabel: "DEPARTURE CITY",
312
+ toLabel: "ARRIVAL CITY",
313
+ departureLabel: "OUTBOUND",
314
+ returnLabel: "INBOUND",
315
+ swapIconName: "repeat"
316
+ }}
317
+
318
+ // Custom hotel form configuration
319
+ hotelFormProps={{
320
+ destinationPlaceholder: "Where are you going?",
321
+ nationalityData: [
322
+ { label: "Select Country", value: undefined },
323
+ { label: "United States", value: "US" },
324
+ { label: "Japan", value: "JP" }
325
+ ]
326
+ }}
327
+
328
+ // Custom styling
329
+ labelStyle={{
330
+ color: theme.primary,
331
+ fontWeight: "bold",
332
+ textTransform: "uppercase"
333
+ }}
334
+ searchButtonStyle={{
335
+ backgroundColor: theme.accent,
336
+ borderRadius: 25
337
+ }}
338
+ searchIconStyle={{ color: "white" }}
339
+
340
+ // Custom data
341
+ flightSuggestionData={customFlightSuggestions}
342
+
343
+ // Flight summary customization
344
+ flightSummaryProps={{
345
+ flightTypesData: ["Round trip", "One way", "Multi-city"],
346
+ flightClassesData: ["Economy", "Premium Economy", "Business", "First"]
347
+ }}
348
+
349
+ // RTL support
350
+ tabSelectorProps={{
351
+ tabTextStyle: { textAlign: isRTL ? "right" : "left" }
352
+ }}
353
+ />
354
+ );
355
+ };
356
+ ```
357
+
358
+ ### Using the Summary Bar
359
+
360
+ The SummaryBar component allows users to view and modify their selections without having to interact with the main form. It's especially useful for complex bookings.
361
+
362
+ ```tsx
363
+ import { SummaryBar } from "@/components/TravelBooking";
364
+ import { useTheme } from "@/theme";
365
+
366
+ const SummaryBarExample = () => {
367
+ const { theme } = useTheme();
368
+
369
+ const handleSelectionChange = (selection) => {
370
+ console.log("Selection updated:", selection);
371
+ };
372
+
373
+ // Example for Flight Summary
374
+ return (
375
+ <SummaryBar
376
+ mode="flight"
377
+ onSelectionChange={handleSelectionChange}
378
+ containerStyle={{
379
+ borderRadius: 8,
380
+ marginBottom: 16
381
+ }}
382
+ summaryTextStyle={{
383
+ color: theme.onSurface,
384
+ fontWeight: "500"
385
+ }}
386
+ flightProps={{
387
+ passengersData: [
388
+ {
389
+ key: "adults",
390
+ name: "Adults",
391
+ description: "12+ years",
392
+ defaultValue: 2,
393
+ minValue: 1,
394
+ maxValue: 9
395
+ },
396
+ {
397
+ key: "children",
398
+ name: "Children",
399
+ description: "2-11 years",
400
+ defaultValue: 0,
401
+ minValue: 0,
402
+ maxValue: 6
403
+ }
404
+ ],
405
+ selection: {
406
+ flightType: "Round trip",
407
+ flightClass: "Economy",
408
+ passengers: { adults: 2, children: 0, infants: 0 }
409
+ }
410
+ }}
411
+ />
412
+ );
413
+ };
414
+ ```
415
+
416
+ ## Related Components
417
+
418
+ - `DateRangePicker`: Used for selecting date ranges in travel forms
419
+ - `CustomInput`: Used for text input fields throughout the forms
420
+ - `NumericStepper`: Used for incrementing/decrementing passenger and room counts
421
+ - `SuggestionList`: Used for displaying location suggestions
@@ -0,0 +1,181 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _FlightSummary = _interopRequireDefault(require("./FlightSummary.js"));
10
+ var _HotelSummary = _interopRequireDefault(require("./HotelSummary.js"));
11
+ var _theme = require("@/theme");
12
+ var _vectorIcons = require("@expo/vector-icons");
13
+ var _jsxRuntime = require("react/jsx-runtime");
14
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
16
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
17
+ if (_reactNative.Platform.OS === "android" && _reactNative.UIManager.setLayoutAnimationEnabledExperimental) {
18
+ _reactNative.UIManager.setLayoutAnimationEnabledExperimental(true);
19
+ }
20
+ // export type SummaryBarProps = FlightSummaryBarProps | HotelSummaryBarProps;
21
+
22
+ const SummaryBar = ({
23
+ mode,
24
+ containerStyle,
25
+ summaryTextStyle,
26
+ iconStyle,
27
+ onSelectionChange,
28
+ // initialSelection,
29
+ flightProps,
30
+ hotelProps
31
+ }) => {
32
+ const {
33
+ theme
34
+ } = (0, _theme.useTheme)();
35
+ const styles = (0, _react.useMemo)(() => themedStyles(theme), [theme]);
36
+ const [isExpanded, setIsExpanded] = (0, _react.useState)(false);
37
+ const [flightSelection, setFlightSelection] = (0, _react.useState)(mode === "flight" ? flightProps?.selection : undefined);
38
+ const [hotelSelection, setHotelSelection] = (0, _react.useState)(mode === "hotel" ? hotelProps?.selection : undefined);
39
+ (0, _react.useEffect)(() => {
40
+ if (mode === "flight" && flightSelection) {
41
+ onSelectionChange?.(flightSelection);
42
+ } else if (mode === "hotel" && hotelSelection) {
43
+ onSelectionChange?.(hotelSelection);
44
+ }
45
+ }, []);
46
+ const handlePress = (0, _react.useCallback)(() => {
47
+ _reactNative.LayoutAnimation.configureNext(_reactNative.LayoutAnimation.Presets.easeInEaseOut);
48
+ setIsExpanded(!isExpanded);
49
+ }, [isExpanded]);
50
+ const handleInternalSelectionChange = (0, _react.useCallback)(newSelection => {
51
+ if (mode === "flight") {
52
+ if (typeof newSelection === "object" && !Array.isArray(newSelection) && "flightType" in newSelection) {
53
+ setFlightSelection(newSelection);
54
+ onSelectionChange?.(newSelection);
55
+ }
56
+ } else if (mode === "hotel") {
57
+ if (Array.isArray(newSelection)) {
58
+ setHotelSelection(newSelection);
59
+ onSelectionChange?.(newSelection);
60
+ }
61
+ }
62
+ }, [mode, onSelectionChange]);
63
+ const formattedSelectionText = (0, _react.useMemo)(() => {
64
+ if (mode === "flight") {
65
+ if (!flightSelection) return "Round trip, 1 passenger, Economy";
66
+ const passengersCount = Object.values(flightSelection.passengers ?? {}).reduce((sum, count) => sum + count, 0);
67
+ const passengerText = passengersCount === 1 ? "1 passenger" : `${passengersCount} passengers`;
68
+ return `${flightSelection.flightType}, ${passengerText}, ${flightSelection.flightClass}`;
69
+ } else if (mode === "hotel") {
70
+ if (!hotelSelection || hotelSelection.length === 0) return "1 Room, 2 Guests";
71
+ const rooms = hotelSelection;
72
+ const guestConfig = hotelProps?.guestConfigData ?? undefined;
73
+ let totalGuests = 0;
74
+ if (guestConfig) {
75
+ totalGuests = rooms.reduce((sum, room) => {
76
+ let roomSum = 0;
77
+ guestConfig.forEach(guest => {
78
+ roomSum += room[guest.key] ?? 0;
79
+ });
80
+ return sum + roomSum;
81
+ }, 0);
82
+ } else {
83
+ const totalAdults = rooms.reduce((sum, room) => sum + room.adults, 0);
84
+ const totalChildren = rooms.reduce((sum, room) => sum + room.children, 0);
85
+ totalGuests = totalAdults + totalChildren;
86
+ }
87
+ const roomText = rooms.length === 1 ? "1 Room" : `${rooms.length} Rooms`;
88
+ const guestText = totalGuests === 1 ? "1 Guest" : `${totalGuests} Guests`;
89
+ return `${roomText}, ${guestText}`;
90
+ }
91
+ return "Select details";
92
+ }, [flightSelection, hotelSelection, mode, hotelProps?.guestConfigData]);
93
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
94
+ style: [styles.container, containerStyle],
95
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
96
+ style: [styles.summaryContainer, isExpanded && {
97
+ backgroundColor: theme.surface
98
+ }],
99
+ onPress: handlePress,
100
+ activeOpacity: 0.8,
101
+ accessibilityRole: "button",
102
+ accessibilityState: {
103
+ expanded: isExpanded
104
+ },
105
+ accessibilityLabel: formattedSelectionText,
106
+ accessibilityHint: isExpanded ? "Collapses content" : "Expands content",
107
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
108
+ style: [styles.summaryText, summaryTextStyle],
109
+ numberOfLines: 1,
110
+ children: formattedSelectionText
111
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
112
+ name: isExpanded ? "chevron-up" : "chevron-down",
113
+ size: 22,
114
+ color: theme.border,
115
+ style: iconStyle
116
+ })]
117
+ }), isExpanded && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.ScrollView, {
118
+ showsVerticalScrollIndicator: false,
119
+ style: styles.contentContainer,
120
+ children: [mode === "flight" && /*#__PURE__*/(0, _jsxRuntime.jsx)(_FlightSummary.default, {
121
+ selection: flightSelection,
122
+ onSelectionChange: handleInternalSelectionChange,
123
+ ...flightProps
124
+ }), mode === "hotel" && /*#__PURE__*/(0, _jsxRuntime.jsx)(_HotelSummary.default, {
125
+ selection: hotelSelection,
126
+ onSelectionChange: handleInternalSelectionChange,
127
+ ...hotelProps
128
+ })]
129
+ })]
130
+ });
131
+ };
132
+ const themedStyles = theme => _reactNative.StyleSheet.create({
133
+ container: {
134
+ backgroundColor: theme.surfaceVariant || theme.surface,
135
+ borderRadius: 8,
136
+ // overflow: "hidden",
137
+ // width: "auto",
138
+ alignSelf: "stretch",
139
+ position: "relative",
140
+ borderWidth: 1,
141
+ borderColor: theme.border
142
+ },
143
+ summaryContainer: {
144
+ flexDirection: "row",
145
+ justifyContent: "space-between",
146
+ alignItems: "center",
147
+ paddingVertical: 14,
148
+ paddingHorizontal: 16
149
+ },
150
+ summaryText: {
151
+ color: theme.onSurface,
152
+ fontSize: 15,
153
+ fontWeight: "500",
154
+ flex: 1,
155
+ marginRight: 10
156
+ },
157
+ contentContainer: {
158
+ borderTopWidth: 1,
159
+ borderTopColor: theme.border,
160
+ width: "100%",
161
+ position: "absolute",
162
+ zIndex: 100,
163
+ top: 50,
164
+ maxHeight: 400,
165
+ shadowColor: "#000",
166
+ // Typically black shadow
167
+ shadowOffset: {
168
+ width: 0,
169
+ // Horizontal offset
170
+ height: 3 // Vertical offset (positive value pushes shadow down)
171
+ },
172
+ shadowOpacity: 0.15,
173
+ // How visible the shadow is (0 to 1)
174
+ shadowRadius: 5,
175
+ // How blurry the shadow is
176
+ // Android Shadow Property
177
+ elevation: 5 // Simulates shadow depth on Android (adjust value as needed)
178
+ }
179
+ });
180
+ var _default = exports.default = SummaryBar;
181
+ //# sourceMappingURL=SummaryBar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_FlightSummary","_interopRequireDefault","_HotelSummary","_theme","_vectorIcons","_jsxRuntime","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","Platform","OS","UIManager","setLayoutAnimationEnabledExperimental","SummaryBar","mode","containerStyle","summaryTextStyle","iconStyle","onSelectionChange","flightProps","hotelProps","theme","useTheme","styles","useMemo","themedStyles","isExpanded","setIsExpanded","useState","flightSelection","setFlightSelection","selection","undefined","hotelSelection","setHotelSelection","useEffect","handlePress","useCallback","LayoutAnimation","configureNext","Presets","easeInEaseOut","handleInternalSelectionChange","newSelection","Array","isArray","formattedSelectionText","passengersCount","values","passengers","reduce","sum","count","passengerText","flightType","flightClass","length","rooms","guestConfig","guestConfigData","totalGuests","room","roomSum","forEach","guest","key","totalAdults","adults","totalChildren","children","roomText","guestText","jsxs","View","style","container","TouchableOpacity","summaryContainer","backgroundColor","surface","onPress","activeOpacity","accessibilityRole","accessibilityState","expanded","accessibilityLabel","accessibilityHint","jsx","Text","summaryText","numberOfLines","Ionicons","name","size","color","border","ScrollView","showsVerticalScrollIndicator","contentContainer","StyleSheet","create","surfaceVariant","borderRadius","alignSelf","position","borderWidth","borderColor","flexDirection","justifyContent","alignItems","paddingVertical","paddingHorizontal","onSurface","fontSize","fontWeight","flex","marginRight","borderTopWidth","borderTopColor","width","zIndex","top","maxHeight","shadowColor","shadowOffset","height","shadowOpacity","shadowRadius","elevation","_default","exports"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/TravelBooking/SummaryBar.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAcA,IAAAE,cAAA,GAAAC,sBAAA,CAAAH,OAAA;AAKA,IAAAI,aAAA,GAAAD,sBAAA,CAAAH,OAAA;AAKA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AAA8C,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAG,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,CAAAH,CAAA,WAAAA,CAAA,GAAAM,CAAA,GAAAD,CAAA,KAAAL,CAAA;AAAA,SAAAT,wBAAAS,CAAA,EAAAK,CAAA,SAAAA,CAAA,IAAAL,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAE,OAAA,EAAAF,CAAA,QAAAM,CAAA,GAAAH,wBAAA,CAAAE,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAC,GAAA,CAAAP,CAAA,UAAAM,CAAA,CAAAE,GAAA,CAAAR,CAAA,OAAAS,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,W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