@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
|
@@ -12,17 +12,7 @@
|
|
|
12
12
|
"size": {
|
|
13
13
|
"width": 234,
|
|
14
14
|
"height": 234
|
|
15
|
-
}
|
|
16
|
-
"sources": [
|
|
17
|
-
{
|
|
18
|
-
"media": 1279,
|
|
19
|
-
"size": {
|
|
20
|
-
"width": 164
|
|
21
|
-
},
|
|
22
|
-
"format": "webp",
|
|
23
|
-
"alignment": "northeast"
|
|
24
|
-
}
|
|
25
|
-
]
|
|
15
|
+
}
|
|
26
16
|
},
|
|
27
17
|
"items": ["Элемент списка 1", "Элемент списка 2", "Элемент списка 3"],
|
|
28
18
|
"isDotted": true,
|
|
@@ -7,17 +7,7 @@
|
|
|
7
7
|
"format": "webp",
|
|
8
8
|
"size": {
|
|
9
9
|
"width": 242
|
|
10
|
-
}
|
|
11
|
-
"sources": [
|
|
12
|
-
{
|
|
13
|
-
"media": 1279,
|
|
14
|
-
"size": {
|
|
15
|
-
"width": 145
|
|
16
|
-
},
|
|
17
|
-
"format": "webp",
|
|
18
|
-
"alignment": "southeast"
|
|
19
|
-
}
|
|
20
|
-
]
|
|
10
|
+
}
|
|
21
11
|
},
|
|
22
12
|
"version": "primary",
|
|
23
13
|
"benefits": [
|
|
@@ -43,6 +33,8 @@
|
|
|
43
33
|
"version": "primary"
|
|
44
34
|
}
|
|
45
35
|
],
|
|
46
|
-
"
|
|
36
|
+
"imageOptions": {
|
|
37
|
+
"directionRight": true
|
|
38
|
+
}
|
|
47
39
|
}
|
|
48
40
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useLink } from '../../hooks/useLink';
|
|
3
|
-
import {
|
|
3
|
+
import { style } from '../../utils/style';
|
|
4
|
+
import { getTabClassName } from './tabItemClasses';
|
|
4
5
|
import type { LinkTabData, TabData, TabsMode } from './TabsContent';
|
|
5
6
|
|
|
6
7
|
interface LinkTabProps {
|
|
@@ -23,14 +24,24 @@ export const LinkTab = JSX<LinkTabProps>((props) => {
|
|
|
23
24
|
};
|
|
24
25
|
|
|
25
26
|
return (
|
|
26
|
-
<
|
|
27
|
+
<div
|
|
28
|
+
className={getTabClassName('block', active, tabsMode)}
|
|
27
29
|
role="tab"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
href={adjustedProps.href}
|
|
31
|
-
onClick={handleClick}
|
|
30
|
+
aria-selected={active}
|
|
31
|
+
onClick={() => onClick(tab)}
|
|
32
32
|
>
|
|
33
|
-
<
|
|
34
|
-
|
|
33
|
+
<a
|
|
34
|
+
role="tab"
|
|
35
|
+
className={style(
|
|
36
|
+
'flex flex-1 items-center justify-center h-full',
|
|
37
|
+
getTabClassName('text', active, tabsMode),
|
|
38
|
+
)}
|
|
39
|
+
target={tab.target}
|
|
40
|
+
href={adjustedProps.href}
|
|
41
|
+
onClick={handleClick}
|
|
42
|
+
>
|
|
43
|
+
<span>{tab.text}</span>
|
|
44
|
+
</a>
|
|
45
|
+
</div>
|
|
35
46
|
);
|
|
36
47
|
});
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import '../../setup-fixture';
|
|
2
|
+
|
|
3
|
+
import { Tabs } from './Tabs';
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
default: (
|
|
7
|
+
<div className="container grid grid-cols-12">
|
|
8
|
+
<Tabs
|
|
9
|
+
className="col-span-12"
|
|
10
|
+
tabs={[
|
|
11
|
+
{ type: 'group', ref: 'tab1', title: 'Вкладка 1' },
|
|
12
|
+
{ type: 'group', ref: 'tab2', title: 'Вкладка 2' },
|
|
13
|
+
{ type: 'link', href: 'https://google.com', text: 'Вкладка 3' },
|
|
14
|
+
{ type: 'link', href: 'https://yandex.com', text: 'Вкладка 4' },
|
|
15
|
+
]}
|
|
16
|
+
tabsMode="wideScreen"
|
|
17
|
+
/>
|
|
18
|
+
</div>
|
|
19
|
+
),
|
|
20
|
+
scrollable: (
|
|
21
|
+
<div className="container grid grid-cols-12">
|
|
22
|
+
<Tabs
|
|
23
|
+
className="col-span-12"
|
|
24
|
+
tabs={[
|
|
25
|
+
{ type: 'group', ref: 'tab1', title: 'Вкладка 1' },
|
|
26
|
+
{ type: 'group', ref: 'tab2', title: 'Вкладка 2' },
|
|
27
|
+
{ type: 'link', href: 'https://google.com', text: 'Вкладка 3' },
|
|
28
|
+
{ type: 'link', href: 'https://yandex.com', text: 'Вкладка 4' },
|
|
29
|
+
{ type: 'link', href: 'https://ya.com', text: 'Вкладка 5' },
|
|
30
|
+
{ type: 'link', href: 'https://habr.com', text: 'Вкладка 6' },
|
|
31
|
+
{ type: 'link', href: 'https://kremlin.com', text: 'Вкладка 7' },
|
|
32
|
+
{ type: 'link', href: 'https://gov.com', text: 'Вкладка 8' },
|
|
33
|
+
{ type: 'group', ref: 'tab3', title: 'Вкладка 9' },
|
|
34
|
+
]}
|
|
35
|
+
tabsMode="scrollable"
|
|
36
|
+
/>
|
|
37
|
+
</div>
|
|
38
|
+
),
|
|
39
|
+
centered: (
|
|
40
|
+
<div className="container grid grid-cols-12">
|
|
41
|
+
<Tabs
|
|
42
|
+
className="col-span-12"
|
|
43
|
+
tabs={[
|
|
44
|
+
{ type: 'group', ref: 'tab1', title: '2021' },
|
|
45
|
+
{ type: 'group', ref: 'tab2', title: '2020' },
|
|
46
|
+
{ type: 'link', href: 'https://google.com', text: '2019' },
|
|
47
|
+
{ type: 'link', href: 'https://yandex.com', text: '2018' },
|
|
48
|
+
{ type: 'link', href: 'https://ya.com', text: '2017' },
|
|
49
|
+
{ type: 'link', href: 'https://habr.com', text: '2016' },
|
|
50
|
+
]}
|
|
51
|
+
tabsMode="centered"
|
|
52
|
+
/>
|
|
53
|
+
</div>
|
|
54
|
+
),
|
|
55
|
+
};
|
|
@@ -11,7 +11,7 @@ export default {
|
|
|
11
11
|
{ type: 'group', ref: 'tab1', title: 'Вкладка 1' },
|
|
12
12
|
{ type: 'group', ref: 'tab2', title: 'Вкладка 2' },
|
|
13
13
|
{ type: 'link', href: 'https://google.com', text: 'Вкладка 3' },
|
|
14
|
-
{ type: '
|
|
14
|
+
{ type: 'link', href: 'https://yandex.com', text: 'Вкладка 4' },
|
|
15
15
|
]}
|
|
16
16
|
tabsMode="wideScreen"
|
|
17
17
|
/>
|
|
@@ -27,12 +27,10 @@ export default {
|
|
|
27
27
|
{ type: 'link', href: 'https://google.com', text: 'Вкладка 3' },
|
|
28
28
|
{ type: 'link', href: 'https://yandex.com', text: 'Вкладка 4' },
|
|
29
29
|
{ type: 'link', href: 'https://ya.com', text: 'Вкладка 5' },
|
|
30
|
-
{ type: 'link', href: 'https://habr.com', text: 'Вкладка
|
|
30
|
+
{ type: 'link', href: 'https://habr.com', text: 'Вкладка 6' },
|
|
31
31
|
{ type: 'link', href: 'https://kremlin.com', text: 'Вкладка 7' },
|
|
32
32
|
{ type: 'link', href: 'https://gov.com', text: 'Вкладка 8' },
|
|
33
33
|
{ type: 'group', ref: 'tab3', title: 'Вкладка 9' },
|
|
34
|
-
{ type: 'link', href: 'https://vc.com', text: 'Вкладка номер 10' },
|
|
35
|
-
{ type: 'link', href: 'https://ria.com', text: 'Вкладка номер 11' },
|
|
36
34
|
]}
|
|
37
35
|
tabsMode="scrollable"
|
|
38
36
|
/>
|
|
@@ -44,21 +42,14 @@ export default {
|
|
|
44
42
|
className="col-span-12"
|
|
45
43
|
tabs={[
|
|
46
44
|
{ type: 'group', ref: 'tab1', title: '2021' },
|
|
47
|
-
{ type: '
|
|
48
|
-
{ type: '
|
|
45
|
+
{ type: 'group', ref: 'tab2', title: '2020' },
|
|
46
|
+
{ type: 'link', href: 'https://google.com', text: '2019' },
|
|
49
47
|
{ type: 'link', href: 'https://yandex.com', text: '2018' },
|
|
50
|
-
{ type: '
|
|
51
|
-
{ type: 'link', href: 'https://
|
|
52
|
-
{ type: 'link', href: 'https://
|
|
48
|
+
{ type: 'link', href: 'https://ya.com', text: '2017' },
|
|
49
|
+
{ type: 'link', href: 'https://habr.com', text: '2016' },
|
|
50
|
+
{ type: 'link', href: 'https://kremlin.com', text: '2015' },
|
|
51
|
+
{ type: 'link', href: 'https://gov.com', text: '2014' },
|
|
53
52
|
{ type: 'group', ref: 'tab3', title: '2013' },
|
|
54
|
-
{ type: 'link', href: 'https://kremlin.com', text: '2012' },
|
|
55
|
-
{ type: 'group', ref: 'tab5', title: '2011' },
|
|
56
|
-
{ type: 'link', href: 'https://ria.com', text: '2009' },
|
|
57
|
-
{ type: 'group', ref: 'tab8', title: '2008' },
|
|
58
|
-
{ type: 'group', ref: 'tab8', title: '2007' },
|
|
59
|
-
{ type: 'group', ref: 'tab8', title: '2006' },
|
|
60
|
-
{ type: 'group', ref: 'tab8', title: '2005' },
|
|
61
|
-
{ type: 'group', ref: 'tab8', title: '2004' },
|
|
62
53
|
]}
|
|
63
54
|
tabsMode="centered"
|
|
64
55
|
/>
|
|
@@ -3,6 +3,7 @@ import { useCallback, useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
|
3
3
|
import { defaultEventBus } from '../../EventBus/defaultEventBus';
|
|
4
4
|
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
5
5
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
6
|
+
import { style } from '../../utils/style';
|
|
6
7
|
import { CenteredTabs } from './CenteredTabs';
|
|
7
8
|
import { renderTab } from './renderTab';
|
|
8
9
|
import { ScrollableTabs } from './ScrollableTabs';
|
|
@@ -16,7 +17,7 @@ interface RenderTabsProps extends TabsBlockProps {
|
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
export const Tabs = JSX<TabsBlockProps>((props) => {
|
|
19
|
-
const { className = '',
|
|
20
|
+
const { className = '', isSticky, tabs, ...rest } = props;
|
|
20
21
|
|
|
21
22
|
const [currentTab, setCurrentTab] = useState(tabs ? tabs[0] : undefined);
|
|
22
23
|
|
|
@@ -41,9 +42,11 @@ export const Tabs = JSX<TabsBlockProps>((props) => {
|
|
|
41
42
|
|
|
42
43
|
return (
|
|
43
44
|
<BlockWrapper
|
|
44
|
-
className={
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
className={style(
|
|
46
|
+
'relative box-border flex gap-x-1 w-full overflow-x-auto no-scrollbar',
|
|
47
|
+
isSticky ? 'sticky top-1 z-20' : '',
|
|
48
|
+
className,
|
|
49
|
+
)}
|
|
47
50
|
defaultPadding="p-0"
|
|
48
51
|
role="tablist"
|
|
49
52
|
{...rest}
|
|
@@ -1,18 +1,12 @@
|
|
|
1
|
+
import { style } from '../../utils/style';
|
|
1
2
|
import type { RenderTabProps } from './renderTab';
|
|
2
|
-
import {
|
|
3
|
-
ACTIVE_TEXT_CLASSES,
|
|
4
|
-
getGroupTabClassName,
|
|
5
|
-
INACTIVE_TEXT_CLASSES,
|
|
6
|
-
TEXT_CLASSES,
|
|
7
|
-
WHITE_ACTIVE_TEXT_CLASSES,
|
|
8
|
-
} from './tabItemClasses';
|
|
3
|
+
import { getTabClassName } from './tabItemClasses';
|
|
9
4
|
import type { GroupTabData, TabsMode } from './TabsContent';
|
|
10
5
|
|
|
11
6
|
const BADGE_CLASSES =
|
|
12
|
-
'min-w-[22px] h-[22px] rounded-full text-xs ml-2 flex justify-center items-center';
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
'bg-main-divider text-secondary-text group-hover/btn:text-primary-main';
|
|
7
|
+
'bg-main-divider min-w-[22px] h-[22px] rounded-full text-xs ml-2 flex justify-center items-center';
|
|
8
|
+
const LIGHT_BADGE_CLASSES = 'bg-white/30 text-white';
|
|
9
|
+
const DARK_BADGE_CLASSES = 'text-secondary-text group-hover/btn:text-primary-main';
|
|
16
10
|
|
|
17
11
|
export const renderGroupTab =
|
|
18
12
|
({ page, currentTab, showCounter, onClick, tabsMode }: RenderTabProps) =>
|
|
@@ -27,39 +21,33 @@ export const renderGroupTab =
|
|
|
27
21
|
return (
|
|
28
22
|
<div
|
|
29
23
|
key={`group-${String(i)}`}
|
|
30
|
-
className={
|
|
24
|
+
className={getTabClassName('block', active, tabsMode)}
|
|
31
25
|
role="tab"
|
|
32
26
|
aria-selected={active}
|
|
33
27
|
onClick={() => onClick(tab)}
|
|
34
28
|
>
|
|
35
29
|
<div
|
|
36
|
-
className={
|
|
37
|
-
'
|
|
38
|
-
active,
|
|
39
|
-
|
|
40
|
-
)}`}
|
|
30
|
+
className={style(
|
|
31
|
+
'flex flex-1 items-center justify-center h-full',
|
|
32
|
+
getTabClassName('text', active, tabsMode),
|
|
33
|
+
)}
|
|
41
34
|
>
|
|
42
|
-
{
|
|
43
|
-
{renderCount(
|
|
35
|
+
<span>{tab.title}</span>
|
|
36
|
+
{showCounter && count ? renderCount(tabsMode, count, active) : null}
|
|
44
37
|
</div>
|
|
45
38
|
</div>
|
|
46
39
|
);
|
|
47
40
|
};
|
|
48
41
|
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
const renderCount = (showCounter: boolean | undefined, count: number, active: boolean) => {
|
|
60
|
-
return showCounter && count ? (
|
|
61
|
-
<div className={`${BADGE_CLASSES} ${active ? ACTIVE_BADGE_CLASSES : INACTIVE_BADGE_CLASSES}`}>
|
|
42
|
+
const renderCount = (tabsMode: TabsMode | undefined, count: number, active: boolean) => {
|
|
43
|
+
return (
|
|
44
|
+
<div
|
|
45
|
+
className={style(
|
|
46
|
+
BADGE_CLASSES,
|
|
47
|
+
active && tabsMode !== 'scrollable' ? LIGHT_BADGE_CLASSES : DARK_BADGE_CLASSES,
|
|
48
|
+
)}
|
|
49
|
+
>
|
|
62
50
|
{count}
|
|
63
51
|
</div>
|
|
64
|
-
)
|
|
52
|
+
);
|
|
65
53
|
};
|
|
@@ -9,12 +9,12 @@ export const WIDESCREEN_ACTIVE_LINK_CLASSES = 'bg-primary-main text-white';
|
|
|
9
9
|
|
|
10
10
|
export const TEXT_CLASSES = 'font-sans text-m text-center';
|
|
11
11
|
export const ACTIVE_TEXT_CLASSES = 'text-white';
|
|
12
|
-
export const INACTIVE_TEXT_CLASSES = 'text-secondary-text group-hover/btn:text-primary-main';
|
|
12
|
+
export const INACTIVE_TEXT_CLASSES = 'text-secondary-text sm:group-hover/btn:text-primary-main';
|
|
13
13
|
|
|
14
14
|
export const WHITE_ACTIVE_TEXT_CLASSES = 'text-primary-main';
|
|
15
15
|
|
|
16
|
-
const
|
|
17
|
-
|
|
16
|
+
const TAB_CLASSES = {
|
|
17
|
+
block: {
|
|
18
18
|
scrollable: {
|
|
19
19
|
active: `inline-flex px-4 grow whitespace-nowrap ${LINK_CLASSES} ${SCROLLABLE_ACTIVE_LINK_CLASSES}`,
|
|
20
20
|
default: `inline-flex px-4 grow whitespace-nowrap ${LINK_CLASSES} ${INACTIVE_LINK_CLASSES}`,
|
|
@@ -30,37 +30,7 @@ const GROUP_TAB_CLASSES = {
|
|
|
30
30
|
},
|
|
31
31
|
text: {
|
|
32
32
|
scrollable: {
|
|
33
|
-
active:
|
|
34
|
-
default: ``,
|
|
35
|
-
},
|
|
36
|
-
centered: {
|
|
37
|
-
active: '',
|
|
38
|
-
default: '',
|
|
39
|
-
},
|
|
40
|
-
wideScreen: {
|
|
41
|
-
active: '',
|
|
42
|
-
default: '',
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
};
|
|
46
|
-
const LINK_TAB_CLASSES = {
|
|
47
|
-
link: {
|
|
48
|
-
scrollable: {
|
|
49
|
-
active: `inline-flex px-4 grow whitespace-nowrap ${LINK_CLASSES} ${SCROLLABLE_ACTIVE_LINK_CLASSES}`,
|
|
50
|
-
default: `inline-flex px-4 grow whitespace-nowrap ${LINK_CLASSES} ${INACTIVE_LINK_CLASSES}`,
|
|
51
|
-
},
|
|
52
|
-
centered: {
|
|
53
|
-
active: `px-4 rounded-md ${LINK_CLASSES} ${WIDESCREEN_ACTIVE_LINK_CLASSES} whitespace-nowrap`,
|
|
54
|
-
default: `px-4 rounded-md ${LINK_CLASSES} group/btn bg-transparent whitespace-nowrap`,
|
|
55
|
-
},
|
|
56
|
-
wideScreen: {
|
|
57
|
-
active: `${LINK_CLASSES} ${WIDESCREEN_ACTIVE_LINK_CLASSES}`,
|
|
58
|
-
default: `${LINK_CLASSES} ${INACTIVE_LINK_CLASSES}`,
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
text: {
|
|
62
|
-
scrollable: {
|
|
63
|
-
active: `${TEXT_CLASSES} flex items-center h-full border-0 border-b-2 ${WHITE_ACTIVE_TEXT_CLASSES}`,
|
|
33
|
+
active: `${TEXT_CLASSES} flex items-center h-full border-0 border-b-2`,
|
|
64
34
|
default: `${TEXT_CLASSES} ${INACTIVE_TEXT_CLASSES}`,
|
|
65
35
|
},
|
|
66
36
|
centered: {
|
|
@@ -68,22 +38,19 @@ const LINK_TAB_CLASSES = {
|
|
|
68
38
|
default: `${TEXT_CLASSES} ${INACTIVE_TEXT_CLASSES}`,
|
|
69
39
|
},
|
|
70
40
|
wideScreen: {
|
|
71
|
-
active: `${TEXT_CLASSES} ${ACTIVE_TEXT_CLASSES}`,
|
|
72
|
-
default: `${TEXT_CLASSES} ${INACTIVE_TEXT_CLASSES}`,
|
|
41
|
+
active: `${TEXT_CLASSES} ${ACTIVE_TEXT_CLASSES} text-black px-2.5 bg-white sm:bg-primary-main sm:text-white`,
|
|
42
|
+
default: `${TEXT_CLASSES} ${INACTIVE_TEXT_CLASSES} px-2.5 bg-white`,
|
|
73
43
|
},
|
|
74
44
|
},
|
|
75
45
|
};
|
|
76
46
|
|
|
77
|
-
export const
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
export const getLinkTabClassName = (type: string, active: boolean, tabsMode?: TabsMode) => {
|
|
47
|
+
export const getTabClassName: (type: string, active: boolean, tabsMode?: TabsMode) => string = (
|
|
48
|
+
type,
|
|
49
|
+
active,
|
|
50
|
+
tabsMode,
|
|
51
|
+
) => {
|
|
85
52
|
const styleActive = active ? 'active' : 'default';
|
|
86
53
|
const mode = tabsMode || 'wideScreen';
|
|
87
54
|
|
|
88
|
-
return
|
|
55
|
+
return TAB_CLASSES[type][mode][styleActive];
|
|
89
56
|
};
|
|
@@ -11,7 +11,11 @@ export const PhoneInput = JSX<InputProps>(({ children, onChange, ...inputProps }
|
|
|
11
11
|
);
|
|
12
12
|
|
|
13
13
|
return (
|
|
14
|
-
<Input
|
|
14
|
+
<Input
|
|
15
|
+
onChange={handleChange}
|
|
16
|
+
onFocus={(event) => handleChange((event?.target?.value as string) || '')}
|
|
17
|
+
{...inputProps}
|
|
18
|
+
>
|
|
15
19
|
{children}
|
|
16
20
|
</Input>
|
|
17
21
|
);
|
package/tailwind.config.cjs
CHANGED
|
@@ -9,6 +9,19 @@ module.exports = {
|
|
|
9
9
|
filter: true,
|
|
10
10
|
},
|
|
11
11
|
theme: {
|
|
12
|
+
screens: {
|
|
13
|
+
sm: '640px',
|
|
14
|
+
// => @media (min-width: 640px) { ... }
|
|
15
|
+
|
|
16
|
+
md: '768px',
|
|
17
|
+
// => @media (min-width: 768px) { ... }
|
|
18
|
+
|
|
19
|
+
lg: '1024px',
|
|
20
|
+
// => @media (min-width: 1024px) { ... }
|
|
21
|
+
|
|
22
|
+
xl: '1280px',
|
|
23
|
+
// => @media (min-width: 1280px) { ... }
|
|
24
|
+
},
|
|
12
25
|
container: {
|
|
13
26
|
center: true,
|
|
14
27
|
},
|
|
@@ -20,20 +33,20 @@ module.exports = {
|
|
|
20
33
|
},
|
|
21
34
|
extend: {
|
|
22
35
|
spacing: {
|
|
23
|
-
xxl: '3rem',
|
|
24
|
-
xl: '2.5rem',
|
|
25
|
-
lg: '2rem',
|
|
26
|
-
m: '1.5rem',
|
|
27
|
-
s: '1rem',
|
|
28
|
-
xs: '0.5rem',
|
|
29
|
-
text: '0.75rem',
|
|
36
|
+
xxl: '3rem', // 48px
|
|
37
|
+
xl: '2.5rem', // 40
|
|
38
|
+
lg: '2rem', // 32px
|
|
39
|
+
m: '1.5rem', // 24px
|
|
40
|
+
s: '1rem', // 16px
|
|
41
|
+
xs: '0.5rem', // 8px
|
|
42
|
+
text: '0.75rem', // 12px
|
|
30
43
|
},
|
|
31
44
|
padding: {
|
|
32
|
-
default: '3rem',
|
|
33
|
-
lg: '3rem',
|
|
34
|
-
m: '2.25rem',
|
|
35
|
-
s: '1.5rem',
|
|
36
|
-
xs: '0.75rem',
|
|
45
|
+
default: '3rem', // 48px
|
|
46
|
+
lg: '3rem', // 48px
|
|
47
|
+
m: '2.25rem', // 36px
|
|
48
|
+
s: '1.5rem', // 24px
|
|
49
|
+
xs: '0.75rem', // 12px
|
|
37
50
|
},
|
|
38
51
|
transitionProperty: {
|
|
39
52
|
height: 'height',
|