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
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.Badge = void 0;
|
|
7
|
-
var _index = require("../../theme/index.js");
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _reactNative = require("react-native");
|
|
10
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
// Badge props
|
|
13
|
-
|
|
14
|
-
// Simple Badge component
|
|
15
|
-
const Badge = ({
|
|
16
|
-
icon,
|
|
17
|
-
isActive = false,
|
|
18
|
-
size,
|
|
19
|
-
style,
|
|
20
|
-
activeStyle,
|
|
21
|
-
inactiveStyle,
|
|
22
|
-
activeIcon,
|
|
23
|
-
label,
|
|
24
|
-
labelStyle
|
|
25
|
-
}) => {
|
|
26
|
-
const {
|
|
27
|
-
theme
|
|
28
|
-
} = (0, _index.useTheme)();
|
|
29
|
-
const styles = _reactNative.StyleSheet.create({
|
|
30
|
-
badge: {
|
|
31
|
-
borderRadius: 12,
|
|
32
|
-
justifyContent: "center",
|
|
33
|
-
alignItems: "center",
|
|
34
|
-
backgroundColor: theme.secondary,
|
|
35
|
-
padding: 8
|
|
36
|
-
},
|
|
37
|
-
activeBadge: {
|
|
38
|
-
backgroundColor: theme.primary
|
|
39
|
-
},
|
|
40
|
-
label: {
|
|
41
|
-
fontSize: 12,
|
|
42
|
-
color: theme.text,
|
|
43
|
-
marginTop: 4,
|
|
44
|
-
textAlign: "center",
|
|
45
|
-
fontWeight: "500"
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
const badgeStyles = [styles.badge, size ? {
|
|
49
|
-
width: size,
|
|
50
|
-
height: size
|
|
51
|
-
} : {}, style, isActive ? [styles.activeBadge, activeStyle] : inactiveStyle];
|
|
52
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
53
|
-
style: {
|
|
54
|
-
alignItems: "center"
|
|
55
|
-
},
|
|
56
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
57
|
-
style: badgeStyles,
|
|
58
|
-
children: isActive && activeIcon ? activeIcon : icon
|
|
59
|
-
}), label && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
60
|
-
style: [styles.label, labelStyle],
|
|
61
|
-
children: label
|
|
62
|
-
})]
|
|
63
|
-
});
|
|
64
|
-
};
|
|
65
|
-
exports.Badge = Badge;
|
|
66
|
-
var _default = exports.default = Badge;
|
|
67
|
-
//# sourceMappingURL=Badge.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_index","require","_react","_interopRequireDefault","_reactNative","_jsxRuntime","e","__esModule","default","Badge","icon","isActive","size","style","activeStyle","inactiveStyle","activeIcon","label","labelStyle","theme","useTheme","styles","StyleSheet","create","badge","borderRadius","justifyContent","alignItems","backgroundColor","secondary","padding","activeBadge","primary","fontSize","color","text","marginTop","textAlign","fontWeight","badgeStyles","width","height","jsxs","View","children","jsx","Text","exports","_default"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/Badges/Badge.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAQsB,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAE,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEtB;;AAiBA;AACO,MAAMG,KAA2B,GAAGA,CAAC;EAC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WAAA,CAAAwC,GAAA,EAACzC,YAAA,CAAA0C,IAAI;MAACjC,KAAK,EAAE,CAACQ,MAAM,CAACJ,KAAK,EAAEC,UAAU,CAAE;MAAA0B,QAAA,EAAE3B;IAAK,CAAO,CAAC;EAAA,CAC7D,CAAC;AAEX,CAAC;AAAC8B,OAAA,CAAAtC,KAAA,GAAAA,KAAA;AAAA,IAAAuC,QAAA,GAAAD,OAAA,CAAAvC,OAAA,GAEaC,KAAK","ignoreList":[]}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
# Badge Component
|
|
2
|
-
|
|
3
|
-
A customizable badge component for React Native applications that displays icons with optional labels, supporting both active and inactive states. Perfect for creating navigation tabs, feature highlights, or status indicators.
|
|
4
|
-
|
|
5
|
-
## Basic Usage
|
|
6
|
-
|
|
7
|
-
```jsx
|
|
8
|
-
import React from 'react';
|
|
9
|
-
import { View } from 'react-native';
|
|
10
|
-
import { Badge } from '@your-org/component-library';
|
|
11
|
-
import { StarIcon } from 'your-icon-library';
|
|
12
|
-
|
|
13
|
-
const MyBadgeExample = () => {
|
|
14
|
-
return (
|
|
15
|
-
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
|
|
16
|
-
<Badge
|
|
17
|
-
icon={<StarIcon size={24} color="#FFFFFF" />}
|
|
18
|
-
label="Favorite"
|
|
19
|
-
isActive={true}
|
|
20
|
-
/>
|
|
21
|
-
</View>
|
|
22
|
-
);
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export default MyBadgeExample;
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
## Props
|
|
29
|
-
|
|
30
|
-
### Core Props
|
|
31
|
-
|
|
32
|
-
| Prop | Type | Required | Default | Description |
|
|
33
|
-
|------|------|----------|---------|-------------|
|
|
34
|
-
| `icon` | `React.ReactNode` | ✅ | - | Icon to display in the badge |
|
|
35
|
-
| `activeIcon` | `React.ReactNode` | ❌ | - | Alternative icon to display when badge is active |
|
|
36
|
-
| `isActive` | `boolean` | ❌ | `false` | Whether the badge is in active state |
|
|
37
|
-
| `label` | `string` | ❌ | - | Text label for the badge |
|
|
38
|
-
|
|
39
|
-
### Dimension Props
|
|
40
|
-
|
|
41
|
-
| Prop | Type | Required | Default | Description |
|
|
42
|
-
|------|------|----------|---------|-------------|
|
|
43
|
-
| `size` | `number` | ❌ | `60` | Size of the badge in pixels |
|
|
44
|
-
|
|
45
|
-
### Styling Props
|
|
46
|
-
|
|
47
|
-
| Prop | Type | Required | Default | Description |
|
|
48
|
-
|------|------|----------|---------|-------------|
|
|
49
|
-
| `style` | `StyleProp<ViewStyle>` | ❌ | - | Custom style for the badge |
|
|
50
|
-
| `activeStyle` | `StyleProp<ViewStyle>` | ❌ | - | Additional style applied when badge is active |
|
|
51
|
-
| `inactiveStyle` | `StyleProp<ViewStyle>` | ❌ | - | Additional style applied when badge is inactive |
|
|
52
|
-
| `labelStyle` | `StyleProp<TextStyle>` | ❌ | - | Custom style for the label text |
|
|
53
|
-
|
|
54
|
-
## Advanced Examples
|
|
55
|
-
|
|
56
|
-
### With Active and Inactive Icons
|
|
57
|
-
|
|
58
|
-
```jsx
|
|
59
|
-
<Badge
|
|
60
|
-
icon={<StarOutlineIcon size={24} color="#FFFFFF" />}
|
|
61
|
-
activeIcon={<StarFilledIcon size={24} color="#FFFFFF" />}
|
|
62
|
-
isActive={isFavorite}
|
|
63
|
-
label="Favorite"
|
|
64
|
-
size={80}
|
|
65
|
-
/>
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
### Custom Styling
|
|
69
|
-
|
|
70
|
-
```jsx
|
|
71
|
-
<Badge
|
|
72
|
-
icon={<ProfileIcon size={30} color="#333333" />}
|
|
73
|
-
style={{ backgroundColor: '#F5F5F5', borderWidth: 1, borderColor: '#E0E0E0' }}
|
|
74
|
-
activeStyle={{ backgroundColor: '#4CAF50', borderColor: '#388E3C' }}
|
|
75
|
-
labelStyle={{ color: '#333333', fontSize: 14, fontWeight: 'bold' }}
|
|
76
|
-
label="Profile"
|
|
77
|
-
size={70}
|
|
78
|
-
/>
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
### Without Label
|
|
82
|
-
|
|
83
|
-
```jsx
|
|
84
|
-
<Badge
|
|
85
|
-
icon={<NotificationIcon size={24} color="#FFFFFF" />}
|
|
86
|
-
activeIcon={<NotificationActiveIcon size={24} color="#FFFFFF" />}
|
|
87
|
-
isActive={hasNotifications}
|
|
88
|
-
size={50}
|
|
89
|
-
/>
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
### Theme Integration
|
|
94
|
-
|
|
95
|
-
The Badge component automatically uses your application's theme through the `useTheme()` hook. Default styling includes:
|
|
96
|
-
- Badge background color: Uses `theme.secondary` for inactive state
|
|
97
|
-
- Active badge background color: Uses `theme.primary` for active state
|
|
98
|
-
- Label text color: Uses `theme.text`
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var _exportNames = {
|
|
7
|
-
Badge: true
|
|
8
|
-
};
|
|
9
|
-
Object.defineProperty(exports, "Badge", {
|
|
10
|
-
enumerable: true,
|
|
11
|
-
get: function () {
|
|
12
|
-
return _Badge.default;
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
var _Badge = _interopRequireWildcard(require("./Badge.js"));
|
|
16
|
-
Object.keys(_Badge).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] === _Badge[key]) return;
|
|
20
|
-
Object.defineProperty(exports, key, {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
get: function () {
|
|
23
|
-
return _Badge[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":["_Badge","_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/Badges/index.ts"],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACAC,MAAA,CAAAC,IAAA,CAAAJ,MAAA,EAAAK,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAN,MAAA,CAAAM,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAd,MAAA,CAAAM,GAAA;IAAA;EAAA;AAAA;AAAwB,SAAAS,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAf,wBAAAe,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAL,GAAA,CAAAE,CAAA,OAAAO,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAtB,MAAA,CAAAS,cAAA,IAAAT,MAAA,CAAAuB,wBAAA,WAAAC,CAAA,IAAAX,CAAA,oBAAAW,CAAA,OAAAnB,cAAA,CAAAC,IAAA,CAAAO,CAAA,EAAAW,CAAA,SAAAC,CAAA,GAAAH,CAAA,GAAAtB,MAAA,CAAAuB,wBAAA,CAAAV,CAAA,EAAAW,CAAA,UAAAC,CAAA,KAAAA,CAAA,CAAAd,GAAA,IAAAc,CAAA,CAAAC,GAAA,IAAA1B,MAAA,CAAAS,cAAA,CAAAW,CAAA,EAAAI,CAAA,EAAAC,CAAA,IAAAL,CAAA,CAAAI,CAAA,IAAAX,CAAA,CAAAW,CAAA,YAAAJ,CAAA,CAAAF,OAAA,GAAAL,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAU,GAAA,CAAAb,CAAA,EAAAO,CAAA,GAAAA,CAAA","ignoreList":[]}
|
|
@@ -1,138 +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 _index = require("../Card/index.js");
|
|
10
|
-
var _index2 = require("../../theme/index.js");
|
|
11
|
-
var _reactNativeGestureHandler = require("react-native-gesture-handler");
|
|
12
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
-
/**
|
|
15
|
-
* A customizable banner component with background image and action button
|
|
16
|
-
*/
|
|
17
|
-
const Banner = ({
|
|
18
|
-
backgroundImage,
|
|
19
|
-
buttonText = "Redeem",
|
|
20
|
-
onButtonPress,
|
|
21
|
-
onBannerPress,
|
|
22
|
-
containerStyle,
|
|
23
|
-
backgroundImageStyle,
|
|
24
|
-
contentContainerStyle,
|
|
25
|
-
buttonStyle,
|
|
26
|
-
buttonTextStyle,
|
|
27
|
-
height = 300,
|
|
28
|
-
customButton,
|
|
29
|
-
contentAlignment = "center",
|
|
30
|
-
// Icon props with defaults
|
|
31
|
-
icon,
|
|
32
|
-
iconPosition = "left",
|
|
33
|
-
iconStyle,
|
|
34
|
-
iconSpacing = 8
|
|
35
|
-
}) => {
|
|
36
|
-
const {
|
|
37
|
-
theme
|
|
38
|
-
} = (0, _index2.useTheme)();
|
|
39
|
-
// Handle banner press if provided
|
|
40
|
-
const handlePress = onBannerPress ? onBannerPress : undefined;
|
|
41
|
-
|
|
42
|
-
// Render the button with optional icon
|
|
43
|
-
const renderButton = () => {
|
|
44
|
-
if (customButton) {
|
|
45
|
-
return customButton;
|
|
46
|
-
}
|
|
47
|
-
if (!buttonText) {
|
|
48
|
-
return null;
|
|
49
|
-
}
|
|
50
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeGestureHandler.TouchableOpacity, {
|
|
51
|
-
style: [styles.button, {
|
|
52
|
-
borderColor: theme.primary
|
|
53
|
-
}, buttonStyle],
|
|
54
|
-
onPress: onButtonPress,
|
|
55
|
-
accessibilityRole: "button",
|
|
56
|
-
accessibilityLabel: buttonText,
|
|
57
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
58
|
-
style: [styles.buttonContent, {
|
|
59
|
-
flexDirection: iconPosition === "left" ? "row" : "row-reverse"
|
|
60
|
-
}],
|
|
61
|
-
children: [icon && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
62
|
-
style: [styles.iconContainer, {
|
|
63
|
-
marginRight: iconPosition === "left" ? iconSpacing : 0,
|
|
64
|
-
marginLeft: iconPosition === "right" ? iconSpacing : 0
|
|
65
|
-
}, iconStyle],
|
|
66
|
-
accessible: false,
|
|
67
|
-
importantForAccessibility: "no-hide-descendants",
|
|
68
|
-
children: icon
|
|
69
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
70
|
-
style: [styles.buttonText, {
|
|
71
|
-
color: theme.primary
|
|
72
|
-
}, buttonTextStyle],
|
|
73
|
-
children: buttonText
|
|
74
|
-
})]
|
|
75
|
-
})
|
|
76
|
-
});
|
|
77
|
-
};
|
|
78
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Card, {
|
|
79
|
-
style: [{
|
|
80
|
-
height
|
|
81
|
-
}, containerStyle],
|
|
82
|
-
backgroundImage: {
|
|
83
|
-
source: backgroundImage,
|
|
84
|
-
resizeMode: "cover",
|
|
85
|
-
imageStyle: backgroundImageStyle
|
|
86
|
-
},
|
|
87
|
-
onPress: handlePress,
|
|
88
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.CardFooter, {
|
|
89
|
-
justifyContent: "center",
|
|
90
|
-
style: [styles.footer, contentAlignment === "top" ? styles.footerTop : contentAlignment === "center" ? styles.footerCenter : styles.footerBottom, contentContainerStyle],
|
|
91
|
-
children: renderButton()
|
|
92
|
-
})
|
|
93
|
-
});
|
|
94
|
-
};
|
|
95
|
-
const styles = _reactNative.StyleSheet.create({
|
|
96
|
-
footer: {
|
|
97
|
-
position: "absolute",
|
|
98
|
-
left: 0,
|
|
99
|
-
right: 0
|
|
100
|
-
},
|
|
101
|
-
footerTop: {
|
|
102
|
-
top: 0
|
|
103
|
-
},
|
|
104
|
-
footerCenter: {
|
|
105
|
-
top: "50%",
|
|
106
|
-
transform: [{
|
|
107
|
-
translateY: -20
|
|
108
|
-
}] // Approximate button height offset
|
|
109
|
-
},
|
|
110
|
-
footerBottom: {
|
|
111
|
-
bottom: 0
|
|
112
|
-
},
|
|
113
|
-
button: {
|
|
114
|
-
backgroundColor: "transparent",
|
|
115
|
-
paddingHorizontal: 24,
|
|
116
|
-
paddingVertical: 8,
|
|
117
|
-
borderRadius: 8,
|
|
118
|
-
borderWidth: 1,
|
|
119
|
-
borderColor: "#FFFFFF"
|
|
120
|
-
},
|
|
121
|
-
buttonContent: {
|
|
122
|
-
flexDirection: "row",
|
|
123
|
-
alignItems: "center",
|
|
124
|
-
justifyContent: "center"
|
|
125
|
-
},
|
|
126
|
-
iconContainer: {
|
|
127
|
-
alignItems: "center",
|
|
128
|
-
justifyContent: "center"
|
|
129
|
-
},
|
|
130
|
-
buttonText: {
|
|
131
|
-
color: "#FFFFFF",
|
|
132
|
-
fontSize: 14,
|
|
133
|
-
fontWeight: "600",
|
|
134
|
-
letterSpacing: 1
|
|
135
|
-
}
|
|
136
|
-
});
|
|
137
|
-
var _default = exports.default = Banner;
|
|
138
|
-
//# sourceMappingURL=Banner.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_index","_index2","_reactNativeGestureHandler","_jsxRuntime","e","__esModule","default","Banner","backgroundImage","buttonText","onButtonPress","onBannerPress","containerStyle","backgroundImageStyle","contentContainerStyle","buttonStyle","buttonTextStyle","height","customButton","contentAlignment","icon","iconPosition","iconStyle","iconSpacing","theme","useTheme","handlePress","undefined","renderButton","jsx","TouchableOpacity","style","styles","button","borderColor","primary","onPress","accessibilityRole","accessibilityLabel","children","jsxs","View","buttonContent","flexDirection","iconContainer","marginRight","marginLeft","accessible","importantForAccessibility","Text","color","Card","source","resizeMode","imageStyle","CardFooter","justifyContent","footer","footerTop","footerCenter","footerBottom","StyleSheet","create","position","left","right","top","transform","translateY","bottom","backgroundColor","paddingHorizontal","paddingVertical","borderRadius","borderWidth","alignItems","fontSize","fontWeight","letterSpacing","_default","exports"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/Banner/Banner.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAUA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,0BAAA,GAAAJ,OAAA;AAAgE,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAuBhE;AACA;AACA;AACA,MAAMG,MAA6B,GAAGA,CAAC;EACrCC,eAAe;EACfC,UAAU,GAAG,QAAQ;EACrBC,aAAa;EACbC,aAAa;EACbC,cAAc;EACdC,oBAAoB;EACpBC,qBAAqB;EACrBC,WAAW;EACXC,eAAe;EACfC,MAAM,GAAG,GAAG;EACZC,YAAY;EACZC,gBAAgB,GAAG,QAAQ;EAE3B;EACAC,IAAI;EACJC,YAAY,GAAG,MAAM;EACrBC,SAAS;EACTC,WAAW,GAAG;AAChB,CAAC,KAAK;EACJ,MAAM;IAACC;EAAK,CAAC,GAAG,IAAAC,gBAAQ,EAAC,CAAC;EAC1B;EACA,MAAMC,WAAW,GAAGf,aAAa,GAAGA,aAAa,GAAGgB,SAAS;;EAE7D;EACA,MAAMC,YAAY,GAAGA,CAAA,KAAM;IACzB,IAAIV,YAAY,EAAE;MAChB,OAAOA,YAAY;IACrB;IAEA,IAAI,CAACT,UAAU,EAAE;MACf,OAAO,IAAI;IACb;IAEA,oBACE,IAAAN,WAAA,CAAA0B,GAAA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AC;EACD/C,UAAU,EAAE;IACVyC,KAAK,EAAE,SAAS;IAChB0B,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,KAAK;IACjBC,aAAa,EAAE;EACjB;AACF,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAA1E,OAAA,GAEYC,MAAM","ignoreList":[]}
|
|
@@ -1,120 +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 _index = require("../Card/index.js");
|
|
10
|
-
var _index2 = require("../../theme/index.js");
|
|
11
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
-
// Import ThemeType
|
|
14
|
-
|
|
15
|
-
const BannerWithDetails = ({
|
|
16
|
-
backgroundImage,
|
|
17
|
-
logoImage,
|
|
18
|
-
detailText,
|
|
19
|
-
onPress,
|
|
20
|
-
containerStyle,
|
|
21
|
-
imageStyle,
|
|
22
|
-
logoContainerStyle,
|
|
23
|
-
logoStyle,
|
|
24
|
-
textContainerStyle,
|
|
25
|
-
textStyle,
|
|
26
|
-
customDetailContent
|
|
27
|
-
}) => {
|
|
28
|
-
const {
|
|
29
|
-
theme
|
|
30
|
-
} = (0, _index2.useTheme)();
|
|
31
|
-
const styles = createStyles(theme); // Create styles using theme
|
|
32
|
-
|
|
33
|
-
const content = /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
34
|
-
style: {
|
|
35
|
-
width: "100%",
|
|
36
|
-
paddingBottom: 50
|
|
37
|
-
},
|
|
38
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Card, {
|
|
39
|
-
style: [styles.container, containerStyle],
|
|
40
|
-
backgroundImage: {
|
|
41
|
-
source: backgroundImage,
|
|
42
|
-
style: [styles.backgroundImage, imageStyle]
|
|
43
|
-
},
|
|
44
|
-
borderRadius: 15,
|
|
45
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_index.CardContent, {
|
|
46
|
-
style: styles.cardContent,
|
|
47
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Card, {
|
|
48
|
-
style: [styles.logoContainer, logoContainerStyle],
|
|
49
|
-
backgroundImage: {
|
|
50
|
-
source: logoImage,
|
|
51
|
-
style: [styles.backgroundImage],
|
|
52
|
-
imageStyle: logoStyle
|
|
53
|
-
}
|
|
54
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Card, {
|
|
55
|
-
variant: "elevated",
|
|
56
|
-
style: [styles.textContainer, textContainerStyle],
|
|
57
|
-
children: customDetailContent || /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
58
|
-
style: [styles.detailText, textStyle],
|
|
59
|
-
children: detailText
|
|
60
|
-
})
|
|
61
|
-
})]
|
|
62
|
-
})
|
|
63
|
-
})
|
|
64
|
-
});
|
|
65
|
-
if (onPress) {
|
|
66
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
67
|
-
onPress: onPress,
|
|
68
|
-
children: content
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
return content;
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
// Function to create themed styles
|
|
75
|
-
const createStyles = theme => _reactNative.StyleSheet.create({
|
|
76
|
-
container: {
|
|
77
|
-
position: "relative",
|
|
78
|
-
borderRadius: 12,
|
|
79
|
-
padding: 0,
|
|
80
|
-
height: 300
|
|
81
|
-
},
|
|
82
|
-
backgroundImage: {
|
|
83
|
-
width: "100%",
|
|
84
|
-
height: "100%",
|
|
85
|
-
resizeMode: "cover"
|
|
86
|
-
},
|
|
87
|
-
cardContent: {
|
|
88
|
-
position: "absolute",
|
|
89
|
-
bottom: 0,
|
|
90
|
-
left: 0,
|
|
91
|
-
right: 0,
|
|
92
|
-
padding: 0,
|
|
93
|
-
alignItems: "center",
|
|
94
|
-
transform: [{
|
|
95
|
-
translateY: "30%"
|
|
96
|
-
}]
|
|
97
|
-
},
|
|
98
|
-
logoContainer: {
|
|
99
|
-
marginVertical: 0,
|
|
100
|
-
bottom: -15,
|
|
101
|
-
width: 90,
|
|
102
|
-
height: 80,
|
|
103
|
-
zIndex: 50
|
|
104
|
-
// Background is image
|
|
105
|
-
},
|
|
106
|
-
textContainer: {
|
|
107
|
-
marginVertical: 0,
|
|
108
|
-
padding: 20,
|
|
109
|
-
height: 80,
|
|
110
|
-
width: "90%",
|
|
111
|
-
justifyContent: "center"
|
|
112
|
-
},
|
|
113
|
-
detailText: {
|
|
114
|
-
textAlign: "center",
|
|
115
|
-
fontSize: 14,
|
|
116
|
-
color: theme.onSurface // Use standard text color
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
var _default = exports.default = BannerWithDetails;
|
|
120
|
-
//# sourceMappingURL=BannerWithDetails.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_index","_index2","_jsxRuntime","e","__esModule","default","BannerWithDetails","backgroundImage","logoImage","detailText","onPress","containerStyle","imageStyle","logoContainerStyle","logoStyle","textContainerStyle","textStyle","customDetailContent","theme","useTheme","styles","createStyles","content","jsx","View","style","width","paddingBottom","children","Card","container","source","borderRadius","jsxs","CardContent","cardContent","logoContainer","variant","textContainer","Text","TouchableOpacity","StyleSheet","create","position","padding","height","resizeMode","bottom","left","right","alignItems","transform","translateY","marginVertical","zIndex","justifyContent","textAlign","fontSize","color","onSurface","_default","exports"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/Banner/BannerWithDetails.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAA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E,CAAC;MAAEC,UAAU,EAAE;IAAM,CAAC;EACnC,CAAC;EACDhB,aAAa,EAAE;IACbiB,cAAc,EAAE,CAAC;IACjBN,MAAM,EAAE,CAAC,EAAE;IACXrB,KAAK,EAAE,EAAE;IACTmB,MAAM,EAAE,EAAE;IACVS,MAAM,EAAE;IACR;EACF,CAAC;EACDhB,aAAa,EAAE;IACbe,cAAc,EAAE,CAAC;IACjBT,OAAO,EAAE,EAAE;IACXC,MAAM,EAAE,EAAE;IACVnB,KAAK,EAAE,KAAK;IACZ6B,cAAc,EAAE;EAClB,CAAC;EACD9C,UAAU,EAAE;IACV+C,SAAS,EAAE,QAAQ;IACnBC,QAAQ,EAAE,EAAE;IACZC,KAAK,EAAExC,KAAK,CAACyC,SAAS,CAAE;EAC1B;AACF,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAxD,OAAA,GAEUC,iBAAiB","ignoreList":[]}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
# Banner
|
|
2
|
-
|
|
3
|
-

|
|
4
|
-
|
|
5
|
-
## Banner Documentation
|
|
6
|
-
|
|
7
|
-
The `Banner` is a customizable banner component with a background image and an optional action button. It supports different vertical alignments, custom styling, and an optional icon that can be positioned on either side of the button text.
|
|
8
|
-
|
|
9
|
-
### Usage
|
|
10
|
-
|
|
11
|
-
```tsx
|
|
12
|
-
import Banner from "@/components/Card/templates/Banner";
|
|
13
|
-
import { Ionicons } from "@expo/vector-icons";
|
|
14
|
-
|
|
15
|
-
const MyComponent = () => {
|
|
16
|
-
return (
|
|
17
|
-
<Banner
|
|
18
|
-
backgroundImage={require("@/assets/images/banner-bg.jpg")}
|
|
19
|
-
buttonText="Redeem Now"
|
|
20
|
-
onButtonPress={() => Alert.alert("Button pressed")}
|
|
21
|
-
onBannerPress={() => Alert.alert("Banner pressed")}
|
|
22
|
-
height={200}
|
|
23
|
-
contentAlignment="bottom"
|
|
24
|
-
icon={<Ionicons name="gift-outline" size={20} color="#FFFFFF" />}
|
|
25
|
-
iconPosition="left"
|
|
26
|
-
/>
|
|
27
|
-
);
|
|
28
|
-
};
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
### Props
|
|
32
|
-
|
|
33
|
-
| Prop | Type | Default | Description |
|
|
34
|
-
|------|------|---------|-------------|
|
|
35
|
-
| `backgroundImage` | `ImageSourcePropType` | Required | The background image to display in the banner |
|
|
36
|
-
| `buttonText` | `string` | `"Redeem"` | Text to display on the action button |
|
|
37
|
-
| `onButtonPress` | `() => void` | `undefined` | Function to execute when the button is pressed |
|
|
38
|
-
| `onBannerPress` | `() => void` | `undefined` | Function to execute when the banner (outside the button) is pressed |
|
|
39
|
-
| `containerStyle` | `ViewStyle` | `undefined` | Additional styles to apply to the banner container |
|
|
40
|
-
| `backgroundImageStyle` | `ViewStyle` | `undefined` | Additional styles to apply to the background image |
|
|
41
|
-
| `contentContainerStyle` | `ViewStyle` | `undefined` | Additional styles to apply to the content container |
|
|
42
|
-
| `buttonStyle` | `ViewStyle` | `undefined` | Additional styles to apply to the button |
|
|
43
|
-
| `buttonTextStyle` | `TextStyle` | `undefined` | Additional styles to apply to the button text |
|
|
44
|
-
| `height` | `DimensionValue` | `300` | Height of the banner |
|
|
45
|
-
| `customButton` | `React.ReactNode` | `undefined` | Custom button component to replace the default button |
|
|
46
|
-
| `contentAlignment` | `"top" \| "center" \| "bottom"` | `"center"` | Vertical alignment of the content within the banner |
|
|
47
|
-
| `icon` | `React.ReactNode` | `undefined` | Optional icon to display alongside the button text |
|
|
48
|
-
| `iconPosition` | `"left" \| "right"` | `"left"` | Position of the icon relative to the button text |
|
|
49
|
-
| `iconStyle` | `ViewStyle` | `undefined` | Additional styles to apply to the icon container |
|
|
50
|
-
| `iconSpacing` | `number` | `8` | Spacing between the icon and button text |
|
|
51
|
-
|
|
52
|
-
### Related Components
|
|
53
|
-
|
|
54
|
-
- `Card`: The base component used for the overall container
|
|
55
|
-
- `CardFooter`: Contains the button and manages content positioning
|
|
56
|
-
|
|
57
|
-
# BannerWithDetails
|
|
58
|
-
|
|
59
|
-

|
|
60
|
-
|
|
61
|
-
## BannerWithDetails Documentation
|
|
62
|
-
|
|
63
|
-
The `BannerWithDetails` is a visually appealing banner component that combines a background image with a prominently featured logo and a card containing detail text. It's designed for showcasing brand information or promotional content with a clean, elevated appearance.
|
|
64
|
-
|
|
65
|
-
### Usage
|
|
66
|
-
|
|
67
|
-
```tsx
|
|
68
|
-
import BannerWithDetails from "@/components/Card/templates/BannerWithDetails";
|
|
69
|
-
|
|
70
|
-
const MyComponent = () => {
|
|
71
|
-
return (
|
|
72
|
-
<BannerWithDetails
|
|
73
|
-
backgroundImage={require("@/assets/images/banner-bg.jpg")}
|
|
74
|
-
logoImage={require("@/assets/images/company-logo.png")}
|
|
75
|
-
detailText="Limited time offer: 25% off on all premium items!"
|
|
76
|
-
onPress={() => Alert.alert("Banner pressed")}
|
|
77
|
-
/>
|
|
78
|
-
);
|
|
79
|
-
};
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
### Props
|
|
83
|
-
|
|
84
|
-
| Prop | Type | Default | Description |
|
|
85
|
-
|------|------|---------|-------------|
|
|
86
|
-
| `backgroundImage` | `ImageSourcePropType` | Required | The background image for the banner |
|
|
87
|
-
| `logoImage` | `ImageSourcePropType` | Required | The logo image to display in the centered card |
|
|
88
|
-
| `detailText` | `string` | Required | Text description to display in the details card |
|
|
89
|
-
| `onPress` | `() => void` | `undefined` | Function to execute when the banner is pressed |
|
|
90
|
-
| `containerStyle` | `ViewStyle` | `undefined` | Additional styles for the main container |
|
|
91
|
-
| `imageStyle` | `ViewStyle` | `undefined` | Additional styles for the background image |
|
|
92
|
-
| `logoContainerStyle` | `ViewStyle` | `undefined` | Additional styles for the logo container |
|
|
93
|
-
| `logoStyle` | `ImageStyle` | `undefined` | Additional styles for the logo image |
|
|
94
|
-
| `textContainerStyle` | `ViewStyle` | `undefined` | Additional styles for the text container |
|
|
95
|
-
| `textStyle` | `TextStyle` | `undefined` | Additional styles for the detail text |
|
|
96
|
-
| `customDetailContent` | `React.ReactNode` | `undefined` | Custom content to replace the default detail text |
|
|
97
|
-
|
|
98
|
-
### Related Components
|
|
99
|
-
|
|
100
|
-
- `Card`: Used for the main container, logo container, and text container
|
|
101
|
-
- `CardContent`: Manages the positioning of the logo and text containers
|