related-ui-components 1.9.4 → 1.9.6

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 (620) hide show
  1. package/lib/module/app.js +3 -2
  2. package/lib/module/app.js.map +1 -1
  3. package/lib/module/components/BrandIcon/BrandIcon.js +3 -2
  4. package/lib/module/components/BrandIcon/BrandIcon.js.map +1 -1
  5. package/lib/module/components/Card/CardImage.js +2 -1
  6. package/lib/module/components/Card/CardImage.js.map +1 -1
  7. package/lib/module/components/Card/templates/DealCard.js +2 -1
  8. package/lib/module/components/Card/templates/DealCard.js.map +1 -1
  9. package/lib/module/components/DateRangePicker/DateRangePicker.js +1 -2
  10. package/lib/module/components/DateRangePicker/DateRangePicker.js.map +1 -1
  11. package/lib/module/components/Popup/Popup.js +3 -2
  12. package/lib/module/components/Popup/Popup.js.map +1 -1
  13. package/lib/module/components/Popup/README.md +1 -1
  14. package/lib/module/components/RedeemedVoucher/RedeemedVoucherSheet.js +2 -1
  15. package/lib/module/components/RedeemedVoucher/RedeemedVoucherSheet.js.map +1 -1
  16. package/lib/module/components/Suggestions/SuggestionList.js +1 -1
  17. package/lib/module/components/Suggestions/SuggestionList.js.map +1 -1
  18. package/lib/module/components/TravelBooking/CarRentalForm.js +1 -1
  19. package/lib/module/components/TravelBooking/CarRentalForm.js.map +1 -1
  20. package/lib/module/components/TravelBooking/FlightForm.js +1 -1
  21. package/lib/module/components/TravelBooking/FlightForm.js.map +1 -1
  22. package/lib/module/components/TravelBooking/FlightSummary.js +1 -1
  23. package/lib/module/components/TravelBooking/FlightSummary.js.map +1 -1
  24. package/lib/module/components/TravelBooking/HotelForm.js +1 -1
  25. package/lib/module/components/TravelBooking/HotelForm.js.map +1 -1
  26. package/lib/module/components/TravelBooking/HotelSummary.js +1 -1
  27. package/lib/module/components/TravelBooking/HotelSummary.js.map +1 -1
  28. package/lib/module/components/TravelBooking/README.md +3 -3
  29. package/lib/module/components/TravelBooking/SummaryBar.js +1 -1
  30. package/lib/module/components/TravelBooking/SummaryBar.js.map +1 -1
  31. package/lib/module/components/TravelBooking/TabSelector.js +1 -1
  32. package/lib/module/components/TravelBooking/TabSelector.js.map +1 -1
  33. package/lib/module/components/TravelBooking/TravelBooking.js +1 -1
  34. package/lib/module/components/TravelBooking/TravelBooking.js.map +1 -1
  35. package/lib/module/components/UnlockRewards/README.md +1 -1
  36. package/lib/typescript/app.d.ts.map +1 -0
  37. package/lib/typescript/components/Badges/Badge.d.ts.map +1 -0
  38. package/lib/typescript/components/Badges/index.d.ts.map +1 -0
  39. package/lib/typescript/components/Banner/Banner.d.ts.map +1 -0
  40. package/lib/typescript/components/Banner/BannerWithDetails.d.ts.map +1 -0
  41. package/lib/typescript/components/Banner/index.d.ts.map +1 -0
  42. package/lib/typescript/{module/components → components}/BrandIcon/BrandIcon.d.ts +2 -1
  43. package/lib/typescript/components/BrandIcon/BrandIcon.d.ts.map +1 -0
  44. package/lib/typescript/components/BrandIcon/index.d.ts.map +1 -0
  45. package/lib/typescript/components/Button/Button.d.ts.map +1 -0
  46. package/lib/typescript/components/Button/index.d.ts.map +1 -0
  47. package/lib/typescript/components/Card/Card.d.ts.map +1 -0
  48. package/lib/typescript/components/Card/CardContent.d.ts.map +1 -0
  49. package/lib/typescript/components/Card/CardFooter.d.ts.map +1 -0
  50. package/lib/typescript/components/Card/CardHeader.d.ts.map +1 -0
  51. package/lib/typescript/components/Card/CardImage.d.ts.map +1 -0
  52. package/lib/typescript/components/Card/index.d.ts.map +1 -0
  53. package/lib/typescript/components/Card/templates/DealCard.d.ts.map +1 -0
  54. package/lib/typescript/components/Card/templates/DealCardWithBackgroundImage.d.ts.map +1 -0
  55. package/lib/typescript/components/Card/templates/SimpleTrendingCard.d.ts.map +1 -0
  56. package/lib/typescript/{module/components → components}/Card/types.d.ts +7 -6
  57. package/lib/typescript/components/Card/types.d.ts.map +1 -0
  58. package/lib/typescript/components/CloseIcon/CloseIcon.d.ts.map +1 -0
  59. package/lib/typescript/components/CloseIcon/index.d.ts.map +1 -0
  60. package/lib/typescript/components/DateRangePicker/DateRangePicker.d.ts.map +1 -0
  61. package/lib/typescript/components/DateRangePicker/index.d.ts +2 -0
  62. package/lib/typescript/components/DateRangePicker/index.d.ts.map +1 -0
  63. package/lib/typescript/components/Filters/Filters.d.ts.map +1 -0
  64. package/lib/typescript/components/Filters/PointsRangeSelector.d.ts.map +1 -0
  65. package/lib/typescript/components/Filters/index.d.ts.map +1 -0
  66. package/lib/typescript/components/Input/Input.d.ts.map +1 -0
  67. package/lib/typescript/components/Input/index.d.ts.map +1 -0
  68. package/lib/typescript/components/LockOverlay/LockOverlay.d.ts.map +1 -0
  69. package/lib/typescript/components/LockOverlay/index.d.ts.map +1 -0
  70. package/lib/typescript/components/Marquee/Marquee.d.ts.map +1 -0
  71. package/lib/typescript/components/Marquee/index.d.ts.map +1 -0
  72. package/lib/typescript/components/NumericStepper/NumericStepper.d.ts.map +1 -0
  73. package/lib/typescript/components/NumericStepper/index.d.ts.map +1 -0
  74. package/lib/typescript/{module/components → components}/Popup/Popup.d.ts +2 -1
  75. package/lib/typescript/components/Popup/Popup.d.ts.map +1 -0
  76. package/lib/typescript/components/Popup/index.d.ts.map +1 -0
  77. package/lib/typescript/components/ProgressBar/ProgressBar.d.ts.map +1 -0
  78. package/lib/typescript/components/ProgressBar/index.d.ts.map +1 -0
  79. package/lib/typescript/components/RedeemedVoucher/RedeemedVoucherSheet.d.ts.map +1 -0
  80. package/lib/typescript/components/RedeemedVoucher/index.d.ts.map +1 -0
  81. package/lib/typescript/components/RedemptionOption/RedemptionOption.d.ts.map +1 -0
  82. package/lib/typescript/components/RedemptionOption/index.d.ts.map +1 -0
  83. package/lib/typescript/components/ScratchCard/ScratchCard.d.ts.map +1 -0
  84. package/lib/typescript/components/ScratchCard/ScratchCardContent.d.ts.map +1 -0
  85. package/lib/typescript/components/ScratchCard/index.d.ts.map +1 -0
  86. package/lib/typescript/components/SelectAmount/SelectAmount.d.ts.map +1 -0
  87. package/lib/typescript/components/SelectAmount/index.d.ts +2 -0
  88. package/lib/typescript/components/SelectAmount/index.d.ts.map +1 -0
  89. package/lib/typescript/components/Skeleton/Shimmer.d.ts.map +1 -0
  90. package/lib/typescript/components/Skeleton/SkeletonElement.d.ts.map +1 -0
  91. package/lib/typescript/components/Skeleton/index.d.ts.map +1 -0
  92. package/lib/typescript/components/Suggestions/SuggestionList.d.ts.map +1 -0
  93. package/lib/typescript/{commonjs/components → components}/TravelBooking/CarRentalForm.d.ts +1 -1
  94. package/lib/typescript/components/TravelBooking/CarRentalForm.d.ts.map +1 -0
  95. package/lib/typescript/components/TravelBooking/FlightForm.d.ts.map +1 -0
  96. package/lib/typescript/components/TravelBooking/FlightSummary.d.ts.map +1 -0
  97. package/lib/typescript/{module/components → components}/TravelBooking/HotelForm.d.ts +1 -1
  98. package/lib/typescript/components/TravelBooking/HotelForm.d.ts.map +1 -0
  99. package/lib/typescript/components/TravelBooking/HotelSummary.d.ts.map +1 -0
  100. package/lib/typescript/components/TravelBooking/SummaryBar.d.ts.map +1 -0
  101. package/lib/typescript/components/TravelBooking/TabSelector.d.ts.map +1 -0
  102. package/lib/typescript/components/TravelBooking/TravelBooking.d.ts.map +1 -0
  103. package/lib/typescript/components/TravelBooking/index.d.ts +2 -0
  104. package/lib/typescript/components/TravelBooking/index.d.ts.map +1 -0
  105. package/lib/typescript/components/TravelBooking/types.d.ts.map +1 -0
  106. package/lib/typescript/components/UnlockRewards/RewardItem.d.ts.map +1 -0
  107. package/lib/typescript/components/UnlockRewards/UnlockRewards.d.ts.map +1 -0
  108. package/lib/typescript/components/UnlockRewards/index.d.ts.map +1 -0
  109. package/lib/typescript/components/Wheel/Wheel.d.ts.map +1 -0
  110. package/lib/typescript/components/Wheel/index.d.ts.map +1 -0
  111. package/lib/typescript/components/index.d.ts.map +1 -0
  112. package/lib/typescript/constants/BRANDS.d.ts.map +1 -0
  113. package/lib/typescript/index.d.ts.map +1 -0
  114. package/lib/typescript/package.json +1 -0
  115. package/lib/typescript/theme/Colors.d.ts.map +1 -0
  116. package/lib/typescript/theme/ThemeContext.d.ts.map +1 -0
  117. package/lib/typescript/theme/index.d.ts.map +1 -0
  118. package/package.json +74 -123
  119. package/src/app.tsx +1 -1
  120. package/src/components/BrandIcon/BrandIcon.tsx +2 -3
  121. package/src/components/Card/CardImage.tsx +3 -1
  122. package/src/components/Card/templates/DealCard.tsx +1 -1
  123. package/src/components/Card/types.ts +21 -10
  124. package/src/components/DateRangePicker/DateRangePicker.tsx +1 -2
  125. package/src/components/Popup/Popup.tsx +2 -3
  126. package/src/components/Popup/README.md +1 -1
  127. package/src/components/RedeemedVoucher/RedeemedVoucherSheet.tsx +1 -1
  128. package/src/components/Suggestions/SuggestionList.tsx +1 -1
  129. package/src/components/TravelBooking/CarRentalForm.tsx +2 -2
  130. package/src/components/TravelBooking/FlightForm.tsx +1 -1
  131. package/src/components/TravelBooking/FlightSummary.tsx +1 -1
  132. package/src/components/TravelBooking/HotelForm.tsx +2 -2
  133. package/src/components/TravelBooking/HotelSummary.tsx +1 -1
  134. package/src/components/TravelBooking/README.md +3 -3
  135. package/src/components/TravelBooking/SummaryBar.tsx +1 -1
  136. package/src/components/TravelBooking/TabSelector.tsx +1 -1
  137. package/src/components/TravelBooking/TravelBooking.tsx +1 -1
  138. package/src/components/UnlockRewards/README.md +1 -1
  139. package/README.md +0 -200
  140. package/lib/commonjs/app.js +0 -161
  141. package/lib/commonjs/app.js.map +0 -1
  142. package/lib/commonjs/assets/components/BannerWithDetails.png +0 -0
  143. package/lib/commonjs/assets/components/DealCard-Horizontal.png +0 -0
  144. package/lib/commonjs/assets/components/DealCard-Vertical.png +0 -0
  145. package/lib/commonjs/assets/components/DealCard-floating.png +0 -0
  146. package/lib/commonjs/assets/components/DealCard-nested.png +0 -0
  147. package/lib/commonjs/assets/components/Filters.png +0 -0
  148. package/lib/commonjs/assets/components/Popup-1.png +0 -0
  149. package/lib/commonjs/assets/components/Popup-2.png +0 -0
  150. package/lib/commonjs/assets/components/Popup-3.png +0 -0
  151. package/lib/commonjs/assets/components/RedemptionOption-Horizontal.png +0 -0
  152. package/lib/commonjs/assets/components/RedemptionOption-Vertical.png +0 -0
  153. package/lib/commonjs/assets/components/SimpleBanner.png +0 -0
  154. package/lib/commonjs/assets/components/SimpleTrendingCard.png +0 -0
  155. package/lib/commonjs/assets/components/SimpleTrendingCardV2.png +0 -0
  156. package/lib/commonjs/assets/components/UnlockRewards-1.png +0 -0
  157. package/lib/commonjs/assets/components/UnlockRewards-2.png +0 -0
  158. package/lib/commonjs/assets/fonts/SpaceMono-Regular.ttf +0 -0
  159. package/lib/commonjs/assets/images/adaptive-icon.png +0 -0
  160. package/lib/commonjs/assets/images/face.jpg +0 -0
  161. package/lib/commonjs/assets/images/favicon.png +0 -0
  162. package/lib/commonjs/assets/images/giftvoucher.jpg +0 -0
  163. package/lib/commonjs/assets/images/icon.png +0 -0
  164. package/lib/commonjs/assets/images/insta.webp +0 -0
  165. package/lib/commonjs/assets/images/muse.jpg +0 -0
  166. package/lib/commonjs/assets/images/namshi-banner.png +0 -0
  167. package/lib/commonjs/assets/images/namshi.webp +0 -0
  168. package/lib/commonjs/assets/images/partial-react-logo.png +0 -0
  169. package/lib/commonjs/assets/images/pb-logo.jpg +0 -0
  170. package/lib/commonjs/assets/images/pb.jpg +0 -0
  171. package/lib/commonjs/assets/images/react-logo.png +0 -0
  172. package/lib/commonjs/assets/images/react-logo@2x.png +0 -0
  173. package/lib/commonjs/assets/images/react-logo@3x.png +0 -0
  174. package/lib/commonjs/assets/images/scratch_foreground.png +0 -0
  175. package/lib/commonjs/assets/images/splash-icon.png +0 -0
  176. package/lib/commonjs/assets/images/upgrade.png +0 -0
  177. package/lib/commonjs/components/Badges/Badge.js +0 -67
  178. package/lib/commonjs/components/Badges/Badge.js.map +0 -1
  179. package/lib/commonjs/components/Badges/README.md +0 -98
  180. package/lib/commonjs/components/Badges/index.js +0 -29
  181. package/lib/commonjs/components/Badges/index.js.map +0 -1
  182. package/lib/commonjs/components/Banner/Banner.js +0 -138
  183. package/lib/commonjs/components/Banner/Banner.js.map +0 -1
  184. package/lib/commonjs/components/Banner/BannerWithDetails.js +0 -120
  185. package/lib/commonjs/components/Banner/BannerWithDetails.js.map +0 -1
  186. package/lib/commonjs/components/Banner/README.md +0 -101
  187. package/lib/commonjs/components/Banner/index.js +0 -48
  188. package/lib/commonjs/components/Banner/index.js.map +0 -1
  189. package/lib/commonjs/components/BrandIcon/BrandIcon.js +0 -114
  190. package/lib/commonjs/components/BrandIcon/BrandIcon.js.map +0 -1
  191. package/lib/commonjs/components/BrandIcon/index.js +0 -29
  192. package/lib/commonjs/components/BrandIcon/index.js.map +0 -1
  193. package/lib/commonjs/components/Button/Button.js +0 -124
  194. package/lib/commonjs/components/Button/Button.js.map +0 -1
  195. package/lib/commonjs/components/Button/index.js +0 -29
  196. package/lib/commonjs/components/Button/index.js.map +0 -1
  197. package/lib/commonjs/components/Card/Card.js +0 -116
  198. package/lib/commonjs/components/Card/Card.js.map +0 -1
  199. package/lib/commonjs/components/Card/CardContent.js +0 -42
  200. package/lib/commonjs/components/Card/CardContent.js.map +0 -1
  201. package/lib/commonjs/components/Card/CardFooter.js +0 -34
  202. package/lib/commonjs/components/Card/CardFooter.js.map +0 -1
  203. package/lib/commonjs/components/Card/CardHeader.js +0 -79
  204. package/lib/commonjs/components/Card/CardHeader.js.map +0 -1
  205. package/lib/commonjs/components/Card/CardImage.js +0 -51
  206. package/lib/commonjs/components/Card/CardImage.js.map +0 -1
  207. package/lib/commonjs/components/Card/index.js +0 -98
  208. package/lib/commonjs/components/Card/index.js.map +0 -1
  209. package/lib/commonjs/components/Card/templates/DealCard.js +0 -193
  210. package/lib/commonjs/components/Card/templates/DealCard.js.map +0 -1
  211. package/lib/commonjs/components/Card/templates/DealCardWithBackgroundImage.js +0 -237
  212. package/lib/commonjs/components/Card/templates/DealCardWithBackgroundImage.js.map +0 -1
  213. package/lib/commonjs/components/Card/templates/README.md +0 -233
  214. package/lib/commonjs/components/Card/templates/SimpleTrendingCard.js +0 -59
  215. package/lib/commonjs/components/Card/templates/SimpleTrendingCard.js.map +0 -1
  216. package/lib/commonjs/components/Card/types.js +0 -6
  217. package/lib/commonjs/components/Card/types.js.map +0 -1
  218. package/lib/commonjs/components/CloseIcon/CloseIcon.js +0 -75
  219. package/lib/commonjs/components/CloseIcon/CloseIcon.js.map +0 -1
  220. package/lib/commonjs/components/CloseIcon/index.js +0 -29
  221. package/lib/commonjs/components/CloseIcon/index.js.map +0 -1
  222. package/lib/commonjs/components/DateRangePicker/DateRangePicker.js +0 -358
  223. package/lib/commonjs/components/DateRangePicker/DateRangePicker.js.map +0 -1
  224. package/lib/commonjs/components/DateRangePicker/index.js +0 -4
  225. package/lib/commonjs/components/DateRangePicker/index.js.map +0 -1
  226. package/lib/commonjs/components/Filters/Filters.js +0 -345
  227. package/lib/commonjs/components/Filters/Filters.js.map +0 -1
  228. package/lib/commonjs/components/Filters/PointsRangeSelector.js +0 -264
  229. package/lib/commonjs/components/Filters/PointsRangeSelector.js.map +0 -1
  230. package/lib/commonjs/components/Filters/README.md +0 -212
  231. package/lib/commonjs/components/Filters/index.js +0 -48
  232. package/lib/commonjs/components/Filters/index.js.map +0 -1
  233. package/lib/commonjs/components/Input/Input.js +0 -161
  234. package/lib/commonjs/components/Input/Input.js.map +0 -1
  235. package/lib/commonjs/components/Input/README.md +0 -128
  236. package/lib/commonjs/components/Input/index.js +0 -29
  237. package/lib/commonjs/components/Input/index.js.map +0 -1
  238. package/lib/commonjs/components/LockOverlay/LockOverlay.js +0 -65
  239. package/lib/commonjs/components/LockOverlay/LockOverlay.js.map +0 -1
  240. package/lib/commonjs/components/LockOverlay/index.js +0 -29
  241. package/lib/commonjs/components/LockOverlay/index.js.map +0 -1
  242. package/lib/commonjs/components/Marquee/Marquee.js +0 -105
  243. package/lib/commonjs/components/Marquee/Marquee.js.map +0 -1
  244. package/lib/commonjs/components/Marquee/index.js +0 -29
  245. package/lib/commonjs/components/Marquee/index.js.map +0 -1
  246. package/lib/commonjs/components/NumericStepper/NumericStepper.js +0 -103
  247. package/lib/commonjs/components/NumericStepper/NumericStepper.js.map +0 -1
  248. package/lib/commonjs/components/NumericStepper/index.js +0 -29
  249. package/lib/commonjs/components/NumericStepper/index.js.map +0 -1
  250. package/lib/commonjs/components/Popup/Popup.js +0 -341
  251. package/lib/commonjs/components/Popup/Popup.js.map +0 -1
  252. package/lib/commonjs/components/Popup/README.md +0 -133
  253. package/lib/commonjs/components/Popup/index.js +0 -29
  254. package/lib/commonjs/components/Popup/index.js.map +0 -1
  255. package/lib/commonjs/components/ProgressBar/ProgressBar.js +0 -125
  256. package/lib/commonjs/components/ProgressBar/ProgressBar.js.map +0 -1
  257. package/lib/commonjs/components/ProgressBar/index.js +0 -29
  258. package/lib/commonjs/components/ProgressBar/index.js.map +0 -1
  259. package/lib/commonjs/components/RedeemedVoucher/RedeemedVoucherSheet.js +0 -458
  260. package/lib/commonjs/components/RedeemedVoucher/RedeemedVoucherSheet.js.map +0 -1
  261. package/lib/commonjs/components/RedeemedVoucher/index.js +0 -29
  262. package/lib/commonjs/components/RedeemedVoucher/index.js.map +0 -1
  263. package/lib/commonjs/components/RedemptionOption/README.md +0 -148
  264. package/lib/commonjs/components/RedemptionOption/RedemptionOption.js +0 -132
  265. package/lib/commonjs/components/RedemptionOption/RedemptionOption.js.map +0 -1
  266. package/lib/commonjs/components/RedemptionOption/index.js +0 -29
  267. package/lib/commonjs/components/RedemptionOption/index.js.map +0 -1
  268. package/lib/commonjs/components/ScratchCard/README.md +0 -119
  269. package/lib/commonjs/components/ScratchCard/ScratchCard.js +0 -222
  270. package/lib/commonjs/components/ScratchCard/ScratchCard.js.map +0 -1
  271. package/lib/commonjs/components/ScratchCard/ScratchCardContent.js +0 -28
  272. package/lib/commonjs/components/ScratchCard/ScratchCardContent.js.map +0 -1
  273. package/lib/commonjs/components/ScratchCard/index.js +0 -48
  274. package/lib/commonjs/components/ScratchCard/index.js.map +0 -1
  275. package/lib/commonjs/components/SelectAmount/SelectAmount.js +0 -189
  276. package/lib/commonjs/components/SelectAmount/SelectAmount.js.map +0 -1
  277. package/lib/commonjs/components/SelectAmount/index.js +0 -4
  278. package/lib/commonjs/components/SelectAmount/index.js.map +0 -1
  279. package/lib/commonjs/components/Skeleton/Shimmer.js +0 -75
  280. package/lib/commonjs/components/Skeleton/Shimmer.js.map +0 -1
  281. package/lib/commonjs/components/Skeleton/SkeletonElement.js +0 -36
  282. package/lib/commonjs/components/Skeleton/SkeletonElement.js.map +0 -1
  283. package/lib/commonjs/components/Skeleton/index.js +0 -48
  284. package/lib/commonjs/components/Skeleton/index.js.map +0 -1
  285. package/lib/commonjs/components/Suggestions/SuggestionList.js +0 -98
  286. package/lib/commonjs/components/Suggestions/SuggestionList.js.map +0 -1
  287. package/lib/commonjs/components/TravelBooking/CarRentalForm.js +0 -370
  288. package/lib/commonjs/components/TravelBooking/CarRentalForm.js.map +0 -1
  289. package/lib/commonjs/components/TravelBooking/FlightForm.js +0 -347
  290. package/lib/commonjs/components/TravelBooking/FlightForm.js.map +0 -1
  291. package/lib/commonjs/components/TravelBooking/FlightSummary.js +0 -257
  292. package/lib/commonjs/components/TravelBooking/FlightSummary.js.map +0 -1
  293. package/lib/commonjs/components/TravelBooking/HotelForm.js +0 -290
  294. package/lib/commonjs/components/TravelBooking/HotelForm.js.map +0 -1
  295. package/lib/commonjs/components/TravelBooking/HotelSummary.js +0 -246
  296. package/lib/commonjs/components/TravelBooking/HotelSummary.js.map +0 -1
  297. package/lib/commonjs/components/TravelBooking/README.md +0 -421
  298. package/lib/commonjs/components/TravelBooking/SummaryBar.js +0 -181
  299. package/lib/commonjs/components/TravelBooking/SummaryBar.js.map +0 -1
  300. package/lib/commonjs/components/TravelBooking/TabSelector.js +0 -115
  301. package/lib/commonjs/components/TravelBooking/TabSelector.js.map +0 -1
  302. package/lib/commonjs/components/TravelBooking/TravelBooking.js +0 -261
  303. package/lib/commonjs/components/TravelBooking/TravelBooking.js.map +0 -1
  304. package/lib/commonjs/components/TravelBooking/index.js +0 -22
  305. package/lib/commonjs/components/TravelBooking/index.js.map +0 -1
  306. package/lib/commonjs/components/TravelBooking/types.js +0 -15
  307. package/lib/commonjs/components/TravelBooking/types.js.map +0 -1
  308. package/lib/commonjs/components/UnlockRewards/README.md +0 -187
  309. package/lib/commonjs/components/UnlockRewards/RewardItem.js +0 -129
  310. package/lib/commonjs/components/UnlockRewards/RewardItem.js.map +0 -1
  311. package/lib/commonjs/components/UnlockRewards/UnlockRewards.js +0 -230
  312. package/lib/commonjs/components/UnlockRewards/UnlockRewards.js.map +0 -1
  313. package/lib/commonjs/components/UnlockRewards/index.js +0 -48
  314. package/lib/commonjs/components/UnlockRewards/index.js.map +0 -1
  315. package/lib/commonjs/components/Wheel/README.md +0 -141
  316. package/lib/commonjs/components/Wheel/Wheel.js +0 -361
  317. package/lib/commonjs/components/Wheel/Wheel.js.map +0 -1
  318. package/lib/commonjs/components/Wheel/index.js +0 -29
  319. package/lib/commonjs/components/Wheel/index.js.map +0 -1
  320. package/lib/commonjs/components/index.js +0 -204
  321. package/lib/commonjs/components/index.js.map +0 -1
  322. package/lib/commonjs/constants/BRANDS.js +0 -58
  323. package/lib/commonjs/constants/BRANDS.js.map +0 -1
  324. package/lib/commonjs/index.js +0 -28
  325. package/lib/commonjs/index.js.map +0 -1
  326. package/lib/commonjs/theme/Colors.js +0 -154
  327. package/lib/commonjs/theme/Colors.js.map +0 -1
  328. package/lib/commonjs/theme/ThemeContext.js +0 -57
  329. package/lib/commonjs/theme/ThemeContext.js.map +0 -1
  330. package/lib/commonjs/theme/index.js +0 -28
  331. package/lib/commonjs/theme/index.js.map +0 -1
  332. package/lib/typescript/commonjs/app.d.ts.map +0 -1
  333. package/lib/typescript/commonjs/components/Badges/Badge.d.ts.map +0 -1
  334. package/lib/typescript/commonjs/components/Badges/index.d.ts.map +0 -1
  335. package/lib/typescript/commonjs/components/Banner/Banner.d.ts.map +0 -1
  336. package/lib/typescript/commonjs/components/Banner/BannerWithDetails.d.ts.map +0 -1
  337. package/lib/typescript/commonjs/components/Banner/index.d.ts.map +0 -1
  338. package/lib/typescript/commonjs/components/BrandIcon/BrandIcon.d.ts +0 -20
  339. package/lib/typescript/commonjs/components/BrandIcon/BrandIcon.d.ts.map +0 -1
  340. package/lib/typescript/commonjs/components/BrandIcon/index.d.ts.map +0 -1
  341. package/lib/typescript/commonjs/components/Button/Button.d.ts.map +0 -1
  342. package/lib/typescript/commonjs/components/Button/index.d.ts.map +0 -1
  343. package/lib/typescript/commonjs/components/Card/Card.d.ts.map +0 -1
  344. package/lib/typescript/commonjs/components/Card/CardContent.d.ts.map +0 -1
  345. package/lib/typescript/commonjs/components/Card/CardFooter.d.ts.map +0 -1
  346. package/lib/typescript/commonjs/components/Card/CardHeader.d.ts.map +0 -1
  347. package/lib/typescript/commonjs/components/Card/CardImage.d.ts.map +0 -1
  348. package/lib/typescript/commonjs/components/Card/index.d.ts.map +0 -1
  349. package/lib/typescript/commonjs/components/Card/templates/DealCard.d.ts.map +0 -1
  350. package/lib/typescript/commonjs/components/Card/templates/DealCardWithBackgroundImage.d.ts.map +0 -1
  351. package/lib/typescript/commonjs/components/Card/templates/SimpleTrendingCard.d.ts.map +0 -1
  352. package/lib/typescript/commonjs/components/Card/types.d.ts +0 -90
  353. package/lib/typescript/commonjs/components/Card/types.d.ts.map +0 -1
  354. package/lib/typescript/commonjs/components/CloseIcon/CloseIcon.d.ts.map +0 -1
  355. package/lib/typescript/commonjs/components/CloseIcon/index.d.ts.map +0 -1
  356. package/lib/typescript/commonjs/components/DateRangePicker/DateRangePicker.d.ts.map +0 -1
  357. package/lib/typescript/commonjs/components/DateRangePicker/index.d.ts +0 -1
  358. package/lib/typescript/commonjs/components/DateRangePicker/index.d.ts.map +0 -1
  359. package/lib/typescript/commonjs/components/Filters/Filters.d.ts.map +0 -1
  360. package/lib/typescript/commonjs/components/Filters/PointsRangeSelector.d.ts.map +0 -1
  361. package/lib/typescript/commonjs/components/Filters/index.d.ts.map +0 -1
  362. package/lib/typescript/commonjs/components/Input/Input.d.ts.map +0 -1
  363. package/lib/typescript/commonjs/components/Input/index.d.ts.map +0 -1
  364. package/lib/typescript/commonjs/components/LockOverlay/LockOverlay.d.ts.map +0 -1
  365. package/lib/typescript/commonjs/components/LockOverlay/index.d.ts.map +0 -1
  366. package/lib/typescript/commonjs/components/Marquee/Marquee.d.ts.map +0 -1
  367. package/lib/typescript/commonjs/components/Marquee/index.d.ts.map +0 -1
  368. package/lib/typescript/commonjs/components/NumericStepper/NumericStepper.d.ts.map +0 -1
  369. package/lib/typescript/commonjs/components/NumericStepper/index.d.ts.map +0 -1
  370. package/lib/typescript/commonjs/components/Popup/Popup.d.ts +0 -41
  371. package/lib/typescript/commonjs/components/Popup/Popup.d.ts.map +0 -1
  372. package/lib/typescript/commonjs/components/Popup/index.d.ts.map +0 -1
  373. package/lib/typescript/commonjs/components/ProgressBar/ProgressBar.d.ts.map +0 -1
  374. package/lib/typescript/commonjs/components/ProgressBar/index.d.ts.map +0 -1
  375. package/lib/typescript/commonjs/components/RedeemedVoucher/RedeemedVoucherSheet.d.ts.map +0 -1
  376. package/lib/typescript/commonjs/components/RedeemedVoucher/index.d.ts.map +0 -1
  377. package/lib/typescript/commonjs/components/RedemptionOption/RedemptionOption.d.ts.map +0 -1
  378. package/lib/typescript/commonjs/components/RedemptionOption/index.d.ts.map +0 -1
  379. package/lib/typescript/commonjs/components/ScratchCard/ScratchCard.d.ts.map +0 -1
  380. package/lib/typescript/commonjs/components/ScratchCard/ScratchCardContent.d.ts.map +0 -1
  381. package/lib/typescript/commonjs/components/ScratchCard/index.d.ts.map +0 -1
  382. package/lib/typescript/commonjs/components/SelectAmount/SelectAmount.d.ts.map +0 -1
  383. package/lib/typescript/commonjs/components/SelectAmount/index.d.ts +0 -1
  384. package/lib/typescript/commonjs/components/SelectAmount/index.d.ts.map +0 -1
  385. package/lib/typescript/commonjs/components/Skeleton/Shimmer.d.ts.map +0 -1
  386. package/lib/typescript/commonjs/components/Skeleton/SkeletonElement.d.ts.map +0 -1
  387. package/lib/typescript/commonjs/components/Skeleton/index.d.ts.map +0 -1
  388. package/lib/typescript/commonjs/components/Suggestions/SuggestionList.d.ts.map +0 -1
  389. package/lib/typescript/commonjs/components/TravelBooking/CarRentalForm.d.ts.map +0 -1
  390. package/lib/typescript/commonjs/components/TravelBooking/FlightForm.d.ts.map +0 -1
  391. package/lib/typescript/commonjs/components/TravelBooking/FlightSummary.d.ts.map +0 -1
  392. package/lib/typescript/commonjs/components/TravelBooking/HotelForm.d.ts +0 -52
  393. package/lib/typescript/commonjs/components/TravelBooking/HotelForm.d.ts.map +0 -1
  394. package/lib/typescript/commonjs/components/TravelBooking/HotelSummary.d.ts.map +0 -1
  395. package/lib/typescript/commonjs/components/TravelBooking/SummaryBar.d.ts.map +0 -1
  396. package/lib/typescript/commonjs/components/TravelBooking/TabSelector.d.ts.map +0 -1
  397. package/lib/typescript/commonjs/components/TravelBooking/TravelBooking.d.ts.map +0 -1
  398. package/lib/typescript/commonjs/components/TravelBooking/index.d.ts +0 -1
  399. package/lib/typescript/commonjs/components/TravelBooking/index.d.ts.map +0 -1
  400. package/lib/typescript/commonjs/components/TravelBooking/types.d.ts.map +0 -1
  401. package/lib/typescript/commonjs/components/UnlockRewards/RewardItem.d.ts.map +0 -1
  402. package/lib/typescript/commonjs/components/UnlockRewards/UnlockRewards.d.ts.map +0 -1
  403. package/lib/typescript/commonjs/components/UnlockRewards/index.d.ts.map +0 -1
  404. package/lib/typescript/commonjs/components/Wheel/Wheel.d.ts.map +0 -1
  405. package/lib/typescript/commonjs/components/Wheel/index.d.ts.map +0 -1
  406. package/lib/typescript/commonjs/components/index.d.ts.map +0 -1
  407. package/lib/typescript/commonjs/constants/BRANDS.d.ts.map +0 -1
  408. package/lib/typescript/commonjs/index.d.ts.map +0 -1
  409. package/lib/typescript/commonjs/package.json +0 -1
  410. package/lib/typescript/commonjs/theme/Colors.d.ts.map +0 -1
  411. package/lib/typescript/commonjs/theme/ThemeContext.d.ts.map +0 -1
  412. package/lib/typescript/commonjs/theme/index.d.ts.map +0 -1
  413. package/lib/typescript/module/app.d.ts +0 -4
  414. package/lib/typescript/module/app.d.ts.map +0 -1
  415. package/lib/typescript/module/components/Badges/Badge.d.ts +0 -16
  416. package/lib/typescript/module/components/Badges/Badge.d.ts.map +0 -1
  417. package/lib/typescript/module/components/Badges/index.d.ts +0 -3
  418. package/lib/typescript/module/components/Badges/index.d.ts.map +0 -1
  419. package/lib/typescript/module/components/Banner/Banner.d.ts +0 -26
  420. package/lib/typescript/module/components/Banner/Banner.d.ts.map +0 -1
  421. package/lib/typescript/module/components/Banner/BannerWithDetails.d.ts +0 -19
  422. package/lib/typescript/module/components/Banner/BannerWithDetails.d.ts.map +0 -1
  423. package/lib/typescript/module/components/Banner/index.d.ts +0 -5
  424. package/lib/typescript/module/components/Banner/index.d.ts.map +0 -1
  425. package/lib/typescript/module/components/BrandIcon/BrandIcon.d.ts.map +0 -1
  426. package/lib/typescript/module/components/BrandIcon/index.d.ts +0 -3
  427. package/lib/typescript/module/components/BrandIcon/index.d.ts.map +0 -1
  428. package/lib/typescript/module/components/Button/Button.d.ts +0 -21
  429. package/lib/typescript/module/components/Button/Button.d.ts.map +0 -1
  430. package/lib/typescript/module/components/Button/index.d.ts +0 -3
  431. package/lib/typescript/module/components/Button/index.d.ts.map +0 -1
  432. package/lib/typescript/module/components/Card/Card.d.ts +0 -5
  433. package/lib/typescript/module/components/Card/Card.d.ts.map +0 -1
  434. package/lib/typescript/module/components/Card/CardContent.d.ts +0 -5
  435. package/lib/typescript/module/components/Card/CardContent.d.ts.map +0 -1
  436. package/lib/typescript/module/components/Card/CardFooter.d.ts +0 -5
  437. package/lib/typescript/module/components/Card/CardFooter.d.ts.map +0 -1
  438. package/lib/typescript/module/components/Card/CardHeader.d.ts +0 -5
  439. package/lib/typescript/module/components/Card/CardHeader.d.ts.map +0 -1
  440. package/lib/typescript/module/components/Card/CardImage.d.ts +0 -5
  441. package/lib/typescript/module/components/Card/CardImage.d.ts.map +0 -1
  442. package/lib/typescript/module/components/Card/index.d.ts +0 -11
  443. package/lib/typescript/module/components/Card/index.d.ts.map +0 -1
  444. package/lib/typescript/module/components/Card/templates/DealCard.d.ts +0 -33
  445. package/lib/typescript/module/components/Card/templates/DealCard.d.ts.map +0 -1
  446. package/lib/typescript/module/components/Card/templates/DealCardWithBackgroundImage.d.ts +0 -40
  447. package/lib/typescript/module/components/Card/templates/DealCardWithBackgroundImage.d.ts.map +0 -1
  448. package/lib/typescript/module/components/Card/templates/SimpleTrendingCard.d.ts +0 -14
  449. package/lib/typescript/module/components/Card/templates/SimpleTrendingCard.d.ts.map +0 -1
  450. package/lib/typescript/module/components/Card/types.d.ts.map +0 -1
  451. package/lib/typescript/module/components/CloseIcon/CloseIcon.d.ts +0 -16
  452. package/lib/typescript/module/components/CloseIcon/CloseIcon.d.ts.map +0 -1
  453. package/lib/typescript/module/components/CloseIcon/index.d.ts +0 -3
  454. package/lib/typescript/module/components/CloseIcon/index.d.ts.map +0 -1
  455. package/lib/typescript/module/components/DateRangePicker/DateRangePicker.d.ts +0 -25
  456. package/lib/typescript/module/components/DateRangePicker/DateRangePicker.d.ts.map +0 -1
  457. package/lib/typescript/module/components/DateRangePicker/index.d.ts +0 -1
  458. package/lib/typescript/module/components/DateRangePicker/index.d.ts.map +0 -1
  459. package/lib/typescript/module/components/Filters/Filters.d.ts +0 -80
  460. package/lib/typescript/module/components/Filters/Filters.d.ts.map +0 -1
  461. package/lib/typescript/module/components/Filters/PointsRangeSelector.d.ts +0 -29
  462. package/lib/typescript/module/components/Filters/PointsRangeSelector.d.ts.map +0 -1
  463. package/lib/typescript/module/components/Filters/index.d.ts +0 -5
  464. package/lib/typescript/module/components/Filters/index.d.ts.map +0 -1
  465. package/lib/typescript/module/components/Input/Input.d.ts +0 -23
  466. package/lib/typescript/module/components/Input/Input.d.ts.map +0 -1
  467. package/lib/typescript/module/components/Input/index.d.ts +0 -3
  468. package/lib/typescript/module/components/Input/index.d.ts.map +0 -1
  469. package/lib/typescript/module/components/LockOverlay/LockOverlay.d.ts +0 -16
  470. package/lib/typescript/module/components/LockOverlay/LockOverlay.d.ts.map +0 -1
  471. package/lib/typescript/module/components/LockOverlay/index.d.ts +0 -3
  472. package/lib/typescript/module/components/LockOverlay/index.d.ts.map +0 -1
  473. package/lib/typescript/module/components/Marquee/Marquee.d.ts +0 -18
  474. package/lib/typescript/module/components/Marquee/Marquee.d.ts.map +0 -1
  475. package/lib/typescript/module/components/Marquee/index.d.ts +0 -3
  476. package/lib/typescript/module/components/Marquee/index.d.ts.map +0 -1
  477. package/lib/typescript/module/components/NumericStepper/NumericStepper.d.ts +0 -19
  478. package/lib/typescript/module/components/NumericStepper/NumericStepper.d.ts.map +0 -1
  479. package/lib/typescript/module/components/NumericStepper/index.d.ts +0 -3
  480. package/lib/typescript/module/components/NumericStepper/index.d.ts.map +0 -1
  481. package/lib/typescript/module/components/Popup/Popup.d.ts.map +0 -1
  482. package/lib/typescript/module/components/Popup/index.d.ts +0 -3
  483. package/lib/typescript/module/components/Popup/index.d.ts.map +0 -1
  484. package/lib/typescript/module/components/ProgressBar/ProgressBar.d.ts +0 -26
  485. package/lib/typescript/module/components/ProgressBar/ProgressBar.d.ts.map +0 -1
  486. package/lib/typescript/module/components/ProgressBar/index.d.ts +0 -3
  487. package/lib/typescript/module/components/ProgressBar/index.d.ts.map +0 -1
  488. package/lib/typescript/module/components/RedeemedVoucher/RedeemedVoucherSheet.d.ts +0 -58
  489. package/lib/typescript/module/components/RedeemedVoucher/RedeemedVoucherSheet.d.ts.map +0 -1
  490. package/lib/typescript/module/components/RedeemedVoucher/index.d.ts +0 -3
  491. package/lib/typescript/module/components/RedeemedVoucher/index.d.ts.map +0 -1
  492. package/lib/typescript/module/components/RedemptionOption/RedemptionOption.d.ts +0 -25
  493. package/lib/typescript/module/components/RedemptionOption/RedemptionOption.d.ts.map +0 -1
  494. package/lib/typescript/module/components/RedemptionOption/index.d.ts +0 -3
  495. package/lib/typescript/module/components/RedemptionOption/index.d.ts.map +0 -1
  496. package/lib/typescript/module/components/ScratchCard/ScratchCard.d.ts +0 -31
  497. package/lib/typescript/module/components/ScratchCard/ScratchCard.d.ts.map +0 -1
  498. package/lib/typescript/module/components/ScratchCard/ScratchCardContent.d.ts +0 -8
  499. package/lib/typescript/module/components/ScratchCard/ScratchCardContent.d.ts.map +0 -1
  500. package/lib/typescript/module/components/ScratchCard/index.d.ts +0 -5
  501. package/lib/typescript/module/components/ScratchCard/index.d.ts.map +0 -1
  502. package/lib/typescript/module/components/SelectAmount/SelectAmount.d.ts +0 -29
  503. package/lib/typescript/module/components/SelectAmount/SelectAmount.d.ts.map +0 -1
  504. package/lib/typescript/module/components/SelectAmount/index.d.ts +0 -1
  505. package/lib/typescript/module/components/SelectAmount/index.d.ts.map +0 -1
  506. package/lib/typescript/module/components/Skeleton/Shimmer.d.ts +0 -13
  507. package/lib/typescript/module/components/Skeleton/Shimmer.d.ts.map +0 -1
  508. package/lib/typescript/module/components/Skeleton/SkeletonElement.d.ts +0 -12
  509. package/lib/typescript/module/components/Skeleton/SkeletonElement.d.ts.map +0 -1
  510. package/lib/typescript/module/components/Skeleton/index.d.ts +0 -5
  511. package/lib/typescript/module/components/Skeleton/index.d.ts.map +0 -1
  512. package/lib/typescript/module/components/Suggestions/SuggestionList.d.ts +0 -14
  513. package/lib/typescript/module/components/Suggestions/SuggestionList.d.ts.map +0 -1
  514. package/lib/typescript/module/components/TravelBooking/CarRentalForm.d.ts +0 -58
  515. package/lib/typescript/module/components/TravelBooking/CarRentalForm.d.ts.map +0 -1
  516. package/lib/typescript/module/components/TravelBooking/FlightForm.d.ts +0 -57
  517. package/lib/typescript/module/components/TravelBooking/FlightForm.d.ts.map +0 -1
  518. package/lib/typescript/module/components/TravelBooking/FlightSummary.d.ts +0 -41
  519. package/lib/typescript/module/components/TravelBooking/FlightSummary.d.ts.map +0 -1
  520. package/lib/typescript/module/components/TravelBooking/HotelForm.d.ts.map +0 -1
  521. package/lib/typescript/module/components/TravelBooking/HotelSummary.d.ts +0 -44
  522. package/lib/typescript/module/components/TravelBooking/HotelSummary.d.ts.map +0 -1
  523. package/lib/typescript/module/components/TravelBooking/SummaryBar.d.ts +0 -17
  524. package/lib/typescript/module/components/TravelBooking/SummaryBar.d.ts.map +0 -1
  525. package/lib/typescript/module/components/TravelBooking/TabSelector.d.ts +0 -17
  526. package/lib/typescript/module/components/TravelBooking/TabSelector.d.ts.map +0 -1
  527. package/lib/typescript/module/components/TravelBooking/TravelBooking.d.ts +0 -84
  528. package/lib/typescript/module/components/TravelBooking/TravelBooking.d.ts.map +0 -1
  529. package/lib/typescript/module/components/TravelBooking/index.d.ts +0 -1
  530. package/lib/typescript/module/components/TravelBooking/index.d.ts.map +0 -1
  531. package/lib/typescript/module/components/TravelBooking/types.d.ts +0 -26
  532. package/lib/typescript/module/components/TravelBooking/types.d.ts.map +0 -1
  533. package/lib/typescript/module/components/UnlockRewards/RewardItem.d.ts +0 -25
  534. package/lib/typescript/module/components/UnlockRewards/RewardItem.d.ts.map +0 -1
  535. package/lib/typescript/module/components/UnlockRewards/UnlockRewards.d.ts +0 -60
  536. package/lib/typescript/module/components/UnlockRewards/UnlockRewards.d.ts.map +0 -1
  537. package/lib/typescript/module/components/UnlockRewards/index.d.ts +0 -5
  538. package/lib/typescript/module/components/UnlockRewards/index.d.ts.map +0 -1
  539. package/lib/typescript/module/components/Wheel/Wheel.d.ts +0 -37
  540. package/lib/typescript/module/components/Wheel/Wheel.d.ts.map +0 -1
  541. package/lib/typescript/module/components/Wheel/index.d.ts +0 -3
  542. package/lib/typescript/module/components/Wheel/index.d.ts.map +0 -1
  543. package/lib/typescript/module/components/index.d.ts +0 -19
  544. package/lib/typescript/module/components/index.d.ts.map +0 -1
  545. package/lib/typescript/module/constants/BRANDS.d.ts +0 -13
  546. package/lib/typescript/module/constants/BRANDS.d.ts.map +0 -1
  547. package/lib/typescript/module/index.d.ts +0 -3
  548. package/lib/typescript/module/index.d.ts.map +0 -1
  549. package/lib/typescript/module/theme/Colors.d.ts +0 -45
  550. package/lib/typescript/module/theme/Colors.d.ts.map +0 -1
  551. package/lib/typescript/module/theme/ThemeContext.d.ts +0 -18
  552. package/lib/typescript/module/theme/ThemeContext.d.ts.map +0 -1
  553. package/lib/typescript/module/theme/index.d.ts +0 -3
  554. package/lib/typescript/module/theme/index.d.ts.map +0 -1
  555. /package/lib/{typescript/module → module}/package.json +0 -0
  556. /package/lib/typescript/{commonjs/app.d.ts → app.d.ts} +0 -0
  557. /package/lib/typescript/{commonjs/components → components}/Badges/Badge.d.ts +0 -0
  558. /package/lib/typescript/{commonjs/components → components}/Badges/index.d.ts +0 -0
  559. /package/lib/typescript/{commonjs/components → components}/Banner/Banner.d.ts +0 -0
  560. /package/lib/typescript/{commonjs/components → components}/Banner/BannerWithDetails.d.ts +0 -0
  561. /package/lib/typescript/{commonjs/components → components}/Banner/index.d.ts +0 -0
  562. /package/lib/typescript/{commonjs/components → components}/BrandIcon/index.d.ts +0 -0
  563. /package/lib/typescript/{commonjs/components → components}/Button/Button.d.ts +0 -0
  564. /package/lib/typescript/{commonjs/components → components}/Button/index.d.ts +0 -0
  565. /package/lib/typescript/{commonjs/components → components}/Card/Card.d.ts +0 -0
  566. /package/lib/typescript/{commonjs/components → components}/Card/CardContent.d.ts +0 -0
  567. /package/lib/typescript/{commonjs/components → components}/Card/CardFooter.d.ts +0 -0
  568. /package/lib/typescript/{commonjs/components → components}/Card/CardHeader.d.ts +0 -0
  569. /package/lib/typescript/{commonjs/components → components}/Card/CardImage.d.ts +0 -0
  570. /package/lib/typescript/{commonjs/components → components}/Card/index.d.ts +0 -0
  571. /package/lib/typescript/{commonjs/components → components}/Card/templates/DealCard.d.ts +0 -0
  572. /package/lib/typescript/{commonjs/components → components}/Card/templates/DealCardWithBackgroundImage.d.ts +0 -0
  573. /package/lib/typescript/{commonjs/components → components}/Card/templates/SimpleTrendingCard.d.ts +0 -0
  574. /package/lib/typescript/{commonjs/components → components}/CloseIcon/CloseIcon.d.ts +0 -0
  575. /package/lib/typescript/{commonjs/components → components}/CloseIcon/index.d.ts +0 -0
  576. /package/lib/typescript/{commonjs/components → components}/DateRangePicker/DateRangePicker.d.ts +0 -0
  577. /package/lib/typescript/{commonjs/components → components}/Filters/Filters.d.ts +0 -0
  578. /package/lib/typescript/{commonjs/components → components}/Filters/PointsRangeSelector.d.ts +0 -0
  579. /package/lib/typescript/{commonjs/components → components}/Filters/index.d.ts +0 -0
  580. /package/lib/typescript/{commonjs/components → components}/Input/Input.d.ts +0 -0
  581. /package/lib/typescript/{commonjs/components → components}/Input/index.d.ts +0 -0
  582. /package/lib/typescript/{commonjs/components → components}/LockOverlay/LockOverlay.d.ts +0 -0
  583. /package/lib/typescript/{commonjs/components → components}/LockOverlay/index.d.ts +0 -0
  584. /package/lib/typescript/{commonjs/components → components}/Marquee/Marquee.d.ts +0 -0
  585. /package/lib/typescript/{commonjs/components → components}/Marquee/index.d.ts +0 -0
  586. /package/lib/typescript/{commonjs/components → components}/NumericStepper/NumericStepper.d.ts +0 -0
  587. /package/lib/typescript/{commonjs/components → components}/NumericStepper/index.d.ts +0 -0
  588. /package/lib/typescript/{commonjs/components → components}/Popup/index.d.ts +0 -0
  589. /package/lib/typescript/{commonjs/components → components}/ProgressBar/ProgressBar.d.ts +0 -0
  590. /package/lib/typescript/{commonjs/components → components}/ProgressBar/index.d.ts +0 -0
  591. /package/lib/typescript/{commonjs/components → components}/RedeemedVoucher/RedeemedVoucherSheet.d.ts +0 -0
  592. /package/lib/typescript/{commonjs/components → components}/RedeemedVoucher/index.d.ts +0 -0
  593. /package/lib/typescript/{commonjs/components → components}/RedemptionOption/RedemptionOption.d.ts +0 -0
  594. /package/lib/typescript/{commonjs/components → components}/RedemptionOption/index.d.ts +0 -0
  595. /package/lib/typescript/{commonjs/components → components}/ScratchCard/ScratchCard.d.ts +0 -0
  596. /package/lib/typescript/{commonjs/components → components}/ScratchCard/ScratchCardContent.d.ts +0 -0
  597. /package/lib/typescript/{commonjs/components → components}/ScratchCard/index.d.ts +0 -0
  598. /package/lib/typescript/{commonjs/components → components}/SelectAmount/SelectAmount.d.ts +0 -0
  599. /package/lib/typescript/{commonjs/components → components}/Skeleton/Shimmer.d.ts +0 -0
  600. /package/lib/typescript/{commonjs/components → components}/Skeleton/SkeletonElement.d.ts +0 -0
  601. /package/lib/typescript/{commonjs/components → components}/Skeleton/index.d.ts +0 -0
  602. /package/lib/typescript/{commonjs/components → components}/Suggestions/SuggestionList.d.ts +0 -0
  603. /package/lib/typescript/{commonjs/components → components}/TravelBooking/FlightForm.d.ts +0 -0
  604. /package/lib/typescript/{commonjs/components → components}/TravelBooking/FlightSummary.d.ts +0 -0
  605. /package/lib/typescript/{commonjs/components → components}/TravelBooking/HotelSummary.d.ts +0 -0
  606. /package/lib/typescript/{commonjs/components → components}/TravelBooking/SummaryBar.d.ts +0 -0
  607. /package/lib/typescript/{commonjs/components → components}/TravelBooking/TabSelector.d.ts +0 -0
  608. /package/lib/typescript/{commonjs/components → components}/TravelBooking/TravelBooking.d.ts +0 -0
  609. /package/lib/typescript/{commonjs/components → components}/TravelBooking/types.d.ts +0 -0
  610. /package/lib/typescript/{commonjs/components → components}/UnlockRewards/RewardItem.d.ts +0 -0
  611. /package/lib/typescript/{commonjs/components → components}/UnlockRewards/UnlockRewards.d.ts +0 -0
  612. /package/lib/typescript/{commonjs/components → components}/UnlockRewards/index.d.ts +0 -0
  613. /package/lib/typescript/{commonjs/components → components}/Wheel/Wheel.d.ts +0 -0
  614. /package/lib/typescript/{commonjs/components → components}/Wheel/index.d.ts +0 -0
  615. /package/lib/typescript/{commonjs/components → components}/index.d.ts +0 -0
  616. /package/lib/typescript/{commonjs/constants → constants}/BRANDS.d.ts +0 -0
  617. /package/lib/typescript/{commonjs/index.d.ts → index.d.ts} +0 -0
  618. /package/lib/typescript/{commonjs/theme → theme}/Colors.d.ts +0 -0
  619. /package/lib/typescript/{commonjs/theme → theme}/ThemeContext.d.ts +0 -0
  620. /package/lib/typescript/{commonjs/theme → theme}/index.d.ts +0 -0
@@ -1,341 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _index = require("../../theme/index.js");
8
- var _react = _interopRequireWildcard(require("react"));
9
- var _reactNative = require("react-native");
10
- var _CloseIcon = _interopRequireDefault(require("../CloseIcon/CloseIcon.js"));
11
- var _jsxRuntime = require("react/jsx-runtime");
12
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13
- 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); }
14
- 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; }
15
- const {
16
- height: screenHeight
17
- } = _reactNative.Dimensions.get("window");
18
- const Popup = ({
19
- visible,
20
- onClose,
21
- backgroundImage,
22
- title,
23
- content,
24
- subtitle,
25
- children,
26
- primaryButtonText,
27
- onPrimaryButtonPress,
28
- secondaryButtonText,
29
- onSecondaryButtonPress,
30
- closeOnBackdropPress = true,
31
- showCloseIcon = false,
32
- customCloseIcon,
33
- illustrationImage,
34
- illustrationStyle,
35
- containerStyle,
36
- titleStyle,
37
- contentStyle,
38
- primaryButtonStyle,
39
- primaryButtonTextStyle,
40
- secondaryButtonStyle,
41
- secondaryButtonTextStyle,
42
- contentContainerStyle,
43
- closeIconContainerStyle,
44
- closeIconStyle,
45
- closeIconVariant = "floating",
46
- subtitleStyle,
47
- isRTL: propIsRTL,
48
- closeIconColor,
49
- closeIconSize = 28,
50
- modalStyle,
51
- overlay,
52
- customContent
53
- }) => {
54
- const {
55
- theme,
56
- isRTL: themeIsRTL
57
- } = (0, _index.useTheme)();
58
- const isRTL = propIsRTL !== undefined ? propIsRTL : themeIsRTL;
59
- const styles = (0, _react.useMemo)(() => createStyles(theme), [theme]);
60
- const [modalRendered, setModalRendered] = (0, _react.useState)(visible);
61
- const slideAnim = (0, _react.useRef)(new _reactNative.Animated.Value(screenHeight)).current;
62
- (0, _react.useEffect)(() => {
63
- if (visible) {
64
- setModalRendered(true);
65
- _reactNative.Animated.timing(slideAnim, {
66
- toValue: 0,
67
- duration: 300,
68
- easing: _reactNative.Easing.out(_reactNative.Easing.ease),
69
- useNativeDriver: true
70
- }).start();
71
- } else {
72
- _reactNative.Animated.timing(slideAnim, {
73
- toValue: screenHeight,
74
- duration: 300,
75
- easing: _reactNative.Easing.in(_reactNative.Easing.ease),
76
- useNativeDriver: true
77
- }).start(() => {
78
- setModalRendered(false);
79
- });
80
- }
81
- }, [visible, slideAnim]);
82
- const renderDefaultContent = () => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
83
- style: [styles.contentContainer, contentContainerStyle],
84
- children: [illustrationImage && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
85
- style: styles.illustrationContainer,
86
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
87
- source: illustrationImage,
88
- style: [styles.illustrationImage, illustrationStyle],
89
- resizeMode: "contain"
90
- })
91
- }), title && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
92
- style: [styles.title, {
93
- color: theme.text,
94
- textAlign: "center"
95
- }, titleStyle],
96
- children: title
97
- }), subtitle && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
98
- style: [styles.subtitle, {
99
- color: theme.text,
100
- textAlign: "center"
101
- }, subtitleStyle],
102
- children: subtitle
103
- }), content && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
104
- style: [styles.content, {
105
- color: theme.text,
106
- textAlign: "center"
107
- }, contentStyle],
108
- children: content
109
- }), customContent && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
110
- children: customContent
111
- }), (secondaryButtonText || primaryButtonText) && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
112
- style: [styles.buttonContainer, {
113
- flexDirection: isRTL ? "row-reverse" : "row"
114
- }],
115
- children: [secondaryButtonText && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
116
- style: [styles.secondaryButton, {
117
- borderColor: theme.primary
118
- }, secondaryButtonStyle, isRTL ? {
119
- marginLeft: 12,
120
- marginRight: 0
121
- } : {
122
- marginRight: 12,
123
- marginLeft: 0
124
- }],
125
- onPress: onSecondaryButtonPress,
126
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
127
- style: [styles.secondaryButtonText, {
128
- color: theme.primary
129
- }, secondaryButtonTextStyle],
130
- children: secondaryButtonText
131
- })
132
- }), primaryButtonText && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
133
- style: [styles.primaryButton, {
134
- backgroundColor: theme.primary
135
- }, primaryButtonStyle],
136
- onPress: onPrimaryButtonPress,
137
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
138
- style: [styles.primaryButtonText, {
139
- color: theme.onPrimary
140
- }, primaryButtonTextStyle],
141
- children: primaryButtonText
142
- })
143
- })]
144
- })]
145
- });
146
- if (!modalRendered && !visible) {
147
- return null;
148
- }
149
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Modal, {
150
- transparent: true,
151
- visible: modalRendered,
152
- animationType: "none",
153
- onRequestClose: onClose,
154
- statusBarTranslucent: true,
155
- style: modalStyle,
156
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
157
- style: styles.modalOverlay,
158
- children: [closeOnBackdropPress && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableWithoutFeedback, {
159
- onPress: onClose,
160
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
161
- style: _reactNative.StyleSheet.absoluteFill
162
- })
163
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Animated.View, {
164
- style: [{
165
- transform: [{
166
- translateY: slideAnim
167
- }]
168
- }, styles.animatedContainer],
169
- pointerEvents: "box-none",
170
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
171
- style: [!children && styles.popupContainer, containerStyle],
172
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CloseIcon.default, {
173
- show: showCloseIcon,
174
- onPress: onClose,
175
- customIcon: customCloseIcon,
176
- variant: closeIconVariant,
177
- containerStyle: closeIconContainerStyle,
178
- iconStyle: closeIconStyle,
179
- color: closeIconColor,
180
- size: closeIconSize,
181
- isRTL: isRTL
182
- }), overlay && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
183
- style: styles.overlayContainer,
184
- pointerEvents: "none",
185
- children: overlay
186
- }), children ? children : backgroundImage ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ImageBackground, {
187
- source: backgroundImage,
188
- style: styles.backgroundImage,
189
- imageStyle: styles.backgroundImageStyle,
190
- children: renderDefaultContent()
191
- }) : renderDefaultContent()]
192
- })
193
- })]
194
- })
195
- });
196
- };
197
- const {
198
- width
199
- } = _reactNative.Dimensions.get("window");
200
- const popupWidth = width * 0.85;
201
-
202
- // Function to create themed styles
203
- const createStyles = theme => _reactNative.StyleSheet.create({
204
- modalOverlay: {
205
- flex: 1,
206
- backgroundColor: "rgba(0, 0, 0, 0.5)",
207
- // Keep overlay color
208
- justifyContent: "center",
209
- alignItems: "center",
210
- paddingTop: _reactNative.Platform.OS === "android" ? _reactNative.StatusBar.currentHeight : 0
211
- },
212
- animatedContainer: {
213
- alignItems: "center",
214
- width: "100%",
215
- justifyContent: "center",
216
- flexGrow: 1
217
- },
218
- popupContainer: {
219
- width: popupWidth,
220
- maxHeight: "80%",
221
- borderRadius: 16,
222
- elevation: 5,
223
- shadowColor: "#000",
224
- shadowOffset: {
225
- width: 0,
226
- height: 2
227
- },
228
- shadowOpacity: 0.25,
229
- shadowRadius: 3.84,
230
- position: "relative",
231
- backgroundColor: theme.surface
232
- },
233
- closeIconContainer: {
234
- position: "absolute",
235
- zIndex: 10,
236
- width: 32,
237
- height: 32,
238
- justifyContent: "center",
239
- alignItems: "center",
240
- borderWidth: 1,
241
- borderRadius: 16,
242
- padding: 0
243
- // backgroundColor and borderColor set inline
244
- },
245
- closeIcon: {
246
- width: 24,
247
- height: 24,
248
- resizeMode: "contain",
249
- textAlign: "center",
250
- textAlignVertical: "center",
251
- lineHeight: 24
252
- // color is set inline
253
- },
254
- backgroundImage: {
255
- width: "100%",
256
- height: "100%"
257
- },
258
- backgroundImageStyle: {
259
- borderRadius: 16
260
- },
261
- contentContainer: {
262
- padding: 24,
263
- alignItems: "center",
264
- justifyContent: "center",
265
- // flex: 1,
266
- // alignSelf:"stretch",
267
- borderRadius: 16
268
- },
269
- illustrationContainer: {
270
- marginBottom: 16,
271
- alignItems: "center",
272
- justifyContent: "center"
273
- },
274
- illustrationImage: {
275
- width: 150,
276
- height: 150,
277
- marginBottom: 8
278
- },
279
- title: {
280
- fontSize: 20,
281
- fontWeight: "bold",
282
- marginBottom: 12,
283
- width: "100%"
284
- // color is set inline
285
- },
286
- subtitle: {
287
- fontSize: 20,
288
- // Adjusted size for subtitle
289
- fontWeight: "bold",
290
- // Adjusted weight for subtitle
291
- marginBottom: 12,
292
- width: "100%"
293
- },
294
- content: {
295
- fontSize: 16,
296
- marginBottom: 24,
297
- lineHeight: 22,
298
- width: "100%"
299
- // color is set inline
300
- },
301
- buttonContainer: {
302
- justifyContent: "center",
303
- marginTop: 16,
304
- width: "100%"
305
- },
306
- primaryButton: {
307
- paddingVertical: 12,
308
- paddingHorizontal: 32,
309
- borderRadius: 50,
310
- minWidth: 120,
311
- alignItems: "center"
312
- // backgroundColor is set inline
313
- },
314
- primaryButtonText: {
315
- fontWeight: "600",
316
- fontSize: 16
317
- // color is set inline using theme.onPrimary
318
- },
319
- secondaryButton: {
320
- paddingVertical: 12,
321
- paddingHorizontal: 24,
322
- borderRadius: 50,
323
- borderWidth: 1,
324
- minWidth: 120,
325
- alignItems: "center"
326
- // borderColor is set inline
327
- },
328
- secondaryButtonText: {
329
- fontWeight: "600",
330
- fontSize: 16
331
- // color is set inline
332
- },
333
- overlayContainer: {
334
- ..._reactNative.StyleSheet.absoluteFillObject,
335
- zIndex: 5,
336
- justifyContent: "center",
337
- alignItems: "center"
338
- }
339
- });
340
- var _default = exports.default = Popup;
341
- //# sourceMappingURL=Popup.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_index","require","_react","_interopRequireWildcard","_reactNative","_CloseIcon","_interopRequireDefault","_jsxRuntime","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","height","screenHeight","Dimensions","Popup","visible","onClose","backgroundImage","title","content","subtitle","children","primaryButtonText","onPrimaryButtonPress","secondaryButtonText","onSecondaryButtonPress","closeOnBackdropPress","showCloseIcon","customCloseIcon","illustrationImage","illustrationStyle","containerStyle","titleStyle","contentStyle","primaryButtonStyle","primaryButtonTextStyle","secondaryButtonStyle","secondaryButtonTextStyle","contentContainerStyle","closeIconContainerStyle","closeIconStyle","closeIconVariant","subtitleStyle","isRTL","propIsRTL","closeIconColor","closeIconSize","modalStyle","overlay","customContent","theme","themeIsRTL","useTheme","undefined","styles","useMemo","createStyles","modalRendered","setModalRendered","useState","slideAnim","useRef","Animated","Value","current","useEffect","timing","toValue","duration","easing","Easing","out","ease","useNativeDriver","start","in","renderDefaultContent","jsxs","View","style","contentContainer","jsx","illustrationContainer","Image","source","resizeMode","Text","color","text","textAlign","buttonContainer","flexDirection","TouchableOpacity","secondaryButton","borderColor","primary","marginLeft","marginRight","onPress","primaryButton","backgroundColor","onPrimary","Modal","transparent","animationType","onRequestClose","statusBarTranslucent","modalOverlay","TouchableWithoutFeedback","StyleSheet","absoluteFill","transform","translateY","animatedContainer","pointerEvents","popupContainer","show","customIcon","variant","iconStyle","size","overlayContainer","ImageBackground","imageStyle","backgroundImageStyle","width","popupWidth","create","flex","justifyContent","alignItems","paddingTop","Platform","OS","StatusBar","currentHeight","flexGrow","maxHeight","borderRadius","elevation","shadowColor","shadowOffset","shadowOpacity","shadowRadius","position","surface","closeIconContainer","zIndex","borderWidth","padding","closeIcon","textAlignVertical","lineHeight","marginBottom","fontSize","fontWeight","marginTop","paddingVertical","paddingHorizontal","minWidth","absoluteFillObject","_default","exports"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/Popup/Popup.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAmBA,IAAAI,UAAA,GAAAC,sBAAA,CAAAL,OAAA;AAA+C,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAK,uBAAAE,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,SAAAL,wBAAAK,CAAA,EAAAK,CAAA,SAAAA,CAAA,IAAAL,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,C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BqB,QAAQ,EAAE,GAAG;IACb7B,UAAU,EAAE;IACZ;EACF,CAAC;EACD5G,iBAAiB,EAAE;IACjBqI,UAAU,EAAE,KAAK;IACjBD,QAAQ,EAAE;IACV;EACF,CAAC;EACD7D,eAAe,EAAE;IACfgE,eAAe,EAAE,EAAE;IACnBC,iBAAiB,EAAE,EAAE;IACrBpB,YAAY,EAAE,EAAE;IAChBU,WAAW,EAAE,CAAC;IACdW,QAAQ,EAAE,GAAG;IACb7B,UAAU,EAAE;IACZ;EACF,CAAC;EACD1G,mBAAmB,EAAE;IACnBmI,UAAU,EAAE,KAAK;IACjBD,QAAQ,EAAE;IACV;EACF,CAAC;EACDjC,gBAAgB,EAAE;IAChB,GAAGZ,uBAAU,CAACmD,kBAAkB;IAChCb,MAAM,EAAE,CAAC;IACTlB,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd;AACF,CAAC,CAAC;AAAC,IAAA+B,QAAA,GAAAC,OAAA,CAAAzK,OAAA,GAEUqB,KAAK","ignoreList":[]}
@@ -1,133 +0,0 @@
1
- # Popup
2
-
3
- ![Standard Popup Example](../../assets/components/Popup-1.png)
4
- ![Popup with RTL](../../assets/components/Popup-3.png)
5
- ![Popup with background image](../../assets/components/Popup-2.png)
6
-
7
-
8
- ## Popup Documentation
9
-
10
- The `Popup` is a versatile modal component designed for displaying important information, confirmations, or actions to users. It provides a customizable interface with support for background images, illustrations, titles, content text, and action buttons. The component is fully RTL-compatible and offers different variants for close button positioning.
11
-
12
- ### Usage
13
-
14
- ```tsx
15
- import Popup from "@/components/Popup";
16
- import { useTheme } from "@/theme";
17
-
18
- const MyComponent = () => {
19
- const [isVisible, setIsVisible] = useState(false);
20
- const theme = useTheme();
21
-
22
- const handleClose = () => setIsVisible(false);
23
- const handlePrimaryAction = () => {
24
- // Do something
25
- handleClose();
26
- };
27
-
28
- return (
29
- <Popup
30
- visible={isVisible}
31
- onClose={handleClose}
32
- showCloseIcon={true}
33
- containerStyle={{ borderColor: "white", borderWidth: 1, height: 300, width:400 }}
34
- title="UNLOCK"
35
- closeIconVariant="nested"
36
- content="Upgrade to Visa signature to get your Card Now!"
37
- primaryButtonText="Upgrade"
38
- subtitle={`60%\nDiscount`}
39
- backgroundImage={require("@/assets/images/face.jpg")}
40
- onPrimaryButtonPress={handleUpgrade}
41
- contentContainerStyle={{backgroundColor:"rgba(0,0,0,0.5)", flex: 1}}
42
- closeIconContainerStyle={{backgroundColor:"white"}}
43
- customCloseIcon={<Ionicons name="close" size={20} color={"black"} />}
44
- />
45
- );
46
- };
47
- ```
48
-
49
- ### Illustration Example
50
-
51
- ```tsx
52
- <Popup
53
- visible={isVisible}
54
- onClose={handleClose}
55
- showCloseIcon={true}
56
- containerStyle={{ borderColor: "white", borderWidth: 1 }}
57
- illustrationImage={require('@/assets/images/upgrade.png')} // Path to your illustration
58
- title="UNLOCK"
59
- closeIconVariant="nested"
60
- content="Upgrade to Visa signature to get your Card Now!"
61
- primaryButtonText="Upgrade"
62
- primaryButtonStyle={{width: 300, backgroundColor:"#E94DAA"}}
63
- onPrimaryButtonPress={handleUpgrade}
64
- customCloseIcon={<Ionicons
65
- name="close"
66
- size={20}
67
- color={"#E94DAA"}/>}
68
- />
69
- ```
70
-
71
- ### RTL
72
-
73
- ```tsx
74
- <Popup
75
- visible={isVisible}
76
- onClose={handleClose}
77
- showCloseIcon={true}
78
- title="ترقية إلى النسخة المميزة"
79
- subtitle="استمتع بمزايا حصرية"
80
- content="احصل على جميع الميزات المتقدمة والمحتوى الحصري بدون إعلانات. اشترك الآن واستمتع بتجربة كاملة مع تحديثات مجانية لمدة عام كامل."
81
- primaryButtonText="ترقية الآن"
82
- secondaryButtonText="ليس الآن"
83
- onPrimaryButtonPress={handleUpgrade}
84
- onSecondaryButtonPress={handleDismiss}
85
- isRTL={true}
86
- />
87
- ```
88
-
89
- ### Props
90
-
91
- | Prop | Type | Default | Description |
92
- |------|------|---------|-------------|
93
- | `visible` | `boolean` | Required | Controls the visibility of the popup |
94
- | `onClose` | `() => void` | Required | Function to call when popup should be closed |
95
- | `backgroundImage` | `ImageSourcePropType` | `undefined` | Optional background image for the popup |
96
- | `title` | `string` | `undefined` | Main title text |
97
- | `subtitle` | `string` | `undefined` | Subtitle text displayed below title |
98
- | `content` | `string` | `undefined` | Main content text |
99
- | `children` | `ReactNode` | `undefined` | Custom content to render inside the popup |
100
- | `primaryButtonText` | `string` | `undefined` | Text for the primary action button |
101
- | `onPrimaryButtonPress` | `() => void` | `undefined` | Function to execute when primary button is pressed |
102
- | `secondaryButtonText` | `string` | `undefined` | Text for the secondary action button |
103
- | `onSecondaryButtonPress` | `() => void` | `undefined` | Function to execute when secondary button is pressed |
104
- | `closeOnBackdropPress` | `boolean` | `true` | Whether tapping outside the popup should close it |
105
- | `showCloseIcon` | `boolean` | `false` | Whether to show the close icon button |
106
- | `closeIconVariant` | `"floating" \| "nested"` | `"floating"` | Style variant for the close icon position |
107
- | `customCloseIcon` | `ReactNode` | `undefined` | Custom component to use as close icon |
108
- | `illustrationImage` | `ImageSourcePropType` | `undefined` | Image to display at the top of the content area |
109
- | `isRTL` | `boolean` | `false` | Whether to render in right-to-left mode |
110
- | `containerStyle` | `StyleProp<ViewStyle>` | `undefined` | Additional styles for the container |
111
- | `contentContainerStyle` | `StyleProp<ViewStyle>` | `undefined` | Additional styles for the content container |
112
- | `titleStyle` | `StyleProp<TextStyle>` | `undefined` | Additional styles for the title text |
113
- | `subtitleStyle` | `StyleProp<TextStyle>` | `undefined` | Additional styles for the subtitle text |
114
- | `contentStyle` | `StyleProp<TextStyle>` | `undefined` | Additional styles for the content text |
115
- | `primaryButtonStyle` | `StyleProp<ViewStyle>` | `undefined` | Additional styles for the primary button |
116
- | `primaryButtonTextStyle` | `StyleProp<TextStyle>` | `undefined` | Additional styles for the primary button text |
117
- | `secondaryButtonStyle` | `StyleProp<ViewStyle>` | `undefined` | Additional styles for the secondary button |
118
- | `secondaryButtonTextStyle` | `StyleProp<TextStyle>` | `undefined` | Additional styles for the secondary button text |
119
- | `closeIconContainerStyle` | `StyleProp<ViewStyle>` | `undefined` | Additional styles for the close icon container |
120
- | `closeIconStyle` | `StyleProp<TextStyle>` | `undefined` | Additional styles for the close icon |
121
- | `illustrationStyle` | `StyleProp<ImageStyle>` | `undefined` | Additional styles for the illustration image |
122
-
123
- ### Close Icon Variants
124
-
125
- - **Floating**: The close icon appears outside the popup's main border, creating a floating effect
126
- - **Nested**: The close icon appears inside the popup's border in the top-right (or top-left in RTL mode)
127
-
128
- ### Related Components
129
-
130
- - `Modal`: The native React Native component used as the foundation
131
- - `ImageBackground`: Used when a background image is provided
132
- - `TouchableOpacity`: Used for the buttons and close icon
133
- - `Text`: Used for rendering text content
@@ -1,29 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _exportNames = {
7
- Popup: true
8
- };
9
- Object.defineProperty(exports, "Popup", {
10
- enumerable: true,
11
- get: function () {
12
- return _Popup.default;
13
- }
14
- });
15
- var _Popup = _interopRequireWildcard(require("./Popup.js"));
16
- Object.keys(_Popup).forEach(function (key) {
17
- if (key === "default" || key === "__esModule") return;
18
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
19
- if (key in exports && exports[key] === _Popup[key]) return;
20
- Object.defineProperty(exports, key, {
21
- enumerable: true,
22
- get: function () {
23
- return _Popup[key];
24
- }
25
- });
26
- });
27
- 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); }
28
- 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; }
29
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_Popup","_interopRequireWildcard","require","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","n","__proto__","a","getOwnPropertyDescriptor","u","i","set"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/Popup/index.ts"],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACAC,MAAA,CAAAC,IAAA,CAAAJ,MAAA,EAAAK,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAN,MAAA,CAAAM,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAd,MAAA,CAAAM,GAAA;IAAA;EAAA;AAAA;AAAuB,SAAAS,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAf,wBAAAe,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAL,GAAA,CAAAE,CAAA,OAAAO,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAtB,MAAA,CAAAS,cAAA,IAAAT,MAAA,CAAAuB,wBAAA,WAAAC,CAAA,IAAAX,CAAA,oBAAAW,CAAA,OAAAnB,cAAA,CAAAC,IAAA,CAAAO,CAAA,EAAAW,CAAA,SAAAC,CAAA,GAAAH,CAAA,GAAAtB,MAAA,CAAAuB,wBAAA,CAAAV,CAAA,EAAAW,CAAA,UAAAC,CAAA,KAAAA,CAAA,CAAAd,GAAA,IAAAc,CAAA,CAAAC,GAAA,IAAA1B,MAAA,CAAAS,cAAA,CAAAW,CAAA,EAAAI,CAAA,EAAAC,CAAA,IAAAL,CAAA,CAAAI,CAAA,IAAAX,CAAA,CAAAW,CAAA,YAAAJ,CAAA,CAAAF,OAAA,GAAAL,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAU,GAAA,CAAAb,CAAA,EAAAO,CAAA,GAAAA,CAAA","ignoreList":[]}
@@ -1,125 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _ThemeContext = require("../../theme/ThemeContext.js");
8
- var _react = _interopRequireDefault(require("react"));
9
- var _reactNative = require("react-native");
10
- var _jsxRuntime = require("react/jsx-runtime");
11
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
- const ProgressBar = ({
13
- progress = 0.5,
14
- text = "",
15
- containerStyle = {},
16
- barContainerStyle = {},
17
- progressStyle = {},
18
- remainingStyle = {},
19
- textStyle = {},
20
- progressColor: progressColorProp,
21
- remainingColor: remainingColorProp,
22
- textColor: textColorProp,
23
- height = 40,
24
- width,
25
- borderRadius = 5,
26
- textPosition = "inside",
27
- textAlign = "left",
28
- showText = true,
29
- isRTL = false
30
- }) => {
31
- const {
32
- theme,
33
- isRTL: rtl
34
- } = (0, _ThemeContext.useTheme)();
35
- isRTL = rtl;
36
- const progressColor = progressColorProp ?? theme.primary;
37
- const remainingColor = remainingColorProp ?? theme.border;
38
- const textColor = textColorProp ?? theme.onPrimary;
39
- const clampedProgress = Math.min(Math.max(progress, 0), 1);
40
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
41
- style: [styles.container, containerStyle, {
42
- width
43
- }],
44
- children: [textPosition === "above" && showText && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
45
- style: [styles.textAbove, {
46
- color: theme.text,
47
- textAlign
48
- },
49
- // Use theme.text for outside text
50
- textStyle],
51
- children: text
52
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
53
- style: [styles.barContainer, {
54
- height,
55
- borderRadius,
56
- backgroundColor: remainingColor
57
- }, barContainerStyle],
58
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
59
- style: [styles.progressBar, isRTL ? {
60
- right: 0
61
- } : {
62
- left: 0
63
- }, {
64
- width: `${clampedProgress * 100}%`,
65
- height: "100%",
66
- borderRadius,
67
- backgroundColor: progressColor
68
- }, progressStyle]
69
- }), textPosition === "inside" && showText && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
70
- style: [styles.textInside, {
71
- color: textColor,
72
- textAlign
73
- },
74
- // Use determined textColor for inside
75
- textStyle],
76
- children: text
77
- })]
78
- }), textPosition === "below" && showText && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
79
- numberOfLines: 1,
80
- style: [styles.textBelow, {
81
- color: theme.text,
82
- textAlign
83
- },
84
- // Use theme.text for outside text
85
- textStyle],
86
- children: text
87
- })]
88
- });
89
- };
90
- const styles = _reactNative.StyleSheet.create({
91
- container: {
92
- width: "100%",
93
- justifyContent: "center"
94
- },
95
- barContainer: {
96
- width: "100%",
97
- overflow: "hidden",
98
- position: "relative"
99
- },
100
- progressBar: {
101
- position: "absolute",
102
- top: 0
103
- },
104
- textInside: {
105
- position: "absolute",
106
- left: 0,
107
- right: 0,
108
- top: 0,
109
- bottom: 0,
110
- textAlign: "center",
111
- textAlignVertical: "center",
112
- paddingHorizontal: 10,
113
- fontWeight: "bold"
114
- },
115
- textAbove: {
116
- marginBottom: 5,
117
- fontWeight: "bold"
118
- },
119
- textBelow: {
120
- marginTop: 5,
121
- fontWeight: "bold"
122
- }
123
- });
124
- var _default = exports.default = ProgressBar;
125
- //# sourceMappingURL=ProgressBar.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_ThemeContext","require","_react","_interopRequireDefault","_reactNative","_jsxRuntime","e","__esModule","default","ProgressBar","progress","text","containerStyle","barContainerStyle","progressStyle","remainingStyle","textStyle","progressColor","progressColorProp","remainingColor","remainingColorProp","textColor","textColorProp","height","width","borderRadius","textPosition","textAlign","showText","isRTL","theme","rtl","useTheme","primary","border","onPrimary","clampedProgress","Math","min","max","jsxs","View","style","styles","container","children","jsx","Text","textAbove","color","barContainer","backgroundColor","progressBar","right","left","textInside","numberOfLines","textBelow","StyleSheet","create","justifyContent","overflow","position","top","bottom","textAlignVertical","paddingHorizontal","fontWeight","marginBottom","marginTop","_default","exports"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/ProgressBar/ProgressBar.tsx"],"mappings":";;;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAA4E,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAE,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAyB5E,MAAMG,WAAuC,GAAGA,CAAC;EAC/CC,QAAQ,GAAG,GAAG;EACdC,IAAI,GAAG,EAAE;EACTC,cAAc,GAAG,CAAC,CAAC;EACnBC,iBAAiB,GAAG,CAAC,CAAC;EACtBC,aAAa,GAAG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