@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
package/bundle/bundle.umd.js
CHANGED
|
@@ -395,14 +395,19 @@
|
|
|
395
395
|
}
|
|
396
396
|
})();
|
|
397
397
|
|
|
398
|
-
const Icon = JSX(({ className = '', name = '', alt = `Иконка ${IconTitleMap[name] || name}`, title = alt, asSVG, ...imgProps }) => {
|
|
398
|
+
const Icon = JSX(({ className = '', name = '', alt = `Иконка ${IconTitleMap[name] || name}`, title = alt, iconVersion, asSVG, ...imgProps }) => {
|
|
399
399
|
const href = `${projectSettings.CDN || ''}icons/${name}.svg`;
|
|
400
|
+
const svgUseStyle = iconVersion === 'white' ? 'text-black invert' : '';
|
|
400
401
|
if (asSVG) {
|
|
401
|
-
return (jsxs("svg", { className: className, ...imgProps, "aria-hidden": "true", children: [title ? jsx("title", { children: title }) : null, alt ? jsx("desc", { children: alt }) : null, jsx("use", { href: `${href}#icon`, xlinkHref: `${href}#icon` })] }));
|
|
402
|
+
return (jsxs("svg", { className: className, ...imgProps, "aria-hidden": "true", children: [title ? jsx("title", { children: title }) : null, alt ? jsx("desc", { children: alt }) : null, jsx("use", { className: svgUseStyle, href: `${href}#icon`, xlinkHref: `${href}#icon` })] }));
|
|
402
403
|
}
|
|
403
404
|
return (jsx("img", { className: className, src: href, alt: alt, title: title, ...imgProps, "aria-hidden": "true" }));
|
|
404
405
|
});
|
|
405
406
|
|
|
407
|
+
function getIconVersion(image) {
|
|
408
|
+
return typeof image === 'string' ? 'normal' : image.iconVersion || 'normal';
|
|
409
|
+
}
|
|
410
|
+
|
|
406
411
|
const Img = JSX(({ className = '', image, imageClassName = '', ...iconProps }) => {
|
|
407
412
|
if (!image) {
|
|
408
413
|
return null;
|
|
@@ -410,7 +415,7 @@
|
|
|
410
415
|
// backwards compatibility with existing icons in usage
|
|
411
416
|
const icon = typeof image === 'string' ? image : image.icon;
|
|
412
417
|
if (icon || icon === '') {
|
|
413
|
-
return icon.length ? jsx(Icon, { className: className, name: icon, ...iconProps }) : null;
|
|
418
|
+
return icon.length ? (jsx(Icon, { className: className, iconVersion: getIconVersion(image), name: icon, ...iconProps })) : null;
|
|
414
419
|
}
|
|
415
420
|
return (jsx(ImgAsPicture, { className: className, imageClassName: imageClassName, image: image }));
|
|
416
421
|
});
|
|
@@ -594,7 +599,7 @@
|
|
|
594
599
|
|
|
595
600
|
const ButtonInner = JSX((props) => {
|
|
596
601
|
const { text, aboveText, appendLeft } = props;
|
|
597
|
-
return (jsxs("div", { className: getButtonStyle(props), children: [appendLeft ? appendLeft : null, isWithText(props) ? (jsxs("div", { children: [jsx("div", { className: "text-m-2xs font-light text-left", children: aboveText }), jsx("div", { className: "text-button
|
|
602
|
+
return (jsxs("div", { className: getButtonStyle(props), children: [appendLeft ? appendLeft : null, isWithText(props) ? (jsxs("div", { children: [jsx("div", { className: "text-m-2xs font-light text-left", children: aboveText }), jsx("div", { className: "text-button text-left", children: text })] })) : null] }));
|
|
598
603
|
});
|
|
599
604
|
const getButtonStyle = (props) => {
|
|
600
605
|
const { version, aboveText, rounded } = props;
|
|
@@ -693,10 +698,6 @@
|
|
|
693
698
|
return (jsxs("div", { className: `font-sans flex flex-col grow h-full items-start ${className}`, id: anchor, children: [title, jsxs("div", { className: "flex grow w-full justify-between", children: [jsxs("div", { className: "flex flex-col justify-between w-full", children: [jsx("div", { children: children }), buttons ? jsx("div", { children: buttons }) : null] }), image] })] }));
|
|
694
699
|
});
|
|
695
700
|
|
|
696
|
-
const benefitIconBgStyleMap = {
|
|
697
|
-
primary: 'bg-primary-main',
|
|
698
|
-
secondary: 'bg-white/30',
|
|
699
|
-
};
|
|
700
701
|
const benefitTitleStyleMap = {
|
|
701
702
|
primary: 'text-primary-text',
|
|
702
703
|
secondary: 'text-white',
|
|
@@ -705,13 +706,24 @@
|
|
|
705
706
|
primary: 'text-secondary-text',
|
|
706
707
|
secondary: 'text-white',
|
|
707
708
|
};
|
|
708
|
-
function renderBenefit(benefit,
|
|
709
|
-
|
|
709
|
+
function renderBenefit({ benefit, version = 'primary', benefitsVersion = 'normal' }, i) {
|
|
710
|
+
const isIconWhite = benefitsVersion === 'white' || version === 'secondary';
|
|
711
|
+
return (jsxs("div", { className: "flex gap-4 items-center", children: [benefit.icon ? (jsx(Img, { className: renderBenefitIconBgStyle(version, benefitsVersion), image: { ...benefit?.icon, iconVersion: isIconWhite ? 'white' : 'normal' }, width: "24", height: "24", asSVG: true })) : null, jsxs("div", { className: "flex gap-0.5 flex-col h-full max-w-[149px] min-w-[149px]", children: [jsx("div", { className: `text-xl m-0 ${benefitTitleStyleMap[version]}`, children: benefit.label }), benefit.description && (jsx("div", { className: `font-light text-m-md ${benefitDescStyleMap[version]}`, children: benefit.description }))] })] }, String(i)));
|
|
712
|
+
}
|
|
713
|
+
function renderBenefitIconBgStyle(version, benefitsVersion) {
|
|
714
|
+
let bgColorStyle = 'bg-primary-main text-black';
|
|
715
|
+
if (version === 'secondary') {
|
|
716
|
+
bgColorStyle = 'bg-white/30 text-black';
|
|
717
|
+
}
|
|
718
|
+
else if (benefitsVersion === 'normal') {
|
|
719
|
+
bgColorStyle = 'bg-secondary-light text-primary-main';
|
|
720
|
+
}
|
|
721
|
+
return `w-[50px] h-[50px] min-w-[50px] min-h-[50px] rounded-full p-[10px] box-border ${bgColorStyle}`;
|
|
710
722
|
}
|
|
711
723
|
|
|
712
|
-
const ProductBlockInner = JSX(({ className = '', context, title, headingType = 'h2', description, benefits, buttons, image, items, version = 'primary', isDotted = true, textBlockClassName = '', }) => {
|
|
724
|
+
const ProductBlockInner = JSX(({ className = '', context, title, headingType = 'h2', description, benefits, benefitsVersion = 'normal', buttons, image, items, version = 'primary', isDotted = true, textBlockClassName = '', }) => {
|
|
713
725
|
const textColor = version === 'secondary' ? 'text-white' : 'text-primary-text';
|
|
714
|
-
return (jsxs("div", { className: `flex grow justify-between items-stretch ${className}`, children: [jsx("div", { className: `flex flex-col ${textBlockClassName}`, children: jsxs(BaseTile, { context: context, title: getTitle(title, headingType), buttons: getButtons(context, buttons), children: [description && (jsx(Description, { className: `mt-4 max-w-[600px] text-md font-light ${textColor}`, description: description })), benefits?.filter((items) => items.label)?.length ? (jsx("div", { className: "flex gap-6 mt-6", children: benefits.map((
|
|
726
|
+
return (jsxs("div", { className: `flex grow justify-between items-stretch ${className}`, children: [jsx("div", { className: `flex flex-col ${textBlockClassName}`, children: jsxs(BaseTile, { context: context, title: getTitle(title, headingType), buttons: getButtons(context, buttons), children: [description && (jsx(Description, { className: `mt-4 max-w-[600px] text-md font-light ${textColor}`, description: description })), benefits?.filter((items) => items.label)?.length ? (jsx("div", { className: "flex gap-6 mt-6", children: benefits.map((benefit, i) => renderBenefit({ benefit, version, benefitsVersion }, i)) })) : null, items?.length ? (jsx(List, { className: "mt-5 text-title-2xs font-light", items: items, itemClassName: "mb-[7px]", version: version, isDotted: isDotted })) : null] }) }), image?.src && jsx(Img, { className: "mt-auto", image: image })] }));
|
|
715
727
|
});
|
|
716
728
|
const getTitle = (title, headingType) => {
|
|
717
729
|
return (title && (jsx(Heading, { headingType: headingType, title: title, className: "whitespace-pre-wrap max-w-[600px]" })));
|
|
@@ -776,19 +788,6 @@
|
|
|
776
788
|
return colSpanStr ? parseInt(colSpanStr.substring(colSpanPrefix.length), 10) : 12;
|
|
777
789
|
};
|
|
778
790
|
|
|
779
|
-
function getTileHeadingType(className = '') {
|
|
780
|
-
const colSpan = getColSpan(className);
|
|
781
|
-
if (colSpan <= 4) {
|
|
782
|
-
return 'h4';
|
|
783
|
-
}
|
|
784
|
-
else if (colSpan <= 8) {
|
|
785
|
-
return 'h3';
|
|
786
|
-
}
|
|
787
|
-
else {
|
|
788
|
-
return 'h2';
|
|
789
|
-
}
|
|
790
|
-
}
|
|
791
|
-
|
|
792
791
|
function getTileMinHeight(className = '') {
|
|
793
792
|
const colSpan = getColSpan(className);
|
|
794
793
|
if (colSpan <= 6) {
|
|
@@ -820,8 +819,8 @@
|
|
|
820
819
|
secondary: 'bg-primary-main text-white',
|
|
821
820
|
};
|
|
822
821
|
const Tile = JSX((props) => {
|
|
823
|
-
const { context, title, description, items, children, buttons, image, className = '', version = 'primary', role, anchor = null, } = props;
|
|
824
|
-
return (jsx("section", { className: `overflow-hidden font-sans p-9 pr-3 box-border ${className} ${tileStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, role: role, id: anchor, children: jsxs(BaseTile, { context: context, title: title && (jsx(Heading, { headingType:
|
|
822
|
+
const { context, title, headingType = 'h3', description, items, children, buttons, image, className = '', version = 'primary', role, anchor = null, } = props;
|
|
823
|
+
return (jsx("section", { className: `overflow-hidden font-sans p-9 pr-3 box-border ${className} ${tileStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, role: role, id: anchor, children: jsxs(BaseTile, { context: context, title: title && (jsx(Heading, { headingType: headingType, as: "h3", title: title, className: `whitespace-pre-wrap max-w-[600px] ${title ? 'mb-3' : ''}
|
|
825
824
|
${version === 'primary' ? 'text-primary-text' : ''}` })), buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex mt-9 gap-3" })) : null, image: image?.src && jsx(Img, { className: "mt-auto ml-7", image: image }), children: [description && (jsx(Description, { className: "max-w-[600px] text-title-new-sm font-light", description: description })), children, renderList$1(items, version)] }) }));
|
|
826
825
|
});
|
|
827
826
|
function renderList$1(items, version) {
|
|
@@ -832,8 +831,8 @@
|
|
|
832
831
|
primary: 'bg-white text-primary-text',
|
|
833
832
|
secondary: 'bg-primary-main text-white',
|
|
834
833
|
};
|
|
835
|
-
const ProductTile = JSX(({ context, className = '', title, description, benefits, buttons, image, version = 'primary', anchor = null, }) => {
|
|
836
|
-
return (jsx("section", { className: `bg-white overflow-hidden text-primary-text font-sans p-9 box-border ${className} ${productTileStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, id: anchor, children: jsxs(BaseTile, { context: context, title: title && (jsx(Heading, { headingType:
|
|
834
|
+
const ProductTile = JSX(({ context, className = '', title, headingType = 'h3', description, benefits, buttons, image, version = 'primary', anchor = null, }) => {
|
|
835
|
+
return (jsx("section", { className: `bg-white overflow-hidden text-primary-text font-sans p-9 box-border ${className} ${productTileStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, id: anchor, children: jsxs(BaseTile, { context: context, title: title && (jsx(Heading, { headingType: headingType, as: "h3", title: title, className: `whitespace-pre-wrap max-w-[600px]` })), buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex mt-9 gap-3" })) : null, image: image?.src && jsx(Img, { className: "mt-auto ml-7", image: image }), children: [description && jsx(Description, { className: "mt-4 max-w-[600px]", description: description }), jsxs("div", { className: "flex mt-5 mb-1", children: [benefits?.length ? (jsx("div", { className: "mr-8", children: benefits.map(renderBenefitLabel) })) : null, benefits?.length ? (jsx("div", { className: "pt-1", children: benefits.map((_, i) => renderBenefitDescription(_, i, version)) })) : null] })] }) }));
|
|
837
836
|
});
|
|
838
837
|
function renderBenefitLabel(benefit, i) {
|
|
839
838
|
return (jsx("div", { className: `text-xl font-medium ${i ? 'mt-2.5' : ''}`, children: benefit.label }, String(i)));
|
|
@@ -990,9 +989,9 @@
|
|
|
990
989
|
|
|
991
990
|
const Bonus = JSX((props) => {
|
|
992
991
|
const { className = '', title, description, bonusItems, anchor = null } = props;
|
|
993
|
-
return (jsx("section", { className: `bg-white p-
|
|
992
|
+
return (jsx("section", { className: `font-sans bg-white p-[50px] pb-9 ${className}`, id: anchor, children: jsxs("div", { className: "container", children: [title ? jsx(Heading, { headingType: "h3", className: "text-center", title: title }) : null, description ? (jsx("div", { className: "text-md font-light text-center mt-[10px]", children: description })) : null, jsx("div", { className: "flex flex-wrap w-full mt-9", children: bonusItems
|
|
994
993
|
? bonusItems.map((_, i) => {
|
|
995
|
-
return (jsx("div", { className: "flex-grow w-[49%] border border-gray pl-9 pt-9 pr-6 pb-6 mb-
|
|
994
|
+
return (jsx("div", { className: "flex-grow w-[49%] border border-gray pl-9 pt-9 pr-6 pb-6 mb-[14px] mx-[7px] even:mr-0 odd:ml-0 last:odd:mx-0", children: jsxs("div", { className: "flex justify-between w-full", children: [jsxs("div", { className: "mr-4", children: [jsx("div", { className: "text-title-sm", children: _.name }), jsx("div", { className: "text-md font-light mt-[14px] max-w-[488px]", children: _.description })] }), _.bonusCount ? (jsxs("div", { className: "relative -bottom-3 h-auto flex items-end mt-14 shrink-0", children: [jsx("span", { className: "font-mohave -tracking-[5px] text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7", children: _.bonusCount }), jsx("span", { className: "text-[44px] bg-clip-text text-transparent bg-green-to-yellow", children: _.bonusName })] })) : null] }) }, String(i)));
|
|
996
995
|
})
|
|
997
996
|
: null })] }) }));
|
|
998
997
|
});
|
|
@@ -1086,7 +1085,20 @@
|
|
|
1086
1085
|
const isActive = currentTabIndex === index;
|
|
1087
1086
|
return (jsxs("div", { className: `flex h-full flex-1 cursor-pointer mr-2 last:mr-0 box-content ${isActive ? ACTIVE_TAB_STYLE : TAB_STYLE}`, role: "tab", onClick: () => onTabClick(index), "aria-selected": String(isActive), children: [tab?.icon ? renderIcon(tab, isActive) : null, jsxs("div", { children: [tab?.title ? jsx("h3", { className: "font-medium m-0 text-base", children: tab?.title }) : null, tab?.description ? (jsx("span", { className: `font-light text-xs ${isActive ? '' : 'text-secondary-text'}`, children: tab?.description })) : null] })] }, String(index)));
|
|
1088
1087
|
};
|
|
1089
|
-
const renderIcon = (tab, isActive) => (jsx("div", { className: "h-full mt-1", children: jsx(Img, { className: `w-5 h-5 mr-3 ${isActive ? 'invert
|
|
1088
|
+
const renderIcon = (tab, isActive) => (jsx("div", { className: "h-full mt-1", children: jsx(Img, { className: `w-5 h-5 mr-3 ${isActive ? 'invert' : ''}`, image: tab?.icon || 'CardIcon', asSVG: !isActive }) }));
|
|
1089
|
+
|
|
1090
|
+
function getTileHeadingType(className = '') {
|
|
1091
|
+
const colSpan = getColSpan(className);
|
|
1092
|
+
if (colSpan <= 4) {
|
|
1093
|
+
return 'h4';
|
|
1094
|
+
}
|
|
1095
|
+
else if (colSpan <= 8) {
|
|
1096
|
+
return 'h3';
|
|
1097
|
+
}
|
|
1098
|
+
else {
|
|
1099
|
+
return 'h2';
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1090
1102
|
|
|
1091
1103
|
function useCreditCalculatorData(useAsyncData, directoryName) {
|
|
1092
1104
|
const { data } = useAsyncData(creditCalculatorUrl(directoryName), fetchCreditCalculatorData);
|
|
@@ -1332,7 +1344,7 @@
|
|
|
1332
1344
|
return (jsxs("tr", { className: "pb-1", children: [jsx("td", { className: "pt-4", children: jsxs("div", { className: "flex items-center", children: [code ? jsx(Img, { image: { icon: CURRENCY_ICONS_MAP[code] }, width: "24", height: "24" }) : null, jsx("span", { className: "text-m-title-md ml-2", children: code })] }) }), jsx("td", { className: "pt-4 pl-11 m-title-md font-light", children: formatCurrency(exchangeCurrencyItem.buyExchangeRate) }), jsx("td", { className: "pt-4 pl-11 m-title-md font-light", children: formatCurrency(exchangeCurrencyItem.saleExchangeRate) })] }, code));
|
|
1333
1345
|
};
|
|
1334
1346
|
|
|
1335
|
-
const CurrentLocation = JSX(({ className = '', address, distance }) => (jsxs("div", { className: `flex text-sm ${className}`, children: [jsx(Img, {
|
|
1347
|
+
const CurrentLocation = JSX(({ className = '', address, distance }) => (jsxs("div", { className: `flex text-sm ${className}`, children: [jsx(Img, { image: { icon: 'GpsIcon' }, width: "24", height: "24", asSVG: true }), jsxs("div", { className: "ml-3 font-light", children: [address ? jsx("p", { className: "m-0 mb-[3px]", children: address }) : null, distance ? (jsxs("p", { className: "text-secondary-text m-0", children: ["\u041A\u0443\u0440\u0441 \u0443\u043A\u0430\u0437\u0430\u043D \u0434\u043B\u044F \u0431\u043B\u0438\u0436\u0430\u0439\u0448\u0435\u0433\u043E \u043E\u0444\u0438\u0441\u0430 - ", distance] })) : null] })] })));
|
|
1336
1348
|
|
|
1337
1349
|
const Input = JSX(({ className = '', id, name, type = 'text', placeholder }) => {
|
|
1338
1350
|
return (jsx("input", { className: className, id: id, name: name || id, type: type, placeholder: placeholder }));
|
|
@@ -1342,15 +1354,15 @@
|
|
|
1342
1354
|
return (jsx("select", { className: className, id: id, name: name || id, children: children }));
|
|
1343
1355
|
});
|
|
1344
1356
|
|
|
1345
|
-
const SelectOption = JSX(({ className = '', value, children }) => {
|
|
1346
|
-
return (jsx("option", { className: className, value: `${value}`, children: children }));
|
|
1357
|
+
const SelectOption = JSX(({ className = '', value, selected, children }) => {
|
|
1358
|
+
return (jsx("option", { className: className, value: `${value}`, selected: selected, children: children }));
|
|
1347
1359
|
});
|
|
1348
1360
|
|
|
1349
1361
|
const ExchangeCurrencyCalculator = JSX(({ codes, className = '' }) => {
|
|
1350
|
-
return (jsxs("div", { className: `grid gap-3.5 ${className}`, children: [renderInput('Хочу продать', codes), renderInput('Получу', codes), jsx(Button, { className: "box-border mt-3.5 py-3 h-12 w-full", version: "primary", href: "#", children: "\u041A\u0443\u043F\u0438\u0442\u044C \u0432\u0430\u043B\u044E\u0442\u0443" })] }));
|
|
1362
|
+
return (jsxs("div", { className: `grid gap-3.5 ${className}`, children: [renderInput('Хочу продать', codes), renderInput('Получу', codes, 'USD'), jsx(Button, { className: "box-border mt-3.5 py-3 h-12 w-full", version: "primary", href: "#", children: "\u041A\u0443\u043F\u0438\u0442\u044C \u0432\u0430\u043B\u044E\u0442\u0443" })] }));
|
|
1351
1363
|
});
|
|
1352
|
-
function renderInput(placeholder, codes) {
|
|
1353
|
-
return (jsxs("div", { className: "relative flex items-center", children: [jsx(Input, { className: "h-10 border pl-4 pt-[7px] pb-[7px] rounded-md text-m-sm w-full appearance-none -mr-12", type: "number", placeholder: `${placeholder}` }), codes.length ? (jsx(Select, { className: "h-9 -translate-x-4", children: codes.map((code, i) => (jsx(SelectOption, { value: code, children: code }, String(i)))) })) : null] }));
|
|
1364
|
+
function renderInput(placeholder, codes, selected) {
|
|
1365
|
+
return (jsxs("div", { className: "relative flex items-center", children: [jsx(Input, { className: "h-10 border pl-4 pt-[7px] pb-[7px] rounded-md text-m-sm w-full appearance-none -mr-12", type: "number", placeholder: `${placeholder}` }), codes.length ? (jsx(Select, { className: "h-9 -translate-x-4", children: codes.map((code, i) => (jsx(SelectOption, { value: code, selected: code === selected, children: code }, String(i)))) })) : null] }));
|
|
1354
1366
|
}
|
|
1355
1367
|
|
|
1356
1368
|
const CURRENCY_CODES = ['USD', 'EUR'];
|
|
@@ -1520,7 +1532,7 @@
|
|
|
1520
1532
|
const SocialMedia = JSX(({ className = '', media, version, context, children }) => {
|
|
1521
1533
|
const router = context.useRouter();
|
|
1522
1534
|
const { handlerDecorator } = context;
|
|
1523
|
-
return (jsxs("div", { children: [jsx("div", { className: `flex gap-2.5
|
|
1535
|
+
return (jsxs("div", { children: [jsx("div", { className: `flex gap-2.5 ${className}`, children: media?.map((_, index) => (jsx(MediaButton, { version: version, ...useLink({ router, handlerDecorator }, _) }, String(index)))) }), jsx("span", { className: "font-light text-sm text-secondary-text", children: children })] }));
|
|
1524
1536
|
});
|
|
1525
1537
|
|
|
1526
1538
|
const TextInformation = JSX(({ className, links, context }) => {
|
|
@@ -1536,19 +1548,21 @@
|
|
|
1536
1548
|
});
|
|
1537
1549
|
|
|
1538
1550
|
const GracePeriod = JSX(({ className = '', title, description, calendar, anchor = null }) => {
|
|
1539
|
-
return (jsxs("section", { className: `bg-white p-
|
|
1551
|
+
return (jsxs("section", { className: `font-sans bg-white p-[50px] ${className}`, id: anchor, children: [jsx(Heading, { headingType: "h3", className: "text-center", title: title }), jsx("div", { className: "font-light text-base-md text-center mt-3", children: description }), calendar ? renderCalendar(calendar) : null] }));
|
|
1540
1552
|
});
|
|
1541
1553
|
const renderCalendar = (calendar) => {
|
|
1542
|
-
const colCount = calendar.reduce((accumulator, currentValue) => accumulator + currentValue.month.length, 0) || 1;
|
|
1554
|
+
const colCount = calendar.reduce((accumulator, currentValue) => currentValue?.month?.length ? accumulator + currentValue.month.length : accumulator, 0) || 1;
|
|
1543
1555
|
const colSize = 100 / colCount;
|
|
1544
|
-
const mappedCalendar = calendar
|
|
1556
|
+
const mappedCalendar = calendar
|
|
1557
|
+
.filter((_) => _?.month?.length)
|
|
1558
|
+
.map((_) => ({
|
|
1545
1559
|
..._,
|
|
1546
1560
|
flexBasis: `${_.month.length * colSize}%`,
|
|
1547
1561
|
}));
|
|
1548
|
-
return (jsxs("div", { className: "w-full flex flex-col justify-center mt-
|
|
1562
|
+
return (jsxs("div", { className: "w-full flex flex-col justify-center mt-[54px]", children: [jsx("div", { className: "flex w-full mb-3 font-light text-m-title-md text-center", children: mappedCalendar.map((_) => renderMonthNames(_, colSize)) }), jsx("div", { className: "flex w-full", children: mappedCalendar.map((_, ind) => (jsxs("div", { className: "pr-[11px] mr-3 border-r border-main-divider last:border-r-0 last:pr-0 last:mr-0", style: { flexBasis: _.flexBasis }, children: [jsx("div", { className: "flex", children: renderMonthImages(_) }), jsxs("div", { className: "font-light text-sm text-primary-text mt-3", children: [jsx("span", { children: _.blackText }), "\u2009", jsx("span", { className: "text-primary-main", children: _.greenText })] })] }, `monthItem-${ind}`))) })] }));
|
|
1549
1563
|
};
|
|
1550
1564
|
const renderMonthNames = (item, colSize) => item.month.map((_) => (jsx("div", { style: { flexBasis: `${colSize}%` }, children: _.name }, `monthName-${_.name}`)));
|
|
1551
|
-
const renderMonthImages = (item) => item.month.map((_) => _.image?.src ? (jsx("div", { className: "
|
|
1565
|
+
const renderMonthImages = (item) => item.month.map((_) => _.image?.src ? (jsx("div", { className: "h-[207px] border-r-[1px] pr-3 mr-3 border-main-divider last:border-r-0 last:pr-0 last:mr-0", children: jsx(Img, { image: _.image, className: "flex" }) }, `monthImage-${_.image.src}`)) : null);
|
|
1552
1566
|
|
|
1553
1567
|
const checkIsHrefSameOrigin = (href, router) => getOrigin(href) === getOrigin(router.href);
|
|
1554
1568
|
|
|
@@ -1724,9 +1738,9 @@
|
|
|
1724
1738
|
.map((button, i) => (jsx(NavigationItem, { className: "first:rounded-tl-md first:rounded-bl-md last:rounded-tr-md last:rounded-br-md", isActive: button === activeButton, ...useLink({ router, handlerDecorator }, button) }, String(i)))) })) : null] }));
|
|
1725
1739
|
});
|
|
1726
1740
|
|
|
1727
|
-
const TEXT_CLASSES = 'font-sans font-normal text-
|
|
1741
|
+
const TEXT_CLASSES = 'font-sans font-normal text-m-md';
|
|
1728
1742
|
const LINK_CLASSES = 'flex-1 flex items-center justify-center cursor-pointer';
|
|
1729
|
-
const NavigatorTabItem = JSX(({ className = '',
|
|
1743
|
+
const NavigatorTabItem = JSX(({ className = '', text, active, children, onClick, href, target = '_self' }) => (jsx("a", { className: getLinkClasses(className, active), target: target, href: href, onClick: onClick, children: jsx("span", { className: getTextClasses(active), children: text || children }) })));
|
|
1730
1744
|
const getLinkClasses = (className, active) => {
|
|
1731
1745
|
const classes = active ? 'bg-primary-main' : 'group bg-white';
|
|
1732
1746
|
return `${classes} ${LINK_CLASSES} ${className}`;
|
|
@@ -1737,19 +1751,15 @@
|
|
|
1737
1751
|
};
|
|
1738
1752
|
|
|
1739
1753
|
const NavigatorTabs = JSX(({ className = '', navigatorTabs, context, anchor = null }) => {
|
|
1740
|
-
const router = context.useRouter();
|
|
1741
1754
|
const href = globalThis.location?.href; // TODO: remove globalThis, use href from router
|
|
1742
|
-
return (jsx("section", { className: `sticky top-0 z-20 box-border flex gap-x-1 h-
|
|
1755
|
+
return (jsx("section", { className: `sticky top-0 z-20 box-border flex gap-x-1 h-14 ${className}`, id: anchor, children: navigatorTabs ? navigatorTabs.map(renderTab(context, href)) : null }));
|
|
1743
1756
|
});
|
|
1744
|
-
const renderTab = (
|
|
1757
|
+
const renderTab = (context, href) => (tab, i) => {
|
|
1758
|
+
const { useRouter, handlerDecorator } = context;
|
|
1759
|
+
const router = useRouter();
|
|
1745
1760
|
const hash = getHash(href);
|
|
1746
1761
|
const active = hash ? tab.href === hash : i === 0;
|
|
1747
|
-
return (jsx(NavigatorTabItem, { active: active,
|
|
1748
|
-
};
|
|
1749
|
-
const handleRoute = (router, href) => {
|
|
1750
|
-
if (isURL(href))
|
|
1751
|
-
return; // if href if full URL - move to HTML href action, do not touch router
|
|
1752
|
-
router?.replace(href || '');
|
|
1762
|
+
return (jsx(NavigatorTabItem, { active: active, ...useLink({ router, handlerDecorator }, tab) }, tab.href));
|
|
1753
1763
|
};
|
|
1754
1764
|
|
|
1755
1765
|
const useActiveHandler = ({ context, blocks, initialState = false }) => {
|
|
@@ -1894,7 +1904,7 @@
|
|
|
1894
1904
|
}
|
|
1895
1905
|
|
|
1896
1906
|
const RecommendationCard = JSX(({ context, className = '', title, description, items, image, version, socialMedia }) => {
|
|
1897
|
-
return (jsx("section", { className: `border border-solid box-border
|
|
1907
|
+
return (jsx("section", { className: `border border-solid box-border p-[30px] w-[524px] ${className}`, role: "listitem", children: jsxs(BaseTile, { context: context, className: "flex justify-between", title: title ? (jsx(Heading, { headingType: "h4", as: "h3", className: "font-normal mb-3.5", title: title })) : null, image: image?.src && jsx(Img, { className: "mt-auto ml-7", image: image }), children: [description ? jsx(Description, { className: "text-left", description: description }) : null, items?.length ? (jsx(List, { className: "text-md text-left font-light flex flex-col flex-1 gap-2", items: items, version: version })) : null, jsx(SocialMedia, { className: "pt-[42px] pb-0", media: socialMedia, version: version, context: context })] }) }));
|
|
1898
1908
|
});
|
|
1899
1909
|
|
|
1900
1910
|
const BLUR_BLOCK_CLASSES = 'absolute top-0 bottom-0 w-[84px]';
|
|
@@ -1937,7 +1947,7 @@
|
|
|
1937
1947
|
return (jsx("div", { className: "flex flex-col items-center text-center relative", children: jsx("div", { className: "h-[100px] w-[100px] min-w-[100px] min-h-[100px] bg-secondary-light rounded-full p-[26px] box-border z-10", children: (step.icon?.icon && jsx(Img, { image: step.icon, width: "48", height: "48" })) || (jsx("span", { className: "font-normal text-title-sm text-secondary-text", children: i + 1 })) }) }, String(i)));
|
|
1938
1948
|
};
|
|
1939
1949
|
const renderStepTitle = (step, i, isMainButton) => {
|
|
1940
|
-
return (jsxs("div", { className: "flex flex-col items-center justify-between text-center relative w-[276px] whitespace-pre-line overflow-hidden", children: [jsxs("div", { children: [step.label && jsx("div", { className: "font-normal text-xl m-0 mt-4", children: step.label }), step.description && (jsx("div", { className: `font-light text-base text-secondary-text ${step.label ? 'mt-2' : 'mt-4'}`, children: step.description }))] }), step?.button?.text && !isMainButton ? (jsx(Button, { className: "box-border mt-
|
|
1950
|
+
return (jsxs("div", { className: "flex flex-col items-center justify-between text-center relative w-[276px] whitespace-pre-line overflow-hidden", children: [jsxs("div", { children: [step.label && jsx("div", { className: "font-normal text-xl m-0 mt-4", children: step.label }), step.description && (jsx("div", { className: `font-light text-base text-secondary-text ${step.label ? 'mt-2' : 'mt-4'}`, children: step.description }))] }), step?.button?.text && !isMainButton ? (jsx(Button, { className: "box-border mt-8 py-3 h-12 w-full max-w-[240px]", version: "primary", href: "#", children: step.button.text })) : null] }, String(i)));
|
|
1941
1951
|
};
|
|
1942
1952
|
|
|
1943
1953
|
const DIVIDER_CLASSES = 'border-main-divider border border-t-0 border-x-0';
|