@redneckz/wildless-cms-uni-blocks 0.3.47 → 0.3.50
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/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +67 -57
- package/bundle/bundle.umd.min.js +1 -1
- package/cosmos-static/icons/BurgerIcon.svg +1 -1
- package/cosmos-static/icons/Calendar2Icon.svg +1 -1
- package/cosmos-static/icons/CalendarCircleIcon.svg +1 -1
- package/cosmos-static/icons/CalendarIcon.svg +1 -1
- package/cosmos-static/icons/CalendarTickIcon.svg +1 -1
- package/cosmos-static/icons/CalendarWhiteIcon.svg +1 -1
- package/cosmos-static/icons/CardIcon.svg +1 -1
- package/cosmos-static/icons/CardPosIcon.svg +1 -1
- package/cosmos-static/icons/CardTickIcon.svg +1 -1
- package/cosmos-static/icons/CardWithGemIcon.svg +1 -1
- package/cosmos-static/icons/ChartSquareIcon.svg +1 -1
- package/cosmos-static/icons/CloseIcon.svg +1 -1
- package/cosmos-static/icons/DiscountShapeIcon.svg +1 -1
- package/cosmos-static/icons/DocIcon.svg +1 -1
- package/cosmos-static/icons/DocumentTextIcon.svg +1 -1
- package/cosmos-static/icons/EmptyWalletChangeIcon.svg +1 -1
- package/cosmos-static/icons/EmptyWalletIcon.svg +1 -1
- package/cosmos-static/icons/GlobalIcon.svg +1 -1
- package/cosmos-static/icons/GpsIcon.svg +1 -1
- package/cosmos-static/icons/GridIcon.svg +1 -1
- package/cosmos-static/icons/InterestIcon.svg +1 -1
- package/cosmos-static/icons/MoneyIcon.svg +1 -1
- package/cosmos-static/icons/MonitorMobileIcon.svg +1 -1
- package/cosmos-static/icons/OfficeIcon.svg +1 -1
- package/cosmos-static/icons/PercentageRoundIcon.svg +1 -1
- package/cosmos-static/icons/PercentageSquareIcon.svg +1 -1
- package/cosmos-static/icons/PersonalCardIcon.svg +1 -1
- package/cosmos-static/icons/Profile2UserIcon.svg +1 -1
- package/cosmos-static/icons/RoundRubleIcon.svg +1 -1
- package/cosmos-static/icons/SafeIcon.svg +1 -1
- package/cosmos-static/icons/ShieldTickIcon.svg +1 -1
- package/cosmos-static/icons/SmallClockIcon.svg +1 -1
- package/cosmos-static/icons/UserTickIcon.svg +1 -1
- package/cosmos-static/icons/WalletAdd2Icon.svg +1 -1
- package/cosmos-static/icons/WalletAddIcon.svg +1 -1
- package/cosmos-static/icons/WalletIcon.svg +1 -1
- package/cosmos-static/icons/WalletWithMoneyIcon.svg +1 -1
- package/dist/components/Bonus/Bonus.js +2 -2
- package/dist/components/Bonus/Bonus.js.map +1 -1
- package/dist/components/Bonus/BonusContent.d.ts +4 -3
- package/dist/components/ExchangeRateTile/CurrentLocation.js +1 -1
- package/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +3 -3
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/dist/components/Footer/SocialMedia.js +1 -1
- package/dist/components/Footer/SocialMedia.js.map +1 -1
- package/dist/components/GracePeriod/GracePeriod.js +7 -5
- package/dist/components/GracePeriod/GracePeriod.js.map +1 -1
- package/dist/components/GracePeriod/GracePeriodContent.d.ts +14 -3
- package/dist/components/NavigatorTabs/NavigatorTabItem.d.ts +2 -2
- package/dist/components/NavigatorTabs/NavigatorTabItem.js +2 -2
- package/dist/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
- package/dist/components/NavigatorTabs/NavigatorTabs.js +6 -9
- package/dist/components/NavigatorTabs/NavigatorTabs.js.map +1 -1
- package/dist/components/NavigatorTabs/NavigatorTabsContent.d.ts +2 -12
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +7 -0
- package/dist/components/ProductBlock/ProductBlockInner.js +2 -2
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.mobile.js +2 -2
- package/dist/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
- package/dist/components/ProductBlock/renderBenefit.d.ts +2 -2
- package/dist/components/ProductBlock/renderBenefit.js +13 -6
- package/dist/components/ProductBlock/renderBenefit.js.map +1 -1
- package/dist/components/ProductBlock/renderBenefit.mobile.d.ts +2 -3
- package/dist/components/ProductBlock/renderBenefit.mobile.js +10 -2
- package/dist/components/ProductBlock/renderBenefit.mobile.js.map +1 -1
- package/dist/components/ProductTile/ProductTile.js +2 -3
- package/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/dist/components/ProductTile/ProductTileContent.d.ts +2 -2
- package/dist/components/Recommendation/RecommendationCard.d.ts +2 -0
- package/dist/components/Recommendation/RecommendationCard.js +1 -1
- package/dist/components/Recommendation/RecommendationCard.js.map +1 -1
- package/dist/components/Recommendation/RecommendationContent.d.ts +7 -6
- package/dist/components/StepsBlock/StepsBlock.js +1 -1
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/Tile/Tile.js +2 -3
- package/dist/components/Tile/Tile.js.map +1 -1
- package/dist/components/Tile/TileContent.d.ts +2 -2
- package/dist/model/IconVersion.d.ts +1 -0
- package/dist/model/IconVersion.js +2 -0
- package/dist/model/IconVersion.js.map +1 -0
- package/dist/model/Picture.d.ts +3 -0
- package/dist/types.d.ts +5 -1
- package/dist/ui-kit/Button/ButtonInner.js +1 -1
- package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/dist/ui-kit/Icon/Icon.js +3 -2
- package/dist/ui-kit/Icon/Icon.js.map +1 -1
- package/dist/ui-kit/Icon/IconProps.d.ts +3 -0
- package/dist/ui-kit/Img/Img.js +2 -1
- package/dist/ui-kit/Img/Img.js.map +1 -1
- package/dist/ui-kit/Img/Img.mobile.js +2 -1
- package/dist/ui-kit/Img/Img.mobile.js.map +1 -1
- package/dist/ui-kit/Img/getIconVersion.d.ts +1 -0
- package/dist/ui-kit/Img/getIconVersion.js +7 -0
- package/dist/ui-kit/Img/getIconVersion.js.map +1 -0
- package/dist/ui-kit/Select/SelectOption.d.ts +1 -0
- package/dist/ui-kit/Select/SelectOption.js +2 -2
- package/dist/ui-kit/Select/SelectOption.js.map +1 -1
- package/dist/ui-kit/Tabs/Tabs.js +1 -1
- package/dist/ui-kit/Tabs/Tabs.js.map +1 -1
- package/fonts/mohave/Mohave-Regular.otf +0 -0
- package/fonts/mohave/mohave.css +1 -1
- package/lib/common.css +1 -1
- package/lib/components/BaseTile/getTileHeadingType.d.ts +1 -1
- package/lib/components/Bonus/Bonus.js +2 -2
- package/lib/components/Bonus/Bonus.js.map +1 -1
- package/lib/components/Bonus/BonusContent.d.ts +4 -3
- package/lib/components/ExchangeRateTile/CurrentLocation.js +1 -1
- package/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +3 -3
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/lib/components/Footer/SocialMedia.js +1 -1
- package/lib/components/Footer/SocialMedia.js.map +1 -1
- package/lib/components/GracePeriod/GracePeriod.js +7 -5
- package/lib/components/GracePeriod/GracePeriod.js.map +1 -1
- package/lib/components/GracePeriod/GracePeriodContent.d.ts +14 -3
- package/lib/components/NavigatorTabs/NavigatorTabItem.d.ts +2 -2
- package/lib/components/NavigatorTabs/NavigatorTabItem.js +2 -2
- package/lib/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
- package/lib/components/NavigatorTabs/NavigatorTabs.js +7 -10
- package/lib/components/NavigatorTabs/NavigatorTabs.js.map +1 -1
- package/lib/components/NavigatorTabs/NavigatorTabsContent.d.ts +2 -12
- package/lib/components/ProductBlock/ProductBlock.fixture.d.ts +0 -3
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +7 -0
- package/lib/components/ProductBlock/ProductBlockInner.js +2 -2
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.mobile.js +2 -2
- package/lib/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
- package/lib/components/ProductBlock/renderBenefit.d.ts +2 -2
- package/lib/components/ProductBlock/renderBenefit.js +13 -6
- package/lib/components/ProductBlock/renderBenefit.js.map +1 -1
- package/lib/components/ProductBlock/renderBenefit.mobile.d.ts +2 -3
- package/lib/components/ProductBlock/renderBenefit.mobile.js +10 -2
- package/lib/components/ProductBlock/renderBenefit.mobile.js.map +1 -1
- package/lib/components/ProductTile/ProductTile.js +2 -3
- package/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/lib/components/ProductTile/ProductTileContent.d.ts +2 -2
- package/lib/components/Recommendation/RecommendationCard.d.ts +2 -0
- package/lib/components/Recommendation/RecommendationCard.js +1 -1
- package/lib/components/Recommendation/RecommendationCard.js.map +1 -1
- package/lib/components/Recommendation/RecommendationContent.d.ts +7 -6
- package/lib/components/StepsBlock/StepsBlock.js +1 -1
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/Tile/Tile.js +2 -3
- package/lib/components/Tile/Tile.js.map +1 -1
- package/lib/components/Tile/TileContent.d.ts +2 -2
- package/lib/model/IconVersion.d.ts +1 -0
- package/lib/model/IconVersion.js +2 -0
- package/lib/model/IconVersion.js.map +1 -0
- package/lib/model/Picture.d.ts +3 -0
- package/lib/types.d.ts +5 -1
- package/lib/ui-kit/Button/ButtonInner.js +1 -1
- package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/lib/ui-kit/Icon/Icon.js +3 -2
- package/lib/ui-kit/Icon/Icon.js.map +1 -1
- package/lib/ui-kit/Icon/IconProps.d.ts +3 -0
- package/lib/ui-kit/Img/Img.js +2 -1
- package/lib/ui-kit/Img/Img.js.map +1 -1
- package/lib/ui-kit/Img/Img.mobile.js +2 -1
- package/lib/ui-kit/Img/Img.mobile.js.map +1 -1
- package/lib/ui-kit/Img/getIconVersion.d.ts +1 -0
- package/lib/ui-kit/Img/getIconVersion.js +4 -0
- package/lib/ui-kit/Img/getIconVersion.js.map +1 -0
- package/lib/ui-kit/Select/SelectOption.d.ts +1 -0
- package/lib/ui-kit/Select/SelectOption.js +2 -2
- package/lib/ui-kit/Select/SelectOption.js.map +1 -1
- package/lib/ui-kit/Tabs/Tabs.js +1 -1
- package/lib/ui-kit/Tabs/Tabs.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +27 -14
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/Bonus/Bonus.js +2 -2
- package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
- package/mobile/dist/components/Bonus/BonusContent.d.ts +4 -3
- package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js +1 -1
- package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +3 -3
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/mobile/dist/components/GracePeriod/GracePeriod.js +7 -5
- package/mobile/dist/components/GracePeriod/GracePeriod.js.map +1 -1
- package/mobile/dist/components/GracePeriod/GracePeriodContent.d.ts +14 -3
- package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.d.ts +2 -2
- package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.js +2 -2
- package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
- package/mobile/dist/components/NavigatorTabs/NavigatorTabs.js +6 -9
- package/mobile/dist/components/NavigatorTabs/NavigatorTabs.js.map +1 -1
- package/mobile/dist/components/NavigatorTabs/NavigatorTabsContent.d.ts +2 -12
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +7 -0
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js +2 -2
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/mobile/dist/components/ProductBlock/renderBenefit.d.ts +2 -3
- package/mobile/dist/components/ProductBlock/renderBenefit.js +10 -2
- package/mobile/dist/components/ProductBlock/renderBenefit.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTile.js +2 -3
- package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +2 -2
- package/mobile/dist/components/Recommendation/RecommendationCard.d.ts +2 -0
- package/mobile/dist/components/Recommendation/RecommendationCard.js +1 -1
- package/mobile/dist/components/Recommendation/RecommendationCard.js.map +1 -1
- package/mobile/dist/components/Recommendation/RecommendationContent.d.ts +7 -6
- package/mobile/dist/components/Tile/Tile.js +2 -3
- package/mobile/dist/components/Tile/Tile.js.map +1 -1
- package/mobile/dist/components/Tile/TileContent.d.ts +2 -2
- package/mobile/dist/model/IconVersion.d.ts +1 -0
- package/mobile/dist/model/IconVersion.js +2 -0
- package/mobile/dist/model/IconVersion.js.map +1 -0
- package/mobile/dist/model/Picture.d.ts +3 -0
- package/mobile/dist/types.d.ts +5 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/dist/ui-kit/Icon/Icon.js +3 -2
- package/mobile/dist/ui-kit/Icon/Icon.js.map +1 -1
- package/mobile/dist/ui-kit/Icon/IconProps.d.ts +3 -0
- package/mobile/dist/ui-kit/Img/Img.js +2 -1
- package/mobile/dist/ui-kit/Img/Img.js.map +1 -1
- package/mobile/dist/ui-kit/Img/getIconVersion.d.ts +1 -0
- package/mobile/dist/ui-kit/Img/getIconVersion.js +7 -0
- package/mobile/dist/ui-kit/Img/getIconVersion.js.map +1 -0
- package/mobile/dist/ui-kit/Select/SelectOption.d.ts +1 -0
- package/mobile/dist/ui-kit/Select/SelectOption.js +2 -2
- package/mobile/dist/ui-kit/Select/SelectOption.js.map +1 -1
- package/mobile/dist/ui-kit/Tabs/Tabs.js +1 -1
- package/mobile/dist/ui-kit/Tabs/Tabs.js.map +1 -1
- package/mobile/lib/components/Bonus/Bonus.js +2 -2
- package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
- package/mobile/lib/components/Bonus/BonusContent.d.ts +4 -3
- package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js +1 -1
- package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +3 -3
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/mobile/lib/components/GracePeriod/GracePeriod.js +7 -5
- package/mobile/lib/components/GracePeriod/GracePeriod.js.map +1 -1
- package/mobile/lib/components/GracePeriod/GracePeriodContent.d.ts +14 -3
- package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.d.ts +2 -2
- package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.js +2 -2
- package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
- package/mobile/lib/components/NavigatorTabs/NavigatorTabs.js +7 -10
- package/mobile/lib/components/NavigatorTabs/NavigatorTabs.js.map +1 -1
- package/mobile/lib/components/NavigatorTabs/NavigatorTabsContent.d.ts +2 -12
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +7 -0
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js +2 -2
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/mobile/lib/components/ProductBlock/renderBenefit.d.ts +2 -3
- package/mobile/lib/components/ProductBlock/renderBenefit.js +10 -2
- package/mobile/lib/components/ProductBlock/renderBenefit.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTile.js +2 -3
- package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +2 -2
- package/mobile/lib/components/Recommendation/RecommendationCard.d.ts +2 -0
- package/mobile/lib/components/Recommendation/RecommendationCard.js +1 -1
- package/mobile/lib/components/Recommendation/RecommendationCard.js.map +1 -1
- package/mobile/lib/components/Recommendation/RecommendationContent.d.ts +7 -6
- package/mobile/lib/components/Tile/Tile.js +2 -3
- package/mobile/lib/components/Tile/Tile.js.map +1 -1
- package/mobile/lib/components/Tile/TileContent.d.ts +2 -2
- package/mobile/lib/model/IconVersion.d.ts +1 -0
- package/mobile/lib/model/IconVersion.js +2 -0
- package/mobile/lib/model/IconVersion.js.map +1 -0
- package/mobile/lib/model/Picture.d.ts +3 -0
- package/mobile/lib/types.d.ts +5 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/lib/ui-kit/Icon/Icon.js +3 -2
- package/mobile/lib/ui-kit/Icon/Icon.js.map +1 -1
- package/mobile/lib/ui-kit/Icon/IconProps.d.ts +3 -0
- package/mobile/lib/ui-kit/Img/Img.js +2 -1
- package/mobile/lib/ui-kit/Img/Img.js.map +1 -1
- package/mobile/lib/ui-kit/Img/getIconVersion.d.ts +1 -0
- package/mobile/lib/ui-kit/Img/getIconVersion.js +4 -0
- package/mobile/lib/ui-kit/Img/getIconVersion.js.map +1 -0
- package/mobile/lib/ui-kit/Select/SelectOption.d.ts +1 -0
- package/mobile/lib/ui-kit/Select/SelectOption.js +2 -2
- package/mobile/lib/ui-kit/Select/SelectOption.js.map +1 -1
- package/mobile/lib/ui-kit/Tabs/Tabs.js +1 -1
- package/mobile/lib/ui-kit/Tabs/Tabs.js.map +1 -1
- package/mobile/src/common.css +0 -4
- package/mobile/src/components/Bonus/Bonus.tsx +8 -6
- package/mobile/src/components/Bonus/BonusContent.ts +4 -3
- package/mobile/src/components/ContentPage/ContentPage.page.json +12 -6
- package/mobile/src/components/ExchangeRateTile/CurrentLocation.tsx +1 -1
- package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +3 -3
- package/mobile/src/components/GracePeriod/GracePeriod.example.json +10 -5
- package/mobile/src/components/GracePeriod/GracePeriod.tsx +17 -11
- package/mobile/src/components/GracePeriod/GracePeriodContent.ts +14 -3
- package/mobile/src/components/NavigatorTabs/NavigatorTabItem.tsx +5 -5
- package/mobile/src/components/NavigatorTabs/NavigatorTabs.example.json +3 -3
- package/mobile/src/components/NavigatorTabs/NavigatorTabs.tsx +12 -15
- package/mobile/src/components/NavigatorTabs/NavigatorTabsContent.ts +2 -12
- package/mobile/src/components/ProductBlock/ProductBlock.example.json +6 -0
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +8 -0
- package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +6 -1
- package/mobile/src/components/ProductBlock/renderBenefit.tsx +15 -4
- package/mobile/src/components/ProductTile/ProductTile.example.json +1 -0
- package/mobile/src/components/ProductTile/ProductTile.tsx +3 -2
- package/mobile/src/components/ProductTile/ProductTileContent.ts +2 -1
- package/mobile/src/components/Recommendation/Recommendation.example.json +11 -10
- package/mobile/src/components/Recommendation/RecommendationCard.tsx +6 -3
- package/mobile/src/components/Recommendation/RecommendationContent.ts +12 -10
- package/mobile/src/components/Tile/Tile.example.json +1 -0
- package/mobile/src/components/Tile/Tile.tsx +2 -2
- package/mobile/src/components/Tile/TileContent.ts +2 -1
- package/mobile/src/icons/AppleIcon.svg +3 -1
- package/mobile/src/icons/BurgerIcon.svg +4 -4
- package/mobile/src/icons/Calendar2Icon.svg +6 -1
- package/mobile/src/icons/CalendarCircleIcon.svg +1 -4
- package/mobile/src/icons/CalendarIcon.svg +1 -1
- package/mobile/src/icons/CalendarTickIcon.svg +1 -6
- package/mobile/src/icons/CalendarWhiteIcon.svg +2 -2
- package/mobile/src/icons/CardIcon.svg +1 -5
- package/mobile/src/icons/CardPosIcon.svg +1 -5
- package/mobile/src/icons/CardTickIcon.svg +1 -5
- package/mobile/src/icons/CardWithGemIcon.svg +1 -1
- package/mobile/src/icons/ChartSquareIcon.svg +1 -6
- package/mobile/src/icons/CloseIcon.svg +4 -4
- package/mobile/src/icons/DiscountShapeIcon.svg +1 -4
- package/mobile/src/icons/DocIcon.svg +1 -1
- package/mobile/src/icons/DocumentTextIcon.svg +2 -2
- package/mobile/src/icons/EmptyWalletChangeIcon.svg +3 -3
- package/mobile/src/icons/EmptyWalletIcon.svg +2 -2
- package/mobile/src/icons/GlobalIcon.svg +1 -5
- package/mobile/src/icons/GpsIcon.svg +6 -6
- package/mobile/src/icons/GridIcon.svg +1 -1
- package/mobile/src/icons/InterestIcon.svg +1 -6
- package/mobile/src/icons/MasterCardIcon.svg +1 -5
- package/mobile/src/icons/MinusIcon.svg +1 -3
- package/mobile/src/icons/MoneyIcon.svg +1 -5
- package/mobile/src/icons/MonitorMobileIcon.svg +1 -4
- package/mobile/src/icons/OfficeIcon.svg +1 -1
- package/mobile/src/icons/PercentageRoundIcon.svg +1 -4
- package/mobile/src/icons/PercentageSquareIcon.svg +1 -1
- package/mobile/src/icons/PersonalCardIcon.svg +1 -4
- package/mobile/src/icons/PlayMarketIcon.svg +1 -3
- package/mobile/src/icons/PlusIcon.svg +1 -3
- package/mobile/src/icons/Profile2UserIcon.svg +1 -6
- package/mobile/src/icons/RoundRubleIcon.svg +1 -5
- package/mobile/src/icons/SafeIcon.svg +1 -7
- package/mobile/src/icons/ShieldTickIcon.svg +1 -4
- package/mobile/src/icons/SmallClockIcon.svg +1 -4
- package/mobile/src/icons/UserTickIcon.svg +1 -5
- package/mobile/src/icons/WalletAdd2Icon.svg +1 -6
- package/mobile/src/icons/WalletAddIcon.svg +1 -7
- package/mobile/src/icons/WalletIcon.svg +1 -7
- package/mobile/src/icons/WalletWithMoneyIcon.svg +1 -5
- package/mobile/src/model/IconVersion.ts +1 -0
- package/mobile/src/model/Picture.ts +3 -0
- package/mobile/src/types.ts +5 -1
- package/mobile/src/ui-kit/Button/ButtonInner.tsx +1 -1
- package/mobile/src/ui-kit/Icon/Icon.tsx +3 -1
- package/mobile/src/ui-kit/Icon/IconProps.ts +3 -0
- package/mobile/src/ui-kit/Img/Img.tsx +11 -2
- package/mobile/src/ui-kit/Img/getIconVersion.tsx +3 -0
- package/mobile/src/ui-kit/Select/SelectOption.tsx +10 -7
- package/mobile/src/ui-kit/Tabs/Tabs.tsx +1 -1
- package/package.json +1 -1
- package/src/common.css +0 -4
- package/src/components/Bonus/Bonus.tsx +8 -6
- package/src/components/Bonus/BonusContent.ts +4 -3
- package/src/components/ContentPage/ContentPage.page.json +12 -6
- package/src/components/ExchangeRateTile/CurrentLocation.tsx +1 -1
- package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +3 -3
- package/src/components/Footer/SocialMedia.tsx +1 -1
- package/src/components/GracePeriod/GracePeriod.example.json +10 -5
- package/src/components/GracePeriod/GracePeriod.tsx +17 -11
- package/src/components/GracePeriod/GracePeriodContent.ts +14 -3
- package/src/components/NavigatorTabs/NavigatorTabItem.tsx +5 -5
- package/src/components/NavigatorTabs/NavigatorTabs.example.json +3 -3
- package/src/components/NavigatorTabs/NavigatorTabs.fixture.tsx +6 -1
- package/src/components/NavigatorTabs/NavigatorTabs.tsx +12 -15
- package/src/components/NavigatorTabs/NavigatorTabsContent.ts +2 -12
- package/src/components/ProductBlock/ProductBlock.example.json +6 -0
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +65 -28
- package/src/components/ProductBlock/ProductBlockContent.ts +8 -0
- package/src/components/ProductBlock/ProductBlockInner.mobile.tsx +6 -1
- package/src/components/ProductBlock/ProductBlockInner.tsx +4 -1
- package/src/components/ProductBlock/renderBenefit.mobile.tsx +15 -4
- package/src/components/ProductBlock/renderBenefit.tsx +20 -8
- package/src/components/ProductTile/ProductTile.example.json +1 -0
- package/src/components/ProductTile/ProductTile.fixture.tsx +7 -2
- package/src/components/ProductTile/ProductTile.tsx +3 -2
- package/src/components/ProductTile/ProductTileContent.ts +2 -1
- package/src/components/Recommendation/Recommendation.example.json +11 -10
- package/src/components/Recommendation/Recommendation.fixture.tsx +3 -3
- package/src/components/Recommendation/RecommendationCard.tsx +6 -3
- package/src/components/Recommendation/RecommendationContent.ts +12 -10
- package/src/components/StepsBlock/StepsBlock.tsx +1 -1
- package/src/components/Tile/Tile.example.json +1 -0
- package/src/components/Tile/Tile.fixture.tsx +5 -0
- package/src/components/Tile/Tile.tsx +2 -2
- package/src/components/Tile/TileContent.ts +2 -1
- package/src/icons/AppleIcon.svg +3 -1
- package/src/icons/BurgerIcon.svg +4 -4
- package/src/icons/Calendar2Icon.svg +6 -1
- package/src/icons/CalendarCircleIcon.svg +1 -4
- package/src/icons/CalendarIcon.svg +1 -1
- package/src/icons/CalendarTickIcon.svg +1 -6
- package/src/icons/CalendarWhiteIcon.svg +2 -2
- package/src/icons/CardIcon.svg +1 -5
- package/src/icons/CardPosIcon.svg +1 -5
- package/src/icons/CardTickIcon.svg +1 -5
- package/src/icons/CardWithGemIcon.svg +1 -1
- package/src/icons/ChartSquareIcon.svg +1 -6
- package/src/icons/CloseIcon.svg +4 -4
- package/src/icons/DiscountShapeIcon.svg +1 -4
- package/src/icons/DocIcon.svg +1 -1
- package/src/icons/DocumentTextIcon.svg +2 -2
- package/src/icons/EmptyWalletChangeIcon.svg +3 -3
- package/src/icons/EmptyWalletIcon.svg +2 -2
- package/src/icons/GlobalIcon.svg +1 -5
- package/src/icons/GpsIcon.svg +6 -6
- package/src/icons/GridIcon.svg +1 -1
- package/src/icons/InterestIcon.svg +1 -6
- package/src/icons/MasterCardIcon.svg +1 -5
- package/src/icons/MinusIcon.svg +1 -3
- package/src/icons/MoneyIcon.svg +1 -5
- package/src/icons/MonitorMobileIcon.svg +1 -4
- package/src/icons/OfficeIcon.svg +1 -1
- package/src/icons/PercentageRoundIcon.svg +1 -4
- package/src/icons/PercentageSquareIcon.svg +1 -1
- package/src/icons/PersonalCardIcon.svg +1 -4
- package/src/icons/PlayMarketIcon.svg +1 -3
- package/src/icons/PlusIcon.svg +1 -3
- package/src/icons/Profile2UserIcon.svg +1 -6
- package/src/icons/RoundRubleIcon.svg +1 -5
- package/src/icons/SafeIcon.svg +1 -7
- package/src/icons/ShieldTickIcon.svg +1 -4
- package/src/icons/SmallClockIcon.svg +1 -4
- package/src/icons/UserTickIcon.svg +1 -5
- package/src/icons/WalletAdd2Icon.svg +1 -6
- package/src/icons/WalletAddIcon.svg +1 -7
- package/src/icons/WalletIcon.svg +1 -7
- package/src/icons/WalletWithMoneyIcon.svg +1 -5
- package/src/model/IconVersion.ts +1 -0
- package/src/model/Picture.ts +3 -0
- package/src/types.ts +5 -1
- package/src/ui-kit/Button/ButtonInner.tsx +1 -1
- package/src/ui-kit/Icon/Icon.tsx +3 -1
- package/src/ui-kit/Icon/IconProps.ts +3 -0
- package/src/ui-kit/Img/Img.mobile.tsx +11 -2
- package/src/ui-kit/Img/Img.tsx +10 -2
- package/src/ui-kit/Img/getIconVersion.tsx +3 -0
- package/src/ui-kit/Select/SelectOption.tsx +10 -7
- package/src/ui-kit/Tabs/Tabs.tsx +1 -1
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"src": "calendar/august.png",
|
|
13
13
|
"format": "webp",
|
|
14
14
|
"size": {
|
|
15
|
-
"width": 210
|
|
15
|
+
"width": 210,
|
|
16
|
+
"height": 190
|
|
16
17
|
},
|
|
17
18
|
"alt": "Пример использования «Карты для покупок в рассрочку»"
|
|
18
19
|
}
|
|
@@ -29,7 +30,8 @@
|
|
|
29
30
|
"src": "calendar/september.png",
|
|
30
31
|
"format": "webp",
|
|
31
32
|
"size": {
|
|
32
|
-
"width": 210
|
|
33
|
+
"width": 210,
|
|
34
|
+
"height": 190
|
|
33
35
|
},
|
|
34
36
|
"alt": "Пример использования «Карты для покупок в рассрочку»"
|
|
35
37
|
}
|
|
@@ -40,7 +42,8 @@
|
|
|
40
42
|
"src": "calendar/october.png",
|
|
41
43
|
"format": "webp",
|
|
42
44
|
"size": {
|
|
43
|
-
"width": 210
|
|
45
|
+
"width": 210,
|
|
46
|
+
"height": 190
|
|
44
47
|
},
|
|
45
48
|
"alt": "Пример использования «Карты для покупок в рассрочку»"
|
|
46
49
|
}
|
|
@@ -57,7 +60,8 @@
|
|
|
57
60
|
"src": "calendar/november.png",
|
|
58
61
|
"format": "webp",
|
|
59
62
|
"size": {
|
|
60
|
-
"width": 210
|
|
63
|
+
"width": 210,
|
|
64
|
+
"height": 190
|
|
61
65
|
},
|
|
62
66
|
"alt": "Пример использования «Карты для покупок в рассрочку»"
|
|
63
67
|
}
|
|
@@ -74,7 +78,8 @@
|
|
|
74
78
|
"src": "calendar/december.png",
|
|
75
79
|
"format": "webp",
|
|
76
80
|
"size": {
|
|
77
|
-
"width": 210
|
|
81
|
+
"width": 210,
|
|
82
|
+
"height": 190
|
|
78
83
|
},
|
|
79
84
|
"alt": "Пример использования «Карты для покупок в рассрочку»"
|
|
80
85
|
}
|
|
@@ -10,8 +10,8 @@ export interface GracePeriodProps extends GracePeriodContent, UniBlockProps {}
|
|
|
10
10
|
export const GracePeriod = JSX<GracePeriodProps>(
|
|
11
11
|
({ className = '', title, description, calendar, anchor = null }) => {
|
|
12
12
|
return (
|
|
13
|
-
<section className={`bg-white p-
|
|
14
|
-
<Heading headingType="
|
|
13
|
+
<section className={`font-sans bg-white p-[50px] ${className}`} id={anchor}>
|
|
14
|
+
<Heading headingType="h3" className="text-center" title={title} />
|
|
15
15
|
<div className="font-light text-base-md text-center mt-3">{description}</div>
|
|
16
16
|
{calendar ? renderCalendar(calendar) : null}
|
|
17
17
|
</section>
|
|
@@ -21,24 +21,30 @@ export const GracePeriod = JSX<GracePeriodProps>(
|
|
|
21
21
|
|
|
22
22
|
const renderCalendar = (calendar) => {
|
|
23
23
|
const colCount =
|
|
24
|
-
calendar.reduce(
|
|
24
|
+
calendar.reduce(
|
|
25
|
+
(accumulator, currentValue) =>
|
|
26
|
+
currentValue?.month?.length ? accumulator + currentValue.month.length : accumulator,
|
|
27
|
+
0,
|
|
28
|
+
) || 1;
|
|
25
29
|
const colSize = 100 / colCount;
|
|
26
30
|
|
|
27
|
-
const mappedCalendar = calendar
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
+
const mappedCalendar = calendar
|
|
32
|
+
.filter((_) => _?.month?.length)
|
|
33
|
+
.map((_) => ({
|
|
34
|
+
..._,
|
|
35
|
+
flexBasis: `${_.month.length * colSize}%`,
|
|
36
|
+
}));
|
|
31
37
|
|
|
32
38
|
return (
|
|
33
|
-
<div className="w-full flex flex-col justify-center mt-
|
|
34
|
-
<div className="flex w-full mb-3 font-light text-m-title-md
|
|
39
|
+
<div className="w-full flex flex-col justify-center mt-[54px]">
|
|
40
|
+
<div className="flex w-full mb-3 font-light text-m-title-md text-center">
|
|
35
41
|
{mappedCalendar.map((_) => renderMonthNames(_, colSize))}
|
|
36
42
|
</div>
|
|
37
43
|
<div className="flex w-full">
|
|
38
44
|
{mappedCalendar.map((_, ind) => (
|
|
39
45
|
<div
|
|
40
46
|
key={`monthItem-${ind}`}
|
|
41
|
-
className="pr-
|
|
47
|
+
className="pr-[11px] mr-3 border-r border-main-divider last:border-r-0 last:pr-0 last:mr-0"
|
|
42
48
|
style={{ flexBasis: _.flexBasis }}
|
|
43
49
|
>
|
|
44
50
|
<div className="flex">{renderMonthImages(_)}</div>
|
|
@@ -64,7 +70,7 @@ const renderMonthImages = (item) =>
|
|
|
64
70
|
_.image?.src ? (
|
|
65
71
|
<div
|
|
66
72
|
key={`monthImage-${_.image.src}`}
|
|
67
|
-
className="
|
|
73
|
+
className="h-[207px] border-r-[1px] pr-3 mr-3 border-main-divider last:border-r-0 last:pr-0 last:mr-0"
|
|
68
74
|
>
|
|
69
75
|
<Img image={_.image} className="flex" />
|
|
70
76
|
</div>
|
|
@@ -1,10 +1,19 @@
|
|
|
1
|
-
import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
|
|
2
1
|
import type { Picture } from '../../model/Picture';
|
|
3
2
|
|
|
4
3
|
interface Month {
|
|
5
4
|
/** @title Название месяца */
|
|
6
5
|
name?: string;
|
|
7
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* @title Изображение календарного месяца
|
|
8
|
+
* @default
|
|
9
|
+
* {
|
|
10
|
+
* format: "webp",
|
|
11
|
+
* size: {
|
|
12
|
+
* width: 210,
|
|
13
|
+
* height: 190
|
|
14
|
+
* }
|
|
15
|
+
* }
|
|
16
|
+
*/
|
|
8
17
|
image?: Picture;
|
|
9
18
|
}
|
|
10
19
|
|
|
@@ -20,7 +29,9 @@ interface CalendarItem {
|
|
|
20
29
|
/**
|
|
21
30
|
* @title Льготный период
|
|
22
31
|
*/
|
|
23
|
-
export interface GracePeriodContent
|
|
32
|
+
export interface GracePeriodContent {
|
|
33
|
+
/** @title Заголовок */
|
|
34
|
+
title?: string;
|
|
24
35
|
/** @title Описание */
|
|
25
36
|
description?: string;
|
|
26
37
|
/** @title Календарь */
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type {
|
|
2
|
+
import type { LinkProps } from '../../model/LinkProps';
|
|
3
3
|
|
|
4
|
-
export interface NavigatorTabItemProps extends
|
|
4
|
+
export interface NavigatorTabItemProps extends LinkProps {
|
|
5
5
|
active?: boolean;
|
|
6
6
|
className?: string;
|
|
7
7
|
onClick?: (ev: MouseEvent) => void;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
const TEXT_CLASSES = 'font-sans font-normal text-
|
|
10
|
+
const TEXT_CLASSES = 'font-sans font-normal text-m-md';
|
|
11
11
|
const LINK_CLASSES = 'flex-1 flex items-center justify-center cursor-pointer';
|
|
12
12
|
|
|
13
13
|
export const NavigatorTabItem = JSX<NavigatorTabItemProps>(
|
|
14
|
-
({ className = '',
|
|
14
|
+
({ className = '', text, active, children, onClick, href, target = '_self' }) => (
|
|
15
15
|
<a className={getLinkClasses(className, active)} target={target} href={href} onClick={onClick}>
|
|
16
|
-
<span className={getTextClasses(active)}>{
|
|
16
|
+
<span className={getTextClasses(active)}>{text || children}</span>
|
|
17
17
|
</a>
|
|
18
18
|
),
|
|
19
19
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"navigatorTabs": [
|
|
3
|
-
{ "
|
|
4
|
-
{ "
|
|
5
|
-
{ "
|
|
3
|
+
{ "text": "Таб 1", "href": "", "target": "_self" },
|
|
4
|
+
{ "text": "Таб 2", "href": "", "target": "_self" },
|
|
5
|
+
{ "text": "Таб 3", "href": "", "target": "_self" }
|
|
6
6
|
]
|
|
7
7
|
}
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { context } from '../../setup-fixture';
|
|
2
2
|
import { NavigatorTabs } from './NavigatorTabs';
|
|
3
3
|
import tabsExample from './NavigatorTabs.example.json';
|
|
4
|
+
import type { NavigatorTabsContent } from './NavigatorTabsContent';
|
|
4
5
|
|
|
5
6
|
export default {
|
|
6
7
|
default: (
|
|
7
8
|
<div className="container grid grid-cols-12">
|
|
8
|
-
<NavigatorTabs
|
|
9
|
+
<NavigatorTabs
|
|
10
|
+
context={context}
|
|
11
|
+
className="col-span-12"
|
|
12
|
+
{...(tabsExample as NavigatorTabsContent)}
|
|
13
|
+
/>
|
|
9
14
|
</div>
|
|
10
15
|
),
|
|
11
16
|
};
|
|
@@ -1,29 +1,33 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useLink } from '../../hooks/useLink';
|
|
3
|
+
import { LinkProps } from '../../model/LinkProps';
|
|
2
4
|
import type { UniBlockProps } from '../../types';
|
|
3
|
-
import { getHash
|
|
4
|
-
import type {
|
|
5
|
+
import { getHash } from '../../utils/url';
|
|
6
|
+
import type { ContentPageContext } from '../ContentPage/ContentPageContext';
|
|
5
7
|
import { NavigatorTabItem } from './NavigatorTabItem';
|
|
6
|
-
import type {
|
|
8
|
+
import type { NavigatorTabsContent } from './NavigatorTabsContent';
|
|
7
9
|
|
|
8
10
|
export interface TabsBlockProps extends UniBlockProps, NavigatorTabsContent {}
|
|
9
11
|
|
|
10
12
|
export const NavigatorTabs = JSX<TabsBlockProps>(
|
|
11
13
|
({ className = '', navigatorTabs, context, anchor = null }) => {
|
|
12
|
-
const router = context.useRouter();
|
|
13
14
|
const href = globalThis.location?.href; // TODO: remove globalThis, use href from router
|
|
14
15
|
|
|
15
16
|
return (
|
|
16
17
|
<section
|
|
17
|
-
className={`sticky top-0 z-20 box-border flex gap-x-1 h-
|
|
18
|
+
className={`sticky top-0 z-20 box-border flex gap-x-1 h-14 ${className}`}
|
|
18
19
|
id={anchor}
|
|
19
20
|
>
|
|
20
|
-
{navigatorTabs ? navigatorTabs.map(renderTab(
|
|
21
|
+
{navigatorTabs ? navigatorTabs.map(renderTab(context, href)) : null}
|
|
21
22
|
</section>
|
|
22
23
|
);
|
|
23
24
|
},
|
|
24
25
|
);
|
|
25
26
|
|
|
26
|
-
const renderTab = (
|
|
27
|
+
const renderTab = (context: ContentPageContext, href?: string) => (tab: LinkProps, i: number) => {
|
|
28
|
+
const { useRouter, handlerDecorator } = context;
|
|
29
|
+
const router = useRouter();
|
|
30
|
+
|
|
27
31
|
const hash = getHash(href);
|
|
28
32
|
const active = hash ? tab.href === hash : i === 0;
|
|
29
33
|
|
|
@@ -31,14 +35,7 @@ const renderTab = (href?: string, router?: Router) => (tab: NavigatorTab, i: num
|
|
|
31
35
|
<NavigatorTabItem
|
|
32
36
|
key={tab.href}
|
|
33
37
|
active={active}
|
|
34
|
-
|
|
35
|
-
{...tab}
|
|
38
|
+
{...useLink({ router, handlerDecorator }, tab)}
|
|
36
39
|
/>
|
|
37
40
|
);
|
|
38
41
|
};
|
|
39
|
-
|
|
40
|
-
const handleRoute = (router?: Router, href?: string) => {
|
|
41
|
-
if (isURL(href)) return; // if href if full URL - move to HTML href action, do not touch router
|
|
42
|
-
|
|
43
|
-
router?.replace(href || '');
|
|
44
|
-
};
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @title Таб
|
|
3
|
-
*/
|
|
4
|
-
export interface NavigatorTab {
|
|
5
|
-
/** @title Название */
|
|
6
|
-
label?: string;
|
|
7
|
-
/** @title Якорь */
|
|
8
|
-
href?: string;
|
|
9
|
-
/** @title Таргет (target) */
|
|
10
|
-
target?: string;
|
|
11
|
-
}
|
|
1
|
+
import type { LinkProps } from '../../model/LinkProps';
|
|
12
2
|
|
|
13
3
|
/**
|
|
14
4
|
* @title Блок табов
|
|
@@ -18,5 +8,5 @@ export interface NavigatorTabsContent {
|
|
|
18
8
|
* @title Список табов
|
|
19
9
|
* @minItems 3
|
|
20
10
|
*/
|
|
21
|
-
navigatorTabs?:
|
|
11
|
+
navigatorTabs?: LinkProps[];
|
|
22
12
|
}
|
|
@@ -19,7 +19,7 @@ const benefits: Benefit[] = [
|
|
|
19
19
|
{
|
|
20
20
|
label: 'До 5 млн ₽',
|
|
21
21
|
description: 'Кредитный лимит',
|
|
22
|
-
icon: { icon: 'EmptyWalletIcon' },
|
|
22
|
+
icon: { icon: 'EmptyWalletIcon', iconVersion: 'white' },
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
label: 'От 16,9%',
|
|
@@ -48,6 +48,15 @@ const buttons: ButtonWithIconProps[] = [
|
|
|
48
48
|
},
|
|
49
49
|
];
|
|
50
50
|
|
|
51
|
+
const buttonsSecond: ButtonWithIconProps[] = [
|
|
52
|
+
{
|
|
53
|
+
href: 'https://rshb.ru',
|
|
54
|
+
text: 'Подробнее',
|
|
55
|
+
target: '_blank',
|
|
56
|
+
version: 'secondary',
|
|
57
|
+
},
|
|
58
|
+
];
|
|
59
|
+
|
|
51
60
|
const items = [
|
|
52
61
|
'Совершайте любые личные покупки',
|
|
53
62
|
'Используйте корпоративную карту как обычную дебетовую, если вы ИП',
|
|
@@ -70,6 +79,18 @@ export const PRODUCT_BLOCK: ProductBlockContent = {
|
|
|
70
79
|
export default {
|
|
71
80
|
default: (
|
|
72
81
|
<div className="container grid grid-cols-12">
|
|
82
|
+
<ProductBlock
|
|
83
|
+
className="col-span-12"
|
|
84
|
+
context={context}
|
|
85
|
+
backwardButton={backwardButton}
|
|
86
|
+
headingType="h1"
|
|
87
|
+
title="Потребительский кредит наличными"
|
|
88
|
+
description="Кредит наличными без залога и поручительства. Потребительский кредит на любые цели. Нужен только паспорт."
|
|
89
|
+
benefits={benefits}
|
|
90
|
+
buttons={buttons}
|
|
91
|
+
image={image}
|
|
92
|
+
/>
|
|
93
|
+
|
|
73
94
|
<ProductBlock
|
|
74
95
|
className="col-span-12"
|
|
75
96
|
context={context}
|
|
@@ -77,6 +98,18 @@ export default {
|
|
|
77
98
|
headingType="h2"
|
|
78
99
|
description="Кредит наличными без залога и поручительства. Потребительский кредит на любые цели. Нужен только паспорт."
|
|
79
100
|
benefits={benefits}
|
|
101
|
+
benefitsVersion="white"
|
|
102
|
+
buttons={buttons}
|
|
103
|
+
image={image}
|
|
104
|
+
/>
|
|
105
|
+
<ProductBlock className="col-span-12" context={context} {...PRODUCT_BLOCK} image={image} />
|
|
106
|
+
<ProductBlock className="col-span-12" context={context} {...PRODUCT_BLOCK} />
|
|
107
|
+
<ProductBlock
|
|
108
|
+
className="col-span-12"
|
|
109
|
+
context={context}
|
|
110
|
+
title="Потребительский кредит наличными"
|
|
111
|
+
description="Кредит наличными без залога и поручительства. Потребительский кредит на любые цели. Нужен только паспорт."
|
|
112
|
+
benefits={benefits}
|
|
80
113
|
buttons={buttons}
|
|
81
114
|
image={image}
|
|
82
115
|
/>
|
|
@@ -85,48 +118,52 @@ export default {
|
|
|
85
118
|
secondary: (
|
|
86
119
|
<div className="container grid grid-cols-12">
|
|
87
120
|
<ProductBlock
|
|
121
|
+
className="col-span-12"
|
|
88
122
|
context={context}
|
|
123
|
+
backwardButton={backwardButton}
|
|
124
|
+
headingType="h1"
|
|
125
|
+
title="Потребительский кредит наличными"
|
|
126
|
+
description="Кредит наличными без залога и поручительства. Потребительский кредит на любые цели. Нужен только паспорт."
|
|
127
|
+
benefits={benefits}
|
|
128
|
+
buttons={buttonsSecond}
|
|
129
|
+
image={image}
|
|
130
|
+
version="secondary"
|
|
131
|
+
/>
|
|
132
|
+
|
|
133
|
+
<ProductBlock
|
|
89
134
|
className="col-span-12"
|
|
135
|
+
context={context}
|
|
90
136
|
title="Потребительский кредит наличными"
|
|
91
137
|
headingType="h2"
|
|
92
|
-
version="secondary"
|
|
93
138
|
description="Кредит наличными без залога и поручительства. Потребительский кредит на любые цели. Нужен только паспорт."
|
|
94
139
|
benefits={benefits}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
href: 'https://rshb.ru',
|
|
98
|
-
text: 'Подробнее',
|
|
99
|
-
target: '_blank',
|
|
100
|
-
version: 'secondary',
|
|
101
|
-
},
|
|
102
|
-
]}
|
|
103
|
-
items={items}
|
|
140
|
+
benefitsVersion="white"
|
|
141
|
+
buttons={buttonsSecond}
|
|
104
142
|
image={image}
|
|
143
|
+
version="secondary"
|
|
144
|
+
/>
|
|
145
|
+
<ProductBlock
|
|
146
|
+
className="col-span-12"
|
|
147
|
+
context={context}
|
|
148
|
+
{...PRODUCT_BLOCK}
|
|
149
|
+
image={image}
|
|
150
|
+
version="secondary"
|
|
151
|
+
/>
|
|
152
|
+
<ProductBlock
|
|
153
|
+
className="col-span-12"
|
|
154
|
+
context={context}
|
|
155
|
+
{...PRODUCT_BLOCK}
|
|
156
|
+
version="secondary"
|
|
105
157
|
/>
|
|
106
|
-
</div>
|
|
107
|
-
),
|
|
108
|
-
'with items': (
|
|
109
|
-
<div className="container grid grid-cols-12">
|
|
110
|
-
<ProductBlock className="col-span-12" context={context} {...PRODUCT_BLOCK} image={image} />
|
|
111
|
-
</div>
|
|
112
|
-
),
|
|
113
|
-
'without image': (
|
|
114
|
-
<div className="container grid grid-cols-12">
|
|
115
|
-
<ProductBlock className="col-span-12" context={context} {...PRODUCT_BLOCK} />
|
|
116
|
-
</div>
|
|
117
|
-
),
|
|
118
|
-
'default-h1': (
|
|
119
|
-
<div className="container grid grid-cols-12">
|
|
120
158
|
<ProductBlock
|
|
121
159
|
className="col-span-12"
|
|
122
160
|
context={context}
|
|
123
161
|
title="Потребительский кредит наличными"
|
|
124
|
-
headingType="h1"
|
|
125
162
|
description="Кредит наличными без залога и поручительства. Потребительский кредит на любые цели. Нужен только паспорт."
|
|
126
163
|
benefits={benefits}
|
|
127
|
-
buttons={
|
|
164
|
+
buttons={buttonsSecond}
|
|
128
165
|
image={image}
|
|
129
|
-
|
|
166
|
+
version="secondary"
|
|
130
167
|
/>
|
|
131
168
|
</div>
|
|
132
169
|
),
|
|
@@ -5,8 +5,15 @@ import type { DescriptionContent } from '../../ui-kit/Description/DescriptionCon
|
|
|
5
5
|
import type { HeadingContent, HeadingTypeContent } from '../../ui-kit/Heading/HeadingContent';
|
|
6
6
|
import type { ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
7
7
|
import type { ListContent } from '../../ui-kit/List/ListContent';
|
|
8
|
+
import type { IconVersion } from '../../model/IconVersion';
|
|
8
9
|
import type { Benefit } from '../BenefitsBlock/BenefitsBlockContent';
|
|
9
10
|
|
|
11
|
+
export type BenefitItemProps = {
|
|
12
|
+
benefit: Benefit;
|
|
13
|
+
version?: BlockVersion;
|
|
14
|
+
benefitsVersion?: IconVersion;
|
|
15
|
+
};
|
|
16
|
+
|
|
10
17
|
export type ProductBlockInnerContent = HeadingContent &
|
|
11
18
|
HeadingTypeContent &
|
|
12
19
|
DescriptionContent &
|
|
@@ -19,6 +26,7 @@ export type ProductBlockInnerContent = HeadingContent &
|
|
|
19
26
|
* @maxItems 3
|
|
20
27
|
*/
|
|
21
28
|
benefits?: Benefit[];
|
|
29
|
+
benefitsVersion?: IconVersion;
|
|
22
30
|
version?: BlockVersion;
|
|
23
31
|
/**
|
|
24
32
|
* @title Буллиты
|
|
@@ -20,6 +20,7 @@ export const ProductBlockInner = JSX<ProductBlockInnerProps>(
|
|
|
20
20
|
headingType = 'h2',
|
|
21
21
|
description,
|
|
22
22
|
benefits,
|
|
23
|
+
benefitsVersion = 'normal',
|
|
23
24
|
buttons,
|
|
24
25
|
image,
|
|
25
26
|
items,
|
|
@@ -56,7 +57,11 @@ export const ProductBlockInner = JSX<ProductBlockInnerProps>(
|
|
|
56
57
|
<Description className="mt-3 text-m-md" description={description} />
|
|
57
58
|
) : null}
|
|
58
59
|
{benefits?.filter((items) => items.label)?.length ? (
|
|
59
|
-
<div className="mt-3">
|
|
60
|
+
<div className="mt-3">
|
|
61
|
+
{benefits.map((benefit, i) =>
|
|
62
|
+
renderBenefit({ benefit, version, benefitsVersion }, i),
|
|
63
|
+
)}
|
|
64
|
+
</div>
|
|
60
65
|
) : null}
|
|
61
66
|
{items?.length ? (
|
|
62
67
|
<List
|
|
@@ -19,6 +19,7 @@ export const ProductBlockInner = JSX<ProductBlockInnerProps>(
|
|
|
19
19
|
headingType = 'h2',
|
|
20
20
|
description,
|
|
21
21
|
benefits,
|
|
22
|
+
benefitsVersion = 'normal',
|
|
22
23
|
buttons,
|
|
23
24
|
image,
|
|
24
25
|
items,
|
|
@@ -43,7 +44,9 @@ export const ProductBlockInner = JSX<ProductBlockInnerProps>(
|
|
|
43
44
|
)}
|
|
44
45
|
{benefits?.filter((items) => items.label)?.length ? (
|
|
45
46
|
<div className="flex gap-6 mt-6">
|
|
46
|
-
{benefits.map((
|
|
47
|
+
{benefits.map((benefit, i) =>
|
|
48
|
+
renderBenefit({ benefit, version, benefitsVersion }, i),
|
|
49
|
+
)}
|
|
47
50
|
</div>
|
|
48
51
|
) : null}
|
|
49
52
|
{items?.length ? (
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
2
2
|
import { Img } from '../../ui-kit/Img/Img';
|
|
3
|
-
import type {
|
|
3
|
+
import type { BenefitItemProps } from './ProductBlockContent';
|
|
4
4
|
|
|
5
5
|
const benefitTitleStyleMap: Record<BlockVersion, string> = {
|
|
6
6
|
primary: 'text-primary-text',
|
|
@@ -11,13 +11,14 @@ const benefitDescStyleMap: Record<BlockVersion, string> = {
|
|
|
11
11
|
secondary: 'text-white',
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
-
export function renderBenefit(benefit:
|
|
14
|
+
export function renderBenefit({ benefit, version = 'primary' }: BenefitItemProps, i: number) {
|
|
15
|
+
const isIconWhite = version === 'secondary';
|
|
15
16
|
return (
|
|
16
17
|
<div key={String(i)} className="flex gap-3 items-center mb-2.5 last:mb-0">
|
|
17
18
|
{benefit.icon ? (
|
|
18
19
|
<Img
|
|
19
|
-
className=
|
|
20
|
-
image={benefit
|
|
20
|
+
className={renderBenefitIconBgStyle(version)}
|
|
21
|
+
image={{ ...benefit?.icon, iconVersion: isIconWhite ? 'white' : 'normal' }}
|
|
21
22
|
width="24"
|
|
22
23
|
height="24"
|
|
23
24
|
asSVG
|
|
@@ -34,3 +35,13 @@ export function renderBenefit(benefit: Benefit, i: number, version: BlockVersion
|
|
|
34
35
|
</div>
|
|
35
36
|
);
|
|
36
37
|
}
|
|
38
|
+
|
|
39
|
+
function renderBenefitIconBgStyle(version) {
|
|
40
|
+
let bgColorStyle = 'text-primary-main';
|
|
41
|
+
|
|
42
|
+
if (version === 'secondary') {
|
|
43
|
+
bgColorStyle = 'text-black';
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
return `w-6 h-6 rounded-full box-border ${bgColorStyle}`;
|
|
47
|
+
}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
2
2
|
import { Img } from '../../ui-kit/Img/Img';
|
|
3
|
-
import
|
|
3
|
+
import { BenefitItemProps } from './ProductBlockContent';
|
|
4
4
|
|
|
5
|
-
const benefitIconBgStyleMap: Record<BlockVersion, string> = {
|
|
6
|
-
primary: 'bg-primary-main',
|
|
7
|
-
secondary: 'bg-white/30',
|
|
8
|
-
};
|
|
9
5
|
const benefitTitleStyleMap: Record<BlockVersion, string> = {
|
|
10
6
|
primary: 'text-primary-text',
|
|
11
7
|
secondary: 'text-white',
|
|
@@ -15,13 +11,17 @@ const benefitDescStyleMap: Record<BlockVersion, string> = {
|
|
|
15
11
|
secondary: 'text-white',
|
|
16
12
|
};
|
|
17
13
|
|
|
18
|
-
export function renderBenefit(
|
|
14
|
+
export function renderBenefit(
|
|
15
|
+
{ benefit, version = 'primary', benefitsVersion = 'normal' }: BenefitItemProps,
|
|
16
|
+
i: number,
|
|
17
|
+
) {
|
|
18
|
+
const isIconWhite = benefitsVersion === 'white' || version === 'secondary';
|
|
19
19
|
return (
|
|
20
20
|
<div key={String(i)} className="flex gap-4 items-center">
|
|
21
21
|
{benefit.icon ? (
|
|
22
22
|
<Img
|
|
23
|
-
className={
|
|
24
|
-
image={benefit
|
|
23
|
+
className={renderBenefitIconBgStyle(version, benefitsVersion)}
|
|
24
|
+
image={{ ...benefit?.icon, iconVersion: isIconWhite ? 'white' : 'normal' }}
|
|
25
25
|
width="24"
|
|
26
26
|
height="24"
|
|
27
27
|
asSVG
|
|
@@ -38,3 +38,15 @@ export function renderBenefit(benefit: Benefit, i: number, version: string) {
|
|
|
38
38
|
</div>
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
|
+
|
|
42
|
+
function renderBenefitIconBgStyle(version, benefitsVersion) {
|
|
43
|
+
let bgColorStyle = 'bg-primary-main text-black';
|
|
44
|
+
|
|
45
|
+
if (version === 'secondary') {
|
|
46
|
+
bgColorStyle = 'bg-white/30 text-black';
|
|
47
|
+
} else if (benefitsVersion === 'normal') {
|
|
48
|
+
bgColorStyle = 'bg-secondary-light text-primary-main';
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
return `w-[50px] h-[50px] min-w-[50px] min-h-[50px] rounded-full p-[10px] box-border ${bgColorStyle}`;
|
|
52
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { context } from '../../setup-fixture';
|
|
2
2
|
|
|
3
|
-
import { ProductTile } from './ProductTile';
|
|
4
3
|
import type { Picture } from '../../model/Picture';
|
|
5
|
-
import type { ProductTileContent } from './ProductTileContent';
|
|
6
4
|
import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
|
|
5
|
+
import { ProductTile } from './ProductTile';
|
|
6
|
+
import type { ProductTileContent } from './ProductTileContent';
|
|
7
7
|
|
|
8
8
|
const cardWithMoney: Picture = {
|
|
9
9
|
src: 'card-with-diamond.png',
|
|
@@ -57,6 +57,7 @@ const buttonsSecondary: ButtonProps[] = [
|
|
|
57
57
|
|
|
58
58
|
export const PRODUCT_TILE: ProductTileContent = {
|
|
59
59
|
title: 'Акция! “Кредит На все, что хочется!”',
|
|
60
|
+
headingType: 'h3',
|
|
60
61
|
description: 'Потребительский кредит на любые цели, без залога и поручительства',
|
|
61
62
|
benefits,
|
|
62
63
|
buttons: buttons,
|
|
@@ -64,6 +65,7 @@ export const PRODUCT_TILE: ProductTileContent = {
|
|
|
64
65
|
};
|
|
65
66
|
export const PRODUCT_PENSION_TILE: ProductTileContent = {
|
|
66
67
|
title: 'Кредит пенсионный',
|
|
68
|
+
headingType: 'h3',
|
|
67
69
|
description: 'Для людей в возрасте до 75 лет',
|
|
68
70
|
benefits,
|
|
69
71
|
buttons: buttonsSecondary,
|
|
@@ -81,6 +83,7 @@ export default {
|
|
|
81
83
|
context={context}
|
|
82
84
|
className="col-span-6"
|
|
83
85
|
title="Акция! “Пенсионный кредит”"
|
|
86
|
+
headingType="h3"
|
|
84
87
|
description={'Потребительский кредит на любые цели, без залога и поручительства'}
|
|
85
88
|
benefits={benefits}
|
|
86
89
|
buttons={buttonsSecondary}
|
|
@@ -94,6 +97,7 @@ export default {
|
|
|
94
97
|
context={context}
|
|
95
98
|
className="col-span-8"
|
|
96
99
|
title="Кредит под залог недвижимости"
|
|
100
|
+
headingType="h3"
|
|
97
101
|
description={'Без переоформления залогой недвижимости на банк'}
|
|
98
102
|
benefits={benefits}
|
|
99
103
|
buttons={buttonsSecondary}
|
|
@@ -107,6 +111,7 @@ export default {
|
|
|
107
111
|
context={context}
|
|
108
112
|
className="col-span-4"
|
|
109
113
|
title="Кредит пенсионный"
|
|
114
|
+
headingType="h3"
|
|
110
115
|
description={'Для людей в возрасте до 75 лет'}
|
|
111
116
|
benefits={benefits}
|
|
112
117
|
buttons={buttonsSecondary}
|