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.
- package/lib/module/app.js +3 -2
- package/lib/module/app.js.map +1 -1
- package/lib/module/components/BrandIcon/BrandIcon.js +3 -2
- package/lib/module/components/BrandIcon/BrandIcon.js.map +1 -1
- package/lib/module/components/Card/CardImage.js +2 -1
- package/lib/module/components/Card/CardImage.js.map +1 -1
- package/lib/module/components/Card/templates/DealCard.js +2 -1
- package/lib/module/components/Card/templates/DealCard.js.map +1 -1
- package/lib/module/components/DateRangePicker/DateRangePicker.js +1 -2
- package/lib/module/components/DateRangePicker/DateRangePicker.js.map +1 -1
- package/lib/module/components/Popup/Popup.js +3 -2
- package/lib/module/components/Popup/Popup.js.map +1 -1
- package/lib/module/components/Popup/README.md +1 -1
- package/lib/module/components/RedeemedVoucher/RedeemedVoucherSheet.js +2 -1
- package/lib/module/components/RedeemedVoucher/RedeemedVoucherSheet.js.map +1 -1
- package/lib/module/components/Suggestions/SuggestionList.js +1 -1
- package/lib/module/components/Suggestions/SuggestionList.js.map +1 -1
- package/lib/module/components/TravelBooking/CarRentalForm.js +1 -1
- package/lib/module/components/TravelBooking/CarRentalForm.js.map +1 -1
- package/lib/module/components/TravelBooking/FlightForm.js +1 -1
- package/lib/module/components/TravelBooking/FlightForm.js.map +1 -1
- package/lib/module/components/TravelBooking/FlightSummary.js +1 -1
- package/lib/module/components/TravelBooking/FlightSummary.js.map +1 -1
- package/lib/module/components/TravelBooking/HotelForm.js +1 -1
- package/lib/module/components/TravelBooking/HotelForm.js.map +1 -1
- package/lib/module/components/TravelBooking/HotelSummary.js +1 -1
- package/lib/module/components/TravelBooking/HotelSummary.js.map +1 -1
- package/lib/module/components/TravelBooking/README.md +3 -3
- package/lib/module/components/TravelBooking/SummaryBar.js +1 -1
- package/lib/module/components/TravelBooking/SummaryBar.js.map +1 -1
- package/lib/module/components/TravelBooking/TabSelector.js +1 -1
- package/lib/module/components/TravelBooking/TabSelector.js.map +1 -1
- package/lib/module/components/TravelBooking/TravelBooking.js +1 -1
- package/lib/module/components/TravelBooking/TravelBooking.js.map +1 -1
- package/lib/module/components/UnlockRewards/README.md +1 -1
- package/lib/typescript/app.d.ts.map +1 -0
- package/lib/typescript/components/Badges/Badge.d.ts.map +1 -0
- package/lib/typescript/components/Badges/index.d.ts.map +1 -0
- package/lib/typescript/components/Banner/Banner.d.ts.map +1 -0
- package/lib/typescript/components/Banner/BannerWithDetails.d.ts.map +1 -0
- package/lib/typescript/components/Banner/index.d.ts.map +1 -0
- package/lib/typescript/{module/components → components}/BrandIcon/BrandIcon.d.ts +2 -1
- package/lib/typescript/components/BrandIcon/BrandIcon.d.ts.map +1 -0
- package/lib/typescript/components/BrandIcon/index.d.ts.map +1 -0
- package/lib/typescript/components/Button/Button.d.ts.map +1 -0
- package/lib/typescript/components/Button/index.d.ts.map +1 -0
- package/lib/typescript/components/Card/Card.d.ts.map +1 -0
- package/lib/typescript/components/Card/CardContent.d.ts.map +1 -0
- package/lib/typescript/components/Card/CardFooter.d.ts.map +1 -0
- package/lib/typescript/components/Card/CardHeader.d.ts.map +1 -0
- package/lib/typescript/components/Card/CardImage.d.ts.map +1 -0
- package/lib/typescript/components/Card/index.d.ts.map +1 -0
- package/lib/typescript/components/Card/templates/DealCard.d.ts.map +1 -0
- package/lib/typescript/components/Card/templates/DealCardWithBackgroundImage.d.ts.map +1 -0
- package/lib/typescript/components/Card/templates/SimpleTrendingCard.d.ts.map +1 -0
- package/lib/typescript/{module/components → components}/Card/types.d.ts +7 -6
- package/lib/typescript/components/Card/types.d.ts.map +1 -0
- package/lib/typescript/components/CloseIcon/CloseIcon.d.ts.map +1 -0
- package/lib/typescript/components/CloseIcon/index.d.ts.map +1 -0
- package/lib/typescript/components/DateRangePicker/DateRangePicker.d.ts.map +1 -0
- package/lib/typescript/components/DateRangePicker/index.d.ts +2 -0
- package/lib/typescript/components/DateRangePicker/index.d.ts.map +1 -0
- package/lib/typescript/components/Filters/Filters.d.ts.map +1 -0
- package/lib/typescript/components/Filters/PointsRangeSelector.d.ts.map +1 -0
- package/lib/typescript/components/Filters/index.d.ts.map +1 -0
- package/lib/typescript/components/Input/Input.d.ts.map +1 -0
- package/lib/typescript/components/Input/index.d.ts.map +1 -0
- package/lib/typescript/components/LockOverlay/LockOverlay.d.ts.map +1 -0
- package/lib/typescript/components/LockOverlay/index.d.ts.map +1 -0
- package/lib/typescript/components/Marquee/Marquee.d.ts.map +1 -0
- package/lib/typescript/components/Marquee/index.d.ts.map +1 -0
- package/lib/typescript/components/NumericStepper/NumericStepper.d.ts.map +1 -0
- package/lib/typescript/components/NumericStepper/index.d.ts.map +1 -0
- package/lib/typescript/{module/components → components}/Popup/Popup.d.ts +2 -1
- package/lib/typescript/components/Popup/Popup.d.ts.map +1 -0
- package/lib/typescript/components/Popup/index.d.ts.map +1 -0
- package/lib/typescript/components/ProgressBar/ProgressBar.d.ts.map +1 -0
- package/lib/typescript/components/ProgressBar/index.d.ts.map +1 -0
- package/lib/typescript/components/RedeemedVoucher/RedeemedVoucherSheet.d.ts.map +1 -0
- package/lib/typescript/components/RedeemedVoucher/index.d.ts.map +1 -0
- package/lib/typescript/components/RedemptionOption/RedemptionOption.d.ts.map +1 -0
- package/lib/typescript/components/RedemptionOption/index.d.ts.map +1 -0
- package/lib/typescript/components/ScratchCard/ScratchCard.d.ts.map +1 -0
- package/lib/typescript/components/ScratchCard/ScratchCardContent.d.ts.map +1 -0
- package/lib/typescript/components/ScratchCard/index.d.ts.map +1 -0
- package/lib/typescript/components/SelectAmount/SelectAmount.d.ts.map +1 -0
- package/lib/typescript/components/SelectAmount/index.d.ts +2 -0
- package/lib/typescript/components/SelectAmount/index.d.ts.map +1 -0
- package/lib/typescript/components/Skeleton/Shimmer.d.ts.map +1 -0
- package/lib/typescript/components/Skeleton/SkeletonElement.d.ts.map +1 -0
- package/lib/typescript/components/Skeleton/index.d.ts.map +1 -0
- package/lib/typescript/components/Suggestions/SuggestionList.d.ts.map +1 -0
- package/lib/typescript/{commonjs/components → components}/TravelBooking/CarRentalForm.d.ts +1 -1
- package/lib/typescript/components/TravelBooking/CarRentalForm.d.ts.map +1 -0
- package/lib/typescript/components/TravelBooking/FlightForm.d.ts.map +1 -0
- package/lib/typescript/components/TravelBooking/FlightSummary.d.ts.map +1 -0
- package/lib/typescript/{module/components → components}/TravelBooking/HotelForm.d.ts +1 -1
- package/lib/typescript/components/TravelBooking/HotelForm.d.ts.map +1 -0
- package/lib/typescript/components/TravelBooking/HotelSummary.d.ts.map +1 -0
- package/lib/typescript/components/TravelBooking/SummaryBar.d.ts.map +1 -0
- package/lib/typescript/components/TravelBooking/TabSelector.d.ts.map +1 -0
- package/lib/typescript/components/TravelBooking/TravelBooking.d.ts.map +1 -0
- package/lib/typescript/components/TravelBooking/index.d.ts +2 -0
- package/lib/typescript/components/TravelBooking/index.d.ts.map +1 -0
- package/lib/typescript/components/TravelBooking/types.d.ts.map +1 -0
- package/lib/typescript/components/UnlockRewards/RewardItem.d.ts.map +1 -0
- package/lib/typescript/components/UnlockRewards/UnlockRewards.d.ts.map +1 -0
- package/lib/typescript/components/UnlockRewards/index.d.ts.map +1 -0
- package/lib/typescript/components/Wheel/Wheel.d.ts.map +1 -0
- package/lib/typescript/components/Wheel/index.d.ts.map +1 -0
- package/lib/typescript/components/index.d.ts.map +1 -0
- package/lib/typescript/constants/BRANDS.d.ts.map +1 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/theme/Colors.d.ts.map +1 -0
- package/lib/typescript/theme/ThemeContext.d.ts.map +1 -0
- package/lib/typescript/theme/index.d.ts.map +1 -0
- package/package.json +74 -123
- package/src/app.tsx +1 -1
- package/src/components/BrandIcon/BrandIcon.tsx +2 -3
- package/src/components/Card/CardImage.tsx +3 -1
- package/src/components/Card/templates/DealCard.tsx +1 -1
- package/src/components/Card/types.ts +21 -10
- package/src/components/DateRangePicker/DateRangePicker.tsx +1 -2
- package/src/components/Popup/Popup.tsx +2 -3
- package/src/components/Popup/README.md +1 -1
- package/src/components/RedeemedVoucher/RedeemedVoucherSheet.tsx +1 -1
- package/src/components/Suggestions/SuggestionList.tsx +1 -1
- package/src/components/TravelBooking/CarRentalForm.tsx +2 -2
- package/src/components/TravelBooking/FlightForm.tsx +1 -1
- package/src/components/TravelBooking/FlightSummary.tsx +1 -1
- package/src/components/TravelBooking/HotelForm.tsx +2 -2
- package/src/components/TravelBooking/HotelSummary.tsx +1 -1
- package/src/components/TravelBooking/README.md +3 -3
- package/src/components/TravelBooking/SummaryBar.tsx +1 -1
- package/src/components/TravelBooking/TabSelector.tsx +1 -1
- package/src/components/TravelBooking/TravelBooking.tsx +1 -1
- package/src/components/UnlockRewards/README.md +1 -1
- package/README.md +0 -200
- package/lib/commonjs/app.js +0 -161
- package/lib/commonjs/app.js.map +0 -1
- package/lib/commonjs/assets/components/BannerWithDetails.png +0 -0
- package/lib/commonjs/assets/components/DealCard-Horizontal.png +0 -0
- package/lib/commonjs/assets/components/DealCard-Vertical.png +0 -0
- package/lib/commonjs/assets/components/DealCard-floating.png +0 -0
- package/lib/commonjs/assets/components/DealCard-nested.png +0 -0
- package/lib/commonjs/assets/components/Filters.png +0 -0
- package/lib/commonjs/assets/components/Popup-1.png +0 -0
- package/lib/commonjs/assets/components/Popup-2.png +0 -0
- package/lib/commonjs/assets/components/Popup-3.png +0 -0
- package/lib/commonjs/assets/components/RedemptionOption-Horizontal.png +0 -0
- package/lib/commonjs/assets/components/RedemptionOption-Vertical.png +0 -0
- package/lib/commonjs/assets/components/SimpleBanner.png +0 -0
- package/lib/commonjs/assets/components/SimpleTrendingCard.png +0 -0
- package/lib/commonjs/assets/components/SimpleTrendingCardV2.png +0 -0
- package/lib/commonjs/assets/components/UnlockRewards-1.png +0 -0
- package/lib/commonjs/assets/components/UnlockRewards-2.png +0 -0
- package/lib/commonjs/assets/fonts/SpaceMono-Regular.ttf +0 -0
- package/lib/commonjs/assets/images/adaptive-icon.png +0 -0
- package/lib/commonjs/assets/images/face.jpg +0 -0
- package/lib/commonjs/assets/images/favicon.png +0 -0
- package/lib/commonjs/assets/images/giftvoucher.jpg +0 -0
- package/lib/commonjs/assets/images/icon.png +0 -0
- package/lib/commonjs/assets/images/insta.webp +0 -0
- package/lib/commonjs/assets/images/muse.jpg +0 -0
- package/lib/commonjs/assets/images/namshi-banner.png +0 -0
- package/lib/commonjs/assets/images/namshi.webp +0 -0
- package/lib/commonjs/assets/images/partial-react-logo.png +0 -0
- package/lib/commonjs/assets/images/pb-logo.jpg +0 -0
- package/lib/commonjs/assets/images/pb.jpg +0 -0
- package/lib/commonjs/assets/images/react-logo.png +0 -0
- package/lib/commonjs/assets/images/react-logo@2x.png +0 -0
- package/lib/commonjs/assets/images/react-logo@3x.png +0 -0
- package/lib/commonjs/assets/images/scratch_foreground.png +0 -0
- package/lib/commonjs/assets/images/splash-icon.png +0 -0
- package/lib/commonjs/assets/images/upgrade.png +0 -0
- package/lib/commonjs/components/Badges/Badge.js +0 -67
- package/lib/commonjs/components/Badges/Badge.js.map +0 -1
- package/lib/commonjs/components/Badges/README.md +0 -98
- package/lib/commonjs/components/Badges/index.js +0 -29
- package/lib/commonjs/components/Badges/index.js.map +0 -1
- package/lib/commonjs/components/Banner/Banner.js +0 -138
- package/lib/commonjs/components/Banner/Banner.js.map +0 -1
- package/lib/commonjs/components/Banner/BannerWithDetails.js +0 -120
- package/lib/commonjs/components/Banner/BannerWithDetails.js.map +0 -1
- package/lib/commonjs/components/Banner/README.md +0 -101
- package/lib/commonjs/components/Banner/index.js +0 -48
- package/lib/commonjs/components/Banner/index.js.map +0 -1
- package/lib/commonjs/components/BrandIcon/BrandIcon.js +0 -114
- package/lib/commonjs/components/BrandIcon/BrandIcon.js.map +0 -1
- package/lib/commonjs/components/BrandIcon/index.js +0 -29
- package/lib/commonjs/components/BrandIcon/index.js.map +0 -1
- package/lib/commonjs/components/Button/Button.js +0 -124
- package/lib/commonjs/components/Button/Button.js.map +0 -1
- package/lib/commonjs/components/Button/index.js +0 -29
- package/lib/commonjs/components/Button/index.js.map +0 -1
- package/lib/commonjs/components/Card/Card.js +0 -116
- package/lib/commonjs/components/Card/Card.js.map +0 -1
- package/lib/commonjs/components/Card/CardContent.js +0 -42
- package/lib/commonjs/components/Card/CardContent.js.map +0 -1
- package/lib/commonjs/components/Card/CardFooter.js +0 -34
- package/lib/commonjs/components/Card/CardFooter.js.map +0 -1
- package/lib/commonjs/components/Card/CardHeader.js +0 -79
- package/lib/commonjs/components/Card/CardHeader.js.map +0 -1
- package/lib/commonjs/components/Card/CardImage.js +0 -51
- package/lib/commonjs/components/Card/CardImage.js.map +0 -1
- package/lib/commonjs/components/Card/index.js +0 -98
- package/lib/commonjs/components/Card/index.js.map +0 -1
- package/lib/commonjs/components/Card/templates/DealCard.js +0 -193
- package/lib/commonjs/components/Card/templates/DealCard.js.map +0 -1
- package/lib/commonjs/components/Card/templates/DealCardWithBackgroundImage.js +0 -237
- package/lib/commonjs/components/Card/templates/DealCardWithBackgroundImage.js.map +0 -1
- package/lib/commonjs/components/Card/templates/README.md +0 -233
- package/lib/commonjs/components/Card/templates/SimpleTrendingCard.js +0 -59
- package/lib/commonjs/components/Card/templates/SimpleTrendingCard.js.map +0 -1
- package/lib/commonjs/components/Card/types.js +0 -6
- package/lib/commonjs/components/Card/types.js.map +0 -1
- package/lib/commonjs/components/CloseIcon/CloseIcon.js +0 -75
- package/lib/commonjs/components/CloseIcon/CloseIcon.js.map +0 -1
- package/lib/commonjs/components/CloseIcon/index.js +0 -29
- package/lib/commonjs/components/CloseIcon/index.js.map +0 -1
- package/lib/commonjs/components/DateRangePicker/DateRangePicker.js +0 -358
- package/lib/commonjs/components/DateRangePicker/DateRangePicker.js.map +0 -1
- package/lib/commonjs/components/DateRangePicker/index.js +0 -4
- package/lib/commonjs/components/DateRangePicker/index.js.map +0 -1
- package/lib/commonjs/components/Filters/Filters.js +0 -345
- package/lib/commonjs/components/Filters/Filters.js.map +0 -1
- package/lib/commonjs/components/Filters/PointsRangeSelector.js +0 -264
- package/lib/commonjs/components/Filters/PointsRangeSelector.js.map +0 -1
- package/lib/commonjs/components/Filters/README.md +0 -212
- package/lib/commonjs/components/Filters/index.js +0 -48
- package/lib/commonjs/components/Filters/index.js.map +0 -1
- package/lib/commonjs/components/Input/Input.js +0 -161
- package/lib/commonjs/components/Input/Input.js.map +0 -1
- package/lib/commonjs/components/Input/README.md +0 -128
- package/lib/commonjs/components/Input/index.js +0 -29
- package/lib/commonjs/components/Input/index.js.map +0 -1
- package/lib/commonjs/components/LockOverlay/LockOverlay.js +0 -65
- package/lib/commonjs/components/LockOverlay/LockOverlay.js.map +0 -1
- package/lib/commonjs/components/LockOverlay/index.js +0 -29
- package/lib/commonjs/components/LockOverlay/index.js.map +0 -1
- package/lib/commonjs/components/Marquee/Marquee.js +0 -105
- package/lib/commonjs/components/Marquee/Marquee.js.map +0 -1
- package/lib/commonjs/components/Marquee/index.js +0 -29
- package/lib/commonjs/components/Marquee/index.js.map +0 -1
- package/lib/commonjs/components/NumericStepper/NumericStepper.js +0 -103
- package/lib/commonjs/components/NumericStepper/NumericStepper.js.map +0 -1
- package/lib/commonjs/components/NumericStepper/index.js +0 -29
- package/lib/commonjs/components/NumericStepper/index.js.map +0 -1
- package/lib/commonjs/components/Popup/Popup.js +0 -341
- package/lib/commonjs/components/Popup/Popup.js.map +0 -1
- package/lib/commonjs/components/Popup/README.md +0 -133
- package/lib/commonjs/components/Popup/index.js +0 -29
- package/lib/commonjs/components/Popup/index.js.map +0 -1
- package/lib/commonjs/components/ProgressBar/ProgressBar.js +0 -125
- package/lib/commonjs/components/ProgressBar/ProgressBar.js.map +0 -1
- package/lib/commonjs/components/ProgressBar/index.js +0 -29
- package/lib/commonjs/components/ProgressBar/index.js.map +0 -1
- package/lib/commonjs/components/RedeemedVoucher/RedeemedVoucherSheet.js +0 -458
- package/lib/commonjs/components/RedeemedVoucher/RedeemedVoucherSheet.js.map +0 -1
- package/lib/commonjs/components/RedeemedVoucher/index.js +0 -29
- package/lib/commonjs/components/RedeemedVoucher/index.js.map +0 -1
- package/lib/commonjs/components/RedemptionOption/README.md +0 -148
- package/lib/commonjs/components/RedemptionOption/RedemptionOption.js +0 -132
- package/lib/commonjs/components/RedemptionOption/RedemptionOption.js.map +0 -1
- package/lib/commonjs/components/RedemptionOption/index.js +0 -29
- package/lib/commonjs/components/RedemptionOption/index.js.map +0 -1
- package/lib/commonjs/components/ScratchCard/README.md +0 -119
- package/lib/commonjs/components/ScratchCard/ScratchCard.js +0 -222
- package/lib/commonjs/components/ScratchCard/ScratchCard.js.map +0 -1
- package/lib/commonjs/components/ScratchCard/ScratchCardContent.js +0 -28
- package/lib/commonjs/components/ScratchCard/ScratchCardContent.js.map +0 -1
- package/lib/commonjs/components/ScratchCard/index.js +0 -48
- package/lib/commonjs/components/ScratchCard/index.js.map +0 -1
- package/lib/commonjs/components/SelectAmount/SelectAmount.js +0 -189
- package/lib/commonjs/components/SelectAmount/SelectAmount.js.map +0 -1
- package/lib/commonjs/components/SelectAmount/index.js +0 -4
- package/lib/commonjs/components/SelectAmount/index.js.map +0 -1
- package/lib/commonjs/components/Skeleton/Shimmer.js +0 -75
- package/lib/commonjs/components/Skeleton/Shimmer.js.map +0 -1
- package/lib/commonjs/components/Skeleton/SkeletonElement.js +0 -36
- package/lib/commonjs/components/Skeleton/SkeletonElement.js.map +0 -1
- package/lib/commonjs/components/Skeleton/index.js +0 -48
- package/lib/commonjs/components/Skeleton/index.js.map +0 -1
- package/lib/commonjs/components/Suggestions/SuggestionList.js +0 -98
- package/lib/commonjs/components/Suggestions/SuggestionList.js.map +0 -1
- package/lib/commonjs/components/TravelBooking/CarRentalForm.js +0 -370
- package/lib/commonjs/components/TravelBooking/CarRentalForm.js.map +0 -1
- package/lib/commonjs/components/TravelBooking/FlightForm.js +0 -347
- package/lib/commonjs/components/TravelBooking/FlightForm.js.map +0 -1
- package/lib/commonjs/components/TravelBooking/FlightSummary.js +0 -257
- package/lib/commonjs/components/TravelBooking/FlightSummary.js.map +0 -1
- package/lib/commonjs/components/TravelBooking/HotelForm.js +0 -290
- package/lib/commonjs/components/TravelBooking/HotelForm.js.map +0 -1
- package/lib/commonjs/components/TravelBooking/HotelSummary.js +0 -246
- package/lib/commonjs/components/TravelBooking/HotelSummary.js.map +0 -1
- package/lib/commonjs/components/TravelBooking/README.md +0 -421
- package/lib/commonjs/components/TravelBooking/SummaryBar.js +0 -181
- package/lib/commonjs/components/TravelBooking/SummaryBar.js.map +0 -1
- package/lib/commonjs/components/TravelBooking/TabSelector.js +0 -115
- package/lib/commonjs/components/TravelBooking/TabSelector.js.map +0 -1
- package/lib/commonjs/components/TravelBooking/TravelBooking.js +0 -261
- package/lib/commonjs/components/TravelBooking/TravelBooking.js.map +0 -1
- package/lib/commonjs/components/TravelBooking/index.js +0 -22
- package/lib/commonjs/components/TravelBooking/index.js.map +0 -1
- package/lib/commonjs/components/TravelBooking/types.js +0 -15
- package/lib/commonjs/components/TravelBooking/types.js.map +0 -1
- package/lib/commonjs/components/UnlockRewards/README.md +0 -187
- package/lib/commonjs/components/UnlockRewards/RewardItem.js +0 -129
- package/lib/commonjs/components/UnlockRewards/RewardItem.js.map +0 -1
- package/lib/commonjs/components/UnlockRewards/UnlockRewards.js +0 -230
- package/lib/commonjs/components/UnlockRewards/UnlockRewards.js.map +0 -1
- package/lib/commonjs/components/UnlockRewards/index.js +0 -48
- package/lib/commonjs/components/UnlockRewards/index.js.map +0 -1
- package/lib/commonjs/components/Wheel/README.md +0 -141
- package/lib/commonjs/components/Wheel/Wheel.js +0 -361
- package/lib/commonjs/components/Wheel/Wheel.js.map +0 -1
- package/lib/commonjs/components/Wheel/index.js +0 -29
- package/lib/commonjs/components/Wheel/index.js.map +0 -1
- package/lib/commonjs/components/index.js +0 -204
- package/lib/commonjs/components/index.js.map +0 -1
- package/lib/commonjs/constants/BRANDS.js +0 -58
- package/lib/commonjs/constants/BRANDS.js.map +0 -1
- package/lib/commonjs/index.js +0 -28
- package/lib/commonjs/index.js.map +0 -1
- package/lib/commonjs/theme/Colors.js +0 -154
- package/lib/commonjs/theme/Colors.js.map +0 -1
- package/lib/commonjs/theme/ThemeContext.js +0 -57
- package/lib/commonjs/theme/ThemeContext.js.map +0 -1
- package/lib/commonjs/theme/index.js +0 -28
- package/lib/commonjs/theme/index.js.map +0 -1
- package/lib/typescript/commonjs/app.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/Badges/Badge.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/Badges/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/Banner/Banner.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/Banner/BannerWithDetails.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/Banner/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/BrandIcon/BrandIcon.d.ts +0 -20
- package/lib/typescript/commonjs/components/BrandIcon/BrandIcon.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/BrandIcon/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/Button/Button.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/Button/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/Card/Card.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/Card/CardContent.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/Card/CardFooter.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/Card/CardHeader.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/Card/CardImage.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/Card/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/Card/templates/DealCard.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/Card/templates/DealCardWithBackgroundImage.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/Card/templates/SimpleTrendingCard.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/Card/types.d.ts +0 -90
- package/lib/typescript/commonjs/components/Card/types.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/CloseIcon/CloseIcon.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/CloseIcon/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/DateRangePicker/DateRangePicker.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/DateRangePicker/index.d.ts +0 -1
- package/lib/typescript/commonjs/components/DateRangePicker/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/Filters/Filters.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/Filters/PointsRangeSelector.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/Filters/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/Input/Input.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/Input/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/LockOverlay/LockOverlay.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/LockOverlay/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/Marquee/Marquee.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/Marquee/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/NumericStepper/NumericStepper.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/NumericStepper/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/Popup/Popup.d.ts +0 -41
- package/lib/typescript/commonjs/components/Popup/Popup.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/Popup/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/ProgressBar/ProgressBar.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/ProgressBar/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/RedeemedVoucher/RedeemedVoucherSheet.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/RedeemedVoucher/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/RedemptionOption/RedemptionOption.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/RedemptionOption/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/ScratchCard/ScratchCard.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/ScratchCard/ScratchCardContent.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/ScratchCard/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/SelectAmount/SelectAmount.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/SelectAmount/index.d.ts +0 -1
- package/lib/typescript/commonjs/components/SelectAmount/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/Skeleton/Shimmer.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/Skeleton/SkeletonElement.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/Skeleton/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/Suggestions/SuggestionList.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/TravelBooking/CarRentalForm.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/TravelBooking/FlightForm.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/TravelBooking/FlightSummary.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/TravelBooking/HotelForm.d.ts +0 -52
- package/lib/typescript/commonjs/components/TravelBooking/HotelForm.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/TravelBooking/HotelSummary.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/TravelBooking/SummaryBar.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/TravelBooking/TabSelector.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/TravelBooking/TravelBooking.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/TravelBooking/index.d.ts +0 -1
- package/lib/typescript/commonjs/components/TravelBooking/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/TravelBooking/types.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/UnlockRewards/RewardItem.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/UnlockRewards/UnlockRewards.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/UnlockRewards/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/Wheel/Wheel.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/Wheel/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/constants/BRANDS.d.ts.map +0 -1
- package/lib/typescript/commonjs/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/package.json +0 -1
- package/lib/typescript/commonjs/theme/Colors.d.ts.map +0 -1
- package/lib/typescript/commonjs/theme/ThemeContext.d.ts.map +0 -1
- package/lib/typescript/commonjs/theme/index.d.ts.map +0 -1
- package/lib/typescript/module/app.d.ts +0 -4
- package/lib/typescript/module/app.d.ts.map +0 -1
- package/lib/typescript/module/components/Badges/Badge.d.ts +0 -16
- package/lib/typescript/module/components/Badges/Badge.d.ts.map +0 -1
- package/lib/typescript/module/components/Badges/index.d.ts +0 -3
- package/lib/typescript/module/components/Badges/index.d.ts.map +0 -1
- package/lib/typescript/module/components/Banner/Banner.d.ts +0 -26
- package/lib/typescript/module/components/Banner/Banner.d.ts.map +0 -1
- package/lib/typescript/module/components/Banner/BannerWithDetails.d.ts +0 -19
- package/lib/typescript/module/components/Banner/BannerWithDetails.d.ts.map +0 -1
- package/lib/typescript/module/components/Banner/index.d.ts +0 -5
- package/lib/typescript/module/components/Banner/index.d.ts.map +0 -1
- package/lib/typescript/module/components/BrandIcon/BrandIcon.d.ts.map +0 -1
- package/lib/typescript/module/components/BrandIcon/index.d.ts +0 -3
- package/lib/typescript/module/components/BrandIcon/index.d.ts.map +0 -1
- package/lib/typescript/module/components/Button/Button.d.ts +0 -21
- package/lib/typescript/module/components/Button/Button.d.ts.map +0 -1
- package/lib/typescript/module/components/Button/index.d.ts +0 -3
- package/lib/typescript/module/components/Button/index.d.ts.map +0 -1
- package/lib/typescript/module/components/Card/Card.d.ts +0 -5
- package/lib/typescript/module/components/Card/Card.d.ts.map +0 -1
- package/lib/typescript/module/components/Card/CardContent.d.ts +0 -5
- package/lib/typescript/module/components/Card/CardContent.d.ts.map +0 -1
- package/lib/typescript/module/components/Card/CardFooter.d.ts +0 -5
- package/lib/typescript/module/components/Card/CardFooter.d.ts.map +0 -1
- package/lib/typescript/module/components/Card/CardHeader.d.ts +0 -5
- package/lib/typescript/module/components/Card/CardHeader.d.ts.map +0 -1
- package/lib/typescript/module/components/Card/CardImage.d.ts +0 -5
- package/lib/typescript/module/components/Card/CardImage.d.ts.map +0 -1
- package/lib/typescript/module/components/Card/index.d.ts +0 -11
- package/lib/typescript/module/components/Card/index.d.ts.map +0 -1
- package/lib/typescript/module/components/Card/templates/DealCard.d.ts +0 -33
- package/lib/typescript/module/components/Card/templates/DealCard.d.ts.map +0 -1
- package/lib/typescript/module/components/Card/templates/DealCardWithBackgroundImage.d.ts +0 -40
- package/lib/typescript/module/components/Card/templates/DealCardWithBackgroundImage.d.ts.map +0 -1
- package/lib/typescript/module/components/Card/templates/SimpleTrendingCard.d.ts +0 -14
- package/lib/typescript/module/components/Card/templates/SimpleTrendingCard.d.ts.map +0 -1
- package/lib/typescript/module/components/Card/types.d.ts.map +0 -1
- package/lib/typescript/module/components/CloseIcon/CloseIcon.d.ts +0 -16
- package/lib/typescript/module/components/CloseIcon/CloseIcon.d.ts.map +0 -1
- package/lib/typescript/module/components/CloseIcon/index.d.ts +0 -3
- package/lib/typescript/module/components/CloseIcon/index.d.ts.map +0 -1
- package/lib/typescript/module/components/DateRangePicker/DateRangePicker.d.ts +0 -25
- package/lib/typescript/module/components/DateRangePicker/DateRangePicker.d.ts.map +0 -1
- package/lib/typescript/module/components/DateRangePicker/index.d.ts +0 -1
- package/lib/typescript/module/components/DateRangePicker/index.d.ts.map +0 -1
- package/lib/typescript/module/components/Filters/Filters.d.ts +0 -80
- package/lib/typescript/module/components/Filters/Filters.d.ts.map +0 -1
- package/lib/typescript/module/components/Filters/PointsRangeSelector.d.ts +0 -29
- package/lib/typescript/module/components/Filters/PointsRangeSelector.d.ts.map +0 -1
- package/lib/typescript/module/components/Filters/index.d.ts +0 -5
- package/lib/typescript/module/components/Filters/index.d.ts.map +0 -1
- package/lib/typescript/module/components/Input/Input.d.ts +0 -23
- package/lib/typescript/module/components/Input/Input.d.ts.map +0 -1
- package/lib/typescript/module/components/Input/index.d.ts +0 -3
- package/lib/typescript/module/components/Input/index.d.ts.map +0 -1
- package/lib/typescript/module/components/LockOverlay/LockOverlay.d.ts +0 -16
- package/lib/typescript/module/components/LockOverlay/LockOverlay.d.ts.map +0 -1
- package/lib/typescript/module/components/LockOverlay/index.d.ts +0 -3
- package/lib/typescript/module/components/LockOverlay/index.d.ts.map +0 -1
- package/lib/typescript/module/components/Marquee/Marquee.d.ts +0 -18
- package/lib/typescript/module/components/Marquee/Marquee.d.ts.map +0 -1
- package/lib/typescript/module/components/Marquee/index.d.ts +0 -3
- package/lib/typescript/module/components/Marquee/index.d.ts.map +0 -1
- package/lib/typescript/module/components/NumericStepper/NumericStepper.d.ts +0 -19
- package/lib/typescript/module/components/NumericStepper/NumericStepper.d.ts.map +0 -1
- package/lib/typescript/module/components/NumericStepper/index.d.ts +0 -3
- package/lib/typescript/module/components/NumericStepper/index.d.ts.map +0 -1
- package/lib/typescript/module/components/Popup/Popup.d.ts.map +0 -1
- package/lib/typescript/module/components/Popup/index.d.ts +0 -3
- package/lib/typescript/module/components/Popup/index.d.ts.map +0 -1
- package/lib/typescript/module/components/ProgressBar/ProgressBar.d.ts +0 -26
- package/lib/typescript/module/components/ProgressBar/ProgressBar.d.ts.map +0 -1
- package/lib/typescript/module/components/ProgressBar/index.d.ts +0 -3
- package/lib/typescript/module/components/ProgressBar/index.d.ts.map +0 -1
- package/lib/typescript/module/components/RedeemedVoucher/RedeemedVoucherSheet.d.ts +0 -58
- package/lib/typescript/module/components/RedeemedVoucher/RedeemedVoucherSheet.d.ts.map +0 -1
- package/lib/typescript/module/components/RedeemedVoucher/index.d.ts +0 -3
- package/lib/typescript/module/components/RedeemedVoucher/index.d.ts.map +0 -1
- package/lib/typescript/module/components/RedemptionOption/RedemptionOption.d.ts +0 -25
- package/lib/typescript/module/components/RedemptionOption/RedemptionOption.d.ts.map +0 -1
- package/lib/typescript/module/components/RedemptionOption/index.d.ts +0 -3
- package/lib/typescript/module/components/RedemptionOption/index.d.ts.map +0 -1
- package/lib/typescript/module/components/ScratchCard/ScratchCard.d.ts +0 -31
- package/lib/typescript/module/components/ScratchCard/ScratchCard.d.ts.map +0 -1
- package/lib/typescript/module/components/ScratchCard/ScratchCardContent.d.ts +0 -8
- package/lib/typescript/module/components/ScratchCard/ScratchCardContent.d.ts.map +0 -1
- package/lib/typescript/module/components/ScratchCard/index.d.ts +0 -5
- package/lib/typescript/module/components/ScratchCard/index.d.ts.map +0 -1
- package/lib/typescript/module/components/SelectAmount/SelectAmount.d.ts +0 -29
- package/lib/typescript/module/components/SelectAmount/SelectAmount.d.ts.map +0 -1
- package/lib/typescript/module/components/SelectAmount/index.d.ts +0 -1
- package/lib/typescript/module/components/SelectAmount/index.d.ts.map +0 -1
- package/lib/typescript/module/components/Skeleton/Shimmer.d.ts +0 -13
- package/lib/typescript/module/components/Skeleton/Shimmer.d.ts.map +0 -1
- package/lib/typescript/module/components/Skeleton/SkeletonElement.d.ts +0 -12
- package/lib/typescript/module/components/Skeleton/SkeletonElement.d.ts.map +0 -1
- package/lib/typescript/module/components/Skeleton/index.d.ts +0 -5
- package/lib/typescript/module/components/Skeleton/index.d.ts.map +0 -1
- package/lib/typescript/module/components/Suggestions/SuggestionList.d.ts +0 -14
- package/lib/typescript/module/components/Suggestions/SuggestionList.d.ts.map +0 -1
- package/lib/typescript/module/components/TravelBooking/CarRentalForm.d.ts +0 -58
- package/lib/typescript/module/components/TravelBooking/CarRentalForm.d.ts.map +0 -1
- package/lib/typescript/module/components/TravelBooking/FlightForm.d.ts +0 -57
- package/lib/typescript/module/components/TravelBooking/FlightForm.d.ts.map +0 -1
- package/lib/typescript/module/components/TravelBooking/FlightSummary.d.ts +0 -41
- package/lib/typescript/module/components/TravelBooking/FlightSummary.d.ts.map +0 -1
- package/lib/typescript/module/components/TravelBooking/HotelForm.d.ts.map +0 -1
- package/lib/typescript/module/components/TravelBooking/HotelSummary.d.ts +0 -44
- package/lib/typescript/module/components/TravelBooking/HotelSummary.d.ts.map +0 -1
- package/lib/typescript/module/components/TravelBooking/SummaryBar.d.ts +0 -17
- package/lib/typescript/module/components/TravelBooking/SummaryBar.d.ts.map +0 -1
- package/lib/typescript/module/components/TravelBooking/TabSelector.d.ts +0 -17
- package/lib/typescript/module/components/TravelBooking/TabSelector.d.ts.map +0 -1
- package/lib/typescript/module/components/TravelBooking/TravelBooking.d.ts +0 -84
- package/lib/typescript/module/components/TravelBooking/TravelBooking.d.ts.map +0 -1
- package/lib/typescript/module/components/TravelBooking/index.d.ts +0 -1
- package/lib/typescript/module/components/TravelBooking/index.d.ts.map +0 -1
- package/lib/typescript/module/components/TravelBooking/types.d.ts +0 -26
- package/lib/typescript/module/components/TravelBooking/types.d.ts.map +0 -1
- package/lib/typescript/module/components/UnlockRewards/RewardItem.d.ts +0 -25
- package/lib/typescript/module/components/UnlockRewards/RewardItem.d.ts.map +0 -1
- package/lib/typescript/module/components/UnlockRewards/UnlockRewards.d.ts +0 -60
- package/lib/typescript/module/components/UnlockRewards/UnlockRewards.d.ts.map +0 -1
- package/lib/typescript/module/components/UnlockRewards/index.d.ts +0 -5
- package/lib/typescript/module/components/UnlockRewards/index.d.ts.map +0 -1
- package/lib/typescript/module/components/Wheel/Wheel.d.ts +0 -37
- package/lib/typescript/module/components/Wheel/Wheel.d.ts.map +0 -1
- package/lib/typescript/module/components/Wheel/index.d.ts +0 -3
- package/lib/typescript/module/components/Wheel/index.d.ts.map +0 -1
- package/lib/typescript/module/components/index.d.ts +0 -19
- package/lib/typescript/module/components/index.d.ts.map +0 -1
- package/lib/typescript/module/constants/BRANDS.d.ts +0 -13
- package/lib/typescript/module/constants/BRANDS.d.ts.map +0 -1
- package/lib/typescript/module/index.d.ts +0 -3
- package/lib/typescript/module/index.d.ts.map +0 -1
- package/lib/typescript/module/theme/Colors.d.ts +0 -45
- package/lib/typescript/module/theme/Colors.d.ts.map +0 -1
- package/lib/typescript/module/theme/ThemeContext.d.ts +0 -18
- package/lib/typescript/module/theme/ThemeContext.d.ts.map +0 -1
- package/lib/typescript/module/theme/index.d.ts +0 -3
- package/lib/typescript/module/theme/index.d.ts.map +0 -1
- /package/lib/{typescript/module → module}/package.json +0 -0
- /package/lib/typescript/{commonjs/app.d.ts → app.d.ts} +0 -0
- /package/lib/typescript/{commonjs/components → components}/Badges/Badge.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/Badges/index.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/Banner/Banner.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/Banner/BannerWithDetails.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/Banner/index.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/BrandIcon/index.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/Button/Button.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/Button/index.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/Card/Card.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/Card/CardContent.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/Card/CardFooter.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/Card/CardHeader.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/Card/CardImage.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/Card/index.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/Card/templates/DealCard.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/Card/templates/DealCardWithBackgroundImage.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/Card/templates/SimpleTrendingCard.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/CloseIcon/CloseIcon.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/CloseIcon/index.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/DateRangePicker/DateRangePicker.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/Filters/Filters.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/Filters/PointsRangeSelector.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/Filters/index.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/Input/Input.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/Input/index.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/LockOverlay/LockOverlay.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/LockOverlay/index.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/Marquee/Marquee.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/Marquee/index.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/NumericStepper/NumericStepper.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/NumericStepper/index.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/Popup/index.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/ProgressBar/ProgressBar.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/ProgressBar/index.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/RedeemedVoucher/RedeemedVoucherSheet.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/RedeemedVoucher/index.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/RedemptionOption/RedemptionOption.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/RedemptionOption/index.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/ScratchCard/ScratchCard.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/ScratchCard/ScratchCardContent.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/ScratchCard/index.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/SelectAmount/SelectAmount.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/Skeleton/Shimmer.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/Skeleton/SkeletonElement.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/Skeleton/index.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/Suggestions/SuggestionList.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/TravelBooking/FlightForm.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/TravelBooking/FlightSummary.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/TravelBooking/HotelSummary.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/TravelBooking/SummaryBar.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/TravelBooking/TabSelector.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/TravelBooking/TravelBooking.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/TravelBooking/types.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/UnlockRewards/RewardItem.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/UnlockRewards/UnlockRewards.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/UnlockRewards/index.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/Wheel/Wheel.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/Wheel/index.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/index.d.ts +0 -0
- /package/lib/typescript/{commonjs/constants → constants}/BRANDS.d.ts +0 -0
- /package/lib/typescript/{commonjs/index.d.ts → index.d.ts} +0 -0
- /package/lib/typescript/{commonjs/theme → theme}/Colors.d.ts +0 -0
- /package/lib/typescript/{commonjs/theme → theme}/ThemeContext.d.ts +0 -0
- /package/lib/typescript/{commonjs/theme → theme}/index.d.ts +0 -0
|
@@ -1,237 +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 _Card = _interopRequireDefault(require("../Card.js"));
|
|
10
|
-
var _CardHeader = _interopRequireDefault(require("../CardHeader.js"));
|
|
11
|
-
var _CardContent = _interopRequireDefault(require("../CardContent.js"));
|
|
12
|
-
var _ThemeContext = require("../../../theme/ThemeContext.js");
|
|
13
|
-
var _CardFooter = _interopRequireDefault(require("../CardFooter.js"));
|
|
14
|
-
var _ProgressBar = _interopRequireDefault(require("../../ProgressBar/ProgressBar.js"));
|
|
15
|
-
var _LockOverlay = _interopRequireDefault(require("../../LockOverlay/LockOverlay.js"));
|
|
16
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
|
-
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); }
|
|
19
|
-
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; }
|
|
20
|
-
const DealCardWithBackgroundImage = ({
|
|
21
|
-
backgroundImage,
|
|
22
|
-
onPress,
|
|
23
|
-
label,
|
|
24
|
-
labelContainerStyle,
|
|
25
|
-
labelStyle,
|
|
26
|
-
actionIconDefault,
|
|
27
|
-
actionIconActive,
|
|
28
|
-
onActionPress,
|
|
29
|
-
innerCardStyle,
|
|
30
|
-
// Use the prop directly
|
|
31
|
-
dealDescription,
|
|
32
|
-
dealDescriptionStyle,
|
|
33
|
-
dealPrice,
|
|
34
|
-
dealPriceStyle,
|
|
35
|
-
dealProviderName,
|
|
36
|
-
dealProviderNameStyle,
|
|
37
|
-
progressBar,
|
|
38
|
-
progressBarText,
|
|
39
|
-
progressBarTextPosition,
|
|
40
|
-
progressBarTextAlign,
|
|
41
|
-
progressValue,
|
|
42
|
-
progressHeight,
|
|
43
|
-
progressWidth,
|
|
44
|
-
remainingProgressColor,
|
|
45
|
-
progressColor,
|
|
46
|
-
innerCardVariant = "nested",
|
|
47
|
-
style,
|
|
48
|
-
width = "100%",
|
|
49
|
-
isRTL: initialIsRTL = false,
|
|
50
|
-
// Renamed to avoid conflict
|
|
51
|
-
overlayVisible = false,
|
|
52
|
-
overlayCover = "background",
|
|
53
|
-
borderRadius = 8,
|
|
54
|
-
onOverlayPress
|
|
55
|
-
}) => {
|
|
56
|
-
const {
|
|
57
|
-
theme,
|
|
58
|
-
isRTL: themeIsRTL
|
|
59
|
-
} = (0, _ThemeContext.useTheme)(); // Use theme's RTL
|
|
60
|
-
const isRTL = themeIsRTL; // Prioritize theme's RTL setting
|
|
61
|
-
|
|
62
|
-
const [isActive, setIsActive] = (0, _react.useState)(false);
|
|
63
|
-
const handleActionPress = () => {
|
|
64
|
-
if (!actionIconActive) return;
|
|
65
|
-
setIsActive(!isActive);
|
|
66
|
-
if (onActionPress) {
|
|
67
|
-
onActionPress(!isActive);
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
const labelContent = label && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
71
|
-
style: [{
|
|
72
|
-
backgroundColor: theme.surface,
|
|
73
|
-
paddingVertical: 5,
|
|
74
|
-
paddingHorizontal: 8,
|
|
75
|
-
borderRadius: 10
|
|
76
|
-
}, labelContainerStyle],
|
|
77
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
78
|
-
style: [{
|
|
79
|
-
color: theme.onSurface
|
|
80
|
-
}, labelStyle],
|
|
81
|
-
children: label
|
|
82
|
-
})
|
|
83
|
-
});
|
|
84
|
-
const actionContent = /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
85
|
-
onPress: handleActionPress,
|
|
86
|
-
hitSlop: {
|
|
87
|
-
top: 30,
|
|
88
|
-
left: 30,
|
|
89
|
-
bottom: 30,
|
|
90
|
-
right: 30
|
|
91
|
-
},
|
|
92
|
-
children: isActive ? actionIconActive : actionIconDefault
|
|
93
|
-
});
|
|
94
|
-
const headerLeft = isRTL ? actionContent : labelContent;
|
|
95
|
-
const headerRight = isRTL ? labelContent : actionContent;
|
|
96
|
-
const mainCardBorderRadius = borderRadius;
|
|
97
|
-
const defaultInnerCardBorderRadius = 30; // Renamed for clarity
|
|
98
|
-
const defaultFloatingBottomOffset = -30; // Define default floating offset
|
|
99
|
-
|
|
100
|
-
// Flatten the innerCardStyle to easily access properties
|
|
101
|
-
const flatInnerCardStyle = _reactNative.StyleSheet.flatten(innerCardStyle);
|
|
102
|
-
|
|
103
|
-
// Determine the actual bottom offset for the floating inner card
|
|
104
|
-
let actualFloatingBottomOffset = defaultFloatingBottomOffset;
|
|
105
|
-
if (innerCardVariant === "floating" && flatInnerCardStyle && typeof flatInnerCardStyle.bottom === "number") {
|
|
106
|
-
actualFloatingBottomOffset = flatInnerCardStyle.bottom;
|
|
107
|
-
}
|
|
108
|
-
const getVariantStyle = () => {
|
|
109
|
-
if (innerCardVariant === "floating") {
|
|
110
|
-
return {
|
|
111
|
-
position: "absolute",
|
|
112
|
-
bottom: actualFloatingBottomOffset,
|
|
113
|
-
width: "100%",
|
|
114
|
-
marginHorizontal: 0,
|
|
115
|
-
marginVertical: 0,
|
|
116
|
-
paddingBottom: progressBar || dealPrice ? 0 : 20,
|
|
117
|
-
borderRadius: 20
|
|
118
|
-
};
|
|
119
|
-
}
|
|
120
|
-
return {};
|
|
121
|
-
};
|
|
122
|
-
const computedInnerCardStyle = [{
|
|
123
|
-
borderRadius: defaultInnerCardBorderRadius,
|
|
124
|
-
marginVertical: 8,
|
|
125
|
-
marginHorizontal: 16
|
|
126
|
-
}, getVariantStyle(), flatInnerCardStyle];
|
|
127
|
-
const finalInnerBorderRadius = flatInnerCardStyle?.borderRadius ?? (innerCardVariant === "floating" ? 20 : defaultInnerCardBorderRadius);
|
|
128
|
-
const overlayStyle = {
|
|
129
|
-
position: "absolute",
|
|
130
|
-
top: 0,
|
|
131
|
-
left: 0,
|
|
132
|
-
right: 0,
|
|
133
|
-
zIndex: 100,
|
|
134
|
-
bottom: innerCardVariant === "floating" ? actualFloatingBottomOffset : 0,
|
|
135
|
-
borderTopLeftRadius: mainCardBorderRadius,
|
|
136
|
-
borderTopRightRadius: mainCardBorderRadius,
|
|
137
|
-
borderBottomLeftRadius: innerCardVariant === "floating" ? finalInnerBorderRadius : mainCardBorderRadius,
|
|
138
|
-
borderBottomRightRadius: innerCardVariant === "floating" ? finalInnerBorderRadius : mainCardBorderRadius,
|
|
139
|
-
overflow: "hidden"
|
|
140
|
-
};
|
|
141
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Card.default, {
|
|
142
|
-
onPress: () => {
|
|
143
|
-
if (overlayVisible) {
|
|
144
|
-
onOverlayPress?.();
|
|
145
|
-
return;
|
|
146
|
-
}
|
|
147
|
-
onPress?.();
|
|
148
|
-
},
|
|
149
|
-
style: [{
|
|
150
|
-
height: 300,
|
|
151
|
-
position: "relative",
|
|
152
|
-
borderRadius: mainCardBorderRadius,
|
|
153
|
-
overflow: "hidden"
|
|
154
|
-
}, style, {
|
|
155
|
-
width
|
|
156
|
-
}],
|
|
157
|
-
backgroundImage: {
|
|
158
|
-
source: backgroundImage,
|
|
159
|
-
resizeMode: "cover"
|
|
160
|
-
},
|
|
161
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_LockOverlay.default, {
|
|
162
|
-
visible: overlayVisible,
|
|
163
|
-
containerStyle: overlayStyle,
|
|
164
|
-
contentVerticalAlign: overlayCover == "background" ? "top" : "center",
|
|
165
|
-
onPress: onOverlayPress
|
|
166
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CardHeader.default, {
|
|
167
|
-
left: headerLeft,
|
|
168
|
-
right: headerRight,
|
|
169
|
-
style: {
|
|
170
|
-
alignItems: "center",
|
|
171
|
-
zIndex: 1
|
|
172
|
-
}
|
|
173
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
174
|
-
style: {
|
|
175
|
-
flex: 1,
|
|
176
|
-
justifyContent: "flex-end",
|
|
177
|
-
zIndex: overlayCover == "background" ? 101 : 0
|
|
178
|
-
},
|
|
179
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CardContent.default, {
|
|
180
|
-
style: {
|
|
181
|
-
padding: 0
|
|
182
|
-
},
|
|
183
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Card.default, {
|
|
184
|
-
backgroundColor: theme.surface,
|
|
185
|
-
variant: "filled",
|
|
186
|
-
style: computedInnerCardStyle,
|
|
187
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CardHeader.default, {
|
|
188
|
-
title: dealProviderName,
|
|
189
|
-
titleColor: theme.text,
|
|
190
|
-
titleStyle: [{
|
|
191
|
-
fontSize: 18,
|
|
192
|
-
textAlign: isRTL ? "right" : "left"
|
|
193
|
-
}, dealProviderNameStyle],
|
|
194
|
-
subtitle: dealDescription,
|
|
195
|
-
subtitleColor: theme.helper,
|
|
196
|
-
subtitleStyle: [{
|
|
197
|
-
textAlign: isRTL ? "right" : "left"
|
|
198
|
-
}, dealDescriptionStyle]
|
|
199
|
-
}), (progressBar || dealPrice) && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CardFooter.default, {
|
|
200
|
-
justifyContent: "space-between",
|
|
201
|
-
style: {
|
|
202
|
-
flexDirection: isRTL ? "row-reverse" : "row"
|
|
203
|
-
},
|
|
204
|
-
children: [progressBar ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_ProgressBar.default, {
|
|
205
|
-
progress: progressValue,
|
|
206
|
-
remainingColor: remainingProgressColor,
|
|
207
|
-
progressColor: progressColor,
|
|
208
|
-
height: progressHeight || 14,
|
|
209
|
-
width: progressWidth,
|
|
210
|
-
textPosition: progressBarTextPosition,
|
|
211
|
-
text: progressBarText,
|
|
212
|
-
showText: progressBarText != null,
|
|
213
|
-
textAlign: isRTL && progressBarTextAlign == null ? "right" : progressBarTextAlign,
|
|
214
|
-
textStyle: {
|
|
215
|
-
fontSize: 10,
|
|
216
|
-
color: theme.text
|
|
217
|
-
},
|
|
218
|
-
isRTL: isRTL
|
|
219
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
220
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
221
|
-
style: [{
|
|
222
|
-
fontSize: 16,
|
|
223
|
-
color: theme.primary,
|
|
224
|
-
fontWeight: "bold",
|
|
225
|
-
textAlign: isRTL ? "left" : "right"
|
|
226
|
-
}, dealPriceStyle],
|
|
227
|
-
children: dealPrice
|
|
228
|
-
})
|
|
229
|
-
})]
|
|
230
|
-
})]
|
|
231
|
-
})
|
|
232
|
-
})
|
|
233
|
-
})]
|
|
234
|
-
});
|
|
235
|
-
};
|
|
236
|
-
var _default = exports.default = DealCardWithBackgroundImage;
|
|
237
|
-
//# sourceMappingURL=DealCardWithBackgroundImage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_Card","_interopRequireDefault","_CardHeader","_CardContent","_ThemeContext","_CardFooter","_ProgressBar","_LockOverlay","_jsxRuntime","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","DealCardWithBackgroundImage","backgroundImage","onPress","label","labelContainerStyle","labelStyle","actionIconDefault","actionIconActive","onActionPress","innerCardStyle","dealDescription","dealDescriptionStyle","dealPrice","dealPriceStyle","dealProviderName","dealProviderNameStyle","progressBar","progressBarText","progressBarTextPosition","progressBarTextAlign","progressValue","progressHeight","progressWidth","remainingProgressColor","progressColor","innerCardVariant","style","width","isRTL","initialIsRTL","overlayVisible","overlayCover","borderRadius","onOverlayPress","theme","themeIsRTL","useTheme","isActive","setIsActive","useState","handleActionPress","labelContent","jsx","View","backgroundColor","surface","paddingVertical","paddingHorizontal","children","Text","color","onSurface","actionContent","TouchableOpacity","hitSlop","top","left","bottom","right","headerLeft","headerRight","mainCardBorderRadius","defaultInnerCardBorderRadius","defaultFloatingBottomOffset","flatInnerCardStyle","StyleSheet","flatten","actualFloatingBottomOffset","getVariantStyle","position","marginHorizontal","marginVertical","paddingBottom","computedInnerCardStyle","finalInnerBorderRadius","overlayStyle","zIndex","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","overflow","jsxs","height","source","resizeMode","visible","containerStyle","contentVerticalAlign","alignItems","flex","justifyContent","padding","variant","title","titleColor","text","titleStyle","fontSize","textAlign","subtitle","subtitleColor","helper","subtitleStyle","flexDirection","progress","remainingColor","textPosition","showText","textStyle","primary","fontWeight","_default","exports"],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/Card/templates/DealCardWithBackgroundImage.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAWA,IAAAE,KAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,WAAA,GAAAD,sBAAA,CAAAH,OAAA;AACA,IAAAK,YAAA,GAAAF,sBAAA,CAAAH,OAAA;AACA,IAAAM,aAAA,GAAAN,OAAA;AACA,IAAAO,WAAA,GAAAJ,sBAAA,CAAAH,OAAA;AACA,IAAAQ,YAAA,GAAAL,sBAAA,CAAAH,OAAA;AAIA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EF,IAAAjD,WAAA,CAAA+D,GAAA,EAACxE,YAAA,CAAAyE,IAAI,IAAE,CACR,eACD,IAAAhE,WAAA,CAAA+D,GAAA,EAACxE,YAAA,CAAAyE,IAAI;cAAAK,QAAA,eACH,IAAArE,WAAA,CAAA+D,GAAA,EAACxE,YAAA,CAAA+E,IAAI;gBACHvB,KAAK,EAAE,CACL;kBACEwE,QAAQ,EAAE,EAAE;kBACZhD,KAAK,EAAEhB,KAAK,CAAC4E,OAAO;kBACpBC,UAAU,EAAE,MAAM;kBAClBZ,SAAS,EAAEvE,KAAK,GAAG,MAAM,GAAG;gBAC9B,CAAC,EACDf,cAAc,CACd;gBAAAmC,QAAA,EAEDpC;cAAS,CACN;YAAC,CACH,CAAC;UAAA,CACG,CACb;QAAA,CACG;MAAC,CACI;IAAC,CACV,CAAC;EAAA,CACH,CAAC;AAEX,CAAC;AAAC,IAAAoG,QAAA,GAAAC,OAAA,CAAAnI,OAAA,GAEakB,2BAA2B","ignoreList":[]}
|
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
# Card Template Components
|
|
2
|
-
|
|
3
|
-
List of pre-defined template common based on app designs, the templates use the internal Card related components
|
|
4
|
-
|
|
5
|
-
## 1. Simple Trending Card
|
|
6
|
-
|
|
7
|
-

|
|
8
|
-

|
|
9
|
-
|
|
10
|
-
## SimpleTrendingCard Documentation
|
|
11
|
-
|
|
12
|
-
The `SimpleTrendingCard` is a customizable card component designed for displaying trending content with an optional icon. It leverages the base `Card` component and provides a sleek interface with background image support.
|
|
13
|
-
|
|
14
|
-
### Usage
|
|
15
|
-
|
|
16
|
-
```tsx
|
|
17
|
-
import SimpleTrendingCard from "@/components/Card/templates/SimpleTrendingCard";
|
|
18
|
-
import { Image } from "react-native";
|
|
19
|
-
|
|
20
|
-
const MyComponent = () => {
|
|
21
|
-
return (
|
|
22
|
-
<SimpleTrendingCard
|
|
23
|
-
backgroundImage={require("@/assets/images/pb.jpg")}
|
|
24
|
-
style={{ borderRadius: 50 }}
|
|
25
|
-
icon={
|
|
26
|
-
<Image
|
|
27
|
-
source={require("@/assets/images/insta.webp")}
|
|
28
|
-
style={{ width: 36, height: 36 }} // Adjust size as needed
|
|
29
|
-
resizeMode="contain"
|
|
30
|
-
/>
|
|
31
|
-
}
|
|
32
|
-
onPress={()=>Alert.alert("Pressed")}
|
|
33
|
-
iconPosition="left"
|
|
34
|
-
/>
|
|
35
|
-
);
|
|
36
|
-
};
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
### Props
|
|
40
|
-
|
|
41
|
-
| Prop | Type | Default | Description |
|
|
42
|
-
|------|------|---------|-------------|
|
|
43
|
-
| `backgroundImage` | `ImageSourcePropType` | Required | The background image to display in the card |
|
|
44
|
-
| `icon` | `React.ReactNode` | `undefined` | Optional icon to display in the card header |
|
|
45
|
-
| `iconPosition` | `"left" \| "right"` | `"left"` | Position of the icon in the header |
|
|
46
|
-
| `shadowEffect` | `true \| false` | `true` | Shadow Effect displayed or not |
|
|
47
|
-
| `shadowOpacity` | `number` | `0.5` | Shadow Effect Opacity |
|
|
48
|
-
| `onPress` | `() => void` | `undefined` | Function to execute when the card is pressed |
|
|
49
|
-
| `style` | `StyleProp<ViewStyle>` | `undefined` | Additional styles to apply to the card |
|
|
50
|
-
|
|
51
|
-
### Features
|
|
52
|
-
|
|
53
|
-
- **Background Image**: The card displays a full-size background image with "cover" resize mode
|
|
54
|
-
- **Customizable Icon**: Optional icon that can be positioned on either the left or right side of the card header
|
|
55
|
-
- **Responsive Sizing**: Default dimensions of 250×300, which can be overridden with custom styles
|
|
56
|
-
- **Interactive**: Built-in touch handling through the `onPress` prop
|
|
57
|
-
|
|
58
|
-
### Related Components
|
|
59
|
-
|
|
60
|
-
- `Card`: The base component for all card layouts
|
|
61
|
-
- `CardHeader`: Handles the positioning of elements in the card header
|
|
62
|
-
|
|
63
|
-
# DealCardWithBackgroundImage
|
|
64
|
-
|
|
65
|
-

|
|
66
|
-

|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
# DealCardWithBackgroundImage Documentation
|
|
70
|
-
|
|
71
|
-
The `DealCardWithBackgroundImage` is a versatile card component designed for displaying deals, offers, or promotions with rich customization options. It features a background image, customizable labels, action icons, inner card content, and optional progress bar. As well as choosing between a floating or nested inner card.
|
|
72
|
-
|
|
73
|
-
## Usage
|
|
74
|
-
|
|
75
|
-
```tsx
|
|
76
|
-
import DealCardWithBackgroundImage from "@/components/Card/templates/DealCardWithBackgroundImage";
|
|
77
|
-
import { Image } from "react-native";
|
|
78
|
-
import { HeartIcon, HeartFilledIcon } from "@/components/Icons";
|
|
79
|
-
|
|
80
|
-
const MyComponent = () => {
|
|
81
|
-
return (
|
|
82
|
-
<DealCardWithBackgroundImage
|
|
83
|
-
width={300}
|
|
84
|
-
backgroundImage={require("@/assets/images/pb.jpg")}
|
|
85
|
-
label="Discount"
|
|
86
|
-
actionIconDefault={
|
|
87
|
-
<Ionicons name="heart-outline" size={20} color={theme.primary} />
|
|
88
|
-
}
|
|
89
|
-
actionIconActive={
|
|
90
|
-
<Ionicons name="heart" size={20} color={theme.secondary} />
|
|
91
|
-
}
|
|
92
|
-
innerCardVariant="floating"
|
|
93
|
-
onActionPress={(active) => console.log(active)}
|
|
94
|
-
dealProviderName="Pull&Bear"
|
|
95
|
-
dealDescription="25% discount on all items"
|
|
96
|
-
progressBar={true}
|
|
97
|
-
progressBarText="500 points to Redeem!"
|
|
98
|
-
progressBarTextPosition="below"
|
|
99
|
-
remainingProgressColor="rgba(0, 0, 0, 0.4)"
|
|
100
|
-
dealPrice="1,000 KP"
|
|
101
|
-
/>
|
|
102
|
-
);
|
|
103
|
-
};
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
## Props
|
|
107
|
-
|
|
108
|
-
| Prop | Type | Default | Description |
|
|
109
|
-
|------|------|---------|-------------|
|
|
110
|
-
| `backgroundImage` | `ImageSourcePropType` | Required | The background image to display in the card |
|
|
111
|
-
| `label` | `string` | `undefined` | Optional label text to display in the upper left corner |
|
|
112
|
-
| `labelStyle` | `StyleProp<TextStyle>` | `undefined` | Custom styles for the label text |
|
|
113
|
-
| `labelContainerStyle` | `StyleProp<ViewStyle>` | `undefined` | Custom styles for the label container |
|
|
114
|
-
| `actionIconDefault` | `React.ReactNode` | `undefined` | Icon to display when action is inactive (e.g., unfavorited) |
|
|
115
|
-
| `actionIconActive` | `React.ReactNode` | `undefined` | Icon to display when action is active (e.g., favorited) |
|
|
116
|
-
| `onActionPress` | `(active: boolean) => void` | `undefined` | Function to execute when the action icon is pressed |
|
|
117
|
-
| `innerCardStyle` | `StyleProp<ViewStyle>` | `undefined` | Additional styles for the inner card |
|
|
118
|
-
| `innerCardVariant` | `"floating" \| "nested"` | `"nested"` | The style variant for the inner card |
|
|
119
|
-
| `dealDescription` | `string` | `undefined` | Description text for the deal |
|
|
120
|
-
| `dealDescriptionStyle` | `StyleProp<TextStyle>` | `undefined` | Custom styles for the deal description |
|
|
121
|
-
| `dealProviderName` | `string` | `undefined` | Name of the deal provider |
|
|
122
|
-
| `dealProviderNameStyle` | `StyleProp<TextStyle>` | `undefined` | Custom styles for the provider name |
|
|
123
|
-
| `dealPrice` | `string` | `undefined` | Price text for the deal |
|
|
124
|
-
| `dealPriceStyle` | `StyleProp<TextStyle>` | `undefined` | Custom styles for the price text |
|
|
125
|
-
| `progressBar` | `boolean` | `undefined` | Whether to show a progress bar |
|
|
126
|
-
| `progressBarText` | `string` | `undefined` | Text to display with the progress bar |
|
|
127
|
-
| `progressBarTextPosition` | `ProgressBarTextPosition` | `undefined` | Position of the progress bar text |
|
|
128
|
-
| `progressBarTextAlign` | `ProgressBarTextAlign` | `undefined` | Alignment of the progress bar text |
|
|
129
|
-
| `progressColor` | `string` | `undefined` | Color of the progress indicator |
|
|
130
|
-
| `progressWidth` | `number` | `undefined` | Width of the progress bar |
|
|
131
|
-
| `progressHeight` | `number` | `undefined` | Height of the progress bar |
|
|
132
|
-
| `remainingProgressColor` | `string` | `undefined` | Color of the unfilled portion of the progress bar |
|
|
133
|
-
| `progressValue` | `number` | `undefined` | Value between 0 and 1 representing progress |
|
|
134
|
-
| `onPress` | `() => void` | `undefined` | Function to execute when the card is pressed |
|
|
135
|
-
| `style` | `StyleProp<ViewStyle>` | `undefined` | Additional styles to apply to the card |
|
|
136
|
-
| `width` | `number` | `300` | Width of the card in pixels |
|
|
137
|
-
| `isRTL` | `boolean` | `false` | Whether to render the component in right-to-left mode for RTL languages |
|
|
138
|
-
| `overlayVisible` | `boolean` | `false` | Whether to show a lock overlay on the card |
|
|
139
|
-
| `overlayCover` | `"all" \| "background"` | `"background"` | Controls which part of the card the overlay covers |
|
|
140
|
-
|
|
141
|
-
## Inner Card Variants
|
|
142
|
-
|
|
143
|
-
- **Nested**: The inner card sits within the main card's boundaries
|
|
144
|
-
- **Floating**: The inner card extends beyond the bottom edge of the main card, creating a floating effect
|
|
145
|
-
|
|
146
|
-
## Related Components
|
|
147
|
-
|
|
148
|
-
- `Card`: The base component for all card layouts
|
|
149
|
-
- `CardHeader`: Handles the positioning of elements in the card header
|
|
150
|
-
- `CardContent`: Contains the main content of the card
|
|
151
|
-
- `CardFooter`: Displays the progress bar and price at the bottom of the inner card
|
|
152
|
-
- `ProgressBar`: Shows completion or availability status visually
|
|
153
|
-
- `LockOverlay`: Displays a lock overlay when the `overlayVisible` prop is true
|
|
154
|
-
|
|
155
|
-
# DealCard
|
|
156
|
-
|
|
157
|
-

|
|
158
|
-

|
|
159
|
-
|
|
160
|
-
# DealCard Documentation
|
|
161
|
-
|
|
162
|
-
The `DealCard` is a versatile card component designed for displaying deals or offers in either horizontal or vertical orientation. It features an image, customizable labels, descriptive text, pricing information, and an optional progress bar.
|
|
163
|
-
|
|
164
|
-
## Usage
|
|
165
|
-
|
|
166
|
-
```tsx
|
|
167
|
-
import DealCard from "@/components/Card/templates/DealCard";
|
|
168
|
-
import { Alert } from "react-native";
|
|
169
|
-
|
|
170
|
-
const MyComponent = () => {
|
|
171
|
-
return (
|
|
172
|
-
<DealCard
|
|
173
|
-
imageSource={require("@/assets/images/pb.jpg")}
|
|
174
|
-
// width={275}
|
|
175
|
-
variant="horizontal"
|
|
176
|
-
label="Discount"
|
|
177
|
-
// labelStyle={{ color: "#000" }}
|
|
178
|
-
dealProviderName="Pull&Bear"
|
|
179
|
-
dealDescription="25% discount on all items"
|
|
180
|
-
// dealDescriptionStyle={{ color: "black" }}
|
|
181
|
-
progressBar={true}
|
|
182
|
-
progressBarText="500 points to Redeem!"
|
|
183
|
-
progressBarTextPosition="below"
|
|
184
|
-
// progressColor="black"
|
|
185
|
-
remainingProgressColor="rgba(255, 255, 255, 0.4)"
|
|
186
|
-
dealPrice="1,000 KP"
|
|
187
|
-
/>
|
|
188
|
-
);
|
|
189
|
-
};
|
|
190
|
-
```
|
|
191
|
-
|
|
192
|
-
## Props
|
|
193
|
-
|
|
194
|
-
| Prop | Type | Default | Description |
|
|
195
|
-
|------|------|---------|-------------|
|
|
196
|
-
| `imageSource` | `ImageSourcePropType` | Required | The image to display in the card |
|
|
197
|
-
| `variant` | `"vertical" \| "horizontal"` | `"horizontal"` | Layout orientation of the card |
|
|
198
|
-
| `label` | `string` | `undefined` | Optional label text to display |
|
|
199
|
-
| `labelStyle` | `StyleProp<TextStyle>` | `undefined` | Custom styles for the label text |
|
|
200
|
-
| `labelContainerStyle` | `StyleProp<ViewStyle>` | `undefined` | Custom styles for the label container |
|
|
201
|
-
| `dealDescription` | `string` | `undefined` | Description text for the deal |
|
|
202
|
-
| `dealDescriptionStyle` | `StyleProp<TextStyle>` | `undefined` | Custom styles for the deal description |
|
|
203
|
-
| `dealProviderName` | `string` | `undefined` | Name of the deal provider |
|
|
204
|
-
| `dealProviderNameStyle` | `StyleProp<TextStyle>` | `undefined` | Custom styles for the provider name |
|
|
205
|
-
| `dealPrice` | `string` | `undefined` | Price text for the deal |
|
|
206
|
-
| `dealPriceStyle` | `StyleProp<TextStyle>` | `undefined` | Custom styles for the price text |
|
|
207
|
-
| `progressBar` | `boolean` | `undefined` | Whether to show a progress bar |
|
|
208
|
-
| `progressBarText` | `string` | `undefined` | Text to display with the progress bar |
|
|
209
|
-
| `progressBarTextPosition` | `ProgressBarTextPosition` | `undefined` | Position of the progress bar text |
|
|
210
|
-
| `progressBarTextAlign` | `ProgressBarTextAlign` | `undefined` | Alignment of the progress bar text |
|
|
211
|
-
| `progressColor` | `string` | `undefined` | Color of the progress indicator |
|
|
212
|
-
| `progressWidth` | `number` | `undefined` | Width of the progress bar |
|
|
213
|
-
| `progressHeight` | `number` | `undefined` | Height of the progress bar |
|
|
214
|
-
| `remainingProgressColor` | `string` | `undefined` | Color of the unfilled portion of the progress bar |
|
|
215
|
-
| `progressValue` | `number` | `undefined` | Value between 0 and 1 representing progress |
|
|
216
|
-
| `onPress` | `() => void` | `undefined` | Function to execute when the card is pressed |
|
|
217
|
-
| `style` | `StyleProp<ViewStyle>` | `undefined` | Additional styles to apply to the card |
|
|
218
|
-
| `width` | `number \| string` | `undefined` | Width of the card in pixels or as a percentage |
|
|
219
|
-
| `isRTL` | `boolean` | `false` | Whether to render the component in right-to-left mode for RTL languages |
|
|
220
|
-
| `overlayVisible` | `boolean` | `false` | Whether to show a lock overlay on top of the image |
|
|
221
|
-
|
|
222
|
-
## Layout Variants
|
|
223
|
-
|
|
224
|
-
- **Horizontal**: Image appears on the left side with content to the right
|
|
225
|
-
- **Vertical**: Image appears on top with content below
|
|
226
|
-
|
|
227
|
-
## Related Components
|
|
228
|
-
|
|
229
|
-
- `Card`: The base component used for the overall container
|
|
230
|
-
- `CardHeader`: Displays the provider name and deal description
|
|
231
|
-
- `CardFooter`: Contains the label and progress bar
|
|
232
|
-
- `ProgressBar`: Shows completion or availability status visually
|
|
233
|
-
- `LockOverlay`: Displays a lock overlay when the `overlayVisible` prop is true
|
|
@@ -1,59 +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 _Card = _interopRequireDefault(require("../Card.js"));
|
|
9
|
-
var _CardHeader = _interopRequireDefault(require("../CardHeader.js"));
|
|
10
|
-
var _expoLinearGradient = require("expo-linear-gradient");
|
|
11
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
-
const SimpleTrendingCard = ({
|
|
14
|
-
backgroundImage,
|
|
15
|
-
onPress,
|
|
16
|
-
icon,
|
|
17
|
-
iconPosition = "left",
|
|
18
|
-
shadowEffect = true,
|
|
19
|
-
shadowOpacity = 0.5,
|
|
20
|
-
style
|
|
21
|
-
}) => {
|
|
22
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Card.default, {
|
|
23
|
-
onPress: onPress,
|
|
24
|
-
style: [{
|
|
25
|
-
width: 250,
|
|
26
|
-
height: 300
|
|
27
|
-
}, style],
|
|
28
|
-
backgroundImage: {
|
|
29
|
-
source: backgroundImage,
|
|
30
|
-
resizeMode: "cover"
|
|
31
|
-
},
|
|
32
|
-
children: [shadowEffect && /*#__PURE__*/(0, _jsxRuntime.jsx)(_expoLinearGradient.LinearGradient, {
|
|
33
|
-
colors: [`rgba(0, 0, 0, ${shadowOpacity})`, "transparent"],
|
|
34
|
-
start: {
|
|
35
|
-
x: 0.5,
|
|
36
|
-
y: 1
|
|
37
|
-
},
|
|
38
|
-
end: {
|
|
39
|
-
x: 0.5,
|
|
40
|
-
y: 0
|
|
41
|
-
},
|
|
42
|
-
style: {
|
|
43
|
-
position: "absolute",
|
|
44
|
-
left: 0,
|
|
45
|
-
right: 0,
|
|
46
|
-
top: 0,
|
|
47
|
-
bottom: 0
|
|
48
|
-
}
|
|
49
|
-
}), icon && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CardHeader.default, {
|
|
50
|
-
left: iconPosition === "left" ? icon : null,
|
|
51
|
-
right: iconPosition === "right" ? icon : null,
|
|
52
|
-
style: {
|
|
53
|
-
alignItems: "center"
|
|
54
|
-
}
|
|
55
|
-
})]
|
|
56
|
-
});
|
|
57
|
-
};
|
|
58
|
-
var _default = exports.default = SimpleTrendingCard;
|
|
59
|
-
//# sourceMappingURL=SimpleTrendingCard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_Card","_CardHeader","_expoLinearGradient","_jsxRuntime","e","__esModule","default","SimpleTrendingCard","backgroundImage","onPress","icon","iconPosition","shadowEffect","shadowOpacity","style","jsxs","width","height","source","resizeMode","children","jsx","LinearGradient","colors","start","x","y","end","position","left","right","top","bottom","alignItems","_default","exports"],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/Card/templates/SimpleTrendingCard.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,KAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,WAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA;AAAsD,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAWtD,MAAMG,kBAAqD,GAAGA,CAAC;EAC7DC,eAAe;EACfC,OAAO;EACPC,IAAI;EACJC,YAAY,GAAG,MAAM;EACrBC,YAAY,GAAG,IAAI;EACnBC,aAAa,GAAG,GAAG;EACnBC;AACF,CAAC,KAAK;EACJ,oBACE,IAAAX,WAAA,CAAAY,IAAA,EAACf,KAAA,CAAAM,OAAI;IACHG,OAAO,EAAEA,OAAQ;IACjBK,KAAK,EAAE,CAAC;MAAEE,KAAK,EAAE,GAAG;MAAEC,MAAM,EAAE;IAAI,CAAC,EAAEH,KAAK,CAAE;IAC5CN,eAAe,EAAE;MACfU,MAAM,EAAEV,eAAe;MACvBW,UAAU,EAAE;IACd,CAAE;IAAAC,QAAA,GAEDR,YAAY,iBACX,IAAAT,WAAA,CAAAkB,GAAA,EAACnB,mBAAA,CAAAoB,cAAc;MACbC,MAAM,EAAE,CAAC,iBAAiBV,aAAa,GAAG,EAAE,aAAa,CAAE;MAC3DW,KAAK,EAAE;QAAEC,CAAC,EAAE,GAAG;QAAEC,CAAC,EAAE;MAAE,CAAE;MACxBC,GAAG,EAAE;QAAEF,CAAC,EAAE,GAAG;QAAEC,CAAC,EAAE;MAAE,CAAE;MACtBZ,KAAK,EAAE;QAAEc,QAAQ,EAAE,UAAU;QAAEC,IAAI,EAAE,CAAC;QAAEC,KAAK,EAAE,CAAC;QAAEC,GAAG,EAAE,CAAC;QAAEC,MAAM,EAAE;MAAE;IAAE,CACvE,CACF,EAEAtB,IAAI,iBACH,IAAAP,WAAA,CAAAkB,GAAA,EAACpB,WAAA,CAAAK,OAAU;MACTuB,IAAI,EAAElB,YAAY,KAAK,MAAM,GAAGD,IAAI,GAAG,IAAK;MAC5CoB,KAAK,EAAEnB,YAAY,KAAK,OAAO,GAAGD,IAAI,GAAG,IAAK;MAC9CI,KAAK,EAAE;QAAEmB,UAAU,EAAE;MAAS;IAAE,CACjC,CACF;EAAA,CACG,CAAC;AAEX,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAA7B,OAAA,GAEaC,kBAAkB","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/Card/types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1,75 +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 _index = require("../../theme/index.js");
|
|
11
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
-
// components/CloseIcon.tsx
|
|
14
|
-
|
|
15
|
-
// Assuming your theme setup is here
|
|
16
|
-
|
|
17
|
-
const CloseIcon = ({
|
|
18
|
-
onPress,
|
|
19
|
-
show = true,
|
|
20
|
-
customIcon,
|
|
21
|
-
variant = "nested",
|
|
22
|
-
containerStyle,
|
|
23
|
-
iconStyle,
|
|
24
|
-
color: colorProp,
|
|
25
|
-
// Renamed to avoid conflict with theme color
|
|
26
|
-
size = 28,
|
|
27
|
-
isRTL = false
|
|
28
|
-
}) => {
|
|
29
|
-
const {
|
|
30
|
-
theme,
|
|
31
|
-
isRTL: rtl
|
|
32
|
-
} = (0, _index.useTheme)();
|
|
33
|
-
isRTL = rtl;
|
|
34
|
-
const styles = themedStyles(theme);
|
|
35
|
-
|
|
36
|
-
// Use prop color if provided, otherwise use theme text color
|
|
37
|
-
const iconColor = colorProp ?? theme.text;
|
|
38
|
-
|
|
39
|
-
// Calculate default position based on variant and RTL
|
|
40
|
-
const defaultPosition = variant === "nested" ? {
|
|
41
|
-
top: 10,
|
|
42
|
-
[isRTL ? "left" : "right"]: 10
|
|
43
|
-
} : {
|
|
44
|
-
top: -12,
|
|
45
|
-
[isRTL ? "left" : "right"]: -12
|
|
46
|
-
};
|
|
47
|
-
if (!show || !onPress) {
|
|
48
|
-
return null; // Don't render if not shown or no onPress handler
|
|
49
|
-
}
|
|
50
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
51
|
-
style: [styles.container, defaultPosition, containerStyle],
|
|
52
|
-
onPress: onPress,
|
|
53
|
-
hitSlop: {
|
|
54
|
-
top: 10,
|
|
55
|
-
right: 10,
|
|
56
|
-
bottom: 10,
|
|
57
|
-
left: 10
|
|
58
|
-
} // Improve touch area
|
|
59
|
-
,
|
|
60
|
-
children: customIcon || /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
|
|
61
|
-
name: "close",
|
|
62
|
-
size: size,
|
|
63
|
-
color: iconColor,
|
|
64
|
-
style: iconStyle
|
|
65
|
-
})
|
|
66
|
-
});
|
|
67
|
-
};
|
|
68
|
-
const themedStyles = theme => _reactNative.StyleSheet.create({
|
|
69
|
-
container: {
|
|
70
|
-
position: "absolute",
|
|
71
|
-
zIndex: 10 // Ensure it's above other elements
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
var _default = exports.default = CloseIcon;
|
|
75
|
-
//# sourceMappingURL=CloseIcon.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_vectorIcons","_index","_jsxRuntime","e","__esModule","default","CloseIcon","onPress","show","customIcon","variant","containerStyle","iconStyle","color","colorProp","size","isRTL","theme","rtl","useTheme","styles","themedStyles","iconColor","text","defaultPosition","top","jsx","TouchableOpacity","style","container","hitSlop","right","bottom","left","children","Ionicons","name","StyleSheet","create","position","zIndex","_default","exports"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/CloseIcon/CloseIcon.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAMA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AAAkD,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AATlD;;AASmD;;AAcnD,MAAMG,SAAmC,GAAGA,CAAC;EAC3CC,OAAO;EACPC,IAAI,GAAG,IAAI;EACXC,UAAU;EACVC,OAAO,GAAG,QAAQ;EAClBC,cAAc;EACdC,SAA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