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,212 @@
1
+ # Filters Component
2
+
3
+ A flexible, customizable bottom sheet filter component for React Native applications with support for sorting options, points range selection, brand filtering, and extensive styling options.
4
+
5
+ ![Filters Example](../../assets/components/Filters.png)
6
+
7
+ ## Basic Usage
8
+
9
+ ```jsx
10
+ import React from 'react';
11
+ import { View } from 'react-native';
12
+ import { Filters } from '@your-org/component-library';
13
+
14
+ const ExampleScreen = () => {
15
+ const sortOptions = [
16
+ { id: 1, name: 'Price: Low to High', value: 'price_asc' },
17
+ { id: 2, name: 'Price: High to Low', value: 'price_desc' },
18
+ ];
19
+
20
+ const brands = [
21
+ { id: '1', name: 'Brand A', logo: require('../assets/brandA.png') },
22
+ { id: '2', name: 'Brand B', logo: require('../assets/brandB.png') },
23
+ ];
24
+
25
+ const handleFilterApply = (result) => {
26
+ console.log('Applied filters:', result);
27
+ };
28
+
29
+ return (
30
+ <View style={{ flex: 1 }}>
31
+ <Filters
32
+ sortOptions={sortOptions}
33
+ brands={brands}
34
+ onActionButtonPress={handleFilterApply}
35
+ />
36
+ </View>
37
+ );
38
+ };
39
+
40
+ export default ExampleScreen;
41
+ ```
42
+
43
+ ## Props
44
+
45
+ The `Filters` component provides extensive customization options through its props.
46
+
47
+ ### Core Properties
48
+
49
+ | Prop | Type | Required | Default | Description |
50
+ |------|------|----------|---------|-------------|
51
+ | `onActionButtonPress` | `(result: FilterResult) => void` | ❌ | - | Function called when Apply Filter button is pressed |
52
+ | `sortOptions` | `SortOption[]` | ❌ | `[]` | Array of sorting options to display |
53
+ | `brands` | `Brand[]` | ❌ | `[]` | Array of brand options to display |
54
+ | `isRTL` | `boolean` | ❌ | `I18nManager.isRTL` | Whether to display in right-to-left mode |
55
+
56
+ ### Layout & Sections Properties
57
+
58
+ | Prop | Type | Required | Default | Description |
59
+ |------|------|----------|---------|-------------|
60
+ | `sortSectionTitle` | `string` | ❌ | `"Sort"` | Title for the sorting section |
61
+ | `pointsRangeSectionTitle` | `string` | ❌ | `"Points range"` | Title for the points range section |
62
+ | `brandSectionTitle` | `string` | ❌ | `"Brands"` | Title for the brands section |
63
+ | `showPointsRange` | `boolean` | ❌ | `true` | Whether to display the points range section |
64
+ | `headerTitleText` | `string` | ❌ | `"Filter"` | Text for the header title |
65
+ | `headerResetText` | `string` | ❌ | `"Reset All"` | Text for the reset button |
66
+ | `applyButtonText` | `string` | ❌ | `"Apply Filter"` | Text for the apply button |
67
+
68
+ ### Points Range Properties
69
+
70
+ | Prop | Type | Required | Default | Description |
71
+ |------|------|----------|---------|-------------|
72
+ | `rangeMinLimit` | `number` | ❌ | `0` | Minimum possible value for the range selector |
73
+ | `rangeMaxLimit` | `number` | ❌ | `1000` | Maximum possible value for the range selector |
74
+ | `rangeInitialMin` | `number` | ❌ | `0` | Initial minimum selected value |
75
+ | `rangeInitialMax` | `number` | ❌ | `1000` | Initial maximum selected value |
76
+
77
+ ### Points Range Styling Properties
78
+
79
+ | Prop | Type | Required | Default | Description |
80
+ |------|------|----------|---------|-------------|
81
+ | `pointsRangeContainerStyle` | `ViewStyle` | ❌ | - | Style for the main points range container |
82
+ | `pointsRangeInputsContainerStyle` | `ViewStyle` | ❌ | - | Style for the inputs container in points range selector |
83
+ | `pointsRangeCustomInputContainerStyle` | `ViewStyle` | ❌ | - | Style for the custom input containers |
84
+ | `pointsRangeCustomInputFieldStyle` | `ViewStyle` | ❌ | - | Style for the input fields |
85
+ | `pointsRangeSliderContainerStyle` | `ViewStyle` | ❌ | - | Style for the slider container |
86
+ | `pointsRangeMultiSliderContainerStyle` | `ViewStyle` | ❌ | - | Style for the multi-slider container |
87
+ | `pointsRangeTrackStyle` | `ViewStyle` | ❌ | - | Style for the slider track |
88
+ | `pointsRangeSelectedTrackStyle` | `ViewStyle` | ❌ | - | Style for the selected portion of the track |
89
+ | `pointsRangeUnselectedTrackStyle` | `ViewStyle` | ❌ | - | Style for the unselected portions of the track |
90
+ | `pointsRangeMarkerStyle` | `ViewStyle` | ❌ | - | Style for slider markers |
91
+ | `pointsRangeMarkerEnabledStyle` | `ViewStyle` | ❌ | - | Style for enabled slider markers |
92
+ | `pointsRangeMarkerDisabledStyle` | `ViewStyle` | ❌ | - | Style for disabled slider markers |
93
+ | `pointsRangeMarkerDotStyle` | `ViewStyle` | ❌ | - | Style for the marker dots |
94
+ | `pointsRangeInputProps` | `Object` | ❌ | - | Additional props to pass to the range input fields |
95
+ | `pointsRangeMultiSliderProps` | `Object` | ❌ | - | Additional props to pass to the MultiSlider component |
96
+
97
+ ### Brand Configuration Properties
98
+
99
+ | Prop | Type | Required | Default | Description |
100
+ |------|------|----------|---------|-------------|
101
+ | `brandActiveIcon` | `React.ReactNode` | ❌ | `<Ionicons name="checkmark-outline" />` | Icon to show for selected brands |
102
+ | `brandActiveIconStyle` | `ViewStyle` | ❌ | - | Style for the active brand icon |
103
+
104
+ ### Bottom Sheet Properties
105
+
106
+ | Prop | Type | Required | Default | Description |
107
+ |------|------|----------|---------|-------------|
108
+ | `bottomSheetIndex` | `number` | ❌ | `0` | Initial index for the bottom sheet |
109
+ | `snapPoints` | `string[]` | ❌ | `["50%", "90%"]` | Snap points for the bottom sheet |
110
+ | `handleIndicatorStyle` | `ViewStyle` | ❌ | - | Style for the bottom sheet handle indicator |
111
+
112
+ ### Style Customization Properties
113
+
114
+ | Prop | Type | Required | Default | Description |
115
+ |------|------|----------|---------|-------------|
116
+ | `containerStyle` | `ViewStyle` | ❌ | - | Style for the main container |
117
+ | `headerStyle` | `ViewStyle` | ❌ | - | Style for the header |
118
+ | `titleStyle` | `TextStyle` | ❌ | - | Style for the header title |
119
+ | `resetTextStyle` | `TextStyle` | ❌ | - | Style for the reset text |
120
+ | `sectionStyle` | `ViewStyle` | ❌ | - | Style for all filter sections |
121
+ | `sortSectionStyle` | `ViewStyle` | ❌ | - | Style specifically for the sort section |
122
+ | `sectionTitleStyle` | `TextStyle` | ❌ | - | Style for section titles |
123
+ | `optionRowStyle` | `ViewStyle` | ❌ | - | Style for option rows in the sort section |
124
+ | `optionTextStyle` | `TextStyle` | ❌ | - | Style for option text in the sort section |
125
+ | `checkboxColor` | `string` | ❌ | `theme.secondary` | Color for checkboxes |
126
+ | `brandContainerStyle` | `ViewStyle` | ❌ | - | Style for the brands grid container |
127
+ | `applyButtonStyle` | `ViewStyle` | ❌ | - | Style for the apply button |
128
+ | `applyButtonTextStyle` | `TextStyle` | ❌ | - | Style for the apply button text |
129
+ | `bottomSheetStyle` | `ViewStyle` | ❌ | - | Style for the bottom sheet |
130
+
131
+ ## Types
132
+
133
+ ```typescript
134
+ type SortOption = {
135
+ name: string;
136
+ value: string;
137
+ id: number;
138
+ };
139
+
140
+ type Brand = {
141
+ id: string;
142
+ name: string;
143
+ logo: ImageSourcePropType;
144
+ };
145
+
146
+ type FilterResult = {
147
+ sort: SortOption[];
148
+ pointsRange: { min: number; max: number };
149
+ selectedBrands: Brand[];
150
+ };
151
+ ```
152
+
153
+ ## Examples
154
+
155
+ ### Basic Filter with Sort Options Only
156
+
157
+ ```jsx
158
+ <Filters
159
+ sortOptions={[
160
+ { id: 1, name: 'Newest First', value: 'newest' },
161
+ { id: 2, name: 'Oldest First', value: 'oldest' },
162
+ { id: 3, name: 'Highest Rated', value: 'rated_desc' }
163
+ ]}
164
+ showPointsRange={false}
165
+ onActionButtonPress={(result) => handleSort(result.sort)}
166
+ />
167
+ ```
168
+
169
+ ### Points Range Filter with Custom Limits
170
+
171
+ ```jsx
172
+ <Filters
173
+ showPointsRange={true}
174
+ rangeMinLimit={0}
175
+ rangeMaxLimit={5000}
176
+ rangeInitialMin={100}
177
+ rangeInitialMax={2000}
178
+ pointsRangeSectionTitle="Price Range"
179
+ onActionButtonPress={(result) => handlePriceRange(result.pointsRange)}
180
+ />
181
+ ```
182
+
183
+ ### Brand Selection with Custom Styling
184
+
185
+ ```jsx
186
+ <Filters
187
+ brands={[
188
+ { id: 'nike', name: 'Nike', logo: require('../assets/nike.png') },
189
+ { id: 'adidas', name: 'Adidas', logo: require('../assets/adidas.png') },
190
+ { id: 'puma', name: 'Puma', logo: require('../assets/puma.png') }
191
+ ]}
192
+ brandSectionTitle="Select Brands"
193
+ brandContainerStyle={{ justifyContent: 'space-between' }}
194
+ brandActiveIconStyle={{ backgroundColor: '#E0F7FA' }}
195
+ onActionButtonPress={(result) => handleBrandFilter(result.selectedBrands)}
196
+ />
197
+ ```
198
+
199
+ ### RTL Support with Custom Headers
200
+
201
+ ```jsx
202
+ <Filters
203
+ isRTL={true}
204
+ headerTitleText="فلتر"
205
+ headerResetText="إعادة تعيين الكل"
206
+ applyButtonText="تطبيق الفلتر"
207
+ sortSectionTitle="ترتيب"
208
+ pointsRangeSectionTitle="نطاق النقاط"
209
+ brandSectionTitle="العلامات التجارية"
210
+ onActionButtonPress={handleArabicFilters}
211
+ />
212
+ ```
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _exportNames = {
7
+ Filters: true,
8
+ PointsRangeSelector: true
9
+ };
10
+ Object.defineProperty(exports, "Filters", {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _Filters.default;
14
+ }
15
+ });
16
+ Object.defineProperty(exports, "PointsRangeSelector", {
17
+ enumerable: true,
18
+ get: function () {
19
+ return _PointsRangeSelector.default;
20
+ }
21
+ });
22
+ var _Filters = _interopRequireWildcard(require("./Filters.js"));
23
+ Object.keys(_Filters).forEach(function (key) {
24
+ if (key === "default" || key === "__esModule") return;
25
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
26
+ if (key in exports && exports[key] === _Filters[key]) return;
27
+ Object.defineProperty(exports, key, {
28
+ enumerable: true,
29
+ get: function () {
30
+ return _Filters[key];
31
+ }
32
+ });
33
+ });
34
+ var _PointsRangeSelector = _interopRequireWildcard(require("./PointsRangeSelector.js"));
35
+ Object.keys(_PointsRangeSelector).forEach(function (key) {
36
+ if (key === "default" || key === "__esModule") return;
37
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
38
+ if (key in exports && exports[key] === _PointsRangeSelector[key]) return;
39
+ Object.defineProperty(exports, key, {
40
+ enumerable: true,
41
+ get: function () {
42
+ return _PointsRangeSelector[key];
43
+ }
44
+ });
45
+ });
46
+ 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); }
47
+ 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; }
48
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_Filters","_interopRequireWildcard","require","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_PointsRangeSelector","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","n","__proto__","a","getOwnPropertyDescriptor","u","i","set"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/Filters/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,QAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEAC,MAAA,CAAAC,IAAA,CAAAJ,QAAA,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,QAAA,CAAAM,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAd,QAAA,CAAAM,GAAA;IAAA;EAAA;AAAA;AADA,IAAAS,oBAAA,GAAAd,uBAAA,CAAAC,OAAA;AAEAC,MAAA,CAAAC,IAAA,CAAAW,oBAAA,EAAAV,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA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,YAAAJ,CAAA,CAAAF,OAAA,GAAAL,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAU,GAAA,CAAAb,CAAA,EAAAO,CAAA,GAAAA,CAAA","ignoreList":[]}
@@ -0,0 +1,161 @@
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 _index = require("../../theme/index.js");
10
+ var _jsxRuntime = require("react/jsx-runtime");
11
+ 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); }
12
+ 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; }
13
+ const CustomInput = /*#__PURE__*/(0, _react.forwardRef)(({
14
+ label,
15
+ error,
16
+ helper,
17
+ leftIcon,
18
+ rightIcon,
19
+ onRightIconPress,
20
+ containerStyle,
21
+ labelStyle,
22
+ inputStyle,
23
+ inputContainerStyle,
24
+ errorStyle,
25
+ helperStyle,
26
+ onChangeText,
27
+ onBlur,
28
+ onFocus,
29
+ isRTL = false,
30
+ ...rest
31
+ }, ref) => {
32
+ const {
33
+ theme,
34
+ isRTL: rtl
35
+ } = (0, _index.useTheme)();
36
+ isRTL = rtl;
37
+ const [isFocused, setIsFocused] = (0, _react.useState)(false);
38
+ const handleFocus = () => {
39
+ setIsFocused(true);
40
+ onFocus && onFocus();
41
+ };
42
+ const handleBlur = () => {
43
+ setIsFocused(false);
44
+ onBlur && onBlur();
45
+ };
46
+
47
+ // Define styles using a function to access theme
48
+ const styles = createStyles(theme);
49
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
50
+ style: [styles.container, containerStyle],
51
+ children: [label && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
52
+ style: [styles.label, {
53
+ textAlign: isRTL ? 'right' : 'left'
54
+ }, labelStyle],
55
+ children: label
56
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
57
+ style: [styles.inputContainer, inputContainerStyle, isFocused && styles.focusedInput, error && styles.errorInput, isRTL && {
58
+ flexDirection: 'row-reverse'
59
+ }],
60
+ children: [leftIcon && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
61
+ style: [styles.leftIcon, isRTL && {
62
+ paddingRight: 12,
63
+ paddingLeft: 0
64
+ }],
65
+ children: leftIcon
66
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TextInput, {
67
+ ref: ref,
68
+ style: [styles.input, leftIcon ? styles.inputWithLeftIcon : undefined, rightIcon ? styles.inputWithRightIcon : undefined, {
69
+ textAlign: isRTL ? 'right' : 'left'
70
+ }, inputStyle],
71
+ onChangeText: onChangeText,
72
+ onFocus: handleFocus,
73
+ onBlur: handleBlur,
74
+ placeholderTextColor: theme.placeholderText // Use placeholderText
75
+ ,
76
+ ...rest
77
+ }), rightIcon && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
78
+ style: [styles.rightIcon, isRTL && {
79
+ paddingLeft: 12,
80
+ paddingRight: 0
81
+ }],
82
+ onPress: onRightIconPress,
83
+ disabled: !onRightIconPress,
84
+ children: rightIcon
85
+ })]
86
+ }), error ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
87
+ style: [styles.error, {
88
+ textAlign: isRTL ? 'right' : 'left'
89
+ }, errorStyle],
90
+ children: error
91
+ }) : helper ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
92
+ style: [styles.helper, {
93
+ textAlign: isRTL ? 'right' : 'left'
94
+ }, helperStyle],
95
+ children: helper
96
+ }) : null]
97
+ });
98
+ });
99
+
100
+ // Function to create themed styles
101
+ const createStyles = theme => _reactNative.StyleSheet.create({
102
+ container: {},
103
+ label: {
104
+ fontSize: 14,
105
+ fontWeight: '500',
106
+ marginBottom: 6,
107
+ color: theme.labelText // Use labelText
108
+ },
109
+ inputContainer: {
110
+ flexDirection: 'row',
111
+ borderWidth: 1,
112
+ borderColor: theme.border,
113
+ // Use border
114
+ borderRadius: 8,
115
+ backgroundColor: theme.inputBackground,
116
+ // Use inputBackground
117
+ alignItems: 'center'
118
+ // minHeight: 48,
119
+ },
120
+ focusedInput: {
121
+ borderColor: theme.primary // Use primary for focus indication
122
+ },
123
+ errorInput: {
124
+ borderColor: theme.error // Correctly uses error
125
+ },
126
+ input: {
127
+ flex: 1,
128
+ paddingHorizontal: 12,
129
+ paddingVertical: 12,
130
+ fontSize: 16,
131
+ color: theme.inputText,
132
+ // Use inputText
133
+ backgroundColor: 'transparent' // Keep transparent
134
+ },
135
+ inputWithLeftIcon: {
136
+ paddingLeft: 8
137
+ },
138
+ inputWithRightIcon: {
139
+ paddingRight: 8
140
+ },
141
+ leftIcon: {
142
+ paddingLeft: 12
143
+ },
144
+ rightIcon: {
145
+ paddingRight: 12
146
+ },
147
+ error: {
148
+ fontSize: 12,
149
+ color: theme.error,
150
+ // Correctly uses error
151
+ marginTop: 4
152
+ },
153
+ helper: {
154
+ fontSize: 12,
155
+ color: theme.helper,
156
+ // Correctly uses helper
157
+ marginTop: 4
158
+ }
159
+ });
160
+ var _default = exports.default = CustomInput;
161
+ //# sourceMappingURL=Input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_index","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","CustomInput","forwardRef","label","error","helper","leftIcon","rightIcon","onRightIconPress","containerStyle","labelStyle","inputStyle","inputContainerStyle","errorStyle","helperStyle","onChangeText","onBlur","onFocus","isRTL","rest","ref","theme","rtl","useTheme","isFocused","setIsFocused","useState","handleFocus","handleBlur","styles","createStyles","jsxs","View","style","container","children","jsx","Text","textAlign","inputContainer","focusedInput","errorInput","flexDirection","paddingRight","paddingLeft","TextInput","input","inputWithLeftIcon","undefined","inputWithRightIcon","placeholderTextColor","placeholderText","TouchableOpacity","onPress","disabled","StyleSheet","create","fontSize","fontWeight","marginBottom","color","labelText","borderWidth","borderColor","border","borderRadius","backgroundColor","inputBackground","alignItems","primary","flex","paddingHorizontal","paddingVertical","inputText","marginTop","_default","exports"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/Input/Input.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAWA,IAAAE,MAAA,GAAAF,OAAA;AAAkD,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAI,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,SAAAN,wBAAAM,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,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA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E,SAAS,EAAE;EACb;AACF,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAzF,OAAA,GAEUc,WAAW","ignoreList":[]}
@@ -0,0 +1,128 @@
1
+ # CustomInput Component
2
+
3
+ A flexible, themeable text input component for React Native applications with support for labels, icons, error messages, and helper text.
4
+
5
+ ## Basic Usage
6
+
7
+ ```jsx
8
+ import React, { useState } from 'react';
9
+ import { View } from 'react-native';
10
+ import { CustomInput } from '@your-org/component-library';
11
+
12
+ const MyForm = () => {
13
+ const [name, setName] = useState('');
14
+
15
+ return (
16
+ <View style={{ padding: 16 }}>
17
+ <CustomInput
18
+ label="Full Name"
19
+ placeholder="Enter your full name"
20
+ value={name}
21
+ onChangeText={setName}
22
+ />
23
+ </View>
24
+ );
25
+ };
26
+
27
+ export default MyForm;
28
+ ```
29
+
30
+ ## Props
31
+
32
+ The `CustomInput` component extends React Native's `TextInputProps` (except for the `style` prop which is replaced with more specific styling props) and adds the following:
33
+
34
+ ### Core Properties
35
+
36
+ | Prop | Type | Required | Default | Description |
37
+ |------|------|----------|---------|-------------|
38
+ | `label` | `string` | ❌ | - | Text to display above the input field |
39
+ | `error` | `string` | ❌ | - | Error message to display below the input (turns border red) |
40
+ | `helper` | `string` | ❌ | - | Helper text to display below the input (hidden if error is present) |
41
+
42
+ ### Icon Properties
43
+
44
+ | Prop | Type | Required | Default | Description |
45
+ |------|------|----------|---------|-------------|
46
+ | `leftIcon` | `React.ReactNode` | ❌ | - | Icon component to display on the left side of the input |
47
+ | `rightIcon` | `React.ReactNode` | ❌ | - | Icon component to display on the right side of the input |
48
+ | `onRightIconPress` | `() => void` | ❌ | - | Function to call when the right icon is pressed |
49
+
50
+ ### Style Customization
51
+
52
+ | Prop | Type | Required | Default | Description |
53
+ |------|------|----------|---------|-------------|
54
+ | `containerStyle` | `StyleProp<ViewStyle>` | ❌ | - | Style for the outer container |
55
+ | `labelStyle` | `StyleProp<TextStyle>` | ❌ | - | Style for the label text |
56
+ | `inputStyle` | `StyleProp<TextStyle>` | ❌ | - | Style for the text input itself |
57
+ | `inputContainerStyle` | `StyleProp<ViewStyle>` | ❌ | - | Style for the container around the input and icons |
58
+ | `errorStyle` | `StyleProp<TextStyle>` | ❌ | - | Style for the error message text |
59
+ | `helperStyle` | `StyleProp<TextStyle>` | ❌ | - | Style for the helper text |
60
+
61
+ ### Behavior Props
62
+
63
+ | Prop | Type | Required | Default | Description |
64
+ |------|------|----------|---------|-------------|
65
+ | `onChangeText` | `(text: string) => void` | ❌ | - | Function to call when text changes |
66
+ | `onBlur` | `() => void` | ❌ | - | Function to call when input loses focus |
67
+ | `onFocus` | `() => void` | ❌ | - | Function to call when input gains focus |
68
+
69
+ ## Examples
70
+
71
+ ### Basic Input with Label
72
+
73
+ ```jsx
74
+ <CustomInput
75
+ label="Username"
76
+ placeholder="Enter your username"
77
+ onChangeText={(text) => console.log(text)}
78
+ />
79
+ ```
80
+
81
+ ### Input with Error State
82
+
83
+ ```jsx
84
+ <CustomInput
85
+ label="Email"
86
+ placeholder="Enter your email"
87
+ value={email}
88
+ onChangeText={setEmail}
89
+ error={!isValidEmail(email) ? "Please enter a valid email address" : ""}
90
+ />
91
+ ```
92
+
93
+ ### Input with Helper Text
94
+
95
+ ```jsx
96
+ <CustomInput
97
+ label="Password"
98
+ placeholder="Enter your password"
99
+ secureTextEntry
100
+ helper="Password must be at least 8 characters long"
101
+ onChangeText={setPassword}
102
+ />
103
+ ```
104
+
105
+ ### Input with Icons
106
+
107
+ ```jsx
108
+ import { Ionicons } from '@expo/vector-icons';
109
+
110
+ // Password input with toggle icon
111
+ const [showPassword, setShowPassword] = useState(false);
112
+
113
+ <CustomInput
114
+ label="Password"
115
+ placeholder="Enter your password"
116
+ secureTextEntry={!showPassword}
117
+ leftIcon={<Ionicons name="lock-closed" size={20} color="#888" />}
118
+ rightIcon={
119
+ <Ionicons
120
+ name={showPassword ? "eye-off" : "eye"}
121
+ size={20}
122
+ color="#888"
123
+ />
124
+ }
125
+ onRightIconPress={() => setShowPassword(!showPassword)}
126
+ onChangeText={setPassword}
127
+ />
128
+ ```
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _exportNames = {
7
+ Input: true
8
+ };
9
+ Object.defineProperty(exports, "Input", {
10
+ enumerable: true,
11
+ get: function () {
12
+ return _Input.default;
13
+ }
14
+ });
15
+ var _Input = _interopRequireWildcard(require("./Input.js"));
16
+ Object.keys(_Input).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] === _Input[key]) return;
20
+ Object.defineProperty(exports, key, {
21
+ enumerable: true,
22
+ get: function () {
23
+ return _Input[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
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_Input","_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/Input/index.ts"],"mappings":";;;;;;;;;;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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":[]}
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _vectorIcons = require("@expo/vector-icons");
10
+ var _jsxRuntime = require("react/jsx-runtime");
11
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
+ const LockOverlay = ({
13
+ visible = true,
14
+ containerStyle,
15
+ iconStyle,
16
+ textStyle,
17
+ text = 'Unlock',
18
+ iconSize = 50,
19
+ iconColor = 'white',
20
+ overlayOpacity = 0.7,
21
+ contentVerticalAlign = "center",
22
+ ...touchableProps
23
+ }) => {
24
+ if (!visible) return null;
25
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
26
+ style: [styles.overlay, {
27
+ backgroundColor: `rgba(0, 0, 0, ${overlayOpacity})`
28
+ }, contentVerticalAlign == "top" && {
29
+ justifyContent: "flex-start",
30
+ paddingTop: 50
31
+ }, containerStyle],
32
+ activeOpacity: 0.8,
33
+ ...touchableProps,
34
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
35
+ name: "lock-closed",
36
+ size: iconSize,
37
+ color: iconColor
38
+ // style={iconStyle}
39
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
40
+ style: [styles.text, {
41
+ color: iconColor
42
+ }, textStyle],
43
+ children: text
44
+ })]
45
+ });
46
+ };
47
+ const styles = _reactNative.StyleSheet.create({
48
+ overlay: {
49
+ position: 'absolute',
50
+ top: 0,
51
+ left: 0,
52
+ right: 0,
53
+ bottom: 0,
54
+ justifyContent: 'center',
55
+ alignItems: 'center',
56
+ zIndex: 999
57
+ },
58
+ text: {
59
+ fontSize: 20,
60
+ fontWeight: 'bold',
61
+ marginTop: 12
62
+ }
63
+ });
64
+ var _default = exports.default = LockOverlay;
65
+ //# sourceMappingURL=LockOverlay.js.map