related-ui-components 1.9.5 → 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/DateRangePicker/DateRangePicker.js +1 -2
- package/lib/module/components/DateRangePicker/DateRangePicker.js.map +1 -1
- package/lib/module/components/Popup/README.md +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/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/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/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/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/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 +29 -79
- package/src/app.tsx +1 -1
- package/src/components/DateRangePicker/DateRangePicker.tsx +1 -2
- package/src/components/Popup/README.md +1 -1
- package/src/components/Suggestions/SuggestionList.tsx +1 -1
- package/src/components/TravelBooking/CarRentalForm.tsx +1 -1
- package/src/components/TravelBooking/FlightForm.tsx +1 -1
- package/src/components/TravelBooking/FlightSummary.tsx +1 -1
- package/src/components/TravelBooking/HotelForm.tsx +1 -1
- 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 -115
- 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 -52
- 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 -194
- 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 -342
- 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 -459
- 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.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.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.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.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 +0 -21
- 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 +0 -91
- 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 +0 -42
- 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 +0 -52
- 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/BrandIcon.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}/Card/types.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/Popup.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/CarRentalForm.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/HotelForm.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/TravelBooking/HotelSummary.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/TravelBooking/SummaryBar.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/TravelBooking/TabSelector.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/TravelBooking/TravelBooking.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/TravelBooking/types.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/UnlockRewards/RewardItem.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/UnlockRewards/UnlockRewards.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/UnlockRewards/index.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/Wheel/Wheel.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/Wheel/index.d.ts +0 -0
- /package/lib/typescript/{commonjs/components → components}/index.d.ts +0 -0
- /package/lib/typescript/{commonjs/constants → constants}/BRANDS.d.ts +0 -0
- /package/lib/typescript/{commonjs/index.d.ts → index.d.ts} +0 -0
- /package/lib/typescript/{commonjs/theme → theme}/Colors.d.ts +0 -0
- /package/lib/typescript/{commonjs/theme → theme}/ThemeContext.d.ts +0 -0
- /package/lib/typescript/{commonjs/theme → theme}/index.d.ts +0 -0
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
# Filters Component
|
|
2
|
-
|
|
3
|
-
A flexible, customizable bottom sheet filter component for React Native applications with support for sorting options, points range selection, brand filtering, and extensive styling options.
|
|
4
|
-
|
|
5
|
-

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