@redneckz/wildless-cms-uni-blocks 0.12.3 → 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 +25 -12
|
@@ -1,23 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
+
import { style } from '../../utils/style.js';
|
|
3
|
+
import { getTabClassName } from './tabItemClasses.js';
|
|
4
|
+
const BADGE_CLASSES = 'bg-main-divider min-w-[22px] h-[22px] rounded-full text-xs ml-2 flex justify-center items-center';
|
|
5
|
+
const LIGHT_BADGE_CLASSES = 'bg-white/30 text-white';
|
|
6
|
+
const DARK_BADGE_CLASSES = 'text-secondary-text group-hover/btn:text-primary-main';
|
|
6
7
|
export const renderGroupTab = ({ page, currentTab, showCounter, onClick, tabsMode }) => (tab, i) => {
|
|
7
8
|
const active = currentTab === tab;
|
|
8
9
|
const count = tab.ref && page?.blocks
|
|
9
10
|
? page.blocks.filter((block) => block?.labels?.includes(tab.ref)).length
|
|
10
11
|
: 0;
|
|
11
|
-
return (_jsx("div", { className:
|
|
12
|
+
return (_jsx("div", { className: getTabClassName('block', active, tabsMode), role: "tab", "aria-selected": active, onClick: () => onClick(tab), children: _jsxs("div", { className: style('flex flex-1 items-center justify-center h-full', getTabClassName('text', active, tabsMode)), children: [_jsx("span", { children: tab.title }), showCounter && count ? renderCount(tabsMode, count, active) : null] }) }, `group-${String(i)}`));
|
|
12
13
|
};
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
const titleClassName = tabsMode === 'scrollable'
|
|
16
|
-
? `${TEXT_CLASSES} ${activeClassName}`
|
|
17
|
-
: `${TEXT_CLASSES} ${active ? ACTIVE_TEXT_CLASSES : INACTIVE_TEXT_CLASSES}`;
|
|
18
|
-
return title ? _jsx("h3", { className: titleClassName, children: title }) : null;
|
|
19
|
-
};
|
|
20
|
-
const renderCount = (showCounter, count, active) => {
|
|
21
|
-
return showCounter && count ? (_jsx("div", { className: `${BADGE_CLASSES} ${active ? ACTIVE_BADGE_CLASSES : INACTIVE_BADGE_CLASSES}`, children: count })) : null;
|
|
14
|
+
const renderCount = (tabsMode, count, active) => {
|
|
15
|
+
return (_jsx("div", { className: style(BADGE_CLASSES, active && tabsMode !== 'scrollable' ? LIGHT_BADGE_CLASSES : DARK_BADGE_CLASSES), children: count }));
|
|
22
16
|
};
|
|
23
17
|
//# sourceMappingURL=renderGroupTab.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderGroupTab.js","sourceRoot":"","sources":["../../../src/components/Tabs/renderGroupTab.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"renderGroupTab.js","sourceRoot":"","sources":["../../../src/components/Tabs/renderGroupTab.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGnD,MAAM,aAAa,GACjB,kGAAkG,CAAC;AACrG,MAAM,mBAAmB,GAAG,wBAAwB,CAAC;AACrD,MAAM,kBAAkB,GAAG,uDAAuD,CAAC;AAEnF,MAAM,CAAC,MAAM,cAAc,GACzB,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAkB,EAAE,EAAE,CACzE,CAAC,GAAiB,EAAE,CAAS,EAAE,EAAE;IAC/B,MAAM,MAAM,GAAG,UAAU,KAAK,GAAG,CAAC;IAElC,MAAM,KAAK,GACT,GAAG,CAAC,GAAG,IAAI,IAAI,EAAE,MAAM;QACrB,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,GAAG,CAAC,GAAa,CAAC,CAAC,CAAC,MAAM;QAClF,CAAC,CAAC,CAAC,CAAC;IAER,OAAO,CACL,cAEE,SAAS,EAAE,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,EACrD,IAAI,EAAC,KAAK,mBACK,MAAM,EACrB,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,YAE3B,eACE,SAAS,EAAE,KAAK,CACd,gDAAgD,EAChD,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,CAC1C,aAED,yBAAO,GAAG,CAAC,KAAK,GAAQ,EACvB,WAAW,IAAI,KAAK,CAAC,CAAC,CAAC,WAAW,CAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,IAC/D,IAdD,SAAS,MAAM,CAAC,CAAC,CAAC,EAAE,CAerB,CACP,CAAC;AACJ,CAAC,CAAC;AAEJ,MAAM,WAAW,GAAG,CAAC,QAA8B,EAAE,KAAa,EAAE,MAAe,EAAE,EAAE;IACrF,OAAO,CACL,cACE,SAAS,EAAE,KAAK,CACd,aAAa,EACb,MAAM,IAAI,QAAQ,KAAK,YAAY,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,kBAAkB,CAC/E,YAEA,KAAK,GACF,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -6,7 +6,6 @@ export declare const SCROLLABLE_ACTIVE_LINK_CLASSES = "bg-white text-primary-mai
|
|
|
6
6
|
export declare const WIDESCREEN_ACTIVE_LINK_CLASSES = "bg-primary-main text-white";
|
|
7
7
|
export declare const TEXT_CLASSES = "font-sans text-m text-center";
|
|
8
8
|
export declare const ACTIVE_TEXT_CLASSES = "text-white";
|
|
9
|
-
export declare const INACTIVE_TEXT_CLASSES = "text-secondary-text group-hover/btn:text-primary-main";
|
|
9
|
+
export declare const INACTIVE_TEXT_CLASSES = "text-secondary-text sm:group-hover/btn:text-primary-main";
|
|
10
10
|
export declare const WHITE_ACTIVE_TEXT_CLASSES = "text-primary-main";
|
|
11
|
-
export declare const
|
|
12
|
-
export declare const getLinkTabClassName: (type: string, active: boolean, tabsMode?: TabsMode) => any;
|
|
11
|
+
export declare const getTabClassName: (type: string, active: boolean, tabsMode?: TabsMode) => string;
|
|
@@ -5,10 +5,10 @@ export const SCROLLABLE_ACTIVE_LINK_CLASSES = 'bg-white text-primary-main';
|
|
|
5
5
|
export const WIDESCREEN_ACTIVE_LINK_CLASSES = 'bg-primary-main text-white';
|
|
6
6
|
export const TEXT_CLASSES = 'font-sans text-m text-center';
|
|
7
7
|
export const ACTIVE_TEXT_CLASSES = 'text-white';
|
|
8
|
-
export const INACTIVE_TEXT_CLASSES = 'text-secondary-text group-hover/btn:text-primary-main';
|
|
8
|
+
export const INACTIVE_TEXT_CLASSES = 'text-secondary-text sm:group-hover/btn:text-primary-main';
|
|
9
9
|
export const WHITE_ACTIVE_TEXT_CLASSES = 'text-primary-main';
|
|
10
|
-
const
|
|
11
|
-
|
|
10
|
+
const TAB_CLASSES = {
|
|
11
|
+
block: {
|
|
12
12
|
scrollable: {
|
|
13
13
|
active: `inline-flex px-4 grow whitespace-nowrap ${LINK_CLASSES} ${SCROLLABLE_ACTIVE_LINK_CLASSES}`,
|
|
14
14
|
default: `inline-flex px-4 grow whitespace-nowrap ${LINK_CLASSES} ${INACTIVE_LINK_CLASSES}`,
|
|
@@ -24,37 +24,7 @@ const GROUP_TAB_CLASSES = {
|
|
|
24
24
|
},
|
|
25
25
|
text: {
|
|
26
26
|
scrollable: {
|
|
27
|
-
active:
|
|
28
|
-
default: ``,
|
|
29
|
-
},
|
|
30
|
-
centered: {
|
|
31
|
-
active: '',
|
|
32
|
-
default: '',
|
|
33
|
-
},
|
|
34
|
-
wideScreen: {
|
|
35
|
-
active: '',
|
|
36
|
-
default: '',
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
};
|
|
40
|
-
const LINK_TAB_CLASSES = {
|
|
41
|
-
link: {
|
|
42
|
-
scrollable: {
|
|
43
|
-
active: `inline-flex px-4 grow whitespace-nowrap ${LINK_CLASSES} ${SCROLLABLE_ACTIVE_LINK_CLASSES}`,
|
|
44
|
-
default: `inline-flex px-4 grow whitespace-nowrap ${LINK_CLASSES} ${INACTIVE_LINK_CLASSES}`,
|
|
45
|
-
},
|
|
46
|
-
centered: {
|
|
47
|
-
active: `px-4 rounded-md ${LINK_CLASSES} ${WIDESCREEN_ACTIVE_LINK_CLASSES} whitespace-nowrap`,
|
|
48
|
-
default: `px-4 rounded-md ${LINK_CLASSES} group/btn bg-transparent whitespace-nowrap`,
|
|
49
|
-
},
|
|
50
|
-
wideScreen: {
|
|
51
|
-
active: `${LINK_CLASSES} ${WIDESCREEN_ACTIVE_LINK_CLASSES}`,
|
|
52
|
-
default: `${LINK_CLASSES} ${INACTIVE_LINK_CLASSES}`,
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
text: {
|
|
56
|
-
scrollable: {
|
|
57
|
-
active: `${TEXT_CLASSES} flex items-center h-full border-0 border-b-2 ${WHITE_ACTIVE_TEXT_CLASSES}`,
|
|
27
|
+
active: `${TEXT_CLASSES} flex items-center h-full border-0 border-b-2`,
|
|
58
28
|
default: `${TEXT_CLASSES} ${INACTIVE_TEXT_CLASSES}`,
|
|
59
29
|
},
|
|
60
30
|
centered: {
|
|
@@ -62,19 +32,14 @@ const LINK_TAB_CLASSES = {
|
|
|
62
32
|
default: `${TEXT_CLASSES} ${INACTIVE_TEXT_CLASSES}`,
|
|
63
33
|
},
|
|
64
34
|
wideScreen: {
|
|
65
|
-
active: `${TEXT_CLASSES} ${ACTIVE_TEXT_CLASSES}`,
|
|
66
|
-
default: `${TEXT_CLASSES} ${INACTIVE_TEXT_CLASSES}`,
|
|
35
|
+
active: `${TEXT_CLASSES} ${ACTIVE_TEXT_CLASSES} text-black px-2.5 bg-white sm:bg-primary-main sm:text-white`,
|
|
36
|
+
default: `${TEXT_CLASSES} ${INACTIVE_TEXT_CLASSES} px-2.5 bg-white`,
|
|
67
37
|
},
|
|
68
38
|
},
|
|
69
39
|
};
|
|
70
|
-
export const
|
|
71
|
-
const styleActive = active ? 'active' : 'default';
|
|
72
|
-
const mode = tabsMode || 'wideScreen';
|
|
73
|
-
return GROUP_TAB_CLASSES[type][mode][styleActive];
|
|
74
|
-
};
|
|
75
|
-
export const getLinkTabClassName = (type, active, tabsMode) => {
|
|
40
|
+
export const getTabClassName = (type, active, tabsMode) => {
|
|
76
41
|
const styleActive = active ? 'active' : 'default';
|
|
77
42
|
const mode = tabsMode || 'wideScreen';
|
|
78
|
-
return
|
|
43
|
+
return TAB_CLASSES[type][mode][styleActive];
|
|
79
44
|
};
|
|
80
45
|
//# sourceMappingURL=tabItemClasses.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabItemClasses.js","sourceRoot":"","sources":["../../../src/components/Tabs/tabItemClasses.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAG,6DAA6D,CAAC;AAC1F,MAAM,CAAC,MAAM,mBAAmB,GAAG,iBAAiB,CAAC;AACrD,MAAM,CAAC,MAAM,qBAAqB,GAAG,oBAAoB,CAAC;AAE1D,MAAM,CAAC,MAAM,8BAA8B,GAAG,4BAA4B,CAAC;AAC3E,MAAM,CAAC,MAAM,8BAA8B,GAAG,4BAA4B,CAAC;AAE3E,MAAM,CAAC,MAAM,YAAY,GAAG,8BAA8B,CAAC;AAC3D,MAAM,CAAC,MAAM,mBAAmB,GAAG,YAAY,CAAC;AAChD,MAAM,CAAC,MAAM,qBAAqB,GAAG,
|
|
1
|
+
{"version":3,"file":"tabItemClasses.js","sourceRoot":"","sources":["../../../src/components/Tabs/tabItemClasses.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAG,6DAA6D,CAAC;AAC1F,MAAM,CAAC,MAAM,mBAAmB,GAAG,iBAAiB,CAAC;AACrD,MAAM,CAAC,MAAM,qBAAqB,GAAG,oBAAoB,CAAC;AAE1D,MAAM,CAAC,MAAM,8BAA8B,GAAG,4BAA4B,CAAC;AAC3E,MAAM,CAAC,MAAM,8BAA8B,GAAG,4BAA4B,CAAC;AAE3E,MAAM,CAAC,MAAM,YAAY,GAAG,8BAA8B,CAAC;AAC3D,MAAM,CAAC,MAAM,mBAAmB,GAAG,YAAY,CAAC;AAChD,MAAM,CAAC,MAAM,qBAAqB,GAAG,0DAA0D,CAAC;AAEhG,MAAM,CAAC,MAAM,yBAAyB,GAAG,mBAAmB,CAAC;AAE7D,MAAM,WAAW,GAAG;IAClB,KAAK,EAAE;QACL,UAAU,EAAE;YACV,MAAM,EAAE,2CAA2C,YAAY,IAAI,8BAA8B,EAAE;YACnG,OAAO,EAAE,2CAA2C,YAAY,IAAI,qBAAqB,EAAE;SAC5F;QACD,QAAQ,EAAE;YACR,MAAM,EAAE,mBAAmB,YAAY,IAAI,8BAA8B,oBAAoB;YAC7F,OAAO,EAAE,mBAAmB,YAAY,6CAA6C;SACtF;QACD,UAAU,EAAE;YACV,MAAM,EAAE,GAAG,YAAY,IAAI,8BAA8B,oBAAoB;YAC7E,OAAO,EAAE,GAAG,YAAY,IAAI,qBAAqB,oBAAoB;SACtE;KACF;IACD,IAAI,EAAE;QACJ,UAAU,EAAE;YACV,MAAM,EAAE,GAAG,YAAY,+CAA+C;YACtE,OAAO,EAAE,GAAG,YAAY,IAAI,qBAAqB,EAAE;SACpD;QACD,QAAQ,EAAE;YACR,MAAM,EAAE,GAAG,YAAY,IAAI,mBAAmB,EAAE;YAChD,OAAO,EAAE,GAAG,YAAY,IAAI,qBAAqB,EAAE;SACpD;QACD,UAAU,EAAE;YACV,MAAM,EAAE,GAAG,YAAY,IAAI,mBAAmB,8DAA8D;YAC5G,OAAO,EAAE,GAAG,YAAY,IAAI,qBAAqB,kBAAkB;SACpE;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAmE,CAC7F,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,EAAE;IACF,MAAM,WAAW,GAAG,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;IAClD,MAAM,IAAI,GAAG,QAAQ,IAAI,YAAY,CAAC;IAEtC,OAAO,WAAW,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC,CAAC;AAC9C,CAAC,CAAC"}
|
|
@@ -6,7 +6,6 @@ import { TariffsTableVertical } from './TariffsTableVertical.js';
|
|
|
6
6
|
export const TariffsTable = JSX(({ className, title, description, tariffsColumns: columns, rowHeaders, orientation = 'vertical', ...rest }) => {
|
|
7
7
|
const colData = getColData(columns);
|
|
8
8
|
const tiles = getTiles(rowHeaders, colData);
|
|
9
|
-
const headingMargin = description ? 'mb-2' : 'mb-8';
|
|
10
9
|
return (_jsxs("section", { className: `p-default bg-white font-sans text-primary-text overflow-x-hidden ${className}`, children: [_jsx(Headline, { title: title, description: description, headlineVersion: "M", align: "text-left", isPadding: false, className: "mb-8" }), orientation === 'vertical' ? (_jsx(TariffsTableVertical, { tiles: tiles, ...rest })) : (_jsx(TariffsTableHorizontal, { tiles: tiles, ...rest }))] }));
|
|
11
10
|
});
|
|
12
11
|
const getColData = (columns) => columns?.[0]?.data ? columns[0].data : [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTable.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTable.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAOhD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAI9D,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAC7B,CAAC,EACC,SAAS,EACT,KAAK,EACL,WAAW,EACX,cAAc,EAAE,OAAO,EACvB,UAAU,EACV,WAAW,GAAG,UAAU,EACxB,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC;IACpC,MAAM,KAAK,GAAG,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"TariffsTable.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTable.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAOhD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAI9D,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAC7B,CAAC,EACC,SAAS,EACT,KAAK,EACL,WAAW,EACX,cAAc,EAAE,OAAO,EACvB,UAAU,EACV,WAAW,GAAG,UAAU,EACxB,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC;IACpC,MAAM,KAAK,GAAG,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IAE5C,OAAO,CACL,mBACE,SAAS,EAAE,oEAAoE,SAAS,EAAE,aAE1F,KAAC,QAAQ,IACP,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,eAAe,EAAC,GAAG,EACnB,KAAK,EAAC,WAAW,EACjB,SAAS,EAAE,KAAK,EAChB,SAAS,EAAC,MAAM,GAChB,EACD,WAAW,KAAK,UAAU,CAAC,CAAC,CAAC,CAC5B,KAAC,oBAAoB,IAAC,KAAK,EAAE,KAAK,KAAM,IAAI,GAAI,CACjD,CAAC,CAAC,CAAC,CACF,KAAC,sBAAsB,IAAC,KAAK,EAAE,KAAK,KAAM,IAAI,GAAI,CACnD,IACO,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,OAAyC,EAAE,EAAE,CAC/D,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;AAE5C,MAAM,QAAQ,GAAG,CAAC,UAA+C,EAAE,OAAoB,EAAE,EAAE,CACzF,UAAU,EAAE,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAC9B,MAAM;IACN,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;CAC3B,CAAC,CAAC,CAAC"}
|
|
@@ -5,6 +5,6 @@ import { Input } from '../Input/Input.js';
|
|
|
5
5
|
import { normalizePhone } from './normalizePhone.js';
|
|
6
6
|
export const PhoneInput = JSX(({ children, onChange, ...inputProps }) => {
|
|
7
7
|
const handleChange = useCallback((value) => onChange && onChange(normalizePhone(value)), [onChange]);
|
|
8
|
-
return (_jsx(Input, { onChange: handleChange, onFocus: handleChange, ...inputProps, children: children }));
|
|
8
|
+
return (_jsx(Input, { onChange: handleChange, onFocus: (event) => handleChange(event?.target?.value || ''), ...inputProps, children: children }));
|
|
9
9
|
});
|
|
10
10
|
//# sourceMappingURL=PhoneInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PhoneInput.js","sourceRoot":"","sources":["../../../src/ui-kit/PhoneInput/PhoneInput.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAAa,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EAAE,EAAE;IAClF,MAAM,YAAY,GAAG,WAAW,CAC9B,CAAC,KAAa,EAAE,EAAE,CAAC,QAAQ,IAAI,QAAQ,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,EAC9D,CAAC,QAAQ,CAAC,CACX,CAAC;IAEF,OAAO,CACL,KAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"PhoneInput.js","sourceRoot":"","sources":["../../../src/ui-kit/PhoneInput/PhoneInput.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAAa,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EAAE,EAAE;IAClF,MAAM,YAAY,GAAG,WAAW,CAC9B,CAAC,KAAa,EAAE,EAAE,CAAC,QAAQ,IAAI,QAAQ,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,EAC9D,CAAC,QAAQ,CAAC,CACX,CAAC;IAEF,OAAO,CACL,KAAC,KAAK,IACJ,QAAQ,EAAE,YAAY,EACtB,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,YAAY,CAAE,KAAK,EAAE,MAAM,EAAE,KAAgB,IAAI,EAAE,CAAC,KACpE,UAAU,YAEb,QAAQ,GACH,CACT,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
package/mobile/src/common.css
CHANGED
|
@@ -27,6 +27,7 @@ html {
|
|
|
27
27
|
--color-gradient-from: 141, 189, 76;
|
|
28
28
|
--color-gradient-to: 69, 172, 69;
|
|
29
29
|
}
|
|
30
|
+
|
|
30
31
|
/* Business clients | Light-Green */
|
|
31
32
|
[data-theme='bc'] {
|
|
32
33
|
--color-primary-main: var(--color-green-light);
|
|
@@ -37,6 +38,7 @@ html {
|
|
|
37
38
|
--color-gradient-from: 141, 189, 76; /* TODO: change color to theme bc */
|
|
38
39
|
--color-gradient-to: 69, 172, 69; /* TODO: change color to theme bc */
|
|
39
40
|
}
|
|
41
|
+
|
|
40
42
|
/* Ecosystem own | Yellow */
|
|
41
43
|
[data-theme='eo'] {
|
|
42
44
|
--color-primary-main: var(--color-yellow);
|
|
@@ -255,6 +257,7 @@ html {
|
|
|
255
257
|
table-layout: fixed;
|
|
256
258
|
text-align: left;
|
|
257
259
|
}
|
|
260
|
+
|
|
258
261
|
.striped.md-container table thead,
|
|
259
262
|
.horizontal-separator.md-container table thead {
|
|
260
263
|
color: rgb(var(--color-secondary-text));
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
3
|
-
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
4
|
-
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
5
|
-
import { Img } from '../../ui-kit/Img/Img';
|
|
6
|
-
import { style } from '../../utils/style';
|
|
7
1
|
import type {
|
|
8
2
|
BenefitBlockItemProps,
|
|
9
3
|
BenefitsBlockContent,
|
|
@@ -11,47 +5,56 @@ import type {
|
|
|
11
5
|
ListBenefitDef,
|
|
12
6
|
TextBenefitDef,
|
|
13
7
|
} from './BenefitsBlockContent';
|
|
8
|
+
import { benefitImageStyles } from './benefitImageStyles';
|
|
9
|
+
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
10
|
+
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
11
|
+
import { Img } from '../../ui-kit/Img/Img';
|
|
12
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
13
|
+
import { style } from '../../utils/style';
|
|
14
|
+
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
14
15
|
|
|
15
16
|
interface BenefitsBlockProps extends BenefitsBlockContent, UniBlockProps {}
|
|
16
17
|
|
|
17
18
|
export const BenefitsBlock = JSX<BenefitsBlockProps>(
|
|
18
19
|
({ className = '', title, benefitList, ...rest }) => (
|
|
19
|
-
<BlockWrapper
|
|
20
|
-
|
|
21
|
-
defaultPadding="p-default"
|
|
22
|
-
{...rest}
|
|
23
|
-
>
|
|
24
|
-
{title ? (
|
|
25
|
-
<Heading headingType="h3" as="h2" className="max-w-[47rem] text-center" title={title} />
|
|
26
|
-
) : null}
|
|
20
|
+
<BlockWrapper className={className} defaultPadding="p-default" {...rest}>
|
|
21
|
+
{title ? <Heading headingType="h3" as="h2" className="text-center" title={title} /> : null}
|
|
27
22
|
{benefitList?.length ? (
|
|
28
|
-
<div
|
|
29
|
-
|
|
23
|
+
<div
|
|
24
|
+
className="sm:flex sm:flex-wrap w-full sm:justify-center sm:gap-x-m gap-y-lg sm:gap-y-0 mt-8"
|
|
25
|
+
role="list"
|
|
26
|
+
>
|
|
27
|
+
{benefitList.map(renderBenefit)}
|
|
30
28
|
</div>
|
|
31
29
|
) : null}
|
|
32
30
|
</BlockWrapper>
|
|
33
31
|
),
|
|
34
32
|
);
|
|
35
33
|
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
34
|
+
const renderBenefit = (benefit: BenefitBlockItemProps, i: number) => (
|
|
35
|
+
<div
|
|
36
|
+
key={String(i)}
|
|
37
|
+
className="flex items-center sm:basis-1/2 sm:max-w-[400px] mb-14"
|
|
38
|
+
role="listitem"
|
|
39
|
+
>
|
|
40
|
+
{benefit?.icon?.icon ? (
|
|
41
|
+
<Img
|
|
42
|
+
className={style(
|
|
43
|
+
'p-3 mr-5 shrink-0 bg-main-divider text-primary-main group-data-secondary:bg-white/30 group-data-secondary:text-black',
|
|
44
|
+
benefitImageStyles,
|
|
45
|
+
)}
|
|
46
|
+
image={benefit.icon}
|
|
47
|
+
/>
|
|
48
|
+
) : null}
|
|
49
|
+
{benefit?.icon?.src ? <Img className="mr-5 shrink-0" image={benefit.icon} /> : null}
|
|
50
|
+
{benefit?.label ? (
|
|
51
|
+
<div className="sm:h-full">
|
|
52
|
+
<Heading headingType="h6">{benefit.label}</Heading>
|
|
53
|
+
{renderDescription(benefit.description)}
|
|
51
54
|
</div>
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
+
) : null}
|
|
56
|
+
</div>
|
|
57
|
+
);
|
|
55
58
|
|
|
56
59
|
const renderDescription = (description: DescriptionDef | undefined) => {
|
|
57
60
|
const benefitType = description?.benefitType || null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const benefitImageStyles = 'w-56 h-56 min-w-56';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { BlocksRegistry } from '../model/BlocksRegistry';
|
|
2
|
+
import { BonusBenefitsBlock } from './BonusBenefitsBlock/BonusBenefitsBlock';
|
|
2
3
|
import { ButtonsBlock } from './ButtonsBlock/ButtonsBlock';
|
|
3
4
|
import { CardTransfer } from './CardTransfer/CardTransfer';
|
|
4
5
|
import { Carousel } from './Carousel/Carousel';
|
|
@@ -19,12 +20,15 @@ import { ProductGallery } from './ProductGallery/ProductGallery';
|
|
|
19
20
|
import { RichTextBlock } from './RichTextBlock/RichTextBlock';
|
|
20
21
|
import { RollupItem } from './RollupItem/RollupItem';
|
|
21
22
|
import { StepsBlock } from './StepsBlock/StepsBlock';
|
|
23
|
+
import { Tabs } from './Tabs/Tabs';
|
|
22
24
|
import { TariffsTable } from './TariffsTable/TariffsTable';
|
|
23
25
|
import { TextBlock } from './TextBlock/TextBlock';
|
|
24
26
|
import { VerticalLayout } from './VerticalLayout/VerticalLayout';
|
|
27
|
+
import { BenefitsBlock } from './BenefitsBlock/BenefitsBlock';
|
|
25
28
|
|
|
26
29
|
export const Blocks: BlocksRegistry = {
|
|
27
30
|
ButtonsBlock,
|
|
31
|
+
BonusBenefitsBlock,
|
|
28
32
|
CardTransfer,
|
|
29
33
|
Carousel,
|
|
30
34
|
CarouselTariffsCard,
|
|
@@ -39,6 +43,7 @@ export const Blocks: BlocksRegistry = {
|
|
|
39
43
|
Placeholder,
|
|
40
44
|
ProductBlock,
|
|
41
45
|
StepsBlock,
|
|
46
|
+
Tabs,
|
|
42
47
|
TariffsTable,
|
|
43
48
|
TextBlock,
|
|
44
49
|
RichTextBlock,
|
|
@@ -47,4 +52,5 @@ export const Blocks: BlocksRegistry = {
|
|
|
47
52
|
CarouselRecommendationCard,
|
|
48
53
|
CarouselProgramsCard,
|
|
49
54
|
ProductGallery,
|
|
55
|
+
BenefitsBlock,
|
|
50
56
|
};
|
|
@@ -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 bonusBenefitStyles = 'justify-between p-4 h-full border border-gray';
|
|
@@ -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
|
+
);
|
|
@@ -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",
|
|
@@ -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
|
);
|