@redneckz/wildless-cms-uni-blocks 0.3.74 → 0.3.75
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 +262 -194
- 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.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 +22 -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.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.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.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 +22 -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.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.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 +34 -37
- 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.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 +22 -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.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.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.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 +22 -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.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.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 +1 -0
- package/mobile/src/components/Catalog/Catalog.example.json +57 -0
- package/mobile/src/components/Catalog/Catalog.tsx +73 -0
- package/mobile/src/components/Catalog/CatalogCard.tsx +47 -0
- package/mobile/src/components/Catalog/CatalogContent.ts +26 -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 +2 -0
- 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 +1 -0
- 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 +1 -1
- 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 +1 -0
- package/src/components/Catalog/Catalog.example.json +57 -0
- package/src/components/Catalog/Catalog.fixture.tsx +48 -0
- package/src/components/Catalog/Catalog.tsx +73 -0
- package/src/components/Catalog/CatalogCard.tsx +47 -0
- package/src/components/Catalog/CatalogContent.ts +26 -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 +2 -0
- 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 +1 -0
- 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
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import type { BlockVersion } from '../../model/BlockVersion';
|
|
2
3
|
import type { UniBlockProps } from '../../types';
|
|
3
4
|
import { ButtonSection } from '../../ui-kit/Button/ButtonSection';
|
|
4
5
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
6
|
+
import { Img } from '../../ui-kit/Img/Img';
|
|
7
|
+
import { List } from '../../ui-kit/List/List';
|
|
5
8
|
import { BaseTile } from '../BaseTile/BaseTile';
|
|
6
9
|
import { getTileMinHeight } from '../BaseTile/getTileMinHeight';
|
|
7
10
|
import { getTileRightPadding } from '../BaseTile/getTileRightPadding';
|
|
@@ -9,20 +12,31 @@ import type { MobileAppTileContent } from './MobileAppTileContent';
|
|
|
9
12
|
|
|
10
13
|
export interface MobileAppTileProps extends MobileAppTileContent, UniBlockProps {}
|
|
11
14
|
|
|
15
|
+
const mobileAppStyleMap: Record<BlockVersion, string> = {
|
|
16
|
+
primary: 'bg-white text-primary-text',
|
|
17
|
+
secondary: 'bg-primary-main text-white',
|
|
18
|
+
};
|
|
19
|
+
|
|
12
20
|
export const MobileAppTile = JSX<MobileAppTileProps>(
|
|
13
21
|
({
|
|
14
22
|
className = '',
|
|
15
23
|
context,
|
|
16
24
|
title = 'Мобильное приложение',
|
|
17
25
|
qr,
|
|
18
|
-
buttons
|
|
26
|
+
buttons,
|
|
19
27
|
anchor = null,
|
|
28
|
+
version = 'primary',
|
|
29
|
+
items,
|
|
30
|
+
image,
|
|
20
31
|
}) => {
|
|
32
|
+
const textColorClass = version === 'primary' ? 'text-primary-text' : '';
|
|
33
|
+
|
|
21
34
|
return (
|
|
22
35
|
<section
|
|
23
|
-
className={`
|
|
24
|
-
|
|
25
|
-
|
|
36
|
+
className={`flex justify-between font-sans p-9 box-border relative
|
|
37
|
+
${getTileRightPadding(className)} ${getTileMinHeight(className)}
|
|
38
|
+
${mobileAppStyleMap[version]}
|
|
39
|
+
${className}`}
|
|
26
40
|
id={anchor}
|
|
27
41
|
>
|
|
28
42
|
<BaseTile
|
|
@@ -32,7 +46,8 @@ export const MobileAppTile = JSX<MobileAppTileProps>(
|
|
|
32
46
|
<Heading
|
|
33
47
|
headingType="h3"
|
|
34
48
|
title={title}
|
|
35
|
-
className={`whitespace-pre-wrap max-w-[
|
|
49
|
+
className={`whitespace-pre-wrap max-w-[509px] mb-6
|
|
50
|
+
${textColorClass}`}
|
|
36
51
|
/>
|
|
37
52
|
) : null
|
|
38
53
|
}
|
|
@@ -42,25 +57,42 @@ export const MobileAppTile = JSX<MobileAppTileProps>(
|
|
|
42
57
|
) : null
|
|
43
58
|
}
|
|
44
59
|
>
|
|
45
|
-
<div className="flex items-center">
|
|
60
|
+
<div className="flex flex-1 items-center">
|
|
46
61
|
{qr?.src && qr?.href && (
|
|
47
62
|
<a href={qr.href} target="_blank" aria-label={title}>
|
|
48
63
|
<img
|
|
49
64
|
src={qr.src}
|
|
50
65
|
alt={title}
|
|
51
66
|
title={title}
|
|
52
|
-
width="
|
|
53
|
-
height="
|
|
54
|
-
className="w-[
|
|
67
|
+
width="122"
|
|
68
|
+
height="122"
|
|
69
|
+
className="w-[122px] h-[122px] min-w-[122px] min-h-[122px] bg-secondary-light mr-[23px] rounded-md"
|
|
55
70
|
/>
|
|
56
71
|
</a>
|
|
57
72
|
)}
|
|
58
|
-
|
|
59
|
-
Наведите камеру телефона на QR-код и скачайте приложение
|
|
60
|
-
</span>
|
|
73
|
+
{renderList(version, items)}
|
|
61
74
|
</div>
|
|
62
75
|
</BaseTile>
|
|
76
|
+
{image?.src ? (
|
|
77
|
+
<div className="absolute right-0 bottom-0">
|
|
78
|
+
<Img image={image} />
|
|
79
|
+
</div>
|
|
80
|
+
) : null}
|
|
63
81
|
</section>
|
|
64
82
|
);
|
|
65
83
|
},
|
|
66
84
|
);
|
|
85
|
+
|
|
86
|
+
const renderList = (version: string, items?: string[]) => {
|
|
87
|
+
return items?.length ? (
|
|
88
|
+
<List
|
|
89
|
+
items={items}
|
|
90
|
+
itemClassName="base font-light mb-2 last:mb-0"
|
|
91
|
+
version={version === 'primary' ? 'tile' : 'tile-white'}
|
|
92
|
+
/>
|
|
93
|
+
) : (
|
|
94
|
+
<span className="font-light text-secondary-text ml-4">
|
|
95
|
+
Наведите камеру телефона на QR-код и скачайте приложение
|
|
96
|
+
</span>
|
|
97
|
+
);
|
|
98
|
+
};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import type { BlockVersion } from '../../model/BlockVersion';
|
|
1
2
|
import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
|
|
2
3
|
import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
|
|
3
4
|
import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
|
|
5
|
+
import type { ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
6
|
+
import type { ListContent } from '../../ui-kit/List/ListContent';
|
|
4
7
|
|
|
5
8
|
/**
|
|
6
9
|
* @title QR код
|
|
@@ -17,9 +20,12 @@ export interface QRCode {
|
|
|
17
20
|
*/
|
|
18
21
|
export type MobileAppTileContent = HeadingContent &
|
|
19
22
|
DescriptionContent &
|
|
20
|
-
ButtonContent &
|
|
23
|
+
ButtonContent &
|
|
24
|
+
ListContent &
|
|
25
|
+
ImageContent & {
|
|
21
26
|
// TODO: description для мобильной версии
|
|
22
27
|
qr?: QRCode;
|
|
23
28
|
/** @title Ссылка */
|
|
24
29
|
href?: string; // TODO: для мобильной версии
|
|
30
|
+
version?: BlockVersion;
|
|
25
31
|
};
|
|
@@ -25,56 +25,67 @@ import type {
|
|
|
25
25
|
|
|
26
26
|
const TEXT_BLOCK_OTHER_BLOCK: TextBlockBlockListDef = {
|
|
27
27
|
blockListType: 'TextBlock',
|
|
28
|
+
style: ['col-span-12'],
|
|
28
29
|
...TEXT_BLOCK,
|
|
29
30
|
};
|
|
30
31
|
|
|
31
32
|
const PRODUCT_BLOCK_OTHER_BLOCK: ProductBlockBlockListDef = {
|
|
32
33
|
blockListType: 'ProductBlock',
|
|
34
|
+
style: ['col-span-6'],
|
|
33
35
|
...PRODUCT_BLOCK,
|
|
34
36
|
};
|
|
35
37
|
|
|
36
38
|
const TILES_OTHER_BLOCK: TileBlockListDef = {
|
|
37
39
|
blockListType: 'Tile',
|
|
40
|
+
style: ['col-span-12'],
|
|
38
41
|
...TILE,
|
|
39
42
|
};
|
|
40
43
|
|
|
41
44
|
const TILES_PREMIUM_OTHER_BLOCK: TileBlockListDef = {
|
|
42
45
|
blockListType: 'Tile',
|
|
46
|
+
style: ['col-span-6'],
|
|
43
47
|
...TILE_PREMIUM,
|
|
44
48
|
};
|
|
45
49
|
|
|
46
50
|
const PRODUCT_TILES_OTHER_BLOCK: ProductTileBlockListDef = {
|
|
47
51
|
blockListType: 'ProductTile',
|
|
52
|
+
style: ['col-span-6'],
|
|
48
53
|
...PRODUCT_TILE,
|
|
49
54
|
};
|
|
50
55
|
|
|
51
|
-
const
|
|
56
|
+
const PRODUCT_PENSION_TILES_OTHER_BLOCK: ProductTileBlockListDef = {
|
|
52
57
|
blockListType: 'ProductTile',
|
|
58
|
+
style: ['col-span-6'],
|
|
53
59
|
...PRODUCT_PENSION_TILE,
|
|
54
60
|
};
|
|
55
61
|
|
|
56
62
|
const HEADLINE_OTHER_BLOCK: HeadlineBlockListDef = {
|
|
57
63
|
blockListType: 'Headline',
|
|
64
|
+
style: ['col-span-12'],
|
|
58
65
|
...HEADLINE,
|
|
59
66
|
};
|
|
60
67
|
|
|
61
68
|
const PICTURE_TEXT_OTHER_BLOCK: PictureTextBlockListDef = {
|
|
62
69
|
blockListType: 'PictureText',
|
|
70
|
+
style: ['col-span-12'],
|
|
63
71
|
...PICTURE_TEXT,
|
|
64
72
|
};
|
|
65
73
|
|
|
66
74
|
const LINK_DOCS_OTHER_BLOCK: LinkDocsBlockListDef = {
|
|
67
75
|
blockListType: 'LinkDocs',
|
|
76
|
+
style: ['col-span-12'],
|
|
68
77
|
...linkDocsContentExample,
|
|
69
78
|
};
|
|
70
79
|
|
|
71
80
|
const GALLERY_OTHER_BLOCK: GalleryBlockListDef = {
|
|
72
81
|
blockListType: 'Gallery',
|
|
82
|
+
style: ['col-span-12'],
|
|
73
83
|
...GALLERY,
|
|
74
84
|
};
|
|
75
85
|
|
|
76
86
|
const MINI_GALLERY_OTHER_BLOCK: MiniGalleryBlockListDef = {
|
|
77
87
|
blockListType: 'MiniGallery',
|
|
88
|
+
style: ['col-span-12'],
|
|
78
89
|
...MINI_GALLERY,
|
|
79
90
|
};
|
|
80
91
|
|
|
@@ -96,8 +107,8 @@ const propsBlock: OtherProductsProps = {
|
|
|
96
107
|
blocks: [
|
|
97
108
|
PRODUCT_TILES_OTHER_BLOCK,
|
|
98
109
|
PRODUCT_TILES_OTHER_BLOCK,
|
|
99
|
-
|
|
100
|
-
|
|
110
|
+
PRODUCT_PENSION_TILES_OTHER_BLOCK,
|
|
111
|
+
PRODUCT_PENSION_TILES_OTHER_BLOCK,
|
|
101
112
|
],
|
|
102
113
|
},
|
|
103
114
|
{
|
|
@@ -127,53 +138,11 @@ const propsBlock: OtherProductsProps = {
|
|
|
127
138
|
},
|
|
128
139
|
{
|
|
129
140
|
label: 'OtherProducts №8 Gallery',
|
|
130
|
-
blocks: [GALLERY_OTHER_BLOCK],
|
|
141
|
+
blocks: [GALLERY_OTHER_BLOCK, GALLERY_OTHER_BLOCK],
|
|
131
142
|
},
|
|
132
143
|
{
|
|
133
144
|
label: 'OtherProducts №9 Mini_Gallery',
|
|
134
|
-
blocks: [MINI_GALLERY_OTHER_BLOCK],
|
|
135
|
-
},
|
|
136
|
-
],
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
const propsTwoColumns: OtherProductsProps = {
|
|
140
|
-
context,
|
|
141
|
-
blockItems: [
|
|
142
|
-
{
|
|
143
|
-
label: 'Другие кредитные карты Россельхозбанка 1',
|
|
144
|
-
blocks: [
|
|
145
|
-
TILES_PREMIUM_OTHER_BLOCK,
|
|
146
|
-
TILES_PREMIUM_OTHER_BLOCK,
|
|
147
|
-
TILES_OTHER_BLOCK,
|
|
148
|
-
TILES_OTHER_BLOCK,
|
|
149
|
-
],
|
|
150
|
-
columns: 2,
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
label: 'Другие кредитные карты Россельхозбанка 2',
|
|
154
|
-
blocks: [
|
|
155
|
-
PRODUCT_TILES_OTHER_BLOCK,
|
|
156
|
-
PRODUCT_TILES_OTHER_BLOCK,
|
|
157
|
-
PRODUCT_PENSION_TILES__OTHER_BLOCK,
|
|
158
|
-
PRODUCT_PENSION_TILES__OTHER_BLOCK,
|
|
159
|
-
],
|
|
160
|
-
columns: 2,
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
label: 'Другие кредитные карты Россельхозбанка 3',
|
|
164
|
-
blocks: [PRODUCT_BLOCK_OTHER_BLOCK, PRODUCT_BLOCK_OTHER_BLOCK],
|
|
165
|
-
columns: 2,
|
|
166
|
-
},
|
|
167
|
-
|
|
168
|
-
{
|
|
169
|
-
label: 'Другие кредитные карты Россельхозбанка 4',
|
|
170
|
-
blocks: [
|
|
171
|
-
TEXT_BLOCK_OTHER_BLOCK,
|
|
172
|
-
TEXT_BLOCK_OTHER_BLOCK,
|
|
173
|
-
TEXT_BLOCK_OTHER_BLOCK,
|
|
174
|
-
TEXT_BLOCK_OTHER_BLOCK,
|
|
175
|
-
],
|
|
176
|
-
columns: 2,
|
|
145
|
+
blocks: [MINI_GALLERY_OTHER_BLOCK, MINI_GALLERY_OTHER_BLOCK],
|
|
177
146
|
},
|
|
178
147
|
],
|
|
179
148
|
};
|
|
@@ -184,10 +153,4 @@ export default {
|
|
|
184
153
|
<OtherProducts className="col-span-12" {...propsBlock} />
|
|
185
154
|
</div>
|
|
186
155
|
),
|
|
187
|
-
|
|
188
|
-
'two columns': (
|
|
189
|
-
<div className="container grid grid-cols-12">
|
|
190
|
-
<OtherProducts className="col-span-12" {...propsTwoColumns} />
|
|
191
|
-
</div>
|
|
192
|
-
),
|
|
193
156
|
};
|
|
@@ -8,9 +8,9 @@ export interface OtherProductsProps extends OtherProductsContent, UniBlockProps
|
|
|
8
8
|
export const OtherProducts = JSX<OtherProductsProps>(
|
|
9
9
|
({ blockItems, colorPalette, context, className = '' }) => {
|
|
10
10
|
return (
|
|
11
|
-
<section className={`font-sans
|
|
11
|
+
<section className={`font-sans text-primary-text ${className}`}>
|
|
12
12
|
{blockItems?.length ? (
|
|
13
|
-
<div className="
|
|
13
|
+
<div className="box-border1">
|
|
14
14
|
{blockItems.map((item, i) => (
|
|
15
15
|
<OtherProductsItem
|
|
16
16
|
key={`BlockItem${i}`}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ColorPalette } from '../../types';
|
|
2
|
-
import type { BlockDef
|
|
2
|
+
import type { BlockDef } from '../../ui-kit/BlocksList/BlocksListProps';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @title Элемент списка
|
|
@@ -10,16 +10,13 @@ export interface BlockItemCommonProps {
|
|
|
10
10
|
* @default Список
|
|
11
11
|
*/
|
|
12
12
|
label?: string;
|
|
13
|
-
/**
|
|
14
|
-
* @title Отображать в раскрытом виде
|
|
15
|
-
*/
|
|
13
|
+
/** @title Отображать в раскрытом виде */
|
|
16
14
|
isUnfolded?: boolean;
|
|
17
15
|
/**
|
|
18
16
|
* @title Блоки
|
|
19
17
|
* @maxItems 10
|
|
20
18
|
*/
|
|
21
19
|
blocks?: BlockDef[];
|
|
22
|
-
columns?: ColumnsCount;
|
|
23
20
|
}
|
|
24
21
|
|
|
25
22
|
/**
|
|
@@ -28,9 +25,7 @@ export interface BlockItemCommonProps {
|
|
|
28
25
|
export interface OtherProductsContent {
|
|
29
26
|
/** @title Заголовок */
|
|
30
27
|
title?: string;
|
|
31
|
-
/**
|
|
32
|
-
* @title Список
|
|
33
|
-
*/
|
|
28
|
+
/** @title Список */
|
|
34
29
|
blockItems?: BlockItemCommonProps[];
|
|
35
30
|
colorPalette?: ColorPalette;
|
|
36
31
|
}
|
|
@@ -10,13 +10,12 @@ export interface BlockItemProps extends BlockItemCommonProps, UniBlockProps {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export const OtherProductsItem = JSX<BlockItemProps>(
|
|
13
|
-
({ label, blocks,
|
|
13
|
+
({ label, blocks, context, dataTheme, isUnfolded }) => {
|
|
14
14
|
const foldableBlocks = renderBlocksList({
|
|
15
15
|
context,
|
|
16
|
-
className: 'box-border p-5',
|
|
17
|
-
columns,
|
|
18
16
|
blocks,
|
|
19
17
|
}) as VNode[];
|
|
18
|
+
|
|
20
19
|
return (
|
|
21
20
|
<div className="border-0 border-b border-solid border-main-divider">
|
|
22
21
|
{blocks?.length ? (
|
|
@@ -27,11 +26,8 @@ export const OtherProductsItem = JSX<BlockItemProps>(
|
|
|
27
26
|
isUnfolded={isUnfolded}
|
|
28
27
|
context={context}
|
|
29
28
|
foldButtonLabel={label}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
{children}
|
|
33
|
-
</Wrapper>
|
|
34
|
-
)}
|
|
29
|
+
containerClasses="grid grid-cols-12 gap-1 border-box"
|
|
30
|
+
render={(children, isActive) => <Wrapper isActive={isActive}>{children}</Wrapper>}
|
|
35
31
|
/>
|
|
36
32
|
) : null}
|
|
37
33
|
</div>
|
|
@@ -39,14 +35,6 @@ export const OtherProductsItem = JSX<BlockItemProps>(
|
|
|
39
35
|
},
|
|
40
36
|
);
|
|
41
37
|
|
|
42
|
-
const Wrapper = JSX<{
|
|
43
|
-
return
|
|
44
|
-
<div
|
|
45
|
-
className={`box-border w-full ${isActive ? 'p-9' : ''} ${
|
|
46
|
-
columns > 1 ? 'flex flex-wrap' : ''
|
|
47
|
-
}`}
|
|
48
|
-
>
|
|
49
|
-
{children}
|
|
50
|
-
</div>
|
|
51
|
-
);
|
|
38
|
+
const Wrapper = JSX<{ isActive: boolean }>(({ children }) => {
|
|
39
|
+
return <div className="box-border">{children}</div>;
|
|
52
40
|
});
|
|
@@ -13,6 +13,7 @@ export interface ProductBlockProps extends ProductBlockContent, UniBlockProps {}
|
|
|
13
13
|
|
|
14
14
|
export const ProductBlock = JSX<ProductBlockProps>((props /* Get rid of image and benefits */) => {
|
|
15
15
|
const { className = '', version = 'primary' } = props;
|
|
16
|
+
|
|
16
17
|
return (
|
|
17
18
|
<section
|
|
18
19
|
className={`font-sans bg-white px-4 py-6 ${productBlockStyleMap[version]} ${className}`}
|
|
@@ -32,6 +32,7 @@ export const ProductBlock = JSX<ProductBlockProps>((props) => {
|
|
|
32
32
|
} = props;
|
|
33
33
|
const router = context.useRouter();
|
|
34
34
|
const { handlerDecorator } = context;
|
|
35
|
+
|
|
35
36
|
return (
|
|
36
37
|
<section
|
|
37
38
|
className={`font-sans overflow-hidden pt-[50px] pl-[50px] pb-[50px] pr-[7.5rem] box-border min-h-[420px] ${productBlockStyleMap[version]} ${className}`}
|
|
@@ -28,6 +28,7 @@ export const ProductBlockInner = JSX<ProductBlockInnerProps>(
|
|
|
28
28
|
textBlockClassName = '',
|
|
29
29
|
}) => {
|
|
30
30
|
const textColor = version === 'secondary' ? 'text-white' : 'text-primary-text';
|
|
31
|
+
|
|
31
32
|
return (
|
|
32
33
|
<div className={`flex grow justify-between items-stretch ${className}`}>
|
|
33
34
|
<div className={`flex flex-col ${textBlockClassName}`}>
|
|
@@ -13,6 +13,7 @@ const benefitDescStyleMap: Record<BlockVersion, string> = {
|
|
|
13
13
|
|
|
14
14
|
export function renderBenefit({ benefit, version = 'primary' }: BenefitItemProps, i: number) {
|
|
15
15
|
const isIconWhite = version === 'secondary';
|
|
16
|
+
|
|
16
17
|
return (
|
|
17
18
|
<div key={String(i)} className="flex gap-3 items-center mb-2.5 last:mb-0">
|
|
18
19
|
{benefit.icon ? (
|
|
@@ -97,6 +97,7 @@ function renderBenefitDescription(benefit: TextBenefit, i: number, version = 'pr
|
|
|
97
97
|
primary: 'text-secondary-text',
|
|
98
98
|
secondary: 'text-white',
|
|
99
99
|
};
|
|
100
|
+
|
|
100
101
|
return (
|
|
101
102
|
<div key={String(i)} className={`text-sm ${i ? 'mt-4' : ''} ${labelStyleMap[version]}`}>
|
|
102
103
|
{benefit.description}
|
|
@@ -109,5 +110,6 @@ function renderAdditionalDescription(additionalDescription: string, version = 'p
|
|
|
109
110
|
primary: 'text-secondary-text',
|
|
110
111
|
secondary: 'text-white',
|
|
111
112
|
};
|
|
113
|
+
|
|
112
114
|
return <div className={`text-sm mt-2.5 ${descStyleMap[version]}`}>{additionalDescription}</div>;
|
|
113
115
|
}
|
|
@@ -5,17 +5,10 @@ import type { UniBlockProps } from '../../types';
|
|
|
5
5
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
6
6
|
import { Img } from '../../ui-kit/Img/Img';
|
|
7
7
|
import type { Step, StepsBlockContent } from './StepsBlockContent';
|
|
8
|
+
import { getStyleMap } from './StepsBlockStyleMaps';
|
|
8
9
|
|
|
9
10
|
export interface StepsBlockProps extends StepsBlockContent, UniBlockProps {}
|
|
10
11
|
|
|
11
|
-
type StyleType = {
|
|
12
|
-
background: string;
|
|
13
|
-
title: string;
|
|
14
|
-
description: string;
|
|
15
|
-
iconBackground: string;
|
|
16
|
-
iconConnector: string;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
12
|
const STEPS_SIZE_MAP: Record<SizeVersion, string> = {
|
|
20
13
|
normal: 'h-[70px] w-[70px] min-w-[70px] min-h-[70px]',
|
|
21
14
|
small: 'h-[50px] w-[50px] min-w-[50px] min-h-[50px]',
|
|
@@ -26,47 +19,35 @@ const STEPS_TILE_DESCRIPTION_HEIGHT_MAP: Record<SizeVersion, string> = {
|
|
|
26
19
|
small: 'min-h-[50px]',
|
|
27
20
|
};
|
|
28
21
|
|
|
29
|
-
const STEPS_BLOCK_STYLE_MAPS: Record<BlockVersion, StyleType> = {
|
|
30
|
-
primary: {
|
|
31
|
-
background: 'bg-white',
|
|
32
|
-
title: 'text-primary-text',
|
|
33
|
-
description: 'text-secondary-text',
|
|
34
|
-
iconBackground: 'bg-secondary-light',
|
|
35
|
-
iconConnector: 'bg-secondary-light',
|
|
36
|
-
},
|
|
37
|
-
secondary: {
|
|
38
|
-
background: 'bg-primary-main',
|
|
39
|
-
title: 'text-white',
|
|
40
|
-
description: 'text-white/80',
|
|
41
|
-
iconBackground: 'bg-white/30',
|
|
42
|
-
iconConnector: 'bg-white',
|
|
43
|
-
},
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
const styleMaps = (version: BlockVersion): StyleType => STEPS_BLOCK_STYLE_MAPS[version];
|
|
47
|
-
|
|
48
22
|
export const StepsBlock = JSX<StepsBlockProps>(
|
|
49
|
-
({
|
|
50
|
-
|
|
23
|
+
({
|
|
24
|
+
className,
|
|
25
|
+
title,
|
|
26
|
+
description,
|
|
27
|
+
showLines = true,
|
|
28
|
+
steps,
|
|
29
|
+
size = 'normal',
|
|
30
|
+
version = 'primary',
|
|
31
|
+
}) => {
|
|
32
|
+
const styleMap = getStyleMap(version);
|
|
33
|
+
|
|
51
34
|
return (
|
|
52
35
|
<section
|
|
53
36
|
className={`box-border font-sans bg-white px-4 py-6 flex flex-col
|
|
54
|
-
${
|
|
37
|
+
${styleMap.background} ${styleMap.title} ${className || ''}`}
|
|
55
38
|
>
|
|
56
39
|
{title ? (
|
|
57
|
-
<Heading headingType="h3" className={`text-center ${
|
|
40
|
+
<Heading headingType="h3" className={`text-center ${styleMap.title}`} title={title} />
|
|
58
41
|
) : null}
|
|
59
42
|
{description ? (
|
|
60
|
-
<p className={`text-m-md text-center ${
|
|
43
|
+
<p className={`text-m-md text-center ${styleMap.description} ${title ? 'mt-2' : ''}`}>
|
|
61
44
|
{description}
|
|
62
45
|
</p>
|
|
63
46
|
) : null}
|
|
64
47
|
{steps?.length ? (
|
|
65
48
|
<div className={`box-border py-0.5 mb-0.5 mt-5`}>
|
|
66
49
|
<div className="flex flex-col justify-between gap-x-[101px]">
|
|
67
|
-
{steps.map((
|
|
68
|
-
renderStepTitle({ step, size, i, length: steps.length, version: version }),
|
|
69
|
-
)}
|
|
50
|
+
{steps.map(renderStepTitle(size, version, showLines))}
|
|
70
51
|
</div>
|
|
71
52
|
</div>
|
|
72
53
|
) : null}
|
|
@@ -75,53 +56,49 @@ export const StepsBlock = JSX<StepsBlockProps>(
|
|
|
75
56
|
},
|
|
76
57
|
);
|
|
77
58
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
59
|
+
const renderStepTitle =
|
|
60
|
+
(size: SizeVersion, version: BlockVersion, showLines: boolean) =>
|
|
61
|
+
(step: Step, i: number, steps: Step[]) => {
|
|
62
|
+
const isLastStep = steps.length - 1 === i;
|
|
63
|
+
const margin = size === 'normal' ? 'ml-[34px]' : 'ml-6';
|
|
64
|
+
const styleMap = getStyleMap(version);
|
|
85
65
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
) : null}
|
|
66
|
+
return (
|
|
67
|
+
<div key={String(i)}>
|
|
68
|
+
<div className="flex flex-row text-center relative">
|
|
69
|
+
<div className="overflow-hidden">
|
|
70
|
+
{renderIconArea(size, version)}
|
|
71
|
+
{isLastStep ? null : (
|
|
72
|
+
<div
|
|
73
|
+
className={`min-h-8 h-full w-[2px] ${
|
|
74
|
+
showLines ? styleMap.iconConnector : ''
|
|
75
|
+
} ${margin}`}
|
|
76
|
+
/>
|
|
77
|
+
)}
|
|
78
|
+
</div>
|
|
79
|
+
<div
|
|
80
|
+
className={`flex flex-col justify-center h-fit ${STEPS_TILE_DESCRIPTION_HEIGHT_MAP[size]}`}
|
|
81
|
+
>
|
|
82
|
+
{step.label ? (
|
|
83
|
+
<div className="font-medium text-m-title-xs m-0 text-left">{step.label}</div>
|
|
84
|
+
) : null}
|
|
85
|
+
{step.description ? (
|
|
86
|
+
<div
|
|
87
|
+
className={`font-normal text-sm ${styleMap.description} text-left ${
|
|
88
|
+
step.label ? 'mt-1' : ''
|
|
89
|
+
}`}
|
|
90
|
+
>
|
|
91
|
+
{step.description}
|
|
92
|
+
</div>
|
|
93
|
+
) : null}
|
|
94
|
+
</div>
|
|
116
95
|
</div>
|
|
117
96
|
</div>
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
};
|
|
97
|
+
);
|
|
98
|
+
};
|
|
121
99
|
|
|
122
|
-
const renderIconArea = (
|
|
123
|
-
const
|
|
124
|
-
const style = styleMaps(version);
|
|
100
|
+
const renderIconArea = (size: SizeVersion, version: BlockVersion) => (step: Step, i: number) => {
|
|
101
|
+
const styleMap = getStyleMap(version);
|
|
125
102
|
const iconAreaSize = STEPS_SIZE_MAP[size];
|
|
126
103
|
|
|
127
104
|
const iconSize = size === 'normal' ? '38' : '27';
|
|
@@ -129,11 +106,10 @@ const renderIconArea = (params: RenderStepTitleParams) => {
|
|
|
129
106
|
|
|
130
107
|
return (
|
|
131
108
|
<div
|
|
132
|
-
className={`${iconAreaSize} ${
|
|
109
|
+
className={`${iconAreaSize} ${styleMap.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`}
|
|
133
110
|
>
|
|
134
|
-
<span className={`font-medium flex self-center ${
|
|
135
|
-
{(step.icon?.icon && <Img image={step.icon} width={iconSize} height={iconSize}
|
|
136
|
-
i + 1}
|
|
111
|
+
<span className={`font-medium flex self-center ${styleMap.title} ${iconTextSize}`}>
|
|
112
|
+
{(step.icon?.icon && <Img image={step.icon} width={iconSize} height={iconSize} />) || i + 1}
|
|
137
113
|
</span>
|
|
138
114
|
</div>
|
|
139
115
|
);
|