@redneckz/wildless-cms-uni-blocks 0.3.74 → 0.3.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +272 -204
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/api/DaDataAPI.js.map +1 -1
- package/dist/api/LikeAPI.js.map +1 -1
- package/dist/components/Accordion/Accordion.mobile.js +1 -1
- package/dist/components/Accordion/Accordion.mobile.js.map +1 -1
- package/dist/components/Accordion/AccordionItem.mobile.js +1 -1
- package/dist/components/Accordion/AccordionItem.mobile.js.map +1 -1
- package/dist/components/Accordion/AccordionItemInner.js +1 -2
- package/dist/components/Accordion/AccordionItemInner.js.map +1 -1
- package/dist/components/Accordion/AccordionItemInner.mobile.js +1 -2
- package/dist/components/Accordion/AccordionItemInner.mobile.js.map +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/Blocks.d.ts +1 -0
- package/dist/components/Blocks.js +5 -3
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Calculator/getMonthlyPayment.js.map +1 -1
- package/dist/components/Calculator/renderCalculatorBlock.js.map +1 -1
- package/dist/components/Calculator/renderMonthsInput.js.map +1 -1
- package/dist/components/Calculator/renderRate.js +1 -1
- package/dist/components/Calculator/renderRate.js.map +1 -1
- package/dist/components/Catalog/Catalog.d.ts +5 -0
- package/dist/components/Catalog/Catalog.js +36 -0
- package/dist/components/Catalog/Catalog.js.map +1 -0
- package/dist/components/Catalog/CatalogCard.d.ts +7 -0
- package/dist/components/Catalog/CatalogCard.js +16 -0
- package/dist/components/Catalog/CatalogCard.js.map +1 -0
- package/dist/components/Catalog/CatalogContent.d.ts +23 -0
- package/{mobile/dist/model/Insurance.js → dist/components/Catalog/CatalogContent.js} +1 -1
- package/dist/components/Catalog/CatalogContent.js.map +1 -0
- package/dist/components/ComparisonTable/TableColumn.js.map +1 -1
- package/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/dist/components/ContentPage/ContentPageHead.js.map +1 -1
- package/dist/components/ContentPage/normalizeBlock.js.map +1 -1
- package/dist/components/ContentPage/normalizeBlock.mobile.js.map +1 -1
- package/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/dist/components/ExchangeRateTile/calculateResult.js.map +1 -1
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/Footer/SocialMedia.js.map +1 -1
- package/dist/components/Footer/SocialMedia.mobile.js.map +1 -1
- package/dist/components/Footer/TextInformation.js.map +1 -1
- package/dist/components/Footer/TextInformation.mobile.js.map +1 -1
- package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/dist/components/GroupBlock/GroupBlocksItem.js.map +1 -1
- package/dist/components/GroupBlock/renderBlocksTypes.js.map +1 -1
- package/dist/components/Header/HeaderBurger.js.map +1 -1
- package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/dist/components/Headline/Headline.mobile.js.map +1 -1
- package/dist/components/Insurance/Insurance.js.map +1 -1
- package/dist/components/Insurance/InsuranceContent.d.ts +5 -2
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +3 -3
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +5 -3
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
- package/dist/components/LinkList/LinkList.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js +16 -2
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.mobile.js +2 -2
- package/dist/components/MobileAppTile/MobileAppTile.mobile.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +5 -1
- package/dist/components/OtherProducts/OtherProducts.js +1 -1
- package/dist/components/OtherProducts/OtherProducts.js.map +1 -1
- package/dist/components/OtherProducts/OtherProductsContent.d.ts +3 -8
- package/dist/components/OtherProducts/OtherProductsItem.js +4 -6
- package/dist/components/OtherProducts/OtherProductsItem.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlock.mobile.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/ProductBlock/renderBenefit.js.map +1 -1
- package/dist/components/ProductBlock/renderBenefit.mobile.js.map +1 -1
- package/dist/components/ProductTile/ProductTile.js +7 -8
- package/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/dist/components/PromoTile/PromoTile.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.js +10 -6
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js +12 -31
- package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlockContent.d.ts +5 -2
- package/dist/components/StepsBlock/StepsBlockStyleMaps.d.ts +9 -0
- package/dist/components/StepsBlock/StepsBlockStyleMaps.js +21 -0
- package/dist/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -0
- package/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/dist/components/TextBlock/TextBlock.mobile.js.map +1 -1
- package/dist/content-page-repository/ContentPageRepository.js.map +1 -1
- package/dist/content-page-repository/mapJSON.js.map +1 -1
- package/dist/content-page-repository/transformContentPage.js.map +1 -1
- package/dist/content-page-repository/transformMarkdown.js.map +1 -1
- package/dist/content-page-repository/transformPicture.js.map +1 -1
- package/dist/hooks/useCreditCalculatorData.js.map +1 -1
- package/dist/hooks/useExchangeRates.js.map +1 -1
- package/dist/hooks/useLink.js.map +1 -1
- package/dist/react/setup-fixture.js.map +1 -1
- package/dist/services/sitemap/findActiveSubItem.js.map +1 -1
- package/dist/services/sitemap/useSitemap.js.map +1 -1
- package/dist/ui-kit/BlocksList/BlocksListProps.d.ts +17 -15
- package/dist/ui-kit/BlocksList/renderBlocksList.d.ts +2 -3
- package/dist/ui-kit/BlocksList/renderBlocksList.js +5 -4
- package/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/dist/ui-kit/Button/ButtonInner.js +2 -2
- package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/dist/ui-kit/Button/ButtonSection.js.map +1 -1
- package/dist/ui-kit/Foldable/Foldable.d.ts +2 -0
- package/dist/ui-kit/Foldable/Foldable.js +5 -5
- package/dist/ui-kit/Foldable/Foldable.js.map +1 -1
- package/dist/ui-kit/Input/Input.js.map +1 -1
- package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/dist/ui-kit/List/ListItem.js.map +1 -1
- package/dist/ui-kit/Logo/Logo.js.map +1 -1
- package/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/dist/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
- package/dist/ui-kit/SearchBar.mobile.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/utils/getIndexParts.js.map +1 -1
- package/dist/ui-kit/Tabs/Tabs.js.map +1 -1
- package/dist/ui-kit/TopItem/TopItem.js.map +1 -1
- package/dist/utils/adjustHref.js.map +1 -1
- package/dist/utils/getColSpan.js.map +1 -1
- package/dist/utils/roundTo.js.map +1 -1
- package/dist/utils/tableFunc.js.map +1 -1
- package/dist/utils/url.js.map +1 -1
- package/lib/api/DaDataAPI.js.map +1 -1
- package/lib/api/LikeAPI.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Accordion/Accordion.mobile.js +1 -1
- package/lib/components/Accordion/Accordion.mobile.js.map +1 -1
- package/lib/components/Accordion/AccordionItem.mobile.js +1 -1
- package/lib/components/Accordion/AccordionItem.mobile.js.map +1 -1
- package/lib/components/Accordion/AccordionItemInner.js +1 -2
- package/lib/components/Accordion/AccordionItemInner.js.map +1 -1
- package/lib/components/Accordion/AccordionItemInner.mobile.js +1 -2
- package/lib/components/Accordion/AccordionItemInner.mobile.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/Blocks.d.ts +1 -0
- package/lib/components/Blocks.js +5 -3
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Calculator/getMonthlyPayment.js.map +1 -1
- package/lib/components/Calculator/renderCalculatorBlock.js.map +1 -1
- package/lib/components/Calculator/renderMonthsInput.js.map +1 -1
- package/lib/components/Calculator/renderRate.js +1 -1
- package/lib/components/Calculator/renderRate.js.map +1 -1
- package/lib/components/Catalog/Catalog.d.ts +5 -0
- package/lib/components/Catalog/Catalog.fixture.d.ts +6 -0
- package/lib/components/Catalog/Catalog.js +34 -0
- package/lib/components/Catalog/Catalog.js.map +1 -0
- package/lib/components/Catalog/CatalogCard.d.ts +7 -0
- package/lib/components/Catalog/CatalogCard.js +14 -0
- package/lib/components/Catalog/CatalogCard.js.map +1 -0
- package/lib/components/Catalog/CatalogContent.d.ts +23 -0
- package/lib/components/Catalog/CatalogContent.js +2 -0
- package/lib/components/Catalog/CatalogContent.js.map +1 -0
- package/lib/components/ComparisonTable/TableColumn.js.map +1 -1
- package/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/lib/components/ContentPage/ContentPageHead.js.map +1 -1
- package/lib/components/ContentPage/normalizeBlock.js.map +1 -1
- package/lib/components/ContentPage/normalizeBlock.mobile.js.map +1 -1
- package/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/lib/components/ExchangeRateTile/calculateResult.js.map +1 -1
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/Footer/SocialMedia.js.map +1 -1
- package/lib/components/Footer/SocialMedia.mobile.js.map +1 -1
- package/lib/components/Footer/TextInformation.js.map +1 -1
- package/lib/components/Footer/TextInformation.mobile.js.map +1 -1
- package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/lib/components/GroupBlock/GroupBlocksItem.js.map +1 -1
- package/lib/components/GroupBlock/renderBlocksTypes.js.map +1 -1
- package/lib/components/Header/HeaderBurger.js.map +1 -1
- package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/lib/components/Headline/Headline.mobile.js.map +1 -1
- package/lib/components/Insurance/Insurance.js.map +1 -1
- package/lib/components/Insurance/InsuranceContent.d.ts +5 -2
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +3 -3
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +5 -3
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
- package/lib/components/LinkList/LinkList.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.fixture.d.ts +2 -0
- package/lib/components/MobileAppTile/MobileAppTile.js +16 -2
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.mobile.js +2 -2
- package/lib/components/MobileAppTile/MobileAppTile.mobile.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +5 -1
- package/lib/components/OtherProducts/OtherProducts.fixture.d.ts +0 -1
- package/lib/components/OtherProducts/OtherProducts.js +1 -1
- package/lib/components/OtherProducts/OtherProducts.js.map +1 -1
- package/lib/components/OtherProducts/OtherProductsContent.d.ts +3 -8
- package/lib/components/OtherProducts/OtherProductsItem.js +4 -6
- package/lib/components/OtherProducts/OtherProductsItem.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.mobile.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/ProductBlock/renderBenefit.js.map +1 -1
- package/lib/components/ProductBlock/renderBenefit.mobile.js.map +1 -1
- package/lib/components/ProductTile/ProductTile.js +7 -8
- package/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/lib/components/PromoTile/PromoTile.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.js +10 -6
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js +12 -31
- package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlockContent.d.ts +5 -2
- package/lib/components/StepsBlock/StepsBlockStyleMaps.d.ts +9 -0
- package/lib/components/StepsBlock/StepsBlockStyleMaps.js +18 -0
- package/lib/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -0
- package/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/lib/components/TextBlock/TextBlock.mobile.js.map +1 -1
- package/lib/content-page-repository/ContentPageRepository.js.map +1 -1
- package/lib/content-page-repository/mapJSON.js.map +1 -1
- package/lib/content-page-repository/transformContentPage.js.map +1 -1
- package/lib/content-page-repository/transformMarkdown.js.map +1 -1
- package/lib/content-page-repository/transformPicture.js.map +1 -1
- package/lib/hooks/useCreditCalculatorData.js.map +1 -1
- package/lib/hooks/useExchangeRates.js.map +1 -1
- package/lib/hooks/useLink.js.map +1 -1
- package/lib/react/setup-fixture.js.map +1 -1
- package/lib/services/sitemap/findActiveSubItem.js.map +1 -1
- package/lib/services/sitemap/useSitemap.js.map +1 -1
- package/lib/ui-kit/BlocksList/BlocksListProps.d.ts +17 -15
- package/lib/ui-kit/BlocksList/renderBlocksList.d.ts +2 -3
- package/lib/ui-kit/BlocksList/renderBlocksList.js +5 -4
- package/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/lib/ui-kit/Button/ButtonInner.js +2 -2
- package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/lib/ui-kit/Button/ButtonSection.js.map +1 -1
- package/lib/ui-kit/Foldable/Foldable.d.ts +2 -0
- package/lib/ui-kit/Foldable/Foldable.js +5 -5
- package/lib/ui-kit/Foldable/Foldable.js.map +1 -1
- package/lib/ui-kit/Input/Input.js.map +1 -1
- package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/lib/ui-kit/List/ListItem.js.map +1 -1
- package/lib/ui-kit/Logo/Logo.js.map +1 -1
- package/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/lib/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
- package/lib/ui-kit/SearchBar.mobile.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/utils/getIndexParts.js.map +1 -1
- package/lib/ui-kit/Tabs/Tabs.js.map +1 -1
- package/lib/ui-kit/TopItem/TopItem.js.map +1 -1
- package/lib/utils/adjustHref.js.map +1 -1
- package/lib/utils/getColSpan.js.map +1 -1
- package/lib/utils/roundTo.js.map +1 -1
- package/lib/utils/tableFunc.js.map +1 -1
- package/lib/utils/url.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +36 -39
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/api/DaDataAPI.js.map +1 -1
- package/mobile/dist/api/LikeAPI.js.map +1 -1
- package/mobile/dist/components/Accordion/Accordion.js +1 -1
- package/mobile/dist/components/Accordion/Accordion.js.map +1 -1
- package/mobile/dist/components/Accordion/AccordionItem.js +1 -1
- package/mobile/dist/components/Accordion/AccordionItem.js.map +1 -1
- package/mobile/dist/components/Accordion/AccordionItemInner.js +1 -2
- package/mobile/dist/components/Accordion/AccordionItemInner.js.map +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/components/Calculator/getMonthlyPayment.js.map +1 -1
- package/mobile/dist/components/Calculator/renderCalculatorBlock.js.map +1 -1
- package/mobile/dist/components/Calculator/renderMonthsInput.js.map +1 -1
- package/mobile/dist/components/Calculator/renderRate.js +1 -1
- package/mobile/dist/components/Calculator/renderRate.js.map +1 -1
- package/mobile/dist/components/Catalog/Catalog.d.ts +5 -0
- package/mobile/dist/components/Catalog/Catalog.js +36 -0
- package/mobile/dist/components/Catalog/Catalog.js.map +1 -0
- package/mobile/dist/components/Catalog/CatalogCard.d.ts +7 -0
- package/mobile/dist/components/Catalog/CatalogCard.js +16 -0
- package/mobile/dist/components/Catalog/CatalogCard.js.map +1 -0
- package/mobile/dist/components/Catalog/CatalogContent.d.ts +23 -0
- package/{dist/model/Insurance.js → mobile/dist/components/Catalog/CatalogContent.js} +1 -1
- package/mobile/dist/components/Catalog/CatalogContent.js.map +1 -0
- package/mobile/dist/components/ComparisonTable/TableColumn.js.map +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/dist/components/ContentPage/ContentPageHead.js.map +1 -1
- package/mobile/dist/components/ContentPage/normalizeBlock.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/calculateResult.js.map +1 -1
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/dist/components/Footer/TextInformation.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/dist/components/GroupBlock/GroupBlocksItem.js.map +1 -1
- package/mobile/dist/components/GroupBlock/renderBlocksTypes.js.map +1 -1
- package/mobile/dist/components/Header/HeaderBurger.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/dist/components/Headline/Headline.js.map +1 -1
- package/mobile/dist/components/Insurance/Insurance.js.map +1 -1
- package/mobile/dist/components/Insurance/InsuranceContent.d.ts +5 -2
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +3 -3
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +5 -3
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
- package/mobile/dist/components/LinkList/LinkList.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js +2 -2
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +5 -1
- package/mobile/dist/components/OtherProducts/OtherProducts.js +1 -1
- package/mobile/dist/components/OtherProducts/OtherProducts.js.map +1 -1
- package/mobile/dist/components/OtherProducts/OtherProductsContent.d.ts +3 -8
- package/mobile/dist/components/OtherProducts/OtherProductsItem.js +4 -6
- package/mobile/dist/components/OtherProducts/OtherProductsItem.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/dist/components/ProductBlock/renderBenefit.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTile.js +7 -8
- package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/dist/components/PromoTile/PromoTile.js.map +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js +12 -31
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlockContent.d.ts +5 -2
- package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.d.ts +9 -0
- package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.js +21 -0
- package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -0
- package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/dist/content-page-repository/ContentPageRepository.js.map +1 -1
- package/mobile/dist/content-page-repository/mapJSON.js.map +1 -1
- package/mobile/dist/content-page-repository/transformContentPage.js.map +1 -1
- package/mobile/dist/content-page-repository/transformMarkdown.js.map +1 -1
- package/mobile/dist/content-page-repository/transformPicture.js.map +1 -1
- package/mobile/dist/hooks/useCreditCalculatorData.js.map +1 -1
- package/mobile/dist/hooks/useExchangeRates.js.map +1 -1
- package/mobile/dist/hooks/useLink.js.map +1 -1
- package/mobile/dist/react/setup-fixture.js.map +1 -1
- package/mobile/dist/services/sitemap/findActiveSubItem.js.map +1 -1
- package/mobile/dist/services/sitemap/useSitemap.js.map +1 -1
- package/mobile/dist/ui-kit/BlocksList/BlocksListProps.d.ts +17 -15
- package/mobile/dist/ui-kit/BlocksList/renderBlocksList.d.ts +2 -3
- package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js +5 -4
- package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js +2 -2
- package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonSection.js.map +1 -1
- package/mobile/dist/ui-kit/Foldable/Foldable.d.ts +2 -0
- package/mobile/dist/ui-kit/Foldable/Foldable.js +5 -5
- package/mobile/dist/ui-kit/Foldable/Foldable.js.map +1 -1
- package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
- package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/dist/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/utils/getIndexParts.js.map +1 -1
- package/mobile/dist/ui-kit/Tabs/Tabs.js.map +1 -1
- package/mobile/dist/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/dist/utils/adjustHref.js.map +1 -1
- package/mobile/dist/utils/getColSpan.js.map +1 -1
- package/mobile/dist/utils/roundTo.js.map +1 -1
- package/mobile/dist/utils/tableFunc.js.map +1 -1
- package/mobile/dist/utils/url.js.map +1 -1
- package/mobile/lib/api/DaDataAPI.js.map +1 -1
- package/mobile/lib/api/LikeAPI.js.map +1 -1
- package/mobile/lib/components/Accordion/Accordion.js +1 -1
- package/mobile/lib/components/Accordion/Accordion.js.map +1 -1
- package/mobile/lib/components/Accordion/AccordionItem.js +1 -1
- package/mobile/lib/components/Accordion/AccordionItem.js.map +1 -1
- package/mobile/lib/components/Accordion/AccordionItemInner.js +1 -2
- package/mobile/lib/components/Accordion/AccordionItemInner.js.map +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/components/Calculator/getMonthlyPayment.js.map +1 -1
- package/mobile/lib/components/Calculator/renderCalculatorBlock.js.map +1 -1
- package/mobile/lib/components/Calculator/renderMonthsInput.js.map +1 -1
- package/mobile/lib/components/Calculator/renderRate.js +1 -1
- package/mobile/lib/components/Calculator/renderRate.js.map +1 -1
- package/mobile/lib/components/Catalog/Catalog.d.ts +5 -0
- package/mobile/lib/components/Catalog/Catalog.js +34 -0
- package/mobile/lib/components/Catalog/Catalog.js.map +1 -0
- package/mobile/lib/components/Catalog/CatalogCard.d.ts +7 -0
- package/mobile/lib/components/Catalog/CatalogCard.js +14 -0
- package/mobile/lib/components/Catalog/CatalogCard.js.map +1 -0
- package/mobile/lib/components/Catalog/CatalogContent.d.ts +23 -0
- package/mobile/lib/components/Catalog/CatalogContent.js +2 -0
- package/mobile/lib/components/Catalog/CatalogContent.js.map +1 -0
- package/mobile/lib/components/ComparisonTable/TableColumn.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPageHead.js.map +1 -1
- package/mobile/lib/components/ContentPage/normalizeBlock.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/calculateResult.js.map +1 -1
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/lib/components/Footer/TextInformation.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/lib/components/GroupBlock/GroupBlocksItem.js.map +1 -1
- package/mobile/lib/components/GroupBlock/renderBlocksTypes.js.map +1 -1
- package/mobile/lib/components/Header/HeaderBurger.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/lib/components/Headline/Headline.js.map +1 -1
- package/mobile/lib/components/Insurance/Insurance.js.map +1 -1
- package/mobile/lib/components/Insurance/InsuranceContent.d.ts +5 -2
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +3 -3
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +5 -3
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
- package/mobile/lib/components/LinkList/LinkList.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js +2 -2
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +5 -1
- package/mobile/lib/components/OtherProducts/OtherProducts.js +1 -1
- package/mobile/lib/components/OtherProducts/OtherProducts.js.map +1 -1
- package/mobile/lib/components/OtherProducts/OtherProductsContent.d.ts +3 -8
- package/mobile/lib/components/OtherProducts/OtherProductsItem.js +4 -6
- package/mobile/lib/components/OtherProducts/OtherProductsItem.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/lib/components/ProductBlock/renderBenefit.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTile.js +7 -8
- package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/lib/components/PromoTile/PromoTile.js.map +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js +12 -31
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlockContent.d.ts +5 -2
- package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.d.ts +9 -0
- package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.js +18 -0
- package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -0
- package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/lib/content-page-repository/ContentPageRepository.js.map +1 -1
- package/mobile/lib/content-page-repository/mapJSON.js.map +1 -1
- package/mobile/lib/content-page-repository/transformContentPage.js.map +1 -1
- package/mobile/lib/content-page-repository/transformMarkdown.js.map +1 -1
- package/mobile/lib/content-page-repository/transformPicture.js.map +1 -1
- package/mobile/lib/hooks/useCreditCalculatorData.js.map +1 -1
- package/mobile/lib/hooks/useExchangeRates.js.map +1 -1
- package/mobile/lib/hooks/useLink.js.map +1 -1
- package/mobile/lib/react/setup-fixture.js.map +1 -1
- package/mobile/lib/services/sitemap/findActiveSubItem.js.map +1 -1
- package/mobile/lib/services/sitemap/useSitemap.js.map +1 -1
- package/mobile/lib/ui-kit/BlocksList/BlocksListProps.d.ts +17 -15
- package/mobile/lib/ui-kit/BlocksList/renderBlocksList.d.ts +2 -3
- package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js +5 -4
- package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js +2 -2
- package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonSection.js.map +1 -1
- package/mobile/lib/ui-kit/Foldable/Foldable.d.ts +2 -0
- package/mobile/lib/ui-kit/Foldable/Foldable.js +5 -5
- package/mobile/lib/ui-kit/Foldable/Foldable.js.map +1 -1
- package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
- package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/lib/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/utils/getIndexParts.js.map +1 -1
- package/mobile/lib/ui-kit/Tabs/Tabs.js.map +1 -1
- package/mobile/lib/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/lib/utils/adjustHref.js.map +1 -1
- package/mobile/lib/utils/getColSpan.js.map +1 -1
- package/mobile/lib/utils/roundTo.js.map +1 -1
- package/mobile/lib/utils/tableFunc.js.map +1 -1
- package/mobile/lib/utils/url.js.map +1 -1
- package/mobile/src/api/DaDataAPI.ts +2 -0
- package/mobile/src/api/LikeAPI.ts +4 -0
- package/mobile/src/components/Accordion/Accordion.tsx +1 -1
- package/mobile/src/components/Accordion/AccordionItem.tsx +2 -2
- package/mobile/src/components/Accordion/AccordionItemInner.tsx +3 -4
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +3 -0
- package/mobile/src/components/Calculator/getMonthlyPayment.ts +1 -0
- package/mobile/src/components/Calculator/renderCalculatorBlock.tsx +1 -0
- package/mobile/src/components/Calculator/renderMonthsInput.tsx +1 -0
- package/mobile/src/components/Calculator/renderRate.tsx +2 -3
- package/mobile/src/components/Catalog/Catalog.example.json +57 -0
- package/mobile/src/components/Catalog/Catalog.tsx +74 -0
- package/mobile/src/components/Catalog/CatalogCard.tsx +47 -0
- package/mobile/src/components/Catalog/CatalogContent.ts +27 -0
- package/mobile/src/components/ComparisonTable/TableColumn.tsx +1 -0
- package/mobile/src/components/ContentPage/ContentPage.tsx +2 -0
- package/mobile/src/components/ContentPage/ContentPageHead.tsx +1 -0
- package/mobile/src/components/ContentPage/normalizeBlock.ts +1 -0
- package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +1 -0
- package/mobile/src/components/ExchangeRateTile/calculateResult.ts +1 -0
- package/mobile/src/components/Footer/Footer.tsx +2 -0
- package/mobile/src/components/Footer/SocialMedia.tsx +1 -0
- package/mobile/src/components/Footer/TextInformation.tsx +1 -0
- package/mobile/src/components/Gallery/GalleryCardInner.tsx +1 -0
- package/mobile/src/components/GroupBlock/GroupBlocksItem.tsx +1 -0
- package/mobile/src/components/GroupBlock/renderBlocksTypes.tsx +1 -0
- package/mobile/src/components/Header/HeaderBurger.tsx +2 -0
- package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +1 -0
- package/mobile/src/components/Headline/Headline.tsx +1 -0
- package/mobile/src/components/Insurance/Insurance.tsx +1 -0
- package/mobile/src/components/Insurance/InsuranceContent.ts +5 -2
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +4 -4
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +8 -3
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +5 -3
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +6 -5
- package/mobile/src/components/LinkDocs/LinkDocsListItemBase.tsx +3 -0
- package/mobile/src/components/LinkList/LinkList.tsx +1 -0
- package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +2 -4
- package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +7 -1
- package/mobile/src/components/OtherProducts/OtherProducts.tsx +2 -2
- package/mobile/src/components/OtherProducts/OtherProductsContent.ts +3 -8
- package/mobile/src/components/OtherProducts/OtherProductsItem.tsx +6 -18
- package/mobile/src/components/ProductBlock/ProductBlock.tsx +1 -0
- package/mobile/src/components/ProductBlock/renderBenefit.tsx +1 -0
- package/mobile/src/components/ProductTile/ProductTile.tsx +30 -30
- package/mobile/src/components/PromoTile/PromoTile.tsx +1 -0
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +58 -82
- package/mobile/src/components/StepsBlock/StepsBlockContent.ts +6 -3
- package/mobile/src/components/StepsBlock/StepsBlockStyleMaps.ts +28 -0
- package/mobile/src/components/TextBlock/TextBlock.tsx +1 -0
- package/mobile/src/content-page-repository/ContentPageRepository.ts +5 -0
- package/mobile/src/content-page-repository/mapJSON.ts +3 -0
- package/mobile/src/content-page-repository/transformContentPage.ts +2 -0
- package/mobile/src/content-page-repository/transformMarkdown.ts +1 -0
- package/mobile/src/content-page-repository/transformPicture.ts +2 -0
- package/mobile/src/hooks/useCreditCalculatorData.ts +2 -0
- package/mobile/src/hooks/useExchangeRates.ts +3 -0
- package/mobile/src/hooks/useLink.ts +1 -0
- package/mobile/src/react/setup-fixture.ts +1 -0
- package/mobile/src/services/sitemap/findActiveSubItem.ts +1 -0
- package/mobile/src/services/sitemap/useSitemap.ts +2 -0
- package/mobile/src/ui-kit/BlocksList/BlocksListProps.ts +25 -15
- package/mobile/src/ui-kit/BlocksList/renderBlocksList.tsx +14 -9
- package/mobile/src/ui-kit/Button/ButtonInner.tsx +3 -2
- package/mobile/src/ui-kit/Button/ButtonSection.tsx +1 -0
- package/mobile/src/ui-kit/Foldable/Foldable.tsx +8 -4
- package/mobile/src/ui-kit/Input/Input.tsx +1 -0
- package/mobile/src/ui-kit/InputRange/InputRange.tsx +1 -0
- package/mobile/src/ui-kit/List/ListItem.tsx +1 -0
- package/mobile/src/ui-kit/SearchBar/SearchBar.tsx +1 -0
- package/mobile/src/ui-kit/SwipeListControl/utils/getIndexParts.ts +1 -0
- package/mobile/src/ui-kit/Tabs/Tabs.tsx +1 -0
- package/mobile/src/ui-kit/TopItem/TopItem.tsx +1 -0
- package/mobile/src/utils/adjustHref.ts +2 -0
- package/mobile/src/utils/getColSpan.ts +1 -0
- package/mobile/src/utils/roundTo.ts +1 -0
- package/mobile/src/utils/tableFunc.ts +1 -0
- package/mobile/src/utils/url.ts +2 -0
- package/package.json +2 -2
- package/src/api/DaDataAPI.ts +2 -0
- package/src/api/LikeAPI.ts +4 -0
- package/src/components/Accordion/Accordion.fixture.mobile.tsx +8 -19
- package/src/components/Accordion/Accordion.fixture.tsx +10 -2
- package/src/components/Accordion/Accordion.mobile.tsx +1 -1
- package/src/components/Accordion/AccordionItem.mobile.tsx +2 -2
- package/src/components/Accordion/AccordionItemInner.mobile.tsx +3 -4
- package/src/components/Accordion/AccordionItemInner.tsx +3 -4
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +3 -0
- package/src/components/Blocks.ts +5 -3
- package/src/components/Calculator/getMonthlyPayment.ts +1 -0
- package/src/components/Calculator/renderCalculatorBlock.tsx +1 -0
- package/src/components/Calculator/renderMonthsInput.tsx +1 -0
- package/src/components/Calculator/renderRate.tsx +2 -3
- package/src/components/Catalog/Catalog.example.json +57 -0
- package/src/components/Catalog/Catalog.fixture.tsx +48 -0
- package/src/components/Catalog/Catalog.tsx +74 -0
- package/src/components/Catalog/CatalogCard.tsx +47 -0
- package/src/components/Catalog/CatalogContent.ts +27 -0
- package/src/components/ComparisonTable/TableColumn.tsx +1 -0
- package/src/components/ContentPage/ContentPage.tsx +2 -0
- package/src/components/ContentPage/ContentPageHead.tsx +1 -0
- package/src/components/ContentPage/normalizeBlock.mobile.ts +1 -0
- package/src/components/ContentPage/normalizeBlock.ts +1 -0
- package/src/components/ExchangeRateTile/CurrencyTable.tsx +1 -0
- package/src/components/ExchangeRateTile/calculateResult.ts +1 -0
- package/src/components/Footer/Footer.mobile.tsx +2 -0
- package/src/components/Footer/SocialMedia.mobile.tsx +1 -0
- package/src/components/Footer/SocialMedia.tsx +1 -0
- package/src/components/Footer/TextInformation.mobile.tsx +1 -0
- package/src/components/Footer/TextInformation.tsx +1 -0
- package/src/components/Gallery/GalleryCardInner.tsx +1 -0
- package/src/components/GroupBlock/GroupBlocksItem.tsx +1 -0
- package/src/components/GroupBlock/renderBlocksTypes.tsx +1 -0
- package/src/components/Header/HeaderBurger.tsx +2 -0
- package/src/components/Header/HeaderSecondaryMenu.tsx +1 -0
- package/src/components/Headline/Headline.mobile.tsx +1 -0
- package/src/components/Insurance/Insurance.tsx +1 -0
- package/src/components/Insurance/InsuranceContent.ts +5 -2
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +4 -4
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.tsx +0 -5
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +8 -3
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +5 -3
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +6 -5
- package/src/components/LinkDocs/LinkDocsListItemBase.tsx +3 -0
- package/src/components/LinkList/LinkList.tsx +1 -0
- package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +69 -13
- package/src/components/MobileAppTile/MobileAppTile.mobile.tsx +2 -4
- package/src/components/MobileAppTile/MobileAppTile.tsx +44 -12
- package/src/components/MobileAppTile/MobileAppTileContent.ts +7 -1
- package/src/components/OtherProducts/OtherProducts.fixture.tsx +16 -53
- package/src/components/OtherProducts/OtherProducts.tsx +2 -2
- package/src/components/OtherProducts/OtherProductsContent.ts +3 -8
- package/src/components/OtherProducts/OtherProductsItem.tsx +6 -18
- package/src/components/ProductBlock/ProductBlock.mobile.tsx +1 -0
- package/src/components/ProductBlock/ProductBlock.tsx +1 -0
- package/src/components/ProductBlock/ProductBlockInner.tsx +1 -0
- package/src/components/ProductBlock/renderBenefit.mobile.tsx +1 -0
- package/src/components/ProductBlock/renderBenefit.tsx +1 -0
- package/src/components/ProductTile/ProductTile.tsx +30 -30
- package/src/components/PromoTile/PromoTile.tsx +1 -0
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +58 -82
- package/src/components/StepsBlock/StepsBlock.tsx +27 -11
- package/src/components/StepsBlock/StepsBlockContent.ts +6 -3
- package/src/components/StepsBlock/StepsBlockStyleMaps.ts +28 -0
- package/src/components/TextBlock/TextBlock.mobile.tsx +1 -0
- package/src/components/TextBlock/TextBlock.tsx +1 -0
- package/src/content-page-repository/ContentPageRepository.ts +5 -0
- package/src/content-page-repository/mapJSON.ts +3 -0
- package/src/content-page-repository/transformContentPage.ts +2 -0
- package/src/content-page-repository/transformMarkdown.ts +1 -0
- package/src/content-page-repository/transformPicture.ts +2 -0
- package/src/hooks/useCreditCalculatorData.ts +2 -0
- package/src/hooks/useExchangeRates.ts +3 -0
- package/src/hooks/useLink.ts +1 -0
- package/src/react/setup-fixture.ts +1 -0
- package/src/services/sitemap/findActiveSubItem.ts +1 -0
- package/src/services/sitemap/useSitemap.ts +2 -0
- package/src/ui-kit/BlocksList/BlocksListProps.ts +25 -15
- package/src/ui-kit/BlocksList/renderBlocksList.tsx +14 -9
- package/src/ui-kit/Button/ButtonInner.tsx +3 -2
- package/src/ui-kit/Button/ButtonSection.tsx +1 -0
- package/src/ui-kit/Foldable/Foldable.tsx +8 -4
- package/src/ui-kit/Input/Input.tsx +1 -0
- package/src/ui-kit/InputRange/InputRange.tsx +1 -0
- package/src/ui-kit/List/ListItem.tsx +1 -0
- package/src/ui-kit/Logo/Logo.tsx +1 -0
- package/src/ui-kit/SearchBar/SearchBar.mobile.tsx +1 -0
- package/src/ui-kit/SearchBar/SearchBar.tsx +1 -0
- package/src/ui-kit/SearchBar.mobile.tsx +1 -0
- package/src/ui-kit/SwipeListControl/utils/getIndexParts.ts +1 -0
- package/src/ui-kit/Tabs/Tabs.tsx +1 -0
- package/src/ui-kit/TopItem/TopItem.tsx +1 -0
- package/src/utils/adjustHref.ts +2 -0
- package/src/utils/getColSpan.ts +1 -0
- package/src/utils/roundTo.ts +1 -0
- package/src/utils/tableFunc.ts +1 -0
- package/src/utils/url.ts +2 -0
- package/dist/model/Insurance.d.ts +0 -6
- package/dist/model/Insurance.js.map +0 -1
- package/lib/model/Insurance.d.ts +0 -6
- package/lib/model/Insurance.js +0 -2
- package/lib/model/Insurance.js.map +0 -1
- package/mobile/dist/model/Insurance.d.ts +0 -6
- package/mobile/dist/model/Insurance.js.map +0 -1
- package/mobile/lib/model/Insurance.d.ts +0 -6
- package/mobile/lib/model/Insurance.js +0 -2
- package/mobile/lib/model/Insurance.js.map +0 -1
- package/mobile/src/model/Insurance.ts +0 -6
- package/src/model/Insurance.ts +0 -6
package/src/components/Blocks.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { Accordion } from './Accordion/Accordion';
|
|
2
2
|
import { BenefitsBlock } from './BenefitsBlock/BenefitsBlock';
|
|
3
3
|
import { Bonus } from './Bonus/Bonus';
|
|
4
|
-
import {
|
|
4
|
+
import { BonusBenefitsBlock } from './BonusBenefitsBlock/BonusBenefitsBlock';
|
|
5
5
|
import { Calculator } from './Calculator/Calculator';
|
|
6
|
+
import { Catalog } from './Catalog/Catalog';
|
|
7
|
+
import { ComparisonTable } from './ComparisonTable/ComparisonTable';
|
|
6
8
|
import { ExchangeRateTile } from './ExchangeRateTile/ExchangeRateTile';
|
|
7
9
|
import { Footer } from './Footer/Footer';
|
|
8
10
|
import { Gallery } from './Gallery/Gallery';
|
|
9
11
|
import { GracePeriod } from './GracePeriod/GracePeriod';
|
|
12
|
+
import { GroupBlock } from './GroupBlock/GroupBlock';
|
|
10
13
|
import { Header } from './Header/Header';
|
|
11
14
|
import { Headline } from './Headline/Headline';
|
|
12
15
|
import { Insurance } from './Insurance/Insurance';
|
|
@@ -28,8 +31,6 @@ import { StepsBlock } from './StepsBlock/StepsBlock';
|
|
|
28
31
|
import { TariffsTable } from './TariffsTable/TariffsTable';
|
|
29
32
|
import { TextBlock } from './TextBlock/TextBlock';
|
|
30
33
|
import { Tile } from './Tile/Tile';
|
|
31
|
-
import { GroupBlock } from './GroupBlock/GroupBlock';
|
|
32
|
-
import { BonusBenefitsBlock } from './BonusBenefitsBlock/BonusBenefitsBlock';
|
|
33
34
|
|
|
34
35
|
export const Blocks = {
|
|
35
36
|
Accordion,
|
|
@@ -37,6 +38,7 @@ export const Blocks = {
|
|
|
37
38
|
Bonus,
|
|
38
39
|
ComparisonTable,
|
|
39
40
|
Calculator,
|
|
41
|
+
Catalog,
|
|
40
42
|
ExchangeRateTile,
|
|
41
43
|
Footer,
|
|
42
44
|
Gallery,
|
|
@@ -27,6 +27,7 @@ export const getMonthlyPayment = (params: GetMonthlyPaymentParams) => {
|
|
|
27
27
|
|
|
28
28
|
if (paymentType === 'annuity') {
|
|
29
29
|
const annuityCoef = Number(rate) / (MONTHS_IN_YEAR * 100);
|
|
30
|
+
|
|
30
31
|
return finalSum * (annuityCoef + annuityCoef / (Math.pow(1 + annuityCoef, months) - 1));
|
|
31
32
|
} else {
|
|
32
33
|
return finalSum / months + finalSum * (Number(rate) / 12);
|
|
@@ -16,6 +16,7 @@ export function renderMonthsInput(props: RenderMonthsInputProps) {
|
|
|
16
16
|
const { title, minMonths, maxMonths, monthsValue, defaultMonths, setMonthsValue } = props;
|
|
17
17
|
const monthText = (month) => {
|
|
18
18
|
const text = Number(month) % 10 === 1 ? 'месяца' : 'месяцев';
|
|
19
|
+
|
|
19
20
|
return `${month} ${text}`;
|
|
20
21
|
};
|
|
21
22
|
|
|
@@ -7,13 +7,12 @@ type rateType = {
|
|
|
7
7
|
|
|
8
8
|
export function renderRate({ rate, title, sup, className = '' }: rateType) {
|
|
9
9
|
const rateFormat = String(rate).replace('.', ',');
|
|
10
|
+
|
|
10
11
|
return (
|
|
11
12
|
<div>
|
|
12
13
|
<div className="text-sm font-light ml-3">{title}</div>
|
|
13
14
|
<div className="flex justify-start">
|
|
14
|
-
<span
|
|
15
|
-
className={`calc-rate-text font-mohave text-[200px] leading-[250px] pr-4 mt-[-16px] ${className}`}
|
|
16
|
-
>
|
|
15
|
+
<span className={`calc-rate-text font-mohave text-title-huge pr-4 mt-[-16px] ${className}`}>
|
|
17
16
|
{rateFormat}
|
|
18
17
|
</span>
|
|
19
18
|
{sup ? <span className="calc-rate-text text-[65px] leading-[75px]">{sup}</span> : ''}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Каталог",
|
|
3
|
+
"description": "Описание",
|
|
4
|
+
"cards": [
|
|
5
|
+
{
|
|
6
|
+
"title": "Заголовок карточки 1",
|
|
7
|
+
"description": "Описание карточки",
|
|
8
|
+
"image": {
|
|
9
|
+
"format": "webp",
|
|
10
|
+
"size": {
|
|
11
|
+
"width": 230,
|
|
12
|
+
"height": 230
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"button": {
|
|
16
|
+
"href": "",
|
|
17
|
+
"text": "Подробнее",
|
|
18
|
+
"target": "_blank",
|
|
19
|
+
"version": "primary"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"title": "Заголовок карточки 2",
|
|
24
|
+
"description": "Описание карточки",
|
|
25
|
+
"image": {
|
|
26
|
+
"format": "webp",
|
|
27
|
+
"size": {
|
|
28
|
+
"width": 230,
|
|
29
|
+
"height": 230
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"button": {
|
|
33
|
+
"href": "",
|
|
34
|
+
"text": "Подробнее",
|
|
35
|
+
"target": "_blank",
|
|
36
|
+
"version": "primary"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"title": "Заголовок карточки 3",
|
|
41
|
+
"description": "Описание карточки",
|
|
42
|
+
"image": {
|
|
43
|
+
"format": "webp",
|
|
44
|
+
"size": {
|
|
45
|
+
"width": 230,
|
|
46
|
+
"height": 230
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"button": {
|
|
50
|
+
"href": "",
|
|
51
|
+
"text": "Подробнее",
|
|
52
|
+
"target": "_blank",
|
|
53
|
+
"version": "primary"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { Picture } from '../../model/Picture';
|
|
2
|
+
import { context } from '../../react/setup-fixture';
|
|
3
|
+
import type { ButtonCommonProps } from '../../ui-kit/Button/Button';
|
|
4
|
+
import { Catalog, CatalogProps } from './Catalog';
|
|
5
|
+
import type { CatalogProductColor } from './CatalogContent';
|
|
6
|
+
|
|
7
|
+
const payRing: Picture = {
|
|
8
|
+
src: 'pay-ring.png',
|
|
9
|
+
format: 'webp',
|
|
10
|
+
size: {
|
|
11
|
+
width: 230,
|
|
12
|
+
height: 230,
|
|
13
|
+
},
|
|
14
|
+
title: 'pay-ring',
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
const colors: CatalogProductColor[] = ['black', 'white'];
|
|
18
|
+
|
|
19
|
+
const buttonPrimary: ButtonCommonProps = {
|
|
20
|
+
href: '/credit-cards',
|
|
21
|
+
text: 'Подробнее',
|
|
22
|
+
target: '_blank',
|
|
23
|
+
version: 'primary',
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
const catalogCard = {
|
|
27
|
+
title: 'SATURN S-VI',
|
|
28
|
+
description: 'Керамическое кольцо с глянцевой поверхностью и огранкой по внешним контурам',
|
|
29
|
+
image: payRing,
|
|
30
|
+
price: 5600,
|
|
31
|
+
colors: colors,
|
|
32
|
+
button: buttonPrimary,
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export const defaultProps: CatalogProps = {
|
|
36
|
+
context,
|
|
37
|
+
title: 'Каталог',
|
|
38
|
+
description: 'Описание',
|
|
39
|
+
cards: new Array(5).fill(catalogCard).flat(),
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export default {
|
|
43
|
+
default: (
|
|
44
|
+
<div className="container grid grid-cols-12">
|
|
45
|
+
<Catalog {...defaultProps} className="col-span-12" />
|
|
46
|
+
</div>
|
|
47
|
+
),
|
|
48
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import type { UniBlockProps } from '../../types';
|
|
3
|
+
import { renderArrows } from '../../ui-kit/Button/renderArrows';
|
|
4
|
+
import { Description } from '../../ui-kit/Description/Description';
|
|
5
|
+
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
6
|
+
import type { ContentPageContext } from '../ContentPage/ContentPageContext';
|
|
7
|
+
import { CatalogCard } from './CatalogCard';
|
|
8
|
+
import type { CatalogCardType, CatalogContent } from './CatalogContent';
|
|
9
|
+
|
|
10
|
+
export interface CatalogProps extends CatalogContent, UniBlockProps {}
|
|
11
|
+
|
|
12
|
+
const BLUR_BLOCK_CLASSES = 'absolute top-0 bottom-0 w-[84px]';
|
|
13
|
+
const CARD_FULL_VIEW_COUNT = 3;
|
|
14
|
+
const CARD_SHIFT = 430;
|
|
15
|
+
|
|
16
|
+
export const Catalog = JSX<CatalogProps>(
|
|
17
|
+
({ context, cards = [], className = '', title, description, anchor = null }) => {
|
|
18
|
+
const [activeCardIndex, setActiveCardIndex] = context.useState(0);
|
|
19
|
+
|
|
20
|
+
return (
|
|
21
|
+
<section
|
|
22
|
+
className={`bg-white relative font-sans p-9 overflow-hidden text-center ${className}`}
|
|
23
|
+
id={anchor}
|
|
24
|
+
>
|
|
25
|
+
{title ? <Heading headingType="h2" className="mb-6" title={title} /> : null}
|
|
26
|
+
{description ? <Description className="mb-6" description={description} /> : null}
|
|
27
|
+
<div
|
|
28
|
+
className="flex duration-1000 gap-3.5"
|
|
29
|
+
style={{ transform: `translateX(-${activeCardIndex * CARD_SHIFT}px)` }}
|
|
30
|
+
role="list"
|
|
31
|
+
>
|
|
32
|
+
{cards?.length ? cards.map(renderCatalogCard(context)) : null}
|
|
33
|
+
</div>
|
|
34
|
+
{renderNavButtons({
|
|
35
|
+
cardsCount: cards.length,
|
|
36
|
+
activeCardIndex,
|
|
37
|
+
setActiveCardIndex,
|
|
38
|
+
})}
|
|
39
|
+
<div className={`${BLUR_BLOCK_CLASSES} left-0 ${'bg-opacity-from-white'}`} />
|
|
40
|
+
<div className={`${BLUR_BLOCK_CLASSES} right-0 ${'bg-opacity-to-white'}`} />
|
|
41
|
+
</section>
|
|
42
|
+
);
|
|
43
|
+
},
|
|
44
|
+
);
|
|
45
|
+
|
|
46
|
+
const renderCatalogCard = (context: ContentPageContext) => (card: CatalogCardType, i: number) => {
|
|
47
|
+
return <CatalogCard key={String(i)} context={context} {...card} />;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
interface RenderNavButtonsProps {
|
|
51
|
+
cardsCount: number;
|
|
52
|
+
activeCardIndex: number;
|
|
53
|
+
setActiveCardIndex: (number) => void;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const renderNavButtons = ({
|
|
57
|
+
cardsCount,
|
|
58
|
+
activeCardIndex,
|
|
59
|
+
setActiveCardIndex,
|
|
60
|
+
}: RenderNavButtonsProps) => {
|
|
61
|
+
const handleNextClick = () => setActiveCardIndex(activeCardIndex + 1);
|
|
62
|
+
const handlePrevClick = () => setActiveCardIndex(activeCardIndex - 1);
|
|
63
|
+
|
|
64
|
+
const isUseSlider = cardsCount > CARD_FULL_VIEW_COUNT;
|
|
65
|
+
const showNextButton = isUseSlider && cardsCount - activeCardIndex > CARD_FULL_VIEW_COUNT;
|
|
66
|
+
const showPrevButton = isUseSlider && activeCardIndex > 0;
|
|
67
|
+
|
|
68
|
+
return renderArrows({
|
|
69
|
+
handler: [handlePrevClick, handleNextClick],
|
|
70
|
+
isShown: [showPrevButton, showNextButton],
|
|
71
|
+
btnClass: ['left-8', 'right-8'],
|
|
72
|
+
className: 'top-1/2 z-10 mt-6',
|
|
73
|
+
});
|
|
74
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
|
+
import type { UniBlockProps } from '../../types';
|
|
4
|
+
import { Button } from '../../ui-kit/Button/Button';
|
|
5
|
+
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
6
|
+
import { Img } from '../../ui-kit/Img/Img';
|
|
7
|
+
import type { CatalogCardType, CatalogProductColor } from './CatalogContent';
|
|
8
|
+
|
|
9
|
+
export interface CatalogCardProps extends CatalogCardType, UniBlockProps {
|
|
10
|
+
version?: BlockVersion;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const cardStyleMap: Record<CatalogProductColor, string> = {
|
|
14
|
+
black: 'bg-black',
|
|
15
|
+
white: 'bg-white',
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export const CatalogCard = JSX<CatalogCardProps>(
|
|
19
|
+
({ className = '', title, description, image, price, button, colors }) => {
|
|
20
|
+
return (
|
|
21
|
+
<section
|
|
22
|
+
className={`border border-solid box-border p-[30px] min-w-[402px] flex flex-col justify-left ${className}`}
|
|
23
|
+
role="listitem"
|
|
24
|
+
>
|
|
25
|
+
{image?.src ? <Img className="mb-5" image={image} /> : null}
|
|
26
|
+
{title ? (
|
|
27
|
+
<Heading headingType="h6" as="h5" className="text-left mb-1.5" title={title} />
|
|
28
|
+
) : null}
|
|
29
|
+
{description ? <div className="text-m-md text-left mb-4">{description}</div> : null}
|
|
30
|
+
{colors?.length ? (
|
|
31
|
+
<div className="flex mb-4 text-m-md text-secondary-text">
|
|
32
|
+
Доступные цвета: {colors.map(renderColorOption)}
|
|
33
|
+
</div>
|
|
34
|
+
) : null}
|
|
35
|
+
{price ? <div className="text-title-sm text-left">{price} ₽</div> : null}
|
|
36
|
+
{button?.text ? <Button className="mt-6 w-full" {...button} /> : null}
|
|
37
|
+
</section>
|
|
38
|
+
);
|
|
39
|
+
},
|
|
40
|
+
);
|
|
41
|
+
|
|
42
|
+
const renderColorOption = (color: CatalogProductColor, i: number) => (
|
|
43
|
+
<span
|
|
44
|
+
key={String(i)}
|
|
45
|
+
className={`w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${cardStyleMap[color]}`}
|
|
46
|
+
/>
|
|
47
|
+
);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
|
|
2
|
+
import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
|
|
3
|
+
import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
|
|
4
|
+
import type { ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @enumNames ["Черный", "Белый"]
|
|
8
|
+
*/
|
|
9
|
+
export type CatalogProductColor = 'black' | 'white';
|
|
10
|
+
|
|
11
|
+
export interface CatalogCardType extends HeadingContent, DescriptionContent, ImageContent {
|
|
12
|
+
/** @title Цена в рублях */
|
|
13
|
+
price?: number;
|
|
14
|
+
/** @title Доступные цвета */
|
|
15
|
+
colors?: CatalogProductColor[];
|
|
16
|
+
/** @title Кнопка */
|
|
17
|
+
button?: ButtonWithIconProps;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @title Каталог
|
|
22
|
+
*/
|
|
23
|
+
export type CatalogContent = HeadingContent &
|
|
24
|
+
DescriptionContent & {
|
|
25
|
+
/** @title Список карточек */
|
|
26
|
+
cards?: CatalogCardType[];
|
|
27
|
+
};
|
|
@@ -21,6 +21,7 @@ export const TableColumn = JSX<TableColumnProps>(
|
|
|
21
21
|
const columnDataView = columnData?.slice(0, showRow ? columnData.length : visibleRowLength);
|
|
22
22
|
const gradientClassName = isFillGradient ? GRADIENT : '';
|
|
23
23
|
const buttonVersion: ButtonVersion = isFillGradient ? 'secondary' : 'primary';
|
|
24
|
+
|
|
24
25
|
return (
|
|
25
26
|
<div
|
|
26
27
|
className={`border border-main-stroke rounded-md p-4 mb-3.5 ${gradientClassName}`}
|
|
@@ -108,12 +108,14 @@ function renderBlock(
|
|
|
108
108
|
console.warn(`No block with "${type}" is registered`);
|
|
109
109
|
}
|
|
110
110
|
const BlockComponent = blocksRegistry[type || 'Placeholder'] || Placeholder;
|
|
111
|
+
|
|
111
112
|
return blockDecorator(
|
|
112
113
|
{
|
|
113
114
|
blockClassName: `scroll-mt-12 ${style2className(block.style)}`,
|
|
114
115
|
block,
|
|
115
116
|
render: (props) => {
|
|
116
117
|
const { version, content, anchor } = props.block;
|
|
118
|
+
|
|
117
119
|
return (
|
|
118
120
|
<BlockComponent
|
|
119
121
|
key={`${type}-${i}`}
|
|
@@ -9,6 +9,7 @@ export interface ContentPageHeadProps {
|
|
|
9
9
|
export const ContentPageHead = JSX<ContentPageHeadProps>(({ HeadComponent, data, children }) => {
|
|
10
10
|
const { title, main, og, twitter, jsonLd } = data;
|
|
11
11
|
const { description, keywords, canonical, robots } = main || {};
|
|
12
|
+
|
|
12
13
|
return (
|
|
13
14
|
<HeadComponent>
|
|
14
15
|
<title>{title}</title>
|
|
@@ -32,6 +32,7 @@ export const CurrencyTable = JSX<CurrencyTableProps>(({ className, exchangeCurre
|
|
|
32
32
|
|
|
33
33
|
const renderCurrencyRow = (exchangeCurrencyItem: ExchangeCurrencyItem) => {
|
|
34
34
|
const code = exchangeCurrencyItem?.code;
|
|
35
|
+
|
|
35
36
|
return (
|
|
36
37
|
<tr key={code} className="pb-1">
|
|
37
38
|
<td className="pt-4">
|
|
@@ -2,6 +2,7 @@ import { roundTo } from '../../utils/roundTo';
|
|
|
2
2
|
|
|
3
3
|
export const calculateResult = (value: string, rate: number, precision: boolean) => {
|
|
4
4
|
const result = Number(formatValue(value)) * Math.pow(rate, precision ? -1 : 1);
|
|
5
|
+
|
|
5
6
|
return Number.isInteger(result) ? result : roundTo(result);
|
|
6
7
|
};
|
|
7
8
|
|
|
@@ -28,6 +28,7 @@ export const Footer = JSX<FooterProps>(
|
|
|
28
28
|
}) => {
|
|
29
29
|
const sitemap = useSitemap(context.useAsyncData);
|
|
30
30
|
const dispositions = sitemap?.dispositions;
|
|
31
|
+
|
|
31
32
|
return (
|
|
32
33
|
<footer className={`px-4 py-[26px] bg-white ${className}`}>
|
|
33
34
|
<Contacts className="overflow-hidden" items={contacts} context={context} hasButton />
|
|
@@ -57,6 +58,7 @@ export const Footer = JSX<FooterProps>(
|
|
|
57
58
|
|
|
58
59
|
const renderSubMenuItem = (menu: SubMenuItem, i: number) => {
|
|
59
60
|
const { icon, href, text } = menu;
|
|
61
|
+
|
|
60
62
|
return (
|
|
61
63
|
<Button version="link" key={`footer-${i}`} href={href} className="flex text-sm mb-4">
|
|
62
64
|
{icon ? <Img className="pr-1" image={icon} width="24" height="24" asSVG /> : null}
|
|
@@ -13,6 +13,7 @@ export interface SocialMediaProps extends UniBlockProps {
|
|
|
13
13
|
export const SocialMedia = JSX<SocialMediaProps>(({ className, media, version, context }) => {
|
|
14
14
|
const router = context.useRouter();
|
|
15
15
|
const { handlerDecorator } = context;
|
|
16
|
+
|
|
16
17
|
return (
|
|
17
18
|
<div className={`flex gap-2 items-start justify-start pt-6 pb-6 ${className || ''}`}>
|
|
18
19
|
{media?.map((_, index) => (
|
|
@@ -14,6 +14,7 @@ export const SocialMedia = JSX<SocialMediaProps>(
|
|
|
14
14
|
({ className = '', media, version, context, children }) => {
|
|
15
15
|
const router = context.useRouter();
|
|
16
16
|
const { handlerDecorator } = context;
|
|
17
|
+
|
|
17
18
|
return (
|
|
18
19
|
<div>
|
|
19
20
|
<div className={`flex gap-2.5 ${className}`}>
|
|
@@ -6,6 +6,7 @@ import type { FooterLink } from './FooterLink';
|
|
|
6
6
|
export const TextInformation = JSX<FooterLink>(({ className, links, context }) => {
|
|
7
7
|
const router = context.useRouter();
|
|
8
8
|
const { handlerDecorator } = context;
|
|
9
|
+
|
|
9
10
|
return (
|
|
10
11
|
<div className={`${className || ''}`}>
|
|
11
12
|
<div className="py-6">
|
|
@@ -6,6 +6,7 @@ import type { FooterLink } from './FooterLink';
|
|
|
6
6
|
export const TextInformation = JSX<FooterLink>(({ className, links, context }) => {
|
|
7
7
|
const router = context.useRouter();
|
|
8
8
|
const { handlerDecorator } = context;
|
|
9
|
+
|
|
9
10
|
return (
|
|
10
11
|
<div className={`${className || ''}`}>
|
|
11
12
|
<div className="pt-5">
|
|
@@ -8,6 +8,7 @@ import type { GalleryCard, GalleryItem } from './GalleryContent';
|
|
|
8
8
|
export const GalleryCardInner = JSX<GalleryCard>(
|
|
9
9
|
({ title, description, image, items, button, version, isDotted = true }) => {
|
|
10
10
|
const titleStyleClasses = getTitleStyle(version);
|
|
11
|
+
|
|
11
12
|
return (
|
|
12
13
|
<div className="h-full flex flex-col justify-between text-center">
|
|
13
14
|
<div>
|
|
@@ -24,6 +24,7 @@ export const renderBlock = (context: ContentPageContext) => (block: GroupBlockDe
|
|
|
24
24
|
}
|
|
25
25
|
const classNameBlock = style2className(block?.style);
|
|
26
26
|
const EmbeddedBlock: JSXBlock = EmbeddableGroupBlocks[type];
|
|
27
|
+
|
|
27
28
|
return (
|
|
28
29
|
<EmbeddedBlock key={`block_${i}`} context={context} {...block} className={classNameBlock} />
|
|
29
30
|
);
|
|
@@ -19,6 +19,7 @@ export const renderBlock =
|
|
|
19
19
|
}
|
|
20
20
|
const classNameBlock = style2className(block?.style);
|
|
21
21
|
const EmbeddedBlock: JSXBlock = EmbeddableGroupBlocks[type];
|
|
22
|
+
|
|
22
23
|
return (
|
|
23
24
|
<div className={className} key={`block_${i}`}>
|
|
24
25
|
<EmbeddedBlock context={context} {...block} className={classNameBlock} />
|
|
@@ -15,6 +15,7 @@ export interface HeaderBurgerProps {
|
|
|
15
15
|
export const HeaderBurger = JSX<HeaderBurgerProps>(
|
|
16
16
|
({ context, burgerSubMenu, onClick, defaultLocation = '', children }) => {
|
|
17
17
|
const [city, getCity] = context.useGeolocation(defaultLocation);
|
|
18
|
+
|
|
18
19
|
return (
|
|
19
20
|
<div className="absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20">
|
|
20
21
|
<button
|
|
@@ -46,6 +47,7 @@ export const HeaderBurger = JSX<HeaderBurgerProps>(
|
|
|
46
47
|
|
|
47
48
|
const renderBurgerSubMenuItem = (menu: DispositionItem, i: number) => {
|
|
48
49
|
const { icon, href, text } = menu;
|
|
50
|
+
|
|
49
51
|
return (
|
|
50
52
|
<a key={`headerSubMenu-${i}`} href={href} className="flex text-sm mb-4 hover:text-primary-main">
|
|
51
53
|
{icon ? (
|
|
@@ -29,6 +29,7 @@ const LINKS_ICON_VERSION_MAP: Record<BgColorVersion, IconVersion> = {
|
|
|
29
29
|
export const HeaderSecondaryMenu = JSX<HeaderSecondaryMenuProps>(
|
|
30
30
|
({ context, className, defaultLocation = '', bgColor = 'bg-white' }) => {
|
|
31
31
|
const [city, getCity] = context.useGeolocation(defaultLocation);
|
|
32
|
+
|
|
32
33
|
return (
|
|
33
34
|
<div className={`flex items-center ${className || ''}`}>
|
|
34
35
|
<TopItem
|
|
@@ -18,6 +18,7 @@ export const Headline = JSX<HeadlineProps>(
|
|
|
18
18
|
align = 'left',
|
|
19
19
|
}) => {
|
|
20
20
|
const STYLE_MAPS = HEADLINE_BLOCK_STYLE_MAPS[bgColorHeadline];
|
|
21
|
+
|
|
21
22
|
return (
|
|
22
23
|
<section className={`px-4 py-6 flex flex-col gap-2.5 ${STYLE_MAPS.background} ${className}`}>
|
|
23
24
|
{title ? (
|
|
@@ -64,6 +64,7 @@ function renderInsuranceSumMonth(sum, monthLimit) {
|
|
|
64
64
|
|
|
65
65
|
function renderValueBlock(title, sum, isAnotherBlock) {
|
|
66
66
|
const widthStyle = isAnotherBlock ? 'w-fit' : 'w-full';
|
|
67
|
+
|
|
67
68
|
return (
|
|
68
69
|
<div className={`flex justify-between items-center gap-2 w-full ${widthStyle}`}>
|
|
69
70
|
<span className="text-secondary-text text-base">{title}</span>
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { Picture } from '../../model/Picture';
|
|
2
|
-
import type { InsuranceProps } from '../../model/Insurance';
|
|
3
2
|
|
|
4
3
|
/**
|
|
5
4
|
* @title Преимущество
|
|
@@ -15,12 +14,16 @@ export interface InsuranceBenefit {
|
|
|
15
14
|
/**
|
|
16
15
|
* @title Страховка
|
|
17
16
|
*/
|
|
18
|
-
export type InsuranceContent =
|
|
17
|
+
export type InsuranceContent = {
|
|
19
18
|
/** @title Заголовок */
|
|
20
19
|
title?: string;
|
|
21
20
|
/** @title Описание */
|
|
22
21
|
description?: string;
|
|
23
22
|
image?: Picture;
|
|
23
|
+
/** @title Ежемесячный лимит */
|
|
24
|
+
monthLimit?: number;
|
|
25
|
+
/** @title Страховая сумма */
|
|
26
|
+
sum?: number;
|
|
24
27
|
/**
|
|
25
28
|
* @title Список преимуществ
|
|
26
29
|
* @maxItems 6
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
},
|
|
7
7
|
"insuranceTabs": [
|
|
8
8
|
{
|
|
9
|
-
"title": "Описание",
|
|
10
|
-
"
|
|
9
|
+
"title": "Описание 1",
|
|
10
|
+
"cards": [
|
|
11
11
|
{
|
|
12
12
|
"sum": 200000,
|
|
13
13
|
"fee": 2100,
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
]
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
|
-
"title": "Описание",
|
|
25
|
-
"
|
|
24
|
+
"title": "Описание 2",
|
|
25
|
+
"cards": [
|
|
26
26
|
{
|
|
27
27
|
"sum": 200000,
|
|
28
28
|
"fee": 2100,
|
|
@@ -9,7 +9,6 @@ export interface InsuranceAmountBlockProps extends InsuranceAmountBlockContent,
|
|
|
9
9
|
|
|
10
10
|
export const InsuranceAmountBlock = JSX<InsuranceAmountBlockProps>(
|
|
11
11
|
({ className = '', context, title, insuranceTabs = [], button, anchor = null }) => {
|
|
12
|
-
const insuranceGalleries = insuranceTabs.map((_) => _.cards);
|
|
13
12
|
const [activeSlideIndex, setActiveSlideIndex] = context.useState(0);
|
|
14
13
|
|
|
15
14
|
return (
|
|
@@ -36,7 +35,7 @@ export const InsuranceAmountBlock = JSX<InsuranceAmountBlockProps>(
|
|
|
36
35
|
{renderInsuranceGalleries({
|
|
37
36
|
context,
|
|
38
37
|
className,
|
|
39
|
-
|
|
38
|
+
insuranceTabs,
|
|
40
39
|
})}
|
|
41
40
|
</div>
|
|
42
41
|
{button?.text ? (
|
|
@@ -55,7 +54,13 @@ export const InsuranceAmountBlock = JSX<InsuranceAmountBlockProps>(
|
|
|
55
54
|
},
|
|
56
55
|
);
|
|
57
56
|
|
|
58
|
-
const renderInsuranceGalleries = ({
|
|
57
|
+
const renderInsuranceGalleries = ({
|
|
58
|
+
insuranceTabs,
|
|
59
|
+
context,
|
|
60
|
+
className = '',
|
|
61
|
+
}: InsuranceAmountBlockProps) => {
|
|
62
|
+
const insuranceGalleries = insuranceTabs?.map((_) => _.cards);
|
|
63
|
+
|
|
59
64
|
return insuranceGalleries?.length
|
|
60
65
|
? insuranceGalleries.map((cards) => (
|
|
61
66
|
<InsuranceAmountBlockInner context={context} className={className} cards={cards} />
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import type { Picture } from '../../model/Picture';
|
|
2
2
|
import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
|
|
3
|
-
import type { InsuranceProps } from '../../model/Insurance';
|
|
4
3
|
|
|
5
4
|
/**
|
|
6
5
|
* @title Кнопка выбора программы
|
|
7
6
|
*/
|
|
8
|
-
export type
|
|
7
|
+
export type CardItem = {
|
|
8
|
+
/** @title Иконка */
|
|
9
9
|
icon?: Picture;
|
|
10
10
|
/** @title Страховой взнос */
|
|
11
11
|
fee?: number;
|
|
12
|
+
/** @title Страховая сумма */
|
|
13
|
+
sum?: number;
|
|
12
14
|
};
|
|
13
15
|
|
|
14
16
|
/**
|
|
@@ -18,7 +20,7 @@ export interface InsuranceAmountBlockTabs {
|
|
|
18
20
|
/** @title Заголовок вкладки */
|
|
19
21
|
title?: string;
|
|
20
22
|
/** @title Содержимое вкладки */
|
|
21
|
-
cards?:
|
|
23
|
+
cards?: CardItem[];
|
|
22
24
|
}
|
|
23
25
|
|
|
24
26
|
/**
|