related-ui-components 1.1.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/README.md +200 -0
- package/lib/commonjs/app/_layout.js +41 -0
- package/lib/commonjs/app/_layout.js.map +1 -0
- package/lib/commonjs/app/index.js +153 -0
- package/lib/commonjs/app/index.js.map +1 -0
- 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 +65 -0
- package/lib/commonjs/components/Badges/Badge.js.map +1 -0
- package/lib/commonjs/components/Badges/README.md +98 -0
- package/lib/commonjs/components/Badges/index.js +29 -0
- package/lib/commonjs/components/Badges/index.js.map +1 -0
- package/lib/commonjs/components/Banner/Banner.js +135 -0
- package/lib/commonjs/components/Banner/Banner.js.map +1 -0
- package/lib/commonjs/components/Banner/BannerWithDetails.js +118 -0
- package/lib/commonjs/components/Banner/BannerWithDetails.js.map +1 -0
- package/lib/commonjs/components/Banner/README.md +101 -0
- package/lib/commonjs/components/Banner/index.js +48 -0
- package/lib/commonjs/components/Banner/index.js.map +1 -0
- package/lib/commonjs/components/BrandIcon/BrandIcon.js +103 -0
- package/lib/commonjs/components/BrandIcon/BrandIcon.js.map +1 -0
- package/lib/commonjs/components/BrandIcon/index.js +29 -0
- package/lib/commonjs/components/BrandIcon/index.js.map +1 -0
- package/lib/commonjs/components/Card/Card.js +124 -0
- package/lib/commonjs/components/Card/Card.js.map +1 -0
- package/lib/commonjs/components/Card/CardContent.js +42 -0
- package/lib/commonjs/components/Card/CardContent.js.map +1 -0
- package/lib/commonjs/components/Card/CardFooter.js +34 -0
- package/lib/commonjs/components/Card/CardFooter.js.map +1 -0
- package/lib/commonjs/components/Card/CardHeader.js +77 -0
- package/lib/commonjs/components/Card/CardHeader.js.map +1 -0
- package/lib/commonjs/components/Card/CardImage.js +51 -0
- package/lib/commonjs/components/Card/CardImage.js.map +1 -0
- package/lib/commonjs/components/Card/index.js +98 -0
- package/lib/commonjs/components/Card/index.js.map +1 -0
- package/lib/commonjs/components/Card/templates/DealCard.js +188 -0
- package/lib/commonjs/components/Card/templates/DealCard.js.map +1 -0
- package/lib/commonjs/components/Card/templates/DealCardWithBackgroundImage.js +195 -0
- package/lib/commonjs/components/Card/templates/DealCardWithBackgroundImage.js.map +1 -0
- package/lib/commonjs/components/Card/templates/README.md +233 -0
- package/lib/commonjs/components/Card/templates/SimpleTrendingCard.js +59 -0
- package/lib/commonjs/components/Card/templates/SimpleTrendingCard.js.map +1 -0
- package/lib/commonjs/components/Card/types.js +6 -0
- package/lib/commonjs/components/Card/types.js.map +1 -0
- package/lib/commonjs/components/CloseIcon/CloseIcon.js +71 -0
- package/lib/commonjs/components/CloseIcon/CloseIcon.js.map +1 -0
- package/lib/commonjs/components/CloseIcon/index.js +29 -0
- package/lib/commonjs/components/CloseIcon/index.js.map +1 -0
- package/lib/commonjs/components/Filters/Filters.js +339 -0
- package/lib/commonjs/components/Filters/Filters.js.map +1 -0
- package/lib/commonjs/components/Filters/PointsRangeSelector.js +262 -0
- package/lib/commonjs/components/Filters/PointsRangeSelector.js.map +1 -0
- package/lib/commonjs/components/Filters/README.md +212 -0
- package/lib/commonjs/components/Filters/index.js +47 -0
- package/lib/commonjs/components/Filters/index.js.map +1 -0
- package/lib/commonjs/components/Input/Input.js +156 -0
- package/lib/commonjs/components/Input/Input.js.map +1 -0
- package/lib/commonjs/components/Input/README.md +128 -0
- package/lib/commonjs/components/Input/index.js +29 -0
- package/lib/commonjs/components/Input/index.js.map +1 -0
- package/lib/commonjs/components/LockOverlay/LockOverlay.js +65 -0
- package/lib/commonjs/components/LockOverlay/LockOverlay.js.map +1 -0
- package/lib/commonjs/components/LockOverlay/index.js +29 -0
- package/lib/commonjs/components/LockOverlay/index.js.map +1 -0
- package/lib/commonjs/components/Popup/Popup.js +296 -0
- package/lib/commonjs/components/Popup/Popup.js.map +1 -0
- package/lib/commonjs/components/Popup/README.md +133 -0
- package/lib/commonjs/components/Popup/index.js +29 -0
- package/lib/commonjs/components/Popup/index.js.map +1 -0
- package/lib/commonjs/components/ProgressBar/ProgressBar.js +121 -0
- package/lib/commonjs/components/ProgressBar/ProgressBar.js.map +1 -0
- package/lib/commonjs/components/ProgressBar/index.js +29 -0
- package/lib/commonjs/components/ProgressBar/index.js.map +1 -0
- package/lib/commonjs/components/RedemptionOption/README.md +148 -0
- package/lib/commonjs/components/RedemptionOption/RedemptionOption.js +111 -0
- package/lib/commonjs/components/RedemptionOption/RedemptionOption.js.map +1 -0
- package/lib/commonjs/components/RedemptionOption/index.js +29 -0
- package/lib/commonjs/components/RedemptionOption/index.js.map +1 -0
- package/lib/commonjs/components/ScratchCard/README.md +119 -0
- package/lib/commonjs/components/ScratchCard/ScratchCard.js +153 -0
- package/lib/commonjs/components/ScratchCard/ScratchCard.js.map +1 -0
- package/lib/commonjs/components/ScratchCard/ScratchCardContent.js +28 -0
- package/lib/commonjs/components/ScratchCard/ScratchCardContent.js.map +1 -0
- package/lib/commonjs/components/ScratchCard/index.js +48 -0
- package/lib/commonjs/components/ScratchCard/index.js.map +1 -0
- package/lib/commonjs/components/UnlockRewards/README.md +187 -0
- package/lib/commonjs/components/UnlockRewards/RewardItem.js +125 -0
- package/lib/commonjs/components/UnlockRewards/RewardItem.js.map +1 -0
- package/lib/commonjs/components/UnlockRewards/UnlockRewards.js +207 -0
- package/lib/commonjs/components/UnlockRewards/UnlockRewards.js.map +1 -0
- package/lib/commonjs/components/UnlockRewards/index.js +48 -0
- package/lib/commonjs/components/UnlockRewards/index.js.map +1 -0
- package/lib/commonjs/components/Wheel/README.md +141 -0
- package/lib/commonjs/components/Wheel/Wheel.js +323 -0
- package/lib/commonjs/components/Wheel/Wheel.js.map +1 -0
- package/lib/commonjs/components/Wheel/index.js +29 -0
- package/lib/commonjs/components/Wheel/index.js.map +1 -0
- package/lib/commonjs/components/index.js +160 -0
- package/lib/commonjs/components/index.js.map +1 -0
- package/lib/commonjs/constants/BRANDS.js +57 -0
- package/lib/commonjs/constants/BRANDS.js.map +1 -0
- package/lib/commonjs/index.js +28 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/theme/Colors.js +120 -0
- package/lib/commonjs/theme/Colors.js.map +1 -0
- package/lib/commonjs/theme/ThemeContext.js +49 -0
- package/lib/commonjs/theme/ThemeContext.js.map +1 -0
- package/lib/commonjs/theme/index.js +28 -0
- package/lib/commonjs/theme/index.js.map +1 -0
- package/lib/module/app/_layout.js +36 -0
- package/lib/module/app/_layout.js.map +1 -0
- package/lib/module/app/index.js +143 -0
- package/lib/module/app/index.js.map +1 -0
- package/lib/module/assets/components/BannerWithDetails.png +0 -0
- package/lib/module/assets/components/DealCard-Horizontal.png +0 -0
- package/lib/module/assets/components/DealCard-Vertical.png +0 -0
- package/lib/module/assets/components/DealCard-floating.png +0 -0
- package/lib/module/assets/components/DealCard-nested.png +0 -0
- package/lib/module/assets/components/Filters.png +0 -0
- package/lib/module/assets/components/Popup-1.png +0 -0
- package/lib/module/assets/components/Popup-2.png +0 -0
- package/lib/module/assets/components/Popup-3.png +0 -0
- package/lib/module/assets/components/RedemptionOption-Horizontal.png +0 -0
- package/lib/module/assets/components/RedemptionOption-Vertical.png +0 -0
- package/lib/module/assets/components/SimpleBanner.png +0 -0
- package/lib/module/assets/components/SimpleTrendingCard.png +0 -0
- package/lib/module/assets/components/SimpleTrendingCardV2.png +0 -0
- package/lib/module/assets/components/UnlockRewards-1.png +0 -0
- package/lib/module/assets/components/UnlockRewards-2.png +0 -0
- package/lib/module/assets/fonts/SpaceMono-Regular.ttf +0 -0
- package/lib/module/assets/images/adaptive-icon.png +0 -0
- package/lib/module/assets/images/face.jpg +0 -0
- package/lib/module/assets/images/favicon.png +0 -0
- package/lib/module/assets/images/giftvoucher.jpg +0 -0
- package/lib/module/assets/images/icon.png +0 -0
- package/lib/module/assets/images/insta.webp +0 -0
- package/lib/module/assets/images/muse.jpg +0 -0
- package/lib/module/assets/images/namshi-banner.png +0 -0
- package/lib/module/assets/images/namshi.webp +0 -0
- package/lib/module/assets/images/partial-react-logo.png +0 -0
- package/lib/module/assets/images/pb-logo.jpg +0 -0
- package/lib/module/assets/images/pb.jpg +0 -0
- package/lib/module/assets/images/react-logo.png +0 -0
- package/lib/module/assets/images/react-logo@2x.png +0 -0
- package/lib/module/assets/images/react-logo@3x.png +0 -0
- package/lib/module/assets/images/scratch_foreground.png +0 -0
- package/lib/module/assets/images/splash-icon.png +0 -0
- package/lib/module/assets/images/upgrade.png +0 -0
- package/lib/module/components/Badges/Badge.js +59 -0
- package/lib/module/components/Badges/Badge.js.map +1 -0
- package/lib/module/components/Badges/README.md +98 -0
- package/lib/module/components/Badges/index.js +5 -0
- package/lib/module/components/Badges/index.js.map +1 -0
- package/lib/module/components/Banner/Banner.js +130 -0
- package/lib/module/components/Banner/Banner.js.map +1 -0
- package/lib/module/components/Banner/BannerWithDetails.js +111 -0
- package/lib/module/components/Banner/BannerWithDetails.js.map +1 -0
- package/lib/module/components/Banner/README.md +101 -0
- package/lib/module/components/Banner/index.js +7 -0
- package/lib/module/components/Banner/index.js.map +1 -0
- package/lib/module/components/BrandIcon/BrandIcon.js +98 -0
- package/lib/module/components/BrandIcon/BrandIcon.js.map +1 -0
- package/lib/module/components/BrandIcon/index.js +5 -0
- package/lib/module/components/BrandIcon/index.js.map +1 -0
- package/lib/module/components/Card/Card.js +119 -0
- package/lib/module/components/Card/Card.js.map +1 -0
- package/lib/module/components/Card/CardContent.js +37 -0
- package/lib/module/components/Card/CardContent.js.map +1 -0
- package/lib/module/components/Card/CardFooter.js +29 -0
- package/lib/module/components/Card/CardFooter.js.map +1 -0
- package/lib/module/components/Card/CardHeader.js +72 -0
- package/lib/module/components/Card/CardHeader.js.map +1 -0
- package/lib/module/components/Card/CardImage.js +46 -0
- package/lib/module/components/Card/CardImage.js.map +1 -0
- package/lib/module/components/Card/index.js +18 -0
- package/lib/module/components/Card/index.js.map +1 -0
- package/lib/module/components/Card/templates/DealCard.js +183 -0
- package/lib/module/components/Card/templates/DealCard.js.map +1 -0
- package/lib/module/components/Card/templates/DealCardWithBackgroundImage.js +188 -0
- package/lib/module/components/Card/templates/DealCardWithBackgroundImage.js.map +1 -0
- package/lib/module/components/Card/templates/README.md +233 -0
- package/lib/module/components/Card/templates/SimpleTrendingCard.js +54 -0
- package/lib/module/components/Card/templates/SimpleTrendingCard.js.map +1 -0
- package/lib/module/components/Card/types.js +4 -0
- package/lib/module/components/Card/types.js.map +1 -0
- package/lib/module/components/CloseIcon/CloseIcon.js +63 -0
- package/lib/module/components/CloseIcon/CloseIcon.js.map +1 -0
- package/lib/module/components/CloseIcon/index.js +5 -0
- package/lib/module/components/CloseIcon/index.js.map +1 -0
- package/lib/module/components/Filters/Filters.js +330 -0
- package/lib/module/components/Filters/Filters.js.map +1 -0
- package/lib/module/components/Filters/PointsRangeSelector.js +256 -0
- package/lib/module/components/Filters/PointsRangeSelector.js.map +1 -0
- package/lib/module/components/Filters/README.md +212 -0
- package/lib/module/components/Filters/index.js +7 -0
- package/lib/module/components/Filters/index.js.map +1 -0
- package/lib/module/components/Input/Input.js +150 -0
- package/lib/module/components/Input/Input.js.map +1 -0
- package/lib/module/components/Input/README.md +128 -0
- package/lib/module/components/Input/index.js +5 -0
- package/lib/module/components/Input/index.js.map +1 -0
- package/lib/module/components/LockOverlay/LockOverlay.js +60 -0
- package/lib/module/components/LockOverlay/LockOverlay.js.map +1 -0
- package/lib/module/components/LockOverlay/index.js +5 -0
- package/lib/module/components/LockOverlay/index.js.map +1 -0
- package/lib/module/components/Popup/Popup.js +291 -0
- package/lib/module/components/Popup/Popup.js.map +1 -0
- package/lib/module/components/Popup/README.md +133 -0
- package/lib/module/components/Popup/index.js +5 -0
- package/lib/module/components/Popup/index.js.map +1 -0
- package/lib/module/components/ProgressBar/ProgressBar.js +116 -0
- package/lib/module/components/ProgressBar/ProgressBar.js.map +1 -0
- package/lib/module/components/ProgressBar/index.js +5 -0
- package/lib/module/components/ProgressBar/index.js.map +1 -0
- package/lib/module/components/RedemptionOption/README.md +148 -0
- package/lib/module/components/RedemptionOption/RedemptionOption.js +106 -0
- package/lib/module/components/RedemptionOption/RedemptionOption.js.map +1 -0
- package/lib/module/components/RedemptionOption/index.js +5 -0
- package/lib/module/components/RedemptionOption/index.js.map +1 -0
- package/lib/module/components/ScratchCard/README.md +119 -0
- package/lib/module/components/ScratchCard/ScratchCard.js +147 -0
- package/lib/module/components/ScratchCard/ScratchCard.js.map +1 -0
- package/lib/module/components/ScratchCard/ScratchCardContent.js +24 -0
- package/lib/module/components/ScratchCard/ScratchCardContent.js.map +1 -0
- package/lib/module/components/ScratchCard/index.js +7 -0
- package/lib/module/components/ScratchCard/index.js.map +1 -0
- package/lib/module/components/UnlockRewards/README.md +187 -0
- package/lib/module/components/UnlockRewards/RewardItem.js +120 -0
- package/lib/module/components/UnlockRewards/RewardItem.js.map +1 -0
- package/lib/module/components/UnlockRewards/UnlockRewards.js +200 -0
- package/lib/module/components/UnlockRewards/UnlockRewards.js.map +1 -0
- package/lib/module/components/UnlockRewards/index.js +7 -0
- package/lib/module/components/UnlockRewards/index.js.map +1 -0
- package/lib/module/components/Wheel/README.md +141 -0
- package/lib/module/components/Wheel/Wheel.js +317 -0
- package/lib/module/components/Wheel/Wheel.js.map +1 -0
- package/lib/module/components/Wheel/index.js +5 -0
- package/lib/module/components/Wheel/index.js.map +1 -0
- package/lib/module/components/index.js +17 -0
- package/lib/module/components/index.js.map +1 -0
- package/lib/module/constants/BRANDS.js +53 -0
- package/lib/module/constants/BRANDS.js.map +1 -0
- package/lib/module/index.js +5 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/theme/Colors.js +116 -0
- package/lib/module/theme/Colors.js.map +1 -0
- package/lib/module/theme/ThemeContext.js +41 -0
- package/lib/module/theme/ThemeContext.js.map +1 -0
- package/lib/module/theme/index.js +5 -0
- package/lib/module/theme/index.js.map +1 -0
- package/lib/typescript/commonjs/app/_layout.d.ts +3 -0
- package/lib/typescript/commonjs/app/_layout.d.ts.map +1 -0
- package/lib/typescript/commonjs/app/index.d.ts +3 -0
- package/lib/typescript/commonjs/app/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Badges/Badge.d.ts +16 -0
- package/lib/typescript/commonjs/components/Badges/Badge.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Badges/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Badges/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Banner/Banner.d.ts +26 -0
- package/lib/typescript/commonjs/components/Banner/Banner.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Banner/BannerWithDetails.d.ts +19 -0
- package/lib/typescript/commonjs/components/Banner/BannerWithDetails.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Banner/index.d.ts +5 -0
- package/lib/typescript/commonjs/components/Banner/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/BrandIcon/BrandIcon.d.ts +20 -0
- package/lib/typescript/commonjs/components/BrandIcon/BrandIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/BrandIcon/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/BrandIcon/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Card/Card.d.ts +5 -0
- package/lib/typescript/commonjs/components/Card/Card.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Card/CardContent.d.ts +5 -0
- package/lib/typescript/commonjs/components/Card/CardContent.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Card/CardFooter.d.ts +5 -0
- package/lib/typescript/commonjs/components/Card/CardFooter.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Card/CardHeader.d.ts +5 -0
- package/lib/typescript/commonjs/components/Card/CardHeader.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Card/CardImage.d.ts +5 -0
- package/lib/typescript/commonjs/components/Card/CardImage.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Card/index.d.ts +11 -0
- package/lib/typescript/commonjs/components/Card/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Card/templates/DealCard.d.ts +33 -0
- package/lib/typescript/commonjs/components/Card/templates/DealCard.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Card/templates/DealCardWithBackgroundImage.d.ts +38 -0
- package/lib/typescript/commonjs/components/Card/templates/DealCardWithBackgroundImage.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Card/templates/SimpleTrendingCard.d.ts +14 -0
- package/lib/typescript/commonjs/components/Card/templates/SimpleTrendingCard.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Card/types.d.ts +78 -0
- package/lib/typescript/commonjs/components/Card/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/CloseIcon/CloseIcon.d.ts +16 -0
- package/lib/typescript/commonjs/components/CloseIcon/CloseIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/CloseIcon/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/CloseIcon/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Filters/Filters.d.ts +74 -0
- package/lib/typescript/commonjs/components/Filters/Filters.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Filters/PointsRangeSelector.d.ts +29 -0
- package/lib/typescript/commonjs/components/Filters/PointsRangeSelector.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Filters/index.d.ts +5 -0
- package/lib/typescript/commonjs/components/Filters/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Input/Input.d.ts +23 -0
- package/lib/typescript/commonjs/components/Input/Input.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Input/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Input/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/LockOverlay/LockOverlay.d.ts +16 -0
- package/lib/typescript/commonjs/components/LockOverlay/LockOverlay.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/LockOverlay/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/LockOverlay/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Popup/Popup.d.ts +38 -0
- package/lib/typescript/commonjs/components/Popup/Popup.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Popup/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Popup/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/ProgressBar/ProgressBar.d.ts +26 -0
- package/lib/typescript/commonjs/components/ProgressBar/ProgressBar.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/ProgressBar/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/ProgressBar/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/RedemptionOption/RedemptionOption.d.ts +24 -0
- package/lib/typescript/commonjs/components/RedemptionOption/RedemptionOption.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/RedemptionOption/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/RedemptionOption/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/ScratchCard/ScratchCard.d.ts +20 -0
- package/lib/typescript/commonjs/components/ScratchCard/ScratchCard.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/ScratchCard/ScratchCardContent.d.ts +8 -0
- package/lib/typescript/commonjs/components/ScratchCard/ScratchCardContent.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/ScratchCard/index.d.ts +5 -0
- package/lib/typescript/commonjs/components/ScratchCard/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/UnlockRewards/RewardItem.d.ts +25 -0
- package/lib/typescript/commonjs/components/UnlockRewards/RewardItem.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/UnlockRewards/UnlockRewards.d.ts +59 -0
- package/lib/typescript/commonjs/components/UnlockRewards/UnlockRewards.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/UnlockRewards/index.d.ts +5 -0
- package/lib/typescript/commonjs/components/UnlockRewards/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Wheel/Wheel.d.ts +34 -0
- package/lib/typescript/commonjs/components/Wheel/Wheel.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Wheel/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Wheel/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/index.d.ts +15 -0
- package/lib/typescript/commonjs/components/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/constants/BRANDS.d.ts +7 -0
- package/lib/typescript/commonjs/constants/BRANDS.d.ts.map +1 -0
- package/lib/typescript/commonjs/index.d.ts +3 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/theme/Colors.d.ts +28 -0
- package/lib/typescript/commonjs/theme/Colors.d.ts.map +1 -0
- package/lib/typescript/commonjs/theme/ThemeContext.d.ts +13 -0
- package/lib/typescript/commonjs/theme/ThemeContext.d.ts.map +1 -0
- package/lib/typescript/commonjs/theme/index.d.ts +3 -0
- package/lib/typescript/commonjs/theme/index.d.ts.map +1 -0
- package/lib/typescript/module/app/_layout.d.ts +3 -0
- package/lib/typescript/module/app/_layout.d.ts.map +1 -0
- package/lib/typescript/module/app/index.d.ts +3 -0
- package/lib/typescript/module/app/index.d.ts.map +1 -0
- package/lib/typescript/module/components/Badges/Badge.d.ts +16 -0
- package/lib/typescript/module/components/Badges/Badge.d.ts.map +1 -0
- package/lib/typescript/module/components/Badges/index.d.ts +3 -0
- package/lib/typescript/module/components/Badges/index.d.ts.map +1 -0
- package/lib/typescript/module/components/Banner/Banner.d.ts +26 -0
- package/lib/typescript/module/components/Banner/Banner.d.ts.map +1 -0
- package/lib/typescript/module/components/Banner/BannerWithDetails.d.ts +19 -0
- package/lib/typescript/module/components/Banner/BannerWithDetails.d.ts.map +1 -0
- package/lib/typescript/module/components/Banner/index.d.ts +5 -0
- package/lib/typescript/module/components/Banner/index.d.ts.map +1 -0
- package/lib/typescript/module/components/BrandIcon/BrandIcon.d.ts +20 -0
- package/lib/typescript/module/components/BrandIcon/BrandIcon.d.ts.map +1 -0
- package/lib/typescript/module/components/BrandIcon/index.d.ts +3 -0
- package/lib/typescript/module/components/BrandIcon/index.d.ts.map +1 -0
- package/lib/typescript/module/components/Card/Card.d.ts +5 -0
- package/lib/typescript/module/components/Card/Card.d.ts.map +1 -0
- package/lib/typescript/module/components/Card/CardContent.d.ts +5 -0
- package/lib/typescript/module/components/Card/CardContent.d.ts.map +1 -0
- package/lib/typescript/module/components/Card/CardFooter.d.ts +5 -0
- package/lib/typescript/module/components/Card/CardFooter.d.ts.map +1 -0
- package/lib/typescript/module/components/Card/CardHeader.d.ts +5 -0
- package/lib/typescript/module/components/Card/CardHeader.d.ts.map +1 -0
- package/lib/typescript/module/components/Card/CardImage.d.ts +5 -0
- package/lib/typescript/module/components/Card/CardImage.d.ts.map +1 -0
- package/lib/typescript/module/components/Card/index.d.ts +11 -0
- package/lib/typescript/module/components/Card/index.d.ts.map +1 -0
- package/lib/typescript/module/components/Card/templates/DealCard.d.ts +33 -0
- package/lib/typescript/module/components/Card/templates/DealCard.d.ts.map +1 -0
- package/lib/typescript/module/components/Card/templates/DealCardWithBackgroundImage.d.ts +38 -0
- package/lib/typescript/module/components/Card/templates/DealCardWithBackgroundImage.d.ts.map +1 -0
- package/lib/typescript/module/components/Card/templates/SimpleTrendingCard.d.ts +14 -0
- package/lib/typescript/module/components/Card/templates/SimpleTrendingCard.d.ts.map +1 -0
- package/lib/typescript/module/components/Card/types.d.ts +78 -0
- package/lib/typescript/module/components/Card/types.d.ts.map +1 -0
- package/lib/typescript/module/components/CloseIcon/CloseIcon.d.ts +16 -0
- package/lib/typescript/module/components/CloseIcon/CloseIcon.d.ts.map +1 -0
- package/lib/typescript/module/components/CloseIcon/index.d.ts +3 -0
- package/lib/typescript/module/components/CloseIcon/index.d.ts.map +1 -0
- package/lib/typescript/module/components/Filters/Filters.d.ts +74 -0
- package/lib/typescript/module/components/Filters/Filters.d.ts.map +1 -0
- package/lib/typescript/module/components/Filters/PointsRangeSelector.d.ts +29 -0
- package/lib/typescript/module/components/Filters/PointsRangeSelector.d.ts.map +1 -0
- package/lib/typescript/module/components/Filters/index.d.ts +5 -0
- package/lib/typescript/module/components/Filters/index.d.ts.map +1 -0
- package/lib/typescript/module/components/Input/Input.d.ts +23 -0
- package/lib/typescript/module/components/Input/Input.d.ts.map +1 -0
- package/lib/typescript/module/components/Input/index.d.ts +3 -0
- package/lib/typescript/module/components/Input/index.d.ts.map +1 -0
- package/lib/typescript/module/components/LockOverlay/LockOverlay.d.ts +16 -0
- package/lib/typescript/module/components/LockOverlay/LockOverlay.d.ts.map +1 -0
- package/lib/typescript/module/components/LockOverlay/index.d.ts +3 -0
- package/lib/typescript/module/components/LockOverlay/index.d.ts.map +1 -0
- package/lib/typescript/module/components/Popup/Popup.d.ts +38 -0
- package/lib/typescript/module/components/Popup/Popup.d.ts.map +1 -0
- package/lib/typescript/module/components/Popup/index.d.ts +3 -0
- package/lib/typescript/module/components/Popup/index.d.ts.map +1 -0
- package/lib/typescript/module/components/ProgressBar/ProgressBar.d.ts +26 -0
- package/lib/typescript/module/components/ProgressBar/ProgressBar.d.ts.map +1 -0
- package/lib/typescript/module/components/ProgressBar/index.d.ts +3 -0
- package/lib/typescript/module/components/ProgressBar/index.d.ts.map +1 -0
- package/lib/typescript/module/components/RedemptionOption/RedemptionOption.d.ts +24 -0
- package/lib/typescript/module/components/RedemptionOption/RedemptionOption.d.ts.map +1 -0
- package/lib/typescript/module/components/RedemptionOption/index.d.ts +3 -0
- package/lib/typescript/module/components/RedemptionOption/index.d.ts.map +1 -0
- package/lib/typescript/module/components/ScratchCard/ScratchCard.d.ts +20 -0
- package/lib/typescript/module/components/ScratchCard/ScratchCard.d.ts.map +1 -0
- package/lib/typescript/module/components/ScratchCard/ScratchCardContent.d.ts +8 -0
- package/lib/typescript/module/components/ScratchCard/ScratchCardContent.d.ts.map +1 -0
- package/lib/typescript/module/components/ScratchCard/index.d.ts +5 -0
- package/lib/typescript/module/components/ScratchCard/index.d.ts.map +1 -0
- package/lib/typescript/module/components/UnlockRewards/RewardItem.d.ts +25 -0
- package/lib/typescript/module/components/UnlockRewards/RewardItem.d.ts.map +1 -0
- package/lib/typescript/module/components/UnlockRewards/UnlockRewards.d.ts +59 -0
- package/lib/typescript/module/components/UnlockRewards/UnlockRewards.d.ts.map +1 -0
- package/lib/typescript/module/components/UnlockRewards/index.d.ts +5 -0
- package/lib/typescript/module/components/UnlockRewards/index.d.ts.map +1 -0
- package/lib/typescript/module/components/Wheel/Wheel.d.ts +34 -0
- package/lib/typescript/module/components/Wheel/Wheel.d.ts.map +1 -0
- package/lib/typescript/module/components/Wheel/index.d.ts +3 -0
- package/lib/typescript/module/components/Wheel/index.d.ts.map +1 -0
- package/lib/typescript/module/components/index.d.ts +15 -0
- package/lib/typescript/module/components/index.d.ts.map +1 -0
- package/lib/typescript/module/constants/BRANDS.d.ts +7 -0
- package/lib/typescript/module/constants/BRANDS.d.ts.map +1 -0
- package/lib/typescript/module/index.d.ts +3 -0
- package/lib/typescript/module/index.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/theme/Colors.d.ts +28 -0
- package/lib/typescript/module/theme/Colors.d.ts.map +1 -0
- package/lib/typescript/module/theme/ThemeContext.d.ts +13 -0
- package/lib/typescript/module/theme/ThemeContext.d.ts.map +1 -0
- package/lib/typescript/module/theme/index.d.ts +3 -0
- package/lib/typescript/module/theme/index.d.ts.map +1 -0
- package/package.json +116 -0
- package/src/app/_layout.tsx +38 -0
- package/src/app/index.tsx +115 -0
- package/src/assets/components/BannerWithDetails.png +0 -0
- package/src/assets/components/DealCard-Horizontal.png +0 -0
- package/src/assets/components/DealCard-Vertical.png +0 -0
- package/src/assets/components/DealCard-floating.png +0 -0
- package/src/assets/components/DealCard-nested.png +0 -0
- package/src/assets/components/Filters.png +0 -0
- package/src/assets/components/Popup-1.png +0 -0
- package/src/assets/components/Popup-2.png +0 -0
- package/src/assets/components/Popup-3.png +0 -0
- package/src/assets/components/RedemptionOption-Horizontal.png +0 -0
- package/src/assets/components/RedemptionOption-Vertical.png +0 -0
- package/src/assets/components/SimpleBanner.png +0 -0
- package/src/assets/components/SimpleTrendingCard.png +0 -0
- package/src/assets/components/SimpleTrendingCardV2.png +0 -0
- package/src/assets/components/UnlockRewards-1.png +0 -0
- package/src/assets/components/UnlockRewards-2.png +0 -0
- package/src/assets/fonts/SpaceMono-Regular.ttf +0 -0
- package/src/assets/images/adaptive-icon.png +0 -0
- package/src/assets/images/face.jpg +0 -0
- package/src/assets/images/favicon.png +0 -0
- package/src/assets/images/giftvoucher.jpg +0 -0
- package/src/assets/images/icon.png +0 -0
- package/src/assets/images/insta.webp +0 -0
- package/src/assets/images/muse.jpg +0 -0
- package/src/assets/images/namshi-banner.png +0 -0
- package/src/assets/images/namshi.webp +0 -0
- package/src/assets/images/partial-react-logo.png +0 -0
- package/src/assets/images/pb-logo.jpg +0 -0
- package/src/assets/images/pb.jpg +0 -0
- package/src/assets/images/react-logo.png +0 -0
- package/src/assets/images/react-logo@2x.png +0 -0
- package/src/assets/images/react-logo@3x.png +0 -0
- package/src/assets/images/scratch_foreground.png +0 -0
- package/src/assets/images/splash-icon.png +0 -0
- package/src/assets/images/upgrade.png +0 -0
- package/src/components/Badges/Badge.tsx +81 -0
- package/src/components/Badges/README.md +98 -0
- package/src/components/Badges/index.ts +2 -0
- package/src/components/Banner/Banner.tsx +172 -0
- package/src/components/Banner/BannerWithDetails.tsx +133 -0
- package/src/components/Banner/README.md +101 -0
- package/src/components/Banner/index.ts +5 -0
- package/src/components/BrandIcon/BrandIcon.tsx +134 -0
- package/src/components/BrandIcon/index.ts +2 -0
- package/src/components/Card/Card.tsx +144 -0
- package/src/components/Card/CardContent.tsx +33 -0
- package/src/components/Card/CardFooter.tsx +33 -0
- package/src/components/Card/CardHeader.tsx +80 -0
- package/src/components/Card/CardImage.tsx +51 -0
- package/src/components/Card/index.ts +15 -0
- package/src/components/Card/templates/DealCard.tsx +255 -0
- package/src/components/Card/templates/DealCardWithBackgroundImage.tsx +273 -0
- package/src/components/Card/templates/README.md +233 -0
- package/src/components/Card/templates/SimpleTrendingCard.tsx +54 -0
- package/src/components/Card/types.ts +75 -0
- package/src/components/CloseIcon/CloseIcon.tsx +77 -0
- package/src/components/CloseIcon/index.ts +2 -0
- package/src/components/Filters/Filters.tsx +427 -0
- package/src/components/Filters/PointsRangeSelector.tsx +319 -0
- package/src/components/Filters/README.md +212 -0
- package/src/components/Filters/index.ts +4 -0
- package/src/components/Input/Input.tsx +218 -0
- package/src/components/Input/README.md +128 -0
- package/src/components/Input/index.ts +2 -0
- package/src/components/LockOverlay/LockOverlay.tsx +82 -0
- package/src/components/LockOverlay/index.ts +2 -0
- package/src/components/Popup/Popup.tsx +374 -0
- package/src/components/Popup/README.md +133 -0
- package/src/components/Popup/index.ts +2 -0
- package/src/components/ProgressBar/ProgressBar.tsx +157 -0
- package/src/components/ProgressBar/index.ts +2 -0
- package/src/components/RedemptionOption/README.md +148 -0
- package/src/components/RedemptionOption/RedemptionOption.tsx +158 -0
- package/src/components/RedemptionOption/index.ts +2 -0
- package/src/components/ScratchCard/README.md +119 -0
- package/src/components/ScratchCard/ScratchCard.tsx +190 -0
- package/src/components/ScratchCard/ScratchCardContent.tsx +25 -0
- package/src/components/ScratchCard/index.ts +4 -0
- package/src/components/UnlockRewards/README.md +187 -0
- package/src/components/UnlockRewards/RewardItem.tsx +172 -0
- package/src/components/UnlockRewards/UnlockRewards.tsx +293 -0
- package/src/components/UnlockRewards/index.ts +4 -0
- package/src/components/Wheel/README.md +141 -0
- package/src/components/Wheel/Wheel.tsx +374 -0
- package/src/components/Wheel/index.ts +2 -0
- package/src/components/index.ts +14 -0
- package/src/constants/BRANDS.ts +64 -0
- package/src/index.ts +2 -0
- package/src/theme/Colors.ts +107 -0
- package/src/theme/ThemeContext.tsx +46 -0
- package/src/theme/index.ts +2 -0
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { View, TouchableOpacity, StyleSheet, Platform, ImageBackground } from "react-native";
|
|
5
|
+
import { useTheme } from "../../theme/ThemeContext.js";
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
const Card = ({
|
|
8
|
+
children,
|
|
9
|
+
style,
|
|
10
|
+
onPress,
|
|
11
|
+
disabled = false,
|
|
12
|
+
elevation = 1,
|
|
13
|
+
testID,
|
|
14
|
+
variant,
|
|
15
|
+
backgroundColor,
|
|
16
|
+
borderColor,
|
|
17
|
+
borderRadius = 8,
|
|
18
|
+
backgroundImage
|
|
19
|
+
// margin,
|
|
20
|
+
// padding,
|
|
21
|
+
}) => {
|
|
22
|
+
const theme = useTheme();
|
|
23
|
+
const getCardStyle = () => {
|
|
24
|
+
const baseStyle = {
|
|
25
|
+
backgroundColor: backgroundColor || theme.background,
|
|
26
|
+
borderRadius
|
|
27
|
+
};
|
|
28
|
+
switch (variant) {
|
|
29
|
+
case "outlined":
|
|
30
|
+
return {
|
|
31
|
+
...baseStyle,
|
|
32
|
+
borderWidth: 1,
|
|
33
|
+
borderColor: borderColor || theme.border
|
|
34
|
+
};
|
|
35
|
+
case "filled":
|
|
36
|
+
return {
|
|
37
|
+
...baseStyle,
|
|
38
|
+
backgroundColor: backgroundColor || theme.primary
|
|
39
|
+
};
|
|
40
|
+
case "elevated":
|
|
41
|
+
return {
|
|
42
|
+
...baseStyle,
|
|
43
|
+
borderColor: borderColor || "transparent",
|
|
44
|
+
...Platform.select({
|
|
45
|
+
ios: {
|
|
46
|
+
shadowColor: "#000",
|
|
47
|
+
shadowOffset: {
|
|
48
|
+
width: 0,
|
|
49
|
+
height: elevation
|
|
50
|
+
},
|
|
51
|
+
shadowOpacity: 0.1,
|
|
52
|
+
shadowRadius: elevation
|
|
53
|
+
},
|
|
54
|
+
android: {
|
|
55
|
+
elevation
|
|
56
|
+
}
|
|
57
|
+
})
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
const cardStyle = [styles.card, getCardStyle(), disabled && {
|
|
62
|
+
opacity: 0.6
|
|
63
|
+
}, style, backgroundImage && {
|
|
64
|
+
backgroundColor: "transparent"
|
|
65
|
+
}];
|
|
66
|
+
const renderCardContent = () => backgroundImage ? /*#__PURE__*/_jsx(ImageBackground, {
|
|
67
|
+
source: backgroundImage.source,
|
|
68
|
+
style: [styles.backgroundImage, backgroundImage.style],
|
|
69
|
+
imageStyle: [{
|
|
70
|
+
borderRadius
|
|
71
|
+
}, backgroundImage.imageStyle],
|
|
72
|
+
resizeMode: backgroundImage.resizeMode || "cover",
|
|
73
|
+
blurRadius: backgroundImage.blurRadius,
|
|
74
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
75
|
+
style: [styles.imageContentContainer, {
|
|
76
|
+
opacity: backgroundImage.opacity !== undefined ? backgroundImage.opacity : 1
|
|
77
|
+
}],
|
|
78
|
+
children: children
|
|
79
|
+
})
|
|
80
|
+
}) : children;
|
|
81
|
+
if (onPress) {
|
|
82
|
+
return /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
83
|
+
style: cardStyle,
|
|
84
|
+
onPress: onPress,
|
|
85
|
+
disabled: disabled,
|
|
86
|
+
testID: testID,
|
|
87
|
+
activeOpacity: 0.7,
|
|
88
|
+
accessibilityRole: "button",
|
|
89
|
+
accessibilityLabel: "Card",
|
|
90
|
+
children: renderCardContent()
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
return /*#__PURE__*/_jsx(View, {
|
|
94
|
+
style: cardStyle,
|
|
95
|
+
testID: testID,
|
|
96
|
+
children: renderCardContent()
|
|
97
|
+
});
|
|
98
|
+
};
|
|
99
|
+
const styles = StyleSheet.create({
|
|
100
|
+
card: {
|
|
101
|
+
borderRadius: 8,
|
|
102
|
+
// overflow: "hidden",
|
|
103
|
+
marginVertical: 8,
|
|
104
|
+
marginHorizontal: 16,
|
|
105
|
+
flexDirection: "column",
|
|
106
|
+
display: "flex"
|
|
107
|
+
},
|
|
108
|
+
backgroundImage: {
|
|
109
|
+
width: "100%",
|
|
110
|
+
height: "100%"
|
|
111
|
+
// overflow: "hidden",
|
|
112
|
+
},
|
|
113
|
+
imageContentContainer: {
|
|
114
|
+
flex: 1,
|
|
115
|
+
backgroundColor: "transparent"
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
export default Card;
|
|
119
|
+
//# sourceMappingURL=Card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","View","TouchableOpacity","StyleSheet","Platform","ImageBackground","useTheme","jsx","_jsx","Card","children","style","onPress","disabled","elevation","testID","variant","backgroundColor","borderColor","borderRadius","backgroundImage","theme","getCardStyle","baseStyle","background","borderWidth","border","primary","select","ios","shadowColor","shadowOffset","width","height","shadowOpacity","shadowRadius","android","cardStyle","styles","card","opacity","renderCardContent","source","imageStyle","resizeMode","blurRadius","imageContentContainer","undefined","activeOpacity","accessibilityRole","accessibilityLabel","create","marginVertical","marginHorizontal","flexDirection","display","flex"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/Card/Card.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACEC,IAAI,EACJC,gBAAgB,EAChBC,UAAU,EACVC,QAAQ,EACRC,eAAe,QACV,cAAc;AAErB,SAASC,QAAQ,QAAQ,6BAA0B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEpD,MAAMC,IAAyB,GAAGA,CAAC;EACjCC,QAAQ;EACRC,KAAK;EACLC,OAAO;EACPC,QAAQ,GAAG,KAAK;EAChBC,SAAS,GAAG,CAAC;EACbC,MAAM;EACNC,OAAO;EACPC,eAAe;EACfC,WAAW;EACXC,YAAY,GAAG,CAAC;EAChBC;EACA;EACA;AACF,CAAC,KAAK;EACJ,MAAMC,KAAK,GAAGf,QAAQ,CAAC,CAAC;EAExB,MAAMgB,YAAY,GAAGA,CAAA,KAAM;IACzB,MAAMC,SAAc,GAAG;MACrBN,eAAe,EAAEA,eAAe,IAAII,KAAK,CAACG,UAAU;MACpDL;IACF,CAAC;IA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MACHU,KAAK,EAAE,CACL2B,MAAM,CAACQ,qBAAqB,EAC5B;QACEN,OAAO,EACLpB,eAAe,CAACoB,OAAO,KAAKO,SAAS,GACjC3B,eAAe,CAACoB,OAAO,GACvB;MACR,CAAC,CACD;MAAA9B,QAAA,EAEDA;IAAQ,CACL;EAAC,CACQ,CAAC,GAElBA,QACD;EAEH,IAAIE,OAAO,EAAE;IACX,oBACEJ,IAAA,CAACN,gBAAgB;MACfS,KAAK,EAAE0B,SAAU;MACjBzB,OAAO,EAAEA,OAAQ;MACjBC,QAAQ,EAAEA,QAAS;MACnBE,MAAM,EAAEA,MAAO;MACfiC,aAAa,EAAE,GAAI;MACnBC,iBAAiB,EAAC,QAAQ;MAC1BC,kBAAkB,EAAE,MAAO;MAAAxC,QAAA,EAE1B+B,iBAAiB,CAAC;IAAC,CACJ,CAAC;EAEvB;EAEA,oBACEjC,IAAA,CAACP,IAAI;IAACU,KAAK,EAAE0B,SAAU;IAACtB,MAAM,EAAEA,MAAO;IAAAL,QAAA,EACpC+B,iBAAiB,CAAC;EAAC,CAChB,CAAC;AAEX,CAAC;AAED,MAAMH,MAAM,GAAGnC,UAAU,CAACgD,MAAM,CAAC;EAC/BZ,IAAI,EAAE;IACJpB,YAAY,EAAE,CAAC;IACf;IACAiC,cAAc,EAAE,CAAC;IACjBC,gBAAgB,EAAE,EAAE;IACpBC,aAAa,EAAE,QAAQ;IACvBC,OAAO,EAAE;EACX,CAAC;EACDnC,eAAe,EAAE;IACfY,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE;IACR;EACF,CAAC;EACDa,qBAAqB,EAAE;IACrBU,IAAI,EAAE,CAAC;IACPvC,eAAe,EAAE;EACnB;AACF,CAAC,CAAC;AAEF,eAAeR,IAAI","ignoreList":[]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { View, StyleSheet } from "react-native";
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
const CardContent = ({
|
|
7
|
+
children,
|
|
8
|
+
style,
|
|
9
|
+
padding = 16
|
|
10
|
+
}) => {
|
|
11
|
+
const getContentStyle = () => {
|
|
12
|
+
if (typeof padding === "number") {
|
|
13
|
+
return {
|
|
14
|
+
padding
|
|
15
|
+
};
|
|
16
|
+
} else if (padding) {
|
|
17
|
+
return {
|
|
18
|
+
paddingHorizontal: padding.horizontal,
|
|
19
|
+
paddingVertical: padding.vertical
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
padding: 16
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
return /*#__PURE__*/_jsx(View, {
|
|
27
|
+
style: [styles.content, getContentStyle(), style],
|
|
28
|
+
children: children
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
const styles = StyleSheet.create({
|
|
32
|
+
content: {
|
|
33
|
+
padding: 16
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
export default CardContent;
|
|
37
|
+
//# sourceMappingURL=CardContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","View","StyleSheet","jsx","_jsx","CardContent","children","style","padding","getContentStyle","paddingHorizontal","horizontal","paddingVertical","vertical","styles","content","create"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/Card/CardContent.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAGhD,MAAMC,WAAuC,GAAGA,CAAC;EAC/CC,QAAQ;EACRC,KAAK;EACLC,OAAO,GAAG;AACZ,CAAC,KAAK;EACJ,MAAMC,eAAe,GAAGA,CAAA,KAAM;IAC5B,IAAI,OAAOD,OAAO,KAAK,QAAQ,EAAE;MAC/B,OAAO;QAAEA;MAAQ,CAAC;IACpB,CAAC,MAAM,IAAIA,OAAO,EAAE;MAClB,OAAO;QACLE,iBAAiB,EAAEF,OAAO,CAACG,UAAU;QACrCC,eAAe,EAAEJ,OAAO,CAACK;MAC3B,CAAC;IACH;IACA,OAAO;MAAEL,OAAO,EAAE;IAAG,CAAC;EACxB,CAAC;EAED,oBACEJ,IAAA,CAACH,IAAI;IAACM,KAAK,EAAE,CAACO,MAAM,CAACC,OAAO,EAAEN,eAAe,CAAC,CAAC,EAAEF,KAAK,CAAE;IAAAD,QAAA,EAAEA;EAAQ,CAAO,CAAC;AAE9E,CAAC;AAED,MAAMQ,MAAM,GAAGZ,UAAU,CAACc,MAAM,CAAC;EAC/BD,OAAO,EAAE;IACPP,OAAO,EAAE;EACX;AACF,CAAC,CAAC;AAEF,eAAeH,WAAW","ignoreList":[]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { View, StyleSheet } from "react-native";
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
const CardFooter = ({
|
|
7
|
+
children,
|
|
8
|
+
style,
|
|
9
|
+
inset = false,
|
|
10
|
+
justifyContent = "flex-end"
|
|
11
|
+
}) => /*#__PURE__*/_jsx(View, {
|
|
12
|
+
style: [styles.footer, {
|
|
13
|
+
justifyContent
|
|
14
|
+
}, inset && {
|
|
15
|
+
marginHorizontal: 16
|
|
16
|
+
}, style],
|
|
17
|
+
children: children
|
|
18
|
+
});
|
|
19
|
+
const styles = StyleSheet.create({
|
|
20
|
+
footer: {
|
|
21
|
+
padding: 16,
|
|
22
|
+
// paddingBottom: 0,
|
|
23
|
+
flexDirection: "row",
|
|
24
|
+
justifyContent: "flex-end"
|
|
25
|
+
// alignItems: "center",
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
export default CardFooter;
|
|
29
|
+
//# sourceMappingURL=CardFooter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","View","StyleSheet","jsx","_jsx","CardFooter","children","style","inset","justifyContent","styles","footer","marginHorizontal","create","padding","flexDirection"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/Card/CardFooter.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAGhD,MAAMC,UAAqC,GAAGA,CAAC;EAC7CC,QAAQ;EACRC,KAAK;EACLC,KAAK,GAAG,KAAK;EACbC,cAAc,GAAG;AACnB,CAAC,kBACCL,IAAA,CAACH,IAAI;EACHM,KAAK,EAAE,CACLG,MAAM,CAACC,MAAM,EACb;IAAEF;EAAe,CAAC,EAClBD,KAAK,IAAI;IAAEI,gBAAgB,EAAE;EAAG,CAAC,EACjCL,KAAK,CACL;EAAAD,QAAA,EAEDA;AAAQ,CACL,CACP;AAED,MAAMI,MAAM,GAAGR,UAAU,CAACW,MAAM,CAAC;EAC/BF,MAAM,EAAE;IACNG,OAAO,EAAE,EAAE;IACX;IACAC,aAAa,EAAE,KAAK;IACpBN,cAAc,EAAE;IAChB;EACF;AACF,CAAC,CAAC;AAEF,eAAeJ,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { View, Text, StyleSheet } from 'react-native';
|
|
5
|
+
import { useTheme } from "../../theme/ThemeContext.js";
|
|
6
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
const CardHeader = ({
|
|
8
|
+
title,
|
|
9
|
+
subtitle,
|
|
10
|
+
left,
|
|
11
|
+
right,
|
|
12
|
+
style,
|
|
13
|
+
titleStyle,
|
|
14
|
+
subtitleStyle,
|
|
15
|
+
titleColor,
|
|
16
|
+
subtitleColor
|
|
17
|
+
}) => {
|
|
18
|
+
const theme = useTheme();
|
|
19
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
20
|
+
style: [styles.header, style],
|
|
21
|
+
children: [left && /*#__PURE__*/_jsx(View, {
|
|
22
|
+
style: styles.left,
|
|
23
|
+
children: left
|
|
24
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
25
|
+
style: [styles.headerTextContainer, !left ? {
|
|
26
|
+
paddingLeft: 0
|
|
27
|
+
} : {}],
|
|
28
|
+
children: [title && typeof title === 'string' ? /*#__PURE__*/_jsx(Text, {
|
|
29
|
+
style: [styles.title, {
|
|
30
|
+
color: titleColor || theme.text
|
|
31
|
+
}, titleStyle],
|
|
32
|
+
children: title
|
|
33
|
+
}) : title, subtitle && typeof subtitle === 'string' ? /*#__PURE__*/_jsx(Text, {
|
|
34
|
+
style: [styles.subtitle, {
|
|
35
|
+
color: subtitleColor || theme.helper
|
|
36
|
+
}, subtitleStyle],
|
|
37
|
+
children: subtitle
|
|
38
|
+
}) : subtitle]
|
|
39
|
+
}), right && /*#__PURE__*/_jsx(View, {
|
|
40
|
+
style: styles.right,
|
|
41
|
+
children: right
|
|
42
|
+
})]
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
const styles = StyleSheet.create({
|
|
46
|
+
header: {
|
|
47
|
+
flexDirection: 'row',
|
|
48
|
+
padding: 16,
|
|
49
|
+
paddingBottom: 0
|
|
50
|
+
// backgroundColor:"red",
|
|
51
|
+
// alignItems: 'center'
|
|
52
|
+
},
|
|
53
|
+
left: {
|
|
54
|
+
marginRight: 16
|
|
55
|
+
},
|
|
56
|
+
headerTextContainer: {
|
|
57
|
+
flex: 1
|
|
58
|
+
},
|
|
59
|
+
right: {
|
|
60
|
+
marginLeft: 16
|
|
61
|
+
},
|
|
62
|
+
title: {
|
|
63
|
+
fontSize: 18,
|
|
64
|
+
fontWeight: '600'
|
|
65
|
+
},
|
|
66
|
+
subtitle: {
|
|
67
|
+
fontSize: 14,
|
|
68
|
+
marginTop: 4
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
export default CardHeader;
|
|
72
|
+
//# sourceMappingURL=CardHeader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","View","Text","StyleSheet","useTheme","jsx","_jsx","jsxs","_jsxs","CardHeader","title","subtitle","left","right","style","titleStyle","subtitleStyle","titleColor","subtitleColor","theme","styles","header","children","headerTextContainer","paddingLeft","color","text","helper","create","flexDirection","padding","paddingBottom","marginRight","flex","marginLeft","fontSize","fontWeight","marginTop"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/Card/CardHeader.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAErD,SAASC,QAAQ,QAAQ,6BAA0B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEpD,MAAMC,UAAqC,GAAGA,CAAC;EAC7CC,KAAK;EACLC,QAAQ;EACRC,IAAI;EACJC,KAAK;EACLC,KAAK;EACLC,UAAU;EACVC,aAAa;EACbC,UAAU;EACVC;AACF,CAAC,KAAK;EACJ,MAAMC,KAAK,GAAGf,QAAQ,CAAC,CAAC;EAExB,oBACEI,KAAA,CAACP,IAAI;IAACa,KAAK,EAAE,CAACM,MAAM,CAACC,MAAM,EAAEP,KAAK,CAAE;IAAAQ,QAAA,GACjCV,IAAI,iBAAIN,IAAA,CAACL,IAAI;MAACa,KAAK,EAAEM,MAAM,CAACR,IAAK;MAAAU,QAAA,EAAEV;IAAI,CAAO,CAAC,eAEhDJ,KAAA,CAACP,IAAI;MAACa,KAAK,EAAE,CAACM,MAAM,CAACG,mBAAmB,EAAE,CAACX,IAAI,GAAG;QAAEY,WAAW,EAAE;MAAE,CAAC,GAAG,CAAC,CAAC,CAAE;MAAAF,QAAA,GACxEZ,KAAK,IAAI,OAAOA,KAAK,KAAK,QAAQ,gBACjCJ,IAAA,CAACJ,IAAI;QAACY,KAAK,EAAE,CACXM,MAAM,CAACV,KAAK,EACZ;UAAEe,KAAK,EAAER,UAAU,IAAIE,KAAK,CAACO;QAAK,CAAC,EACnCX,UAAU,CACV;QAAAO,QAAA,EACCZ;MAAK,CACF,CAAC,GAEPA,KACD,EACAC,QAAQ,IAAI,OAAOA,QAAQ,KAAK,QAAQ,gBACvCL,IAAA,CAACJ,IAAI;QAACY,KAAK,EAAE,CACXM,MAAM,CAACT,QAAQ,EACf;UAAEc,KAAK,EAAEP,aAAa,IAAIC,KAAK,CAACQ;QAAO,CAAC,EACxCX,aAAa,CACb;QAAAM,QAAA,EACCX;MAAQ,CACL,CAAC,GAEPA,QACD;IAAA,CACG,CAAC,EAENE,KAAK,iBAAIP,IAAA,CAACL,IAAI;MAACa,KAAK,EAAEM,MAAM,CAACP,KAAM;MAAAS,QAAA,EAAET;IAAK,CAAO,CAAC;EAAA,CAC/C,CAAC;AAEX,CAAC;AAED,MAAMO,MAAM,GAAGjB,UAAU,CAACyB,MAAM,CAAC;EAC/BP,MAAM,EAAE;IACNQ,aAAa,EAAE,KAAK;IACpBC,OAAO,EAAE,EAAE;IACXC,aAAa,EAAE;IACf;IACA;EACF,CAAC;EACDnB,IAAI,EAAE;IACJoB,WAAW,EAAE;EACf,CAAC;EACDT,mBAAmB,EAAE;IACnBU,IAAI,EAAE;EACR,CAAC;EACDpB,KAAK,EAAE;IACLqB,UAAU,EAAE;EACd,CAAC;EACDxB,KAAK,EAAE;IACLyB,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACd,CAAC;EACDzB,QAAQ,EAAE;IACRwB,QAAQ,EAAE,EAAE;IACZE,SAAS,EAAE;EACb;AACF,CAAC,CAAC;AAEF,eAAe5B,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Image, View, StyleSheet } from 'react-native';
|
|
5
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
+
const CardImage = ({
|
|
7
|
+
source,
|
|
8
|
+
style,
|
|
9
|
+
height = 200,
|
|
10
|
+
width = '100%',
|
|
11
|
+
resizeMode = 'cover',
|
|
12
|
+
borderRadius,
|
|
13
|
+
overlay
|
|
14
|
+
}) => /*#__PURE__*/_jsxs(View, {
|
|
15
|
+
style: styles.container,
|
|
16
|
+
children: [/*#__PURE__*/_jsx(Image, {
|
|
17
|
+
source: source,
|
|
18
|
+
style: [styles.image,
|
|
19
|
+
// {
|
|
20
|
+
// height,
|
|
21
|
+
// width,
|
|
22
|
+
// resizeMode,
|
|
23
|
+
// borderRadius,
|
|
24
|
+
// },
|
|
25
|
+
style]
|
|
26
|
+
}), overlay && /*#__PURE__*/_jsx(View, {
|
|
27
|
+
style: styles.overlay,
|
|
28
|
+
children: overlay
|
|
29
|
+
})]
|
|
30
|
+
});
|
|
31
|
+
const styles = StyleSheet.create({
|
|
32
|
+
container: {
|
|
33
|
+
position: 'relative'
|
|
34
|
+
},
|
|
35
|
+
image: {
|
|
36
|
+
width: '100%',
|
|
37
|
+
height: 200
|
|
38
|
+
},
|
|
39
|
+
overlay: {
|
|
40
|
+
...StyleSheet.absoluteFillObject,
|
|
41
|
+
justifyContent: 'center',
|
|
42
|
+
alignItems: 'center'
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
export default CardImage;
|
|
46
|
+
//# sourceMappingURL=CardImage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Image","View","StyleSheet","jsx","_jsx","jsxs","_jsxs","CardImage","source","style","height","width","resizeMode","borderRadius","overlay","styles","container","children","image","create","position","absoluteFillObject","justifyContent","alignItems"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/Card/CardImage.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,EAAEC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAGvD,MAAMC,SAAmC,GAAGA,CAAC;EAC3CC,MAAM;EACNC,KAAK;EACLC,MAAM,GAAG,GAAG;EACZC,KAAK,GAAG,MAAM;EACdC,UAAU,GAAG,OAAO;EACpBC,YAAY;EACZC;AACF,CAAC,kBACCR,KAAA,CAACL,IAAI;EAACQ,KAAK,EAAEM,MAAM,CAACC,SAAU;EAAAC,QAAA,gBAC5Bb,IAAA,CAACJ,KAAK;IACJQ,MAAM,EAAEA,MAAO;IACfC,KAAK,EAAE,CACLM,MAAM,CAACG,KAAK;IACZ;IACA;IACA;IACA;IACA;IACA;IACAT,KAAK;EACL,CACH,CAAC,EACDK,OAAO,iBACNV,IAAA,CAACH,IAAI;IAACQ,KAAK,EAAEM,MAAM,CAACD,OAAQ;IAAAG,QAAA,EACzBH;EAAO,CACJ,CACP;AAAA,CACG,CACP;AAED,MAAMC,MAAM,GAAGb,UAAU,CAACiB,MAAM,CAAC;EAC/BH,SAAS,EAAE;IACTI,QAAQ,EAAE;EACZ,CAAC;EACDF,KAAK,EAAE;IACLP,KAAK,EAAE,MAAM;IACbD,MAAM,EAAE;EACV,CAAC;EACDI,OAAO,EAAE;IACP,GAAGZ,UAAU,CAACmB,kBAAkB;IAChCC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd;AACF,CAAC,CAAC;AAEF,eAAehB,SAAS","ignoreList":[]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
// components/Card/index.ts
|
|
4
|
+
export { default as Card } from "./Card.js";
|
|
5
|
+
export * from "./Card.js";
|
|
6
|
+
export { default as CardContent } from "./CardContent.js";
|
|
7
|
+
export { default as CardFooter } from "./CardFooter.js";
|
|
8
|
+
export { default as CardHeader } from "./CardHeader.js";
|
|
9
|
+
export { default as CardImage } from "./CardImage.js";
|
|
10
|
+
|
|
11
|
+
// Export templates
|
|
12
|
+
export { default as DealCardWithBackgroundImage } from "./templates/DealCardWithBackgroundImage.js";
|
|
13
|
+
export { default as DealCard } from "./templates/DealCard.js";
|
|
14
|
+
export { default as SimpleTrendingCard } from "./templates/SimpleTrendingCard.js";
|
|
15
|
+
|
|
16
|
+
// Export types
|
|
17
|
+
export * from "./types.js";
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["default","Card","CardContent","CardFooter","CardHeader","CardImage","DealCardWithBackgroundImage","DealCard","SimpleTrendingCard"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/Card/index.ts"],"mappings":";;AAAA;AACA,SAASA,OAAO,IAAIC,IAAI,QAAO,WAAQ;AACvC,cAAc,WAAQ;AACtB,SAASD,OAAO,IAAIE,WAAW,QAAQ,kBAAe;AACtD,SAASF,OAAO,IAAIG,UAAU,QAAQ,iBAAc;AACpD,SAASH,OAAO,IAAII,UAAU,QAAQ,iBAAc;AACpD,SAASJ,OAAO,IAAIK,SAAS,QAAQ,gBAAa;;AAElD;AACA,SAASL,OAAO,IAAIM,2BAA2B,QAAQ,4CAAyC;AAChG,SAASN,OAAO,IAAIO,QAAQ,QAAQ,yBAAsB;AAC1D,SAASP,OAAO,IAAIQ,kBAAkB,QAAQ,mCAAgC;;AAE9E;AACA,cAAc,YAAS","ignoreList":[]}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { View, Text, Image, useWindowDimensions } from "react-native";
|
|
5
|
+
import Card from "../Card.js";
|
|
6
|
+
import { useTheme } from "../../../theme/ThemeContext.js";
|
|
7
|
+
import ProgressBar from "../../ProgressBar/ProgressBar.js";
|
|
8
|
+
import CardHeader from "../CardHeader.js";
|
|
9
|
+
import CardFooter from "../CardFooter.js";
|
|
10
|
+
import LockOverlay from "../../LockOverlay/LockOverlay.js";
|
|
11
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
+
const DealCard = ({
|
|
13
|
+
imageSource,
|
|
14
|
+
onPress,
|
|
15
|
+
label,
|
|
16
|
+
labelContainerStyle,
|
|
17
|
+
labelStyle,
|
|
18
|
+
dealDescription,
|
|
19
|
+
dealDescriptionStyle,
|
|
20
|
+
dealPrice,
|
|
21
|
+
dealPriceStyle,
|
|
22
|
+
dealProviderName,
|
|
23
|
+
dealProviderNameStyle,
|
|
24
|
+
progressBar,
|
|
25
|
+
progressBarText,
|
|
26
|
+
progressBarTextPosition,
|
|
27
|
+
progressBarTextAlign,
|
|
28
|
+
progressValue,
|
|
29
|
+
progressHeight,
|
|
30
|
+
progressWidth,
|
|
31
|
+
remainingProgressColor,
|
|
32
|
+
progressColor,
|
|
33
|
+
style,
|
|
34
|
+
width,
|
|
35
|
+
variant = "horizontal",
|
|
36
|
+
isRTL = false,
|
|
37
|
+
overlayVisible = false
|
|
38
|
+
}) => {
|
|
39
|
+
const theme = useTheme();
|
|
40
|
+
const {
|
|
41
|
+
width: screenWidth
|
|
42
|
+
} = useWindowDimensions();
|
|
43
|
+
const isVertical = variant === "vertical";
|
|
44
|
+
const imageSize = Math.min(110, 110);
|
|
45
|
+
const cardPadding = 12;
|
|
46
|
+
const fontSize = screenWidth < 360 ? 14 : 16;
|
|
47
|
+
const calculatedProgressWidth = progressWidth || (typeof width === "number" ? width * 0.4 : screenWidth * 0.3);
|
|
48
|
+
const containerFlexDirection = isVertical ? "column" : isRTL ? "row-reverse" : "row";
|
|
49
|
+
const textContainerStyle = {
|
|
50
|
+
flex: isVertical ? 0 : 1,
|
|
51
|
+
...(isVertical ? {
|
|
52
|
+
paddingLeft: cardPadding,
|
|
53
|
+
paddingRight: cardPadding
|
|
54
|
+
} : isRTL ? {
|
|
55
|
+
paddingLeft: cardPadding
|
|
56
|
+
} : {
|
|
57
|
+
paddingRight: cardPadding
|
|
58
|
+
})
|
|
59
|
+
};
|
|
60
|
+
const renderDealPrice = () => {
|
|
61
|
+
return /*#__PURE__*/_jsx(Text, {
|
|
62
|
+
style: [{
|
|
63
|
+
textAlign: "right",
|
|
64
|
+
fontSize: fontSize,
|
|
65
|
+
fontWeight: "bold",
|
|
66
|
+
marginBottom: 3,
|
|
67
|
+
color: theme.text
|
|
68
|
+
}, isRTL && {
|
|
69
|
+
textAlign: "left"
|
|
70
|
+
}, dealPriceStyle],
|
|
71
|
+
children: dealPrice
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
return /*#__PURE__*/_jsxs(Card, {
|
|
75
|
+
onPress: onPress,
|
|
76
|
+
variant: "filled",
|
|
77
|
+
backgroundColor: theme.surface,
|
|
78
|
+
style: [{
|
|
79
|
+
borderRadius: 16,
|
|
80
|
+
overflow: "hidden",
|
|
81
|
+
alignItems: isVertical ? "stretch" : "center",
|
|
82
|
+
flexDirection: containerFlexDirection
|
|
83
|
+
}, typeof width === "number" && {
|
|
84
|
+
width
|
|
85
|
+
}, style],
|
|
86
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
87
|
+
style: isVertical ? {
|
|
88
|
+
position: "relative",
|
|
89
|
+
marginHorizontal: cardPadding,
|
|
90
|
+
marginVertical: cardPadding,
|
|
91
|
+
borderRadius: 10,
|
|
92
|
+
overflow: "hidden"
|
|
93
|
+
} : {
|
|
94
|
+
position: "relative",
|
|
95
|
+
marginLeft: cardPadding,
|
|
96
|
+
marginRight: cardPadding,
|
|
97
|
+
borderRadius: 10,
|
|
98
|
+
overflow: "hidden"
|
|
99
|
+
},
|
|
100
|
+
children: [/*#__PURE__*/_jsx(Image, {
|
|
101
|
+
source: imageSource,
|
|
102
|
+
style: isVertical ? {
|
|
103
|
+
height: 200,
|
|
104
|
+
width: "100%",
|
|
105
|
+
borderRadius: 10,
|
|
106
|
+
alignSelf: "center",
|
|
107
|
+
resizeMode: "cover"
|
|
108
|
+
} : {
|
|
109
|
+
width: imageSize,
|
|
110
|
+
height: imageSize,
|
|
111
|
+
borderRadius: 10,
|
|
112
|
+
alignSelf: "center",
|
|
113
|
+
resizeMode: "cover"
|
|
114
|
+
}
|
|
115
|
+
}), /*#__PURE__*/_jsx(LockOverlay, {
|
|
116
|
+
visible: overlayVisible
|
|
117
|
+
})]
|
|
118
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
119
|
+
style: textContainerStyle,
|
|
120
|
+
children: [/*#__PURE__*/_jsx(CardHeader, {
|
|
121
|
+
title: dealProviderName,
|
|
122
|
+
subtitle: dealDescription,
|
|
123
|
+
subtitleStyle: [isRTL && {
|
|
124
|
+
textAlign: "right"
|
|
125
|
+
}, dealDescriptionStyle],
|
|
126
|
+
titleStyle: [isRTL && {
|
|
127
|
+
textAlign: "right"
|
|
128
|
+
}, dealProviderNameStyle],
|
|
129
|
+
style: {
|
|
130
|
+
paddingLeft: 0,
|
|
131
|
+
paddingRight: 0
|
|
132
|
+
}
|
|
133
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
134
|
+
style: {
|
|
135
|
+
marginTop: 10,
|
|
136
|
+
marginBottom: 15
|
|
137
|
+
},
|
|
138
|
+
children: [renderDealPrice(), /*#__PURE__*/_jsxs(CardFooter, {
|
|
139
|
+
justifyContent: "space-between",
|
|
140
|
+
style: [{
|
|
141
|
+
padding: 0
|
|
142
|
+
}, isRTL && {
|
|
143
|
+
flexDirection: "row-reverse"
|
|
144
|
+
}],
|
|
145
|
+
children: [label && /*#__PURE__*/_jsx(View, {
|
|
146
|
+
style: [{
|
|
147
|
+
backgroundColor: theme.primary,
|
|
148
|
+
paddingVertical: 5,
|
|
149
|
+
paddingHorizontal: 8,
|
|
150
|
+
borderRadius: 10
|
|
151
|
+
}, labelContainerStyle],
|
|
152
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
153
|
+
style: [{
|
|
154
|
+
color: theme.onPrimary,
|
|
155
|
+
fontSize: 14
|
|
156
|
+
}, labelStyle],
|
|
157
|
+
children: label
|
|
158
|
+
})
|
|
159
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
160
|
+
children: progressBar && /*#__PURE__*/_jsx(ProgressBar, {
|
|
161
|
+
progress: progressValue,
|
|
162
|
+
remainingColor: remainingProgressColor,
|
|
163
|
+
progressColor: progressColor,
|
|
164
|
+
height: progressHeight || (screenWidth < 360 ? 10 : 14),
|
|
165
|
+
width: calculatedProgressWidth,
|
|
166
|
+
textPosition: progressBarTextPosition,
|
|
167
|
+
text: progressBarText,
|
|
168
|
+
showText: progressBarText != null,
|
|
169
|
+
textAlign: isRTL && progressBarTextAlign == null ? "right" : progressBarTextAlign,
|
|
170
|
+
isRTL: isRTL,
|
|
171
|
+
textStyle: {
|
|
172
|
+
fontSize: screenWidth < 360 ? 8 : 10,
|
|
173
|
+
color: theme.text
|
|
174
|
+
}
|
|
175
|
+
})
|
|
176
|
+
})]
|
|
177
|
+
})]
|
|
178
|
+
})]
|
|
179
|
+
})]
|
|
180
|
+
});
|
|
181
|
+
};
|
|
182
|
+
export default DealCard;
|
|
183
|
+
//# sourceMappingURL=DealCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","View","Text","Image","useWindowDimensions","Card","useTheme","ProgressBar","CardHeader","CardFooter","LockOverlay","jsx","_jsx","jsxs","_jsxs","DealCard","imageSource","onPress","label","labelContainerStyle","labelStyle","dealDescription","dealDescriptionStyle","dealPrice","dealPriceStyle","dealProviderName","dealProviderNameStyle","progressBar","progressBarText","progressBarTextPosition","progressBarTextAlign","progressValue","progressHeight","progressWidth","remainingProgressColor","progressColor","style","width","variant","isRTL","overlayVisible","theme","screenWidth","isVertical","imageSize","Math","min","cardPadding","fontSize","calculatedProgressWidth","containerFlexDirection","textContainerStyle","flex","paddingLeft","paddingRight","renderDealPrice","textAlign","fontWeight","marginBottom","color","text","children","backgroundColor","surface","borderRadius","overflow","alignItems","flexDirection","position","marginHorizontal","marginVertical","marginLeft","marginRight","source","height","alignSelf","resizeMode","visible","title","subtitle","subtitleStyle","titleStyle","marginTop","justifyContent","padding","primary","paddingVertical","paddingHorizontal","onPrimary","progress","remainingColor","textPosition","showText","textStyle"],"sourceRoot":"..\\..\\..\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