@redneckz/wildless-cms-uni-blocks 0.12.4 → 0.12.5
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/bin/migration-scripts/0.12.3.js +2 -0
- package/bin/migration-scripts/0.9.10.js +1 -1
- package/bundle/bundle.umd.js +43 -77
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/bundle/components/BenefitsBlock/benefitImageStyles.d.ts +1 -0
- package/bundle/components/BenefitsBlock/benefitImageStyles.mobile.d.ts +1 -0
- package/bundle/components/BonusBenefitsBlock/bonusBenefitAlign.d.ts +1 -0
- package/bundle/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.d.ts +1 -0
- package/bundle/components/BonusBenefitsBlock/bonusBenefitStyles.d.ts +1 -0
- package/bundle/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.d.ts +1 -0
- package/bundle/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +3 -0
- package/bundle/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +4 -0
- package/bundle/components/BonusBenefitsBlock/renderBonusBenefits.mobile.d.ts +4 -0
- package/bundle/components/CarouselCatalogCard/CatalogCard.d.ts +9 -0
- package/bundle/components/CarouselProgramsCard/programCardStyles.d.ts +2 -0
- package/bundle/components/CarouselProgramsCard/programCardStyles.mobile.d.ts +2 -0
- package/bundle/components/Tabs/tabItemClasses.d.ts +2 -3
- package/dist/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js +4 -6
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/BenefitsBlock/benefitImageStyles.d.ts +1 -0
- package/dist/components/BenefitsBlock/benefitImageStyles.js +4 -0
- package/dist/components/BenefitsBlock/benefitImageStyles.js.map +1 -0
- package/dist/components/BenefitsBlock/benefitImageStyles.mobile.d.ts +1 -0
- package/dist/components/BenefitsBlock/benefitImageStyles.mobile.js +4 -0
- package/dist/components/BenefitsBlock/benefitImageStyles.mobile.js.map +1 -0
- package/dist/components/Blocks.mobile.js +6 -0
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +4 -18
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/dist/components/BonusBenefitsBlock/bonusBenefitAlign.d.ts +1 -0
- package/dist/components/BonusBenefitsBlock/bonusBenefitAlign.js +4 -0
- package/dist/components/BonusBenefitsBlock/bonusBenefitAlign.js.map +1 -0
- package/dist/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.d.ts +1 -0
- package/dist/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.js +4 -0
- package/dist/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.js.map +1 -0
- package/dist/components/BonusBenefitsBlock/bonusBenefitStyles.d.ts +1 -0
- package/dist/components/BonusBenefitsBlock/bonusBenefitStyles.js +4 -0
- package/dist/components/BonusBenefitsBlock/bonusBenefitStyles.js.map +1 -0
- package/dist/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.d.ts +1 -0
- package/dist/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.js +4 -0
- package/dist/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.js.map +1 -0
- package/dist/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +3 -0
- package/dist/components/BonusBenefitsBlock/renderBonusBenefit.js +11 -0
- package/dist/components/BonusBenefitsBlock/renderBonusBenefit.js.map +1 -0
- package/dist/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +4 -0
- package/dist/components/BonusBenefitsBlock/renderBonusBenefits.js +20 -0
- package/dist/components/BonusBenefitsBlock/renderBonusBenefits.js.map +1 -0
- package/dist/components/BonusBenefitsBlock/renderBonusBenefits.mobile.d.ts +4 -0
- package/dist/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js +8 -0
- package/dist/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js.map +1 -0
- package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -2
- package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/dist/components/CarouselCatalogCard/CatalogCard.d.ts +9 -0
- package/dist/components/CarouselCatalogCard/CatalogCard.js +20 -0
- package/dist/components/CarouselCatalogCard/CatalogCard.js.map +1 -0
- package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +5 -2
- package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/dist/components/CarouselProgramsCard/programCardStyles.d.ts +2 -0
- package/dist/components/CarouselProgramsCard/programCardStyles.js +5 -0
- package/dist/components/CarouselProgramsCard/programCardStyles.js.map +1 -0
- package/dist/components/CarouselProgramsCard/programCardStyles.mobile.d.ts +2 -0
- package/dist/components/CarouselProgramsCard/programCardStyles.mobile.js +5 -0
- package/dist/components/CarouselProgramsCard/programCardStyles.mobile.js.map +1 -0
- package/dist/components/Tabs/LinkTab.js +2 -1
- package/dist/components/Tabs/LinkTab.js.map +1 -1
- package/dist/components/Tabs/Tabs.js +3 -2
- package/dist/components/Tabs/Tabs.js.map +1 -1
- package/dist/components/Tabs/renderGroupTab.js +7 -13
- package/dist/components/Tabs/renderGroupTab.js.map +1 -1
- package/dist/components/Tabs/tabItemClasses.d.ts +2 -3
- package/dist/components/Tabs/tabItemClasses.js +10 -46
- package/dist/components/Tabs/tabItemClasses.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTable.mobile.js +0 -1
- package/dist/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
- package/dist/ui-kit/PhoneInput/PhoneInput.js +1 -1
- package/dist/ui-kit/PhoneInput/PhoneInput.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.fixture.mobile.d.ts +6 -0
- package/lib/components/BenefitsBlock/BenefitsBlock.js +4 -6
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/BenefitsBlock/benefitImageStyles.d.ts +1 -0
- package/lib/components/BenefitsBlock/benefitImageStyles.js +2 -0
- package/lib/components/BenefitsBlock/benefitImageStyles.js.map +1 -0
- package/lib/components/BenefitsBlock/benefitImageStyles.mobile.d.ts +1 -0
- package/lib/components/BenefitsBlock/benefitImageStyles.mobile.js +2 -0
- package/lib/components/BenefitsBlock/benefitImageStyles.mobile.js.map +1 -0
- package/lib/components/Blocks.mobile.js +6 -0
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.fixture.mobile.d.ts +7 -0
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +4 -18
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/lib/components/BonusBenefitsBlock/bonusBenefitAlign.d.ts +1 -0
- package/lib/components/BonusBenefitsBlock/bonusBenefitAlign.js +2 -0
- package/lib/components/BonusBenefitsBlock/bonusBenefitAlign.js.map +1 -0
- package/lib/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.d.ts +1 -0
- package/lib/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.js +2 -0
- package/lib/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.js.map +1 -0
- package/lib/components/BonusBenefitsBlock/bonusBenefitStyles.d.ts +1 -0
- package/lib/components/BonusBenefitsBlock/bonusBenefitStyles.js +2 -0
- package/lib/components/BonusBenefitsBlock/bonusBenefitStyles.js.map +1 -0
- package/lib/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.d.ts +1 -0
- package/lib/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.js +2 -0
- package/lib/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.js.map +1 -0
- package/lib/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +2 -0
- package/lib/components/BonusBenefitsBlock/renderBonusBenefit.js +8 -0
- package/lib/components/BonusBenefitsBlock/renderBonusBenefit.js.map +1 -0
- package/lib/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +4 -0
- package/lib/components/BonusBenefitsBlock/renderBonusBenefits.js +17 -0
- package/lib/components/BonusBenefitsBlock/renderBonusBenefits.js.map +1 -0
- package/lib/components/BonusBenefitsBlock/renderBonusBenefits.mobile.d.ts +3 -0
- package/lib/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js +5 -0
- package/lib/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js.map +1 -0
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.fixture.d.ts +0 -11
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.fixture.mobile.d.ts +6 -0
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -2
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/lib/components/CarouselCatalogCard/CatalogCard.d.ts +9 -0
- package/lib/components/CarouselCatalogCard/CatalogCard.js +18 -0
- package/lib/components/CarouselCatalogCard/CatalogCard.js.map +1 -0
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.fixture.d.ts +0 -1
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.fixture.mobile.d.ts +7 -0
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +5 -2
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/lib/components/CarouselProgramsCard/programCardStyles.d.ts +2 -0
- package/lib/components/CarouselProgramsCard/programCardStyles.js +3 -0
- package/lib/components/CarouselProgramsCard/programCardStyles.js.map +1 -0
- package/lib/components/CarouselProgramsCard/programCardStyles.mobile.d.ts +2 -0
- package/lib/components/CarouselProgramsCard/programCardStyles.mobile.js +3 -0
- package/lib/components/CarouselProgramsCard/programCardStyles.mobile.js.map +1 -0
- package/lib/components/Tabs/LinkTab.js +3 -2
- package/lib/components/Tabs/LinkTab.js.map +1 -1
- package/lib/components/Tabs/Tabs.fixture.mobile.d.ts +8 -0
- package/lib/components/Tabs/Tabs.js +3 -2
- package/lib/components/Tabs/Tabs.js.map +1 -1
- package/lib/components/Tabs/renderGroupTab.d.ts +0 -1
- package/lib/components/Tabs/renderGroupTab.js +9 -15
- package/lib/components/Tabs/renderGroupTab.js.map +1 -1
- package/lib/components/Tabs/renderTab.d.ts +0 -1
- package/lib/components/Tabs/tabItemClasses.d.ts +2 -3
- package/lib/components/Tabs/tabItemClasses.js +8 -43
- package/lib/components/Tabs/tabItemClasses.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTable.mobile.js +0 -1
- package/lib/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
- package/lib/ui-kit/PhoneInput/PhoneInput.js +1 -1
- package/lib/ui-kit/PhoneInput/PhoneInput.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +507 -335
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/mobile/bundle/components/BenefitsBlock/benefitImageStyles.d.ts +1 -0
- package/mobile/bundle/components/BonusBenefitsBlock/bonusBenefitAlign.d.ts +1 -0
- package/mobile/bundle/components/BonusBenefitsBlock/bonusBenefitStyles.d.ts +1 -0
- package/mobile/bundle/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +3 -0
- package/mobile/bundle/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +4 -0
- package/mobile/bundle/components/CarouselCatalogCard/CatalogCard.d.ts +9 -0
- package/mobile/bundle/components/CarouselProgramsCard/programCardStyles.d.ts +2 -0
- package/mobile/bundle/components/Tabs/tabItemClasses.d.ts +2 -3
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +4 -6
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/components/BenefitsBlock/benefitImageStyles.d.ts +1 -0
- package/mobile/dist/components/BenefitsBlock/benefitImageStyles.js +4 -0
- package/mobile/dist/components/BenefitsBlock/benefitImageStyles.js.map +1 -0
- package/mobile/dist/components/Blocks.js +6 -0
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +4 -18
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/bonusBenefitAlign.d.ts +1 -0
- package/mobile/dist/components/BonusBenefitsBlock/bonusBenefitAlign.js +4 -0
- package/mobile/dist/components/BonusBenefitsBlock/bonusBenefitAlign.js.map +1 -0
- package/mobile/dist/components/BonusBenefitsBlock/bonusBenefitStyles.d.ts +1 -0
- package/mobile/dist/components/BonusBenefitsBlock/bonusBenefitStyles.js +4 -0
- package/mobile/dist/components/BonusBenefitsBlock/bonusBenefitStyles.js.map +1 -0
- package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +3 -0
- package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefit.js +11 -0
- package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefit.js.map +1 -0
- package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +4 -0
- package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefits.js +8 -0
- package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefits.js.map +1 -0
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -2
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/mobile/dist/components/CarouselCatalogCard/CatalogCard.d.ts +9 -0
- package/mobile/dist/components/CarouselCatalogCard/CatalogCard.js +20 -0
- package/mobile/dist/components/CarouselCatalogCard/CatalogCard.js.map +1 -0
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +5 -2
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/mobile/dist/components/CarouselProgramsCard/programCardStyles.d.ts +2 -0
- package/mobile/dist/components/CarouselProgramsCard/programCardStyles.js +5 -0
- package/mobile/dist/components/CarouselProgramsCard/programCardStyles.js.map +1 -0
- package/mobile/dist/components/Tabs/LinkTab.js +2 -1
- package/mobile/dist/components/Tabs/LinkTab.js.map +1 -1
- package/mobile/dist/components/Tabs/Tabs.js +3 -2
- package/mobile/dist/components/Tabs/Tabs.js.map +1 -1
- package/mobile/dist/components/Tabs/renderGroupTab.js +7 -13
- package/mobile/dist/components/Tabs/renderGroupTab.js.map +1 -1
- package/mobile/dist/components/Tabs/tabItemClasses.d.ts +2 -3
- package/mobile/dist/components/Tabs/tabItemClasses.js +10 -46
- package/mobile/dist/components/Tabs/tabItemClasses.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTable.js +0 -1
- package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/dist/ui-kit/PhoneInput/PhoneInput.js +1 -1
- package/mobile/dist/ui-kit/PhoneInput/PhoneInput.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +4 -6
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/components/BenefitsBlock/benefitImageStyles.d.ts +1 -0
- package/mobile/lib/components/BenefitsBlock/benefitImageStyles.js +2 -0
- package/mobile/lib/components/BenefitsBlock/benefitImageStyles.js.map +1 -0
- package/mobile/lib/components/Blocks.js +6 -0
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +4 -18
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/bonusBenefitAlign.d.ts +1 -0
- package/mobile/lib/components/BonusBenefitsBlock/bonusBenefitAlign.js +2 -0
- package/mobile/lib/components/BonusBenefitsBlock/bonusBenefitAlign.js.map +1 -0
- package/mobile/lib/components/BonusBenefitsBlock/bonusBenefitStyles.d.ts +1 -0
- package/mobile/lib/components/BonusBenefitsBlock/bonusBenefitStyles.js +2 -0
- package/mobile/lib/components/BonusBenefitsBlock/bonusBenefitStyles.js.map +1 -0
- package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +3 -0
- package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefit.js +8 -0
- package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefit.js.map +1 -0
- package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +4 -0
- package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefits.js +5 -0
- package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefits.js.map +1 -0
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -2
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/mobile/lib/components/CarouselCatalogCard/CatalogCard.d.ts +9 -0
- package/mobile/lib/components/CarouselCatalogCard/CatalogCard.js +18 -0
- package/mobile/lib/components/CarouselCatalogCard/CatalogCard.js.map +1 -0
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +5 -2
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/mobile/lib/components/CarouselProgramsCard/programCardStyles.d.ts +2 -0
- package/mobile/lib/components/CarouselProgramsCard/programCardStyles.js +3 -0
- package/mobile/lib/components/CarouselProgramsCard/programCardStyles.js.map +1 -0
- package/mobile/lib/components/Tabs/LinkTab.js +3 -2
- package/mobile/lib/components/Tabs/LinkTab.js.map +1 -1
- package/mobile/lib/components/Tabs/Tabs.js +3 -2
- package/mobile/lib/components/Tabs/Tabs.js.map +1 -1
- package/mobile/lib/components/Tabs/renderGroupTab.js +9 -15
- package/mobile/lib/components/Tabs/renderGroupTab.js.map +1 -1
- package/mobile/lib/components/Tabs/tabItemClasses.d.ts +2 -3
- package/mobile/lib/components/Tabs/tabItemClasses.js +8 -43
- package/mobile/lib/components/Tabs/tabItemClasses.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTable.js +0 -1
- package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/lib/ui-kit/PhoneInput/PhoneInput.js +1 -1
- package/mobile/lib/ui-kit/PhoneInput/PhoneInput.js.map +1 -1
- package/mobile/src/common.css +3 -0
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +37 -34
- package/mobile/src/components/BenefitsBlock/benefitImageStyles.tsx +1 -0
- package/mobile/src/components/Blocks.ts +6 -0
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +13 -49
- package/mobile/src/components/BonusBenefitsBlock/bonusBenefitAlign.ts +1 -0
- package/mobile/src/components/BonusBenefitsBlock/bonusBenefitStyles.ts +1 -0
- package/mobile/src/components/BonusBenefitsBlock/renderBonusBenefit.tsx +29 -0
- package/mobile/src/components/BonusBenefitsBlock/renderBonusBenefits.tsx +14 -0
- package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +3 -3
- package/mobile/src/components/CarouselCatalogCard/CatalogCard.ts +22 -0
- package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.example.json +1 -11
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.example.json +1 -11
- package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +21 -11
- package/mobile/src/components/CarouselProgramsCard/programCardStyles.ts +2 -0
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +1 -12
- package/mobile/src/components/ErrorBlock/ErrorBlock.example.json +1 -11
- package/mobile/src/components/MobileAppTile/MobileAppTile.example.json +1 -11
- package/mobile/src/components/PictureText/PictureText.example.json +1 -11
- package/mobile/src/components/ProductBlock/ProductBlock.example.json +1 -11
- package/mobile/src/components/ProductTile/ProductTile.example.json +4 -12
- package/mobile/src/components/Tabs/LinkTab.tsx +19 -8
- package/mobile/src/components/Tabs/Tabs.tsx +7 -4
- package/mobile/src/components/Tabs/renderGroupTab.tsx +21 -33
- package/mobile/src/components/Tabs/tabItemClasses.ts +12 -45
- package/mobile/src/components/TariffsTable/TariffsTable.tsx +0 -1
- package/mobile/src/components/Tile/Tile.example.json +1 -11
- package/mobile/src/ui-kit/PhoneInput/PhoneInput.tsx +5 -1
- package/package.json +1 -1
- package/src/common.css +3 -0
- package/src/components/BenefitsBlock/BenefitsBlock.fixture.mobile.tsx +43 -0
- package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +0 -1
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +37 -34
- package/src/components/BenefitsBlock/benefitImageStyles.mobile.tsx +1 -0
- package/src/components/BenefitsBlock/benefitImageStyles.tsx +1 -0
- package/src/components/Blocks.mobile.ts +6 -0
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.fixture.mobile.tsx +67 -0
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +13 -49
- package/src/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.ts +1 -0
- package/src/components/BonusBenefitsBlock/bonusBenefitAlign.ts +1 -0
- package/src/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.ts +1 -0
- package/src/components/BonusBenefitsBlock/bonusBenefitStyles.ts +1 -0
- package/src/components/BonusBenefitsBlock/renderBonusBenefit.tsx +29 -0
- package/src/components/BonusBenefitsBlock/renderBonusBenefits.mobile.tsx +14 -0
- package/src/components/BonusBenefitsBlock/renderBonusBenefits.tsx +27 -0
- package/src/components/Carousel/Carousel.fixture.tsx +13 -2
- package/src/components/CarouselCatalogCard/CarouselCatalogCard.fixture.mobile.tsx +23 -0
- package/src/components/CarouselCatalogCard/CarouselCatalogCard.fixture.tsx +3 -25
- package/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +3 -3
- package/src/components/CarouselCatalogCard/CatalogCard.ts +22 -0
- package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.example.json +1 -11
- package/src/components/CarouselProductCard/CarouselProductCard.example.json +1 -11
- package/src/components/CarouselProgramsCard/CarouselProgramsCard.fixture.mobile.tsx +34 -0
- package/src/components/CarouselProgramsCard/CarouselProgramsCard.fixture.tsx +2 -7
- package/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +21 -11
- package/src/components/CarouselProgramsCard/programCardStyles.mobile.ts +2 -0
- package/src/components/CarouselProgramsCard/programCardStyles.ts +2 -0
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +1 -12
- package/src/components/ErrorBlock/ErrorBlock.example.json +1 -11
- package/src/components/MobileAppTile/MobileAppTile.example.json +1 -11
- package/src/components/PictureText/PictureText.example.json +1 -11
- package/src/components/PictureText/PictureText.fixture.mobile.tsx +0 -6
- package/src/components/PictureText/PictureText.fixture.tsx +0 -6
- package/src/components/ProductBlock/ProductBlock.example.json +1 -11
- package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +0 -6
- package/src/components/ProductTile/ProductTile.example.json +4 -12
- package/src/components/Tabs/LinkTab.tsx +19 -8
- package/src/components/Tabs/Tabs.fixture.mobile.tsx +55 -0
- package/src/components/Tabs/Tabs.fixture.tsx +8 -17
- package/src/components/Tabs/Tabs.tsx +7 -4
- package/src/components/Tabs/renderGroupTab.tsx +21 -33
- package/src/components/Tabs/tabItemClasses.ts +12 -45
- package/src/components/TariffsTable/TariffsTable.mobile.tsx +0 -1
- package/src/components/Tile/Tile.example.json +1 -11
- package/src/ui-kit/PhoneInput/PhoneInput.tsx +5 -1
- package/tailwind.config.cjs +12 -12
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import '../../setup-fixture';
|
|
2
|
+
|
|
3
|
+
import { BonusBenefitsBlock } from './BonusBenefitsBlock';
|
|
4
|
+
import { BonusBenefit } from './BonusBenefitsBlockContent';
|
|
5
|
+
|
|
6
|
+
const bonusBenefits: BonusBenefit[] = [
|
|
7
|
+
{
|
|
8
|
+
title: 'Оформи «Молодёжную карту»',
|
|
9
|
+
icon: { icon: 'WateringCanIcon', iconVersion: 'normal' },
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
title:
|
|
13
|
+
'Попроси в бухгалтерии ВУЗа/работодателя специальное заявление для перечисления стипендии/заработной платы на банковскую карту',
|
|
14
|
+
icon: { icon: 'AirPlaneIcon', iconVersion: 'normal' },
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
title:
|
|
18
|
+
'Заполни заявление и укажи реквизиты «Молодёжной карты». Узнать реквизиты ты можешь после получения карты в офисе, мобильном приложении (нажми на карту → действия → информация → реквизиты карты) или на сайте Банка в личном кабинете',
|
|
19
|
+
icon: { icon: 'CarIcon', iconVersion: 'normal' },
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
title: 'Отнеси заявление в бухгалтерию',
|
|
23
|
+
icon: { icon: 'CinemaIcon', iconVersion: 'normal' },
|
|
24
|
+
},
|
|
25
|
+
];
|
|
26
|
+
|
|
27
|
+
const bonusBenefitsWithDescription: BonusBenefit[] = [
|
|
28
|
+
{
|
|
29
|
+
description: 'Достойное вознаграждение',
|
|
30
|
+
icon: { icon: 'WateringCanIcon', iconVersion: 'normal' },
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
description: 'Социальный пакет',
|
|
34
|
+
icon: { icon: 'AirPlaneIcon', iconVersion: 'normal' },
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
description: 'Профессиональное обучение',
|
|
38
|
+
icon: { icon: 'CarIcon', iconVersion: 'normal' },
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
description: 'Карьерный рост и развитие',
|
|
42
|
+
icon: { icon: 'CinemaIcon', iconVersion: 'normal' },
|
|
43
|
+
},
|
|
44
|
+
];
|
|
45
|
+
|
|
46
|
+
export default {
|
|
47
|
+
default: (
|
|
48
|
+
<div className="container grid grid-cols-12">
|
|
49
|
+
<BonusBenefitsBlock
|
|
50
|
+
className="col-span-12"
|
|
51
|
+
title="Преимущества кредита"
|
|
52
|
+
subtitle="Удобный каталог с большим ассортиментом товаров и сервисов"
|
|
53
|
+
bonusBenefits={bonusBenefits}
|
|
54
|
+
/>
|
|
55
|
+
</div>
|
|
56
|
+
),
|
|
57
|
+
'with description': (
|
|
58
|
+
<div className="container grid grid-cols-12">
|
|
59
|
+
<BonusBenefitsBlock
|
|
60
|
+
className="col-span-12"
|
|
61
|
+
title="Преимущества кредита"
|
|
62
|
+
subtitle="Удобный каталог с большим ассортиментом товаров и сервисов"
|
|
63
|
+
bonusBenefits={bonusBenefitsWithDescription}
|
|
64
|
+
/>
|
|
65
|
+
</div>
|
|
66
|
+
),
|
|
67
|
+
};
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { AlignText } from '../../model/AlignText';
|
|
3
2
|
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
4
3
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
5
|
-
import { Img } from '../../ui-kit/Img/Img';
|
|
6
4
|
import { style } from '../../utils/style';
|
|
7
5
|
import { Headline } from '../Headline/Headline';
|
|
8
|
-
import type {
|
|
9
|
-
|
|
10
|
-
BonusBenefitsBlockContent,
|
|
11
|
-
ColumnsCount,
|
|
12
|
-
} from './BonusBenefitsBlockContent';
|
|
6
|
+
import type { BonusBenefitsBlockContent } from './BonusBenefitsBlockContent';
|
|
7
|
+
import { renderBonusBenefits } from './renderBonusBenefits';
|
|
13
8
|
|
|
14
9
|
export interface BenefitsBlockProps extends BonusBenefitsBlockContent, UniBlockProps {}
|
|
15
10
|
|
|
@@ -23,48 +18,17 @@ export const BonusBenefitsBlock = JSX<BenefitsBlockProps>(
|
|
|
23
18
|
title,
|
|
24
19
|
...rest
|
|
25
20
|
}) => (
|
|
26
|
-
<BlockWrapper
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
</div>
|
|
38
|
-
) : null}
|
|
21
|
+
<BlockWrapper className={style('p-default', className)} defaultPadding="p-default" {...rest}>
|
|
22
|
+
<Headline
|
|
23
|
+
className="mb-4 sm:mb-8"
|
|
24
|
+
isPadding={false}
|
|
25
|
+
title={title}
|
|
26
|
+
description={subtitle}
|
|
27
|
+
headlineVersion="M"
|
|
28
|
+
/>
|
|
29
|
+
{bonusBenefits?.length
|
|
30
|
+
? renderBonusBenefits(bonusBenefits, columnsCount, cardTextAlign)
|
|
31
|
+
: null}
|
|
39
32
|
</BlockWrapper>
|
|
40
33
|
),
|
|
41
34
|
);
|
|
42
|
-
|
|
43
|
-
const renderBonusBenefit = ({ icon, title, description }: BonusBenefit, i: number) => {
|
|
44
|
-
return (
|
|
45
|
-
<div
|
|
46
|
-
key={String(i)}
|
|
47
|
-
className={style(
|
|
48
|
-
'flex flex-col items-center text-h6',
|
|
49
|
-
!description && !title ? 'justify-center' : '',
|
|
50
|
-
)}
|
|
51
|
-
>
|
|
52
|
-
{title ? <span>{title}</span> : null}
|
|
53
|
-
{icon ? <Img image={icon} height="180" className="w-auto" /> : null}
|
|
54
|
-
{description ? <span>{description}</span> : null}
|
|
55
|
-
</div>
|
|
56
|
-
);
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
const getElementsColsValue = (colValue: ColumnsCount) => {
|
|
60
|
-
switch (colValue) {
|
|
61
|
-
case '3':
|
|
62
|
-
return 'grid-cols-3';
|
|
63
|
-
case '4':
|
|
64
|
-
return 'grid-cols-4';
|
|
65
|
-
case '5':
|
|
66
|
-
return 'grid-cols-5';
|
|
67
|
-
default:
|
|
68
|
-
return 'grid-cols-5';
|
|
69
|
-
}
|
|
70
|
-
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const bonusBenefitAlign = 'text-left';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const bonusBenefitAlign = 'text-center';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const bonusBenefitStyles = 'justify-between p-4 h-full border border-gray';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const bonusBenefitStyles = 'items-center';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Img } from '../../ui-kit/Img/Img';
|
|
2
|
+
import { Text } from '../../ui-kit/Text/Text';
|
|
3
|
+
import { style } from '../../utils/style';
|
|
4
|
+
import { bonusBenefitAlign } from './bonusBenefitAlign';
|
|
5
|
+
import { BonusBenefit } from './BonusBenefitsBlockContent';
|
|
6
|
+
import { bonusBenefitStyles } from './bonusBenefitStyles';
|
|
7
|
+
|
|
8
|
+
export const renderBonusBenefit = ({ icon, title, description }: BonusBenefit, i: number) => (
|
|
9
|
+
<div
|
|
10
|
+
key={String(i)}
|
|
11
|
+
className={style(
|
|
12
|
+
'flex flex-col',
|
|
13
|
+
bonusBenefitStyles,
|
|
14
|
+
!description && !title ? 'justify-center' : '',
|
|
15
|
+
)}
|
|
16
|
+
>
|
|
17
|
+
{title ? (
|
|
18
|
+
<Text size="text-h6" font="font-normal" align={bonusBenefitAlign}>
|
|
19
|
+
{title}
|
|
20
|
+
</Text>
|
|
21
|
+
) : null}
|
|
22
|
+
{icon ? <Img image={icon} height="180" className="w-auto" /> : null}
|
|
23
|
+
{description ? (
|
|
24
|
+
<Text size="text-h6" font="font-normal" align={bonusBenefitAlign}>
|
|
25
|
+
{description}
|
|
26
|
+
</Text>
|
|
27
|
+
) : null}
|
|
28
|
+
</div>
|
|
29
|
+
);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AlignType } from '../../model/AlignType';
|
|
2
|
+
import { SwipeListControl } from '../../ui-kit/SwipeListControl/SwipeListControl';
|
|
3
|
+
import { BonusBenefit, ColumnsCount } from './BonusBenefitsBlockContent';
|
|
4
|
+
import { renderBonusBenefit } from './renderBonusBenefit';
|
|
5
|
+
|
|
6
|
+
export const renderBonusBenefits = (
|
|
7
|
+
bonusBenefits: BonusBenefit[],
|
|
8
|
+
columnsCount: ColumnsCount,
|
|
9
|
+
cardTextAlign: AlignType,
|
|
10
|
+
) => (
|
|
11
|
+
<SwipeListControl>
|
|
12
|
+
{bonusBenefits.map((_, i) => renderBonusBenefit({ ..._ }, i))}
|
|
13
|
+
</SwipeListControl>
|
|
14
|
+
);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { AlignText } from '../../model/AlignText';
|
|
2
|
+
import type { AlignType } from '../../model/AlignType';
|
|
3
|
+
import { BonusBenefit, ColumnsCount } from './BonusBenefitsBlockContent';
|
|
4
|
+
import { renderBonusBenefit } from './renderBonusBenefit';
|
|
5
|
+
|
|
6
|
+
export const renderBonusBenefits = (
|
|
7
|
+
bonusBenefits: BonusBenefit[],
|
|
8
|
+
columnsCount: ColumnsCount,
|
|
9
|
+
cardTextAlign: AlignType,
|
|
10
|
+
) => (
|
|
11
|
+
<div className={`grid gap-1 ${AlignText[cardTextAlign]} ${getElementsColsValue(columnsCount)}`}>
|
|
12
|
+
{bonusBenefits.map(renderBonusBenefit)}
|
|
13
|
+
</div>
|
|
14
|
+
);
|
|
15
|
+
|
|
16
|
+
const getElementsColsValue = (colValue: ColumnsCount) => {
|
|
17
|
+
switch (colValue) {
|
|
18
|
+
case '3':
|
|
19
|
+
return 'grid-cols-3';
|
|
20
|
+
case '4':
|
|
21
|
+
return 'grid-cols-4';
|
|
22
|
+
case '5':
|
|
23
|
+
return 'grid-cols-5';
|
|
24
|
+
default:
|
|
25
|
+
return 'grid-cols-5';
|
|
26
|
+
}
|
|
27
|
+
};
|
|
@@ -4,7 +4,7 @@ import type { BlockRendererOptions } from '../../BlockRenderer/BlockRendererOpti
|
|
|
4
4
|
import { Blocks } from '../Blocks';
|
|
5
5
|
import { BANK_HISTORY_CARD } from '../CarouselBankHistoryCard/CarouselBankHistoryCard.fixture';
|
|
6
6
|
import { CARD, CARD_MINI, CARD_NEW } from '../CarouselCard/CarouselCard.fixture';
|
|
7
|
-
import { CATALOG_CARD } from '../CarouselCatalogCard/
|
|
7
|
+
import { CATALOG_CARD } from '../CarouselCatalogCard/CatalogCard';
|
|
8
8
|
import { CAROUSEL_EVENT_CARD } from '../CarouselEventCard/CarouselEventCard.fixture';
|
|
9
9
|
import { INVESTMENT_CARD_WITH_SINGLE_COLUMN } from '../CarouselInvestmentCard/CarouselInvestmentCard.fixture';
|
|
10
10
|
import {
|
|
@@ -19,6 +19,17 @@ import {
|
|
|
19
19
|
import { RICH_CARD } from '../CarouselRichTextCard/CarouselRichTextCard.fixture';
|
|
20
20
|
import { TARIFFS_CARD, TARIFFS_CARD_HIT } from '../CarouselTariffsCard/CarouselTariffsCard.fixture';
|
|
21
21
|
import { Carousel } from './Carousel';
|
|
22
|
+
import { Picture } from '../../model/Picture';
|
|
23
|
+
|
|
24
|
+
const catalogImage: Picture = {
|
|
25
|
+
src: 'pay-ring.png',
|
|
26
|
+
format: 'webp',
|
|
27
|
+
size: {
|
|
28
|
+
width: 230,
|
|
29
|
+
height: 230,
|
|
30
|
+
},
|
|
31
|
+
title: 'pay-ring',
|
|
32
|
+
};
|
|
22
33
|
|
|
23
34
|
const options = {
|
|
24
35
|
blocksRegistry: Blocks,
|
|
@@ -71,7 +82,7 @@ export default {
|
|
|
71
82
|
type: 'Carousel',
|
|
72
83
|
blocks: new Array(6).fill({
|
|
73
84
|
type: 'CarouselCatalogCard',
|
|
74
|
-
content: CATALOG_CARD,
|
|
85
|
+
content: { ...CATALOG_CARD, image: catalogImage },
|
|
75
86
|
}),
|
|
76
87
|
}}
|
|
77
88
|
options={options}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import '../../setup-fixture';
|
|
2
|
+
|
|
3
|
+
import type { Picture } from '../../model/Picture';
|
|
4
|
+
import { CarouselCatalogCard } from './CarouselCatalogCard';
|
|
5
|
+
import { CATALOG_CARD } from './CatalogCard';
|
|
6
|
+
|
|
7
|
+
const image: Picture = {
|
|
8
|
+
src: 'pay-ring.png',
|
|
9
|
+
format: 'webp',
|
|
10
|
+
size: {
|
|
11
|
+
width: 117,
|
|
12
|
+
height: 117,
|
|
13
|
+
},
|
|
14
|
+
title: 'pay-ring',
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export default {
|
|
18
|
+
default: (
|
|
19
|
+
<div className="container grid grid-cols-12">
|
|
20
|
+
<CarouselCatalogCard className={'col-span-12'} {...CATALOG_CARD} image={image} />
|
|
21
|
+
</div>
|
|
22
|
+
),
|
|
23
|
+
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import '../../setup-fixture';
|
|
2
2
|
|
|
3
3
|
import type { Picture } from '../../model/Picture';
|
|
4
|
-
import type { ProductColorVersion } from '../../model/ProductColorVersion';
|
|
5
|
-
import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
|
|
6
4
|
import { CarouselCatalogCard } from './CarouselCatalogCard';
|
|
5
|
+
import { CATALOG_CARD } from './CatalogCard';
|
|
7
6
|
|
|
8
|
-
const
|
|
7
|
+
const image: Picture = {
|
|
9
8
|
src: 'pay-ring.png',
|
|
10
9
|
format: 'webp',
|
|
11
10
|
size: {
|
|
@@ -15,31 +14,10 @@ const payRing: Picture = {
|
|
|
15
14
|
title: 'pay-ring',
|
|
16
15
|
};
|
|
17
16
|
|
|
18
|
-
const colors: ProductColorVersion[] = ['black', 'white'];
|
|
19
|
-
|
|
20
|
-
const buttonPrimary: ButtonWithIconProps = {
|
|
21
|
-
href: '/credit-cards',
|
|
22
|
-
text: 'Подробнее',
|
|
23
|
-
target: '_blank',
|
|
24
|
-
version: 'primary',
|
|
25
|
-
icon: {
|
|
26
|
-
icon: 'AppleIcon',
|
|
27
|
-
},
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export const CATALOG_CARD = {
|
|
31
|
-
title: 'SATURN S-VI',
|
|
32
|
-
description: 'Керамическое кольцо с глянцевой поверхностью и огранкой по внешним контурам',
|
|
33
|
-
image: payRing,
|
|
34
|
-
price: 5600,
|
|
35
|
-
colors: colors,
|
|
36
|
-
button: buttonPrimary,
|
|
37
|
-
};
|
|
38
|
-
|
|
39
17
|
export default {
|
|
40
18
|
default: (
|
|
41
19
|
<div className="container grid grid-cols-12">
|
|
42
|
-
<CarouselCatalogCard {...CATALOG_CARD} />
|
|
20
|
+
<CarouselCatalogCard className={'col-span-4'} {...CATALOG_CARD} image={image} />
|
|
43
21
|
</div>
|
|
44
22
|
),
|
|
45
23
|
};
|
|
@@ -21,7 +21,7 @@ export const CarouselCatalogCard = JSX<CarouselCatalogCardProps>(
|
|
|
21
21
|
({ className = '', title, description, image, price, button, colors, ...rest }) => (
|
|
22
22
|
<BlockWrapper
|
|
23
23
|
className={style(
|
|
24
|
-
'border box-border border-gray
|
|
24
|
+
'border box-border border-gray p-default sm:p-7 h-full flex flex-col justify-left',
|
|
25
25
|
className,
|
|
26
26
|
)}
|
|
27
27
|
{...rest}
|
|
@@ -41,7 +41,7 @@ export const CarouselCatalogCard = JSX<CarouselCatalogCardProps>(
|
|
|
41
41
|
<div className="flex mb-4 text-secondary-text">
|
|
42
42
|
<div className="mr-1.5">
|
|
43
43
|
<Text size="text-s" align="text-left" font="font-light">
|
|
44
|
-
|
|
44
|
+
Цвета:
|
|
45
45
|
</Text>
|
|
46
46
|
</div>
|
|
47
47
|
{colors.map(renderColorOption)}
|
|
@@ -61,6 +61,6 @@ const renderColorOption = (color: ProductColorVersion, i: number) => (
|
|
|
61
61
|
<div
|
|
62
62
|
role="figure"
|
|
63
63
|
key={String(i)}
|
|
64
|
-
className={`w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${cardStyleMap[color]}`}
|
|
64
|
+
className={`w-6 h-6 ml-1 sm:ml-3 border border-solid border-main-divider rounded-full ${cardStyleMap[color]}`}
|
|
65
65
|
/>
|
|
66
66
|
);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ProductColorVersion } from '../../model/ProductColorVersion';
|
|
2
|
+
import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
|
|
3
|
+
|
|
4
|
+
const colors: ProductColorVersion[] = ['black', 'white'];
|
|
5
|
+
|
|
6
|
+
const buttonPrimary: ButtonWithIconProps = {
|
|
7
|
+
href: '/credit-cards',
|
|
8
|
+
text: 'Подробнее',
|
|
9
|
+
target: '_blank',
|
|
10
|
+
version: 'primary',
|
|
11
|
+
icon: {
|
|
12
|
+
icon: 'AppleIcon',
|
|
13
|
+
},
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export const CATALOG_CARD = {
|
|
17
|
+
title: 'SATURN S-VI',
|
|
18
|
+
description: 'Керамическое кольцо с глянцевой поверхностью и огранкой по внешним контурам',
|
|
19
|
+
price: 5600,
|
|
20
|
+
colors: colors,
|
|
21
|
+
button: buttonPrimary,
|
|
22
|
+
};
|
|
@@ -5,17 +5,7 @@
|
|
|
5
5
|
"size": {
|
|
6
6
|
"width": 140,
|
|
7
7
|
"height": 140
|
|
8
|
-
}
|
|
9
|
-
"sources": [
|
|
10
|
-
{
|
|
11
|
-
"media": 1279,
|
|
12
|
-
"size": {
|
|
13
|
-
"width": 84
|
|
14
|
-
},
|
|
15
|
-
"format": "webp",
|
|
16
|
-
"alignment": "center"
|
|
17
|
-
}
|
|
18
|
-
]
|
|
8
|
+
}
|
|
19
9
|
},
|
|
20
10
|
"title": "Заголовок 1",
|
|
21
11
|
"description": "Описание 1",
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { Picture } from '../../model/Picture';
|
|
2
|
+
import { CarouselProgramsCard } from './CarouselProgramsCard';
|
|
3
|
+
import type { CarouselProgramsCardContent } from './CarouselProgramsCardContent';
|
|
4
|
+
|
|
5
|
+
const imageMonth: Picture = {
|
|
6
|
+
src: 'coin.png',
|
|
7
|
+
format: 'webp',
|
|
8
|
+
size: {
|
|
9
|
+
width: 112,
|
|
10
|
+
},
|
|
11
|
+
title: 'money',
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const list = [
|
|
15
|
+
{ title: 'От 16 до 81', description: 'платежей' },
|
|
16
|
+
{
|
|
17
|
+
title: 'От 3 до 7,5 млн руб. ',
|
|
18
|
+
description: 'остаток по счету',
|
|
19
|
+
},
|
|
20
|
+
];
|
|
21
|
+
|
|
22
|
+
export const BUSINESS_CARD: CarouselProgramsCardContent = {
|
|
23
|
+
title: 'Продвинутый',
|
|
24
|
+
icon: imageMonth,
|
|
25
|
+
href: 'http://rshb.ru',
|
|
26
|
+
target: '_blank',
|
|
27
|
+
list,
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const CAROUSEL_BUSINESS_CARD = <CarouselProgramsCard className="col-span-12" {...BUSINESS_CARD} />;
|
|
31
|
+
|
|
32
|
+
export default {
|
|
33
|
+
default: <div className="container grid grid-cols-12">{CAROUSEL_BUSINESS_CARD}</div>,
|
|
34
|
+
};
|
|
@@ -8,8 +8,7 @@ const imageMonth: Picture = {
|
|
|
8
8
|
src: 'coin.png',
|
|
9
9
|
format: 'webp',
|
|
10
10
|
size: {
|
|
11
|
-
width:
|
|
12
|
-
height: 242,
|
|
11
|
+
width: 130,
|
|
13
12
|
},
|
|
14
13
|
title: 'money',
|
|
15
14
|
};
|
|
@@ -30,12 +29,8 @@ export const BUSINESS_CARD: CarouselProgramsCardContent = {
|
|
|
30
29
|
list,
|
|
31
30
|
};
|
|
32
31
|
|
|
33
|
-
const CAROUSEL_BUSINESS_CARD = <CarouselProgramsCard className="col-span-
|
|
34
|
-
const CAROUSEL_BUSINESS_CARD_SECONDARY = (
|
|
35
|
-
<CarouselProgramsCard className="col-span-4" {...BUSINESS_CARD} version="secondary" />
|
|
36
|
-
);
|
|
32
|
+
const CAROUSEL_BUSINESS_CARD = <CarouselProgramsCard className="col-span-6" {...BUSINESS_CARD} />;
|
|
37
33
|
|
|
38
34
|
export default {
|
|
39
35
|
default: <div className="container grid grid-cols-12">{CAROUSEL_BUSINESS_CARD}</div>,
|
|
40
|
-
secondary: <div className="container grid grid-cols-12">{CAROUSEL_BUSINESS_CARD_SECONDARY}</div>,
|
|
41
36
|
};
|
|
@@ -5,8 +5,11 @@ import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
|
5
5
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
6
6
|
import { Img } from '../../ui-kit/Img/Img';
|
|
7
7
|
import { LinkWrapper } from '../../ui-kit/LinkWrapper/LinkWrapper';
|
|
8
|
+
import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
|
|
9
|
+
import { Text } from '../../ui-kit/Text/Text';
|
|
8
10
|
import { style } from '../../utils/style';
|
|
9
11
|
import type { CarouselProgramsCardContent } from './CarouselProgramsCardContent';
|
|
12
|
+
import { cardDescriptionColor, cardTitleFont } from './programCardStyles';
|
|
10
13
|
|
|
11
14
|
export interface CarouselTariffsCardProps extends CarouselProgramsCardContent, UniBlockProps {}
|
|
12
15
|
|
|
@@ -15,18 +18,17 @@ export const CarouselProgramsCard = JSX<CarouselTariffsCardProps>(
|
|
|
15
18
|
return (
|
|
16
19
|
<BlockWrapper
|
|
17
20
|
className={style('border border-gray', className)}
|
|
18
|
-
defaultPadding="p-0"
|
|
21
|
+
defaultPadding="p-lg sm:p-0"
|
|
19
22
|
{...rest}
|
|
20
23
|
>
|
|
21
|
-
<LinkWrapper className="flex" href={href} target={target}>
|
|
22
|
-
<div className="
|
|
23
|
-
{icon?.icon ? <Img image={icon} /> : null}
|
|
24
|
-
{icon?.src ? <Img image={icon} /> : null}
|
|
24
|
+
<LinkWrapper className="sm:flex sm:items-center" href={href} target={target}>
|
|
25
|
+
<div className="min-w-[200px] flex justify-center">
|
|
26
|
+
{icon?.src || icon?.icon ? <Img image={icon} /> : null}
|
|
25
27
|
</div>
|
|
26
|
-
<div className="
|
|
27
|
-
{title ? <Heading className="mb-3.5" headingType="
|
|
28
|
+
<div className="sm:px-3 py-xl">
|
|
29
|
+
{title ? <Heading className="mb-2 sm:mb-3.5" headingType="h6" title={title} /> : null}
|
|
28
30
|
{list.length ? (
|
|
29
|
-
<div className="flex flex-col gap-3">{list?.map(renderList)}</div>
|
|
31
|
+
<div className="flex flex-col gap-2 sm:gap-3">{list?.map(renderList)}</div>
|
|
30
32
|
) : null}
|
|
31
33
|
</div>
|
|
32
34
|
</LinkWrapper>
|
|
@@ -36,8 +38,16 @@ export const CarouselProgramsCard = JSX<CarouselTariffsCardProps>(
|
|
|
36
38
|
);
|
|
37
39
|
|
|
38
40
|
const renderList = (_: HeadlineCommonProps, i: number) => (
|
|
39
|
-
<div key={String(i)} className="
|
|
40
|
-
{_.title ?
|
|
41
|
-
|
|
41
|
+
<div key={String(i)} className="flex flex-row-reverse justify-between gap-y-1 sm:flex-col">
|
|
42
|
+
{_.title ? (
|
|
43
|
+
<Text size="text-l" font={cardTitleFont}>
|
|
44
|
+
{_.title}
|
|
45
|
+
</Text>
|
|
46
|
+
) : null}
|
|
47
|
+
{_.description ? (
|
|
48
|
+
<Paragraph size="text-l" font="font-light" color={cardDescriptionColor}>
|
|
49
|
+
{_.description}
|
|
50
|
+
</Paragraph>
|
|
51
|
+
) : null}
|
|
42
52
|
</div>
|
|
43
53
|
);
|
|
@@ -5,18 +5,7 @@
|
|
|
5
5
|
"size": {
|
|
6
6
|
"width": 290,
|
|
7
7
|
"height": 290
|
|
8
|
-
}
|
|
9
|
-
"sources": [
|
|
10
|
-
{
|
|
11
|
-
"media": 1279,
|
|
12
|
-
"size": {
|
|
13
|
-
"width": 174,
|
|
14
|
-
"height": 174
|
|
15
|
-
},
|
|
16
|
-
"format": "webp",
|
|
17
|
-
"alignment": "southeast"
|
|
18
|
-
}
|
|
19
|
-
]
|
|
8
|
+
}
|
|
20
9
|
},
|
|
21
10
|
"title": "Заголовок 1",
|
|
22
11
|
"description": "Описание 1",
|