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,212 +0,0 @@
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
- ```
@@ -1,48 +0,0 @@
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
@@ -1 +0,0 @@
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,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GAAA,IAAA3B,MAAA,CAAAS,cAAA,CAAAY,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,161 +0,0 @@
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
@@ -1 +0,0 @@
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,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA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A,CAAAzF,OAAA,GAEUc,WAAW","ignoreList":[]}
@@ -1,128 +0,0 @@
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
- ```
@@ -1,29 +0,0 @@
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
@@ -1 +0,0 @@
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":";;;;;;;;;;;;;;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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AAL,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAU,GAAA,CAAAb,CAAA,EAAAO,CAAA,GAAAA,CAAA","ignoreList":[]}
@@ -1,65 +0,0 @@
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