@redneckz/wildless-cms-uni-blocks 0.3.49 → 0.3.52
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 +44 -84
- 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 +3 -3
- package/dist/components/GracePeriod/GracePeriod.js.map +1 -1
- package/dist/components/NavigatorTabs/NavigatorTabItem.js +1 -1
- package/dist/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
- package/dist/components/NavigatorTabs/NavigatorTabs.js +1 -1
- package/dist/components/OtherProducts/OtherProductsContent.d.ts +2 -2
- package/dist/components/OtherProducts/OtherProductsItem.d.ts +2 -2
- package/dist/components/OtherProducts/OtherProductsItem.js +1 -1
- package/dist/components/OtherProducts/OtherProductsItem.js.map +1 -1
- 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/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/index.d.ts +0 -11
- package/dist/index.js +1 -9
- package/dist/index.js.map +1 -1
- 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/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/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 +3 -3
- package/lib/components/GracePeriod/GracePeriod.js.map +1 -1
- package/lib/components/NavigatorTabs/NavigatorTabItem.js +1 -1
- package/lib/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
- package/lib/components/NavigatorTabs/NavigatorTabs.js +1 -1
- package/lib/components/OtherProducts/OtherProductsContent.d.ts +2 -2
- package/lib/components/OtherProducts/OtherProductsItem.d.ts +2 -2
- package/lib/components/OtherProducts/OtherProductsItem.js +1 -1
- package/lib/components/OtherProducts/OtherProductsItem.js.map +1 -1
- 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/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/index.d.ts +0 -11
- package/lib/index.js +0 -4
- package/lib/index.js.map +1 -1
- 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/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 +26 -66
- 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 +3 -3
- package/mobile/dist/components/GracePeriod/GracePeriod.js.map +1 -1
- package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.js +1 -1
- package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
- package/mobile/dist/components/NavigatorTabs/NavigatorTabs.js +1 -1
- package/mobile/dist/components/OtherProducts/OtherProductsContent.d.ts +2 -2
- package/mobile/dist/components/OtherProducts/OtherProductsItem.d.ts +2 -2
- package/mobile/dist/components/OtherProducts/OtherProductsItem.js +1 -1
- package/mobile/dist/components/OtherProducts/OtherProductsItem.js.map +1 -1
- 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/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/index.d.ts +0 -11
- package/mobile/dist/index.js +1 -9
- package/mobile/dist/index.js.map +1 -1
- 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/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 +3 -3
- package/mobile/lib/components/GracePeriod/GracePeriod.js.map +1 -1
- package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.js +1 -1
- package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
- package/mobile/lib/components/NavigatorTabs/NavigatorTabs.js +1 -1
- package/mobile/lib/components/OtherProducts/OtherProductsContent.d.ts +2 -2
- package/mobile/lib/components/OtherProducts/OtherProductsItem.d.ts +2 -2
- package/mobile/lib/components/OtherProducts/OtherProductsItem.js +1 -1
- package/mobile/lib/components/OtherProducts/OtherProductsItem.js.map +1 -1
- 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/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/index.d.ts +0 -11
- package/mobile/lib/index.js +0 -4
- package/mobile/lib/index.js.map +1 -1
- 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/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 +6 -0
- package/mobile/src/components/ExchangeRateTile/CurrentLocation.tsx +1 -1
- package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +3 -3
- package/mobile/src/components/GracePeriod/GracePeriod.tsx +5 -5
- package/mobile/src/components/NavigatorTabs/NavigatorTabItem.tsx +1 -1
- package/mobile/src/components/NavigatorTabs/NavigatorTabs.example.json +3 -3
- package/mobile/src/components/NavigatorTabs/NavigatorTabs.tsx +1 -1
- package/mobile/src/components/OtherProducts/OtherProductsContent.ts +2 -2
- package/mobile/src/components/OtherProducts/OtherProductsItem.tsx +3 -3
- 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/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/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/index.ts +0 -26
- package/mobile/src/model/IconVersion.ts +1 -0
- package/mobile/src/model/Picture.ts +3 -0
- 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 +4 -9
- 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 +6 -0
- 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.tsx +5 -5
- package/src/components/NavigatorTabs/NavigatorTabItem.tsx +1 -1
- package/src/components/NavigatorTabs/NavigatorTabs.example.json +3 -3
- package/src/components/NavigatorTabs/NavigatorTabs.tsx +1 -1
- package/src/components/OtherProducts/OtherProductsContent.ts +2 -2
- package/src/components/OtherProducts/OtherProductsItem.tsx +3 -3
- 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/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/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/index.ts +0 -26
- package/src/model/IconVersion.ts +1 -0
- package/src/model/Picture.ts +3 -0
- 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
|
@@ -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>
|
|
@@ -36,7 +36,7 @@ const renderCalendar = (calendar) => {
|
|
|
36
36
|
}));
|
|
37
37
|
|
|
38
38
|
return (
|
|
39
|
-
<div className="w-full flex flex-col justify-center mt-
|
|
39
|
+
<div className="w-full flex flex-col justify-center mt-[54px]">
|
|
40
40
|
<div className="flex w-full mb-3 font-light text-m-title-md text-center">
|
|
41
41
|
{mappedCalendar.map((_) => renderMonthNames(_, colSize))}
|
|
42
42
|
</div>
|
|
@@ -44,7 +44,7 @@ const renderCalendar = (calendar) => {
|
|
|
44
44
|
{mappedCalendar.map((_, ind) => (
|
|
45
45
|
<div
|
|
46
46
|
key={`monthItem-${ind}`}
|
|
47
|
-
className="pr-
|
|
47
|
+
className="pr-[11px] mr-3 border-r border-main-divider last:border-r-0 last:pr-0 last:mr-0"
|
|
48
48
|
style={{ flexBasis: _.flexBasis }}
|
|
49
49
|
>
|
|
50
50
|
<div className="flex">{renderMonthImages(_)}</div>
|
|
@@ -70,7 +70,7 @@ const renderMonthImages = (item) =>
|
|
|
70
70
|
_.image?.src ? (
|
|
71
71
|
<div
|
|
72
72
|
key={`monthImage-${_.image.src}`}
|
|
73
|
-
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"
|
|
74
74
|
>
|
|
75
75
|
<Img image={_.image} className="flex" />
|
|
76
76
|
</div>
|
|
@@ -7,7 +7,7 @@ export interface NavigatorTabItemProps extends LinkProps {
|
|
|
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>(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"navigatorTabs": [
|
|
3
|
-
{ "text": "Таб 1", "href": "
|
|
4
|
-
{ "text": "Таб 2", "href": "
|
|
5
|
-
{ "text": "
|
|
3
|
+
{ "text": "Таб 1", "href": "", "target": "_self" },
|
|
4
|
+
{ "text": "Таб 2", "href": "", "target": "_self" },
|
|
5
|
+
{ "text": "Таб 3", "href": "", "target": "_self" }
|
|
6
6
|
]
|
|
7
7
|
}
|
|
@@ -15,7 +15,7 @@ export const NavigatorTabs = JSX<TabsBlockProps>(
|
|
|
15
15
|
|
|
16
16
|
return (
|
|
17
17
|
<section
|
|
18
|
-
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}`}
|
|
19
19
|
id={anchor}
|
|
20
20
|
>
|
|
21
21
|
{navigatorTabs ? navigatorTabs.map(renderTab(context, href)) : null}
|
|
@@ -4,7 +4,7 @@ import type { BlockDef, ColumnsCount } from '../../ui-kit/BlocksList/BlocksListP
|
|
|
4
4
|
/**
|
|
5
5
|
* @title Элемент списка
|
|
6
6
|
*/
|
|
7
|
-
export interface
|
|
7
|
+
export interface BlockItemCommonProps {
|
|
8
8
|
/**
|
|
9
9
|
* @title Название
|
|
10
10
|
* @default Список
|
|
@@ -29,6 +29,6 @@ export interface OtherProductsContent {
|
|
|
29
29
|
* @title Список
|
|
30
30
|
* @maxItems 10
|
|
31
31
|
*/
|
|
32
|
-
blockItems?:
|
|
32
|
+
blockItems?: BlockItemCommonProps[];
|
|
33
33
|
colorPalette?: ColorPalette;
|
|
34
34
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useActiveHandler } from './useActiveHandler';
|
|
3
2
|
import type { UniBlockProps } from '../../types';
|
|
4
|
-
import type { blockItemCommonProps } from './OtherProductsContent';
|
|
5
3
|
import { Icon } from '../../ui-kit/Icon/Icon';
|
|
4
|
+
import type { BlockItemCommonProps } from './OtherProductsContent';
|
|
6
5
|
import { OtherProductsItemInner } from './OtherProductsItemInner';
|
|
6
|
+
import { useActiveHandler } from './useActiveHandler';
|
|
7
7
|
|
|
8
|
-
export interface BlockItemProps extends
|
|
8
|
+
export interface BlockItemProps extends BlockItemCommonProps, UniBlockProps {}
|
|
9
9
|
|
|
10
10
|
export const OtherProductsItem = JSX<BlockItemProps>(
|
|
11
11
|
({ label, isExpanded, blocks, columns, context }) => {
|
|
@@ -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
|
+
}
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
"title": "Заголовок 1",
|
|
13
13
|
"description": "Описание 1",
|
|
14
14
|
"socialMedia": [
|
|
15
|
-
{ "href":
|
|
16
|
-
{ "href":
|
|
17
|
-
{ "href":
|
|
15
|
+
{ "href": "https://t.me" },
|
|
16
|
+
{ "href": "https://vk.com" },
|
|
17
|
+
{ "href": "https://ok.ru" }
|
|
18
18
|
]
|
|
19
19
|
},
|
|
20
20
|
{
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"title": "Заголовок 2",
|
|
29
29
|
"description": "Описание 2",
|
|
30
30
|
"socialMedia": [
|
|
31
|
-
{ "href":
|
|
32
|
-
{ "href":
|
|
33
|
-
{ "href":
|
|
31
|
+
{ "href": "https://t.me" },
|
|
32
|
+
{ "href": "https://vk.com" },
|
|
33
|
+
{ "href": "https://ok.ru" }
|
|
34
34
|
]
|
|
35
35
|
},
|
|
36
36
|
{
|
|
@@ -44,10 +44,11 @@
|
|
|
44
44
|
"title": "Заголовок 3",
|
|
45
45
|
"description": "Описание 3",
|
|
46
46
|
"socialMedia": [
|
|
47
|
-
{ "href":
|
|
48
|
-
{ "href":
|
|
49
|
-
{ "href":
|
|
47
|
+
{ "href": "https://t.me" },
|
|
48
|
+
{ "href": "https://vk.com" },
|
|
49
|
+
{ "href": "https://ok.ru" }
|
|
50
50
|
]
|
|
51
51
|
}
|
|
52
|
-
]
|
|
52
|
+
],
|
|
53
|
+
"version": "primary"
|
|
53
54
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Picture } from '../../model/Picture';
|
|
2
1
|
import type { LinkProps } from '../../model/LinkProps';
|
|
2
|
+
import type { Picture } from '../../model/Picture';
|
|
3
3
|
import { context } from '../../setup-fixture';
|
|
4
4
|
import { Recommendation, RecommendationProps } from './Recommendation';
|
|
5
5
|
|
|
@@ -68,11 +68,11 @@ export default {
|
|
|
68
68
|
default: (
|
|
69
69
|
<div>
|
|
70
70
|
<div className="container grid grid-cols-12" data-theme="pc">
|
|
71
|
-
<Recommendation className="col-span-12 mb-1" version="secondary"
|
|
71
|
+
<Recommendation className="col-span-12 mb-1" {...defaultProps} version="secondary" />
|
|
72
72
|
</div>
|
|
73
73
|
|
|
74
74
|
<div className="container grid grid-cols-12" data-theme="bc">
|
|
75
|
-
<Recommendation className="col-span-12 mb-1" version="secondary"
|
|
75
|
+
<Recommendation className="col-span-12 mb-1" {...defaultProps} version="secondary" />
|
|
76
76
|
</div>
|
|
77
77
|
|
|
78
78
|
<div className="container grid grid-cols-12 mb-1">
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { BlockVersion } from '../../model/BlockVersion';
|
|
2
3
|
import type { UniBlockProps } from '../../types';
|
|
3
4
|
import { Description } from '../../ui-kit/Description/Description';
|
|
4
5
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
@@ -8,13 +9,15 @@ import { BaseTile } from '../BaseTile/BaseTile';
|
|
|
8
9
|
import { SocialMedia } from '../Footer/SocialMedia';
|
|
9
10
|
import type { RecommendationCardTypes } from './RecommendationContent';
|
|
10
11
|
|
|
11
|
-
export interface RecommendationCardProps extends RecommendationCardTypes, UniBlockProps {
|
|
12
|
+
export interface RecommendationCardProps extends RecommendationCardTypes, UniBlockProps {
|
|
13
|
+
version?: BlockVersion;
|
|
14
|
+
}
|
|
12
15
|
|
|
13
16
|
export const RecommendationCard = JSX<RecommendationCardProps>(
|
|
14
17
|
({ context, className = '', title, description, items, image, version, socialMedia }) => {
|
|
15
18
|
return (
|
|
16
19
|
<section
|
|
17
|
-
className={`border border-solid box-border
|
|
20
|
+
className={`border border-solid box-border p-[30px] w-[524px] ${className}`}
|
|
18
21
|
role="listitem"
|
|
19
22
|
>
|
|
20
23
|
<BaseTile
|
|
@@ -30,7 +33,7 @@ export const RecommendationCard = JSX<RecommendationCardProps>(
|
|
|
30
33
|
{description ? <Description className="text-left" description={description} /> : null}
|
|
31
34
|
{items?.length ? (
|
|
32
35
|
<List
|
|
33
|
-
className="text-md font-light flex flex-col gap-2"
|
|
36
|
+
className="text-md text-left font-light flex flex-col flex-1 gap-2"
|
|
34
37
|
items={items}
|
|
35
38
|
version={version}
|
|
36
39
|
/>
|
|
@@ -5,11 +5,18 @@ import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
|
|
|
5
5
|
import type { ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
6
6
|
import type { ListContent } from '../../ui-kit/List/ListContent';
|
|
7
7
|
|
|
8
|
-
export
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
export interface RecommendationCardTypes
|
|
9
|
+
extends HeadingContent,
|
|
10
|
+
DescriptionContent,
|
|
11
|
+
ListContent,
|
|
12
|
+
ImageContent {
|
|
13
|
+
/**
|
|
14
|
+
* @title Соц сети
|
|
15
|
+
* @minItems 3
|
|
16
|
+
*/
|
|
17
|
+
socialMedia?: LinkProps[];
|
|
18
|
+
}
|
|
19
|
+
|
|
13
20
|
/**
|
|
14
21
|
* @title Рекомендации
|
|
15
22
|
*/
|
|
@@ -17,9 +24,4 @@ export interface RecommendationContent extends HeadingContent {
|
|
|
17
24
|
/** @title Карточки */
|
|
18
25
|
recommendations?: RecommendationCardTypes[];
|
|
19
26
|
version?: BlockVersion;
|
|
20
|
-
/**
|
|
21
|
-
* @title Ссылка
|
|
22
|
-
* @minItems 3
|
|
23
|
-
*/
|
|
24
|
-
socialMedia?: LinkProps[];
|
|
25
27
|
}
|
package/src/icons/AppleIcon.svg
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
<svg title="Лого «Apple»" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 24"
|
|
1
|
+
<svg title="Лого «Apple»" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 24">
|
|
2
|
+
<path d="M18.406 12.761c-.023-3.028 2.793-4.511 2.93-4.572-1.603-2.073-4.075-2.357-4.968-2.377-2.083-.204-4.098 1.117-5.174 1.117-1.076 0-2.725-1.097-4.488-1.056-2.266.04-4.395 1.198-5.563 3.007-2.404 3.698-.618 9.124 1.694 12.09 1.145 1.464 2.496 3.09 4.259 3.028 1.717-.06 2.358-.975 4.441-.975 2.06 0 2.656.975 4.465.935 1.854-.02 3.022-1.463 4.12-2.947 1.329-1.666 1.855-3.332 1.878-3.413 0 0-3.549-1.2-3.594-4.837Zm-3.389-8.92c.916-1.037 1.557-2.419 1.374-3.841-1.35.061-3.022.833-3.984 1.829-.847.894-1.625 2.337-1.42 3.698 1.512.102 3.069-.67 4.03-1.686Z" fill="currentColor"/>
|
|
3
|
+
</svg>
|
package/src/icons/BurgerIcon.svg
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<svg title="Бургер" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M3 6H21" stroke="
|
|
3
|
-
<path d="M9.49023 12H21.0002" stroke="
|
|
4
|
-
<path d="M3 12H5.99" stroke="
|
|
5
|
-
<path d="M3 18H21" stroke="
|
|
2
|
+
<path d="M3 6H21" stroke="#000000" stroke-width="2" stroke-linecap="round"/>
|
|
3
|
+
<path d="M9.49023 12H21.0002" stroke="#000000" stroke-width="2" stroke-linecap="round"/>
|
|
4
|
+
<path d="M3 12H5.99" stroke="#000000" stroke-width="2" stroke-linecap="round"/>
|
|
5
|
+
<path d="M3 18H21" stroke="#000000" stroke-width="2" stroke-linecap="round"/>
|
|
6
6
|
</svg>
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
<svg title="Календарь 2" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"
|
|
1
|
+
<svg title="Календарь 2" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M3.5 9.09h17" stroke="currentColor" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
+
<path d="M3 13.01V8.5c0-3 1.5-5 5-5h8c3.5 0 5 2 5 5V17c0 3-1.5 5-5 5H8c-3.5 0-5-2-5-5" stroke="#000000" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
<path d="M11.995 13.7h.01M8.294 13.7h.01M8.294 16.7h.01" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5
|
+
<path d="M8 2v3M16 2v3" stroke="currentColor" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6
|
+
</svg>
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
<svg title="Скруглённый календарь" fill="none" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M9.89 5.83v2M14.11 5.83v2M7.53 10.14h8.94M13.5 17.67h-3c-2.5 0-4-1.8-4-4v-3c0-2.2 1.5-4 4-4h3c2.5 0 4 1.8 4 4v3c0 2.2-1.5 4-4 4Z" stroke="currentColor" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
-
<path d="M4 6c-1.25 1.67-2 3.75-2 6 0 5.52 4.48 10 10 10s10-4.48 10-10S17.52 2 12 2c-1.43 0-2.8.3-4.03.85" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
-
</svg>
|
|
1
|
+
<svg title="Скруглённый календарь" fill="none" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M9.89 5.83v2M14.11 5.83v2M7.53 10.14h8.94M13.5 17.67h-3c-2.5 0-4-1.8-4-4v-3c0-2.2 1.5-4 4-4h3c2.5 0 4 1.8 4 4v3c0 2.2-1.5 4-4 4Z" stroke="currentColor" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/><path d="M4 6c-1.25 1.67-2 3.75-2 6 0 5.52 4.48 10 10 10s10-4.48 10-10S17.52 2 12 2c-1.43 0-2.8.3-4.03.85" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
<svg title="Календарь с галочкой" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M8 2v3M16 2v3M3.5 9.09h17M3 13.1V8.5c0-3 1.5-5 5-5h8c3.5 0 5 2 5 5v7.86c-.73-.83-1.8-1.36-3-1.36-2.21 0-4 1.79-4 4 0 .75.21 1.46.58 2.06.21.36.48.68.79.94H8c-3.5 0-5-2-5-5" stroke="currentColor" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
-
<path d="M11.995 13.7h.01M8.294 13.7h.01M8.294 16.7h.01" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
-
<path d="M22 19c0 .75-.21 1.46-.58 2.06A3.97 3.97 0 0 1 18 23c-1.01 0-1.93-.37-2.63-1-.31-.26-.58-.58-.79-.94A3.92 3.92 0 0 1 14 19c0-2.21 1.79-4 4-4 1.2 0 2.27.53 3 1.36A4 4 0 0 1 22 19Z" stroke="currentColor" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5
|
-
<path d="m16.44 19 .99.99 2.13-1.97" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6
|
-
</svg>
|
|
1
|
+
<svg title="Календарь с галочкой" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8 2v3M16 2v3M3.5 9.09h17M3 13.1V8.5c0-3 1.5-5 5-5h8c3.5 0 5 2 5 5v7.86c-.73-.83-1.8-1.36-3-1.36-2.21 0-4 1.79-4 4 0 .75.21 1.46.58 2.06.21.36.48.68.79.94H8c-3.5 0-5-2-5-5" stroke="#000000" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/><path d="M11.995 13.7h.01M8.294 13.7h.01M8.294 16.7h.01" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M22 19c0 .75-.21 1.46-.58 2.06A3.97 3.97 0 0 1 18 23c-1.01 0-1.93-.37-2.63-1-.31-.26-.58-.58-.79-.94A3.92 3.92 0 0 1 14 19c0-2.21 1.79-4 4-4 1.2 0 2.27.53 3 1.36A4 4 0 0 1 22 19Z" stroke="currentColor" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/><path d="m16.44 19 .99.99 2.13-1.97" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<svg title="Календарь белый" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
2
|
<path
|
|
3
|
-
stroke="
|
|
3
|
+
stroke="#fff"
|
|
4
4
|
stroke-width="2"
|
|
5
5
|
stroke-miterlimit="10"
|
|
6
6
|
stroke-linecap="round"
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
d="M8 2v3M16 2v3M3.5 9.09h17M3 13.01V8.5c0-3 1.5-5 5-5h8c3.5 0 5 2 5 5V17c0 3-1.5 5-5 5H8c-3.5 0-5-2-5-5"
|
|
9
9
|
/>
|
|
10
10
|
<path
|
|
11
|
-
stroke="
|
|
11
|
+
stroke="#fff"
|
|
12
12
|
stroke-width="3"
|
|
13
13
|
stroke-linecap="round"
|
|
14
14
|
stroke-linejoin="round"
|
package/src/icons/CardIcon.svg
CHANGED
|
@@ -1,5 +1 @@
|
|
|
1
|
-
<svg title="Кред. карта" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M2 8.5h20" stroke="currentColor" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
-
<path d="M6 16.5h2M10.5 16.5h4" stroke="currentColor" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
-
<path d="M22 14.99v1.12c0 3.51-.89 4.39-4.44 4.39H6.44C2.89 20.5 2 19.62 2 16.11V7.89c0-3.51.89-4.39 4.44-4.39h11.11c3.56 0 4.45.88 4.45 4.39v3.09" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5
|
-
</svg>
|
|
1
|
+
<svg title="Кред. карта" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2 8.5h20" stroke="#000000" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/><path d="M6 16.5h2M10.5 16.5h4" stroke="currentColor" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/><path d="M22 14.99v1.12c0 3.51-.89 4.39-4.44 4.39H6.44C2.89 20.5 2 19.62 2 16.11V7.89c0-3.51.89-4.39 4.44-4.39h11.11c3.56 0 4.45.88 4.45 4.39v3.09" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
|