@redneckz/wildless-cms-uni-blocks 0.5.5 → 0.5.6
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 +149 -157
- package/bundle/bundle.umd.min.js +1 -1
- package/cosmos-static/icons/ArrowDownIcon.svg +1 -1
- package/cosmos-static/icons/ArrowUpIcon.svg +1 -1
- package/cosmos-static/icons/BuildingIcon.svg +1 -0
- package/cosmos-static/icons/Car2Icon.svg +1 -0
- package/cosmos-static/icons/DocDownloadIcon.svg +1 -1
- package/cosmos-static/icons/DoneIcon.svg +1 -1
- package/cosmos-static/icons/DoneSimpleIcon.svg +1 -0
- package/cosmos-static/icons/GpsIcon.svg +1 -1
- package/cosmos-static/icons/MoneysIcon.svg +1 -0
- package/cosmos-static/icons/StrongBoxIcon.svg +1 -0
- package/cosmos-static/icons/UserSquareIcon.svg +1 -0
- package/dist/ProjectSettings.d.ts +2 -0
- package/dist/ProjectSettings.js +3 -0
- package/dist/ProjectSettings.js.map +1 -1
- package/dist/components/Accordion/AccordionContent.d.ts +4 -9
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +12 -19
- package/dist/components/BlockContent.d.ts +2 -3
- package/dist/components/Blocks.d.ts +0 -1
- package/dist/components/Blocks.js +1 -3
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Bonus/BonusContent.d.ts +6 -9
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +3 -5
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +5 -11
- package/dist/components/Calculator/BonusCalculatorForm.js +3 -2
- package/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/CalculatorContent.d.ts +7 -40
- package/dist/components/Calculator/CalculatorValueBlock.js +1 -1
- package/dist/components/Calculator/CreditCalculatorForm.js +4 -3
- package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/DepositCalculatorForm.js +21 -2
- package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/EmbeddableCalcBlocks.d.ts +1 -3
- package/dist/components/Calculator/EmbeddableCalcBlocks.js +0 -2
- package/dist/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
- package/dist/components/Calculator/renderFootnote.d.ts +2 -0
- package/dist/components/Calculator/renderFootnote.js +6 -0
- package/dist/components/Calculator/renderFootnote.js.map +1 -0
- package/dist/components/CardTransfer/CardTransferContent.d.ts +3 -6
- package/dist/components/Catalog/CatalogCard.js.map +1 -1
- package/dist/components/Catalog/CatalogContent.d.ts +2 -5
- package/dist/components/ComparisonTable/ComparisonTableContent.d.ts +9 -43
- package/dist/components/ComparisonTable/TableColumn.d.ts +8 -1
- package/dist/components/ComparisonTable/TableColumn.js.map +1 -1
- package/dist/components/ComparisonTable/TableRow.d.ts +5 -1
- package/dist/components/ComparisonTable/TableRow.js.map +1 -1
- package/dist/components/ContentPage/computeAPIFallback.d.ts +5 -0
- package/dist/components/ContentPage/computeAPIFallback.js +68 -0
- package/dist/components/ContentPage/computeAPIFallback.js.map +1 -0
- package/dist/components/ErrorBlock/ErrorBlockContent.d.ts +17 -4
- package/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +3 -4
- package/dist/components/ExchangeRateTile/renderInput.js +4 -3
- package/dist/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/dist/components/Footer/Footer.js +3 -2
- package/dist/components/Footer/Footer.js.map +1 -1
- package/dist/components/Footer/Footer.mobile.js +3 -2
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/Footer/FooterContent.d.ts +5 -9
- package/dist/components/Footer/HorizontalNavigation.d.ts +2 -2
- package/dist/components/Footer/HorizontalNavigation.js.map +1 -1
- package/dist/components/Footer/HorizontalNavigation.mobile.d.ts +2 -2
- package/dist/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
- package/dist/components/Footer/Sitemap.d.ts +2 -0
- package/dist/components/Footer/Sitemap.js +2 -2
- package/dist/components/Footer/Sitemap.js.map +1 -1
- package/dist/components/Gallery/GalleryContent.d.ts +16 -19
- package/dist/components/GracePeriod/GracePeriodContent.d.ts +10 -14
- package/dist/components/Header/Header.fallback.d.ts +2 -0
- package/dist/components/Header/Header.fallback.js +12 -0
- package/dist/components/Header/Header.fallback.js.map +1 -0
- package/dist/components/Header/Header.js +4 -3
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/Header/Header.mobile.js +3 -2
- package/dist/components/Header/Header.mobile.js.map +1 -1
- package/dist/components/Header/HeaderContent.d.ts +14 -23
- package/dist/components/Headline/HeadlineContent.d.ts +4 -3
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +8 -13
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +2 -2
- package/dist/components/MiniGallery/MiniGalleryContent.d.ts +8 -3
- package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +19 -5
- package/dist/components/OfficeServicesBlock/OfficeServicesBlock.js +1 -1
- package/dist/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/dist/components/OfficeServicesBlock/OfficeServicesBlockContent.d.ts +5 -20
- package/dist/components/OtherProducts/OtherProductsContent.d.ts +3 -4
- package/dist/components/PictureText/PictureText.js +1 -1
- package/dist/components/PictureText/PictureTextContent.d.ts +20 -4
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +13 -10
- package/dist/components/ProductTile/ProductTile.js +13 -8
- package/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/dist/components/ProductTile/ProductTileContent.d.ts +19 -9
- package/dist/components/Recommendation/RecommendationContent.d.ts +20 -2
- package/dist/components/SafeDepositRental/SafeDepositRentalContent.d.ts +4 -4
- package/dist/components/SafeDepositRental/YandexMap.js +5 -5
- package/dist/components/SafeDepositRental/YandexMap.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlockContent.d.ts +6 -25
- package/dist/components/Tabs/TabsContent.d.ts +8 -5
- package/dist/components/TariffsTable/EmbeddableCellData.mobile.d.ts +0 -3
- package/dist/components/TariffsTable/EmbeddableCellData.mobile.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableContent.d.ts +19 -36
- package/dist/components/TariffsTable/TariffsTableRow.js +2 -1
- package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/dist/components/TextBlock/TextBlockContent.d.ts +3 -6
- package/dist/components/Tile/TileContent.d.ts +17 -2
- package/dist/icons/IconName.d.ts +15 -5
- package/dist/icons/IconName.js +13 -3
- package/dist/icons/IconName.js.map +1 -1
- package/dist/model/ButtonVersion.d.ts +1 -1
- package/dist/model/Footnote.d.ts +4 -0
- package/dist/{components/Navigation/NavigationContent.js → model/Footnote.js} +1 -1
- package/dist/model/Footnote.js.map +1 -0
- package/dist/model/HeadlineType.d.ts +4 -0
- package/dist/model/Picture.d.ts +4 -0
- package/dist/model/ProductColorVersion.d.ts +4 -0
- package/dist/model/ProductColorVersion.js +2 -0
- package/dist/model/ProductColorVersion.js.map +1 -0
- package/dist/services/sitemap/useSitemap.d.ts +2 -1
- package/dist/services/sitemap/useSitemap.js +2 -2
- package/dist/services/sitemap/useSitemap.js.map +1 -1
- package/dist/types/Fallback.d.ts +5 -0
- package/{mobile/dist/components/Navigation/NavigationContent.js → dist/types/Fallback.js} +1 -1
- package/dist/types/Fallback.js.map +1 -0
- package/dist/types.d.ts +1 -0
- package/dist/ui-kit/BenefitItem/BenefitItemProps.d.ts +3 -8
- package/dist/ui-kit/Button/ButtonProps.d.ts +3 -5
- package/dist/ui-kit/Button/ButtonSection.js +2 -1
- package/dist/ui-kit/Button/ButtonSection.js.map +1 -1
- package/dist/ui-kit/Button/buttonClassNameConstants.js +4 -3
- package/dist/ui-kit/Button/buttonClassNameConstants.js.map +1 -1
- package/dist/ui-kit/Foldable/Foldable.js +1 -1
- package/dist/ui-kit/Foldable/Foldable.js.map +1 -1
- package/dist/ui-kit/Input/Input.js +1 -1
- package/dist/ui-kit/Input/Input.js.map +1 -1
- package/dist/ui-kit/InputRange/InputRange.js +8 -15
- package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/dist/ui-kit/Radio/Radio.js +1 -1
- package/dist/ui-kit/Radio/Radio.js.map +1 -1
- package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +1 -1
- package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/dist/ui-kit/SearchBar/SearchBarInner.js +1 -1
- package/dist/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
- package/dist/ui-kit/SelectCustom/SelectCustom.d.ts +13 -0
- package/dist/ui-kit/SelectCustom/SelectCustom.js +30 -0
- package/dist/ui-kit/SelectCustom/SelectCustom.js.map +1 -0
- package/lib/ProjectSettings.d.ts +2 -0
- package/lib/ProjectSettings.js +3 -0
- package/lib/ProjectSettings.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Accordion/AccordionContent.d.ts +4 -9
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +12 -19
- package/lib/components/BlockContent.d.ts +2 -3
- package/lib/components/Blocks.d.ts +0 -1
- package/lib/components/Blocks.js +1 -3
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Bonus/BonusContent.d.ts +6 -9
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +3 -5
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +5 -11
- package/lib/components/Calculator/BonusCalculatorForm.js +3 -2
- package/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/CalculatorContent.d.ts +7 -40
- package/lib/components/Calculator/CalculatorValueBlock.js +1 -1
- package/lib/components/Calculator/CreditCalculatorForm.js +4 -3
- package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/DepositCalculatorForm.js +21 -2
- package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/EmbeddableCalcBlocks.d.ts +1 -3
- package/lib/components/Calculator/EmbeddableCalcBlocks.js +0 -2
- package/lib/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
- package/lib/components/Calculator/renderFootnote.d.ts +2 -0
- package/lib/components/Calculator/renderFootnote.js +3 -0
- package/lib/components/Calculator/renderFootnote.js.map +1 -0
- package/lib/components/CardTransfer/CardTransferContent.d.ts +3 -6
- package/lib/components/Catalog/CatalogCard.js.map +1 -1
- package/lib/components/Catalog/CatalogContent.d.ts +2 -5
- package/lib/components/ComparisonTable/ComparisonTableContent.d.ts +9 -43
- package/lib/components/ComparisonTable/TableColumn.d.ts +8 -1
- package/lib/components/ComparisonTable/TableColumn.js.map +1 -1
- package/lib/components/ComparisonTable/TableRow.d.ts +5 -1
- package/lib/components/ComparisonTable/TableRow.js.map +1 -1
- package/lib/components/ContentPage/computeAPIFallback.d.ts +5 -0
- package/lib/components/ContentPage/computeAPIFallback.js +40 -0
- package/lib/components/ContentPage/computeAPIFallback.js.map +1 -0
- package/lib/components/ErrorBlock/ErrorBlockContent.d.ts +17 -4
- package/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +3 -4
- package/lib/components/ExchangeRateTile/renderInput.js +4 -3
- package/lib/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/lib/components/Footer/Footer.js +3 -2
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Footer/Footer.mobile.js +3 -2
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/Footer/FooterContent.d.ts +5 -9
- package/lib/components/Footer/HorizontalNavigation.d.ts +2 -2
- package/lib/components/Footer/HorizontalNavigation.js.map +1 -1
- package/lib/components/Footer/HorizontalNavigation.mobile.d.ts +2 -2
- package/lib/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
- package/lib/components/Footer/Sitemap.d.ts +2 -0
- package/lib/components/Footer/Sitemap.js +2 -2
- package/lib/components/Footer/Sitemap.js.map +1 -1
- package/lib/components/Gallery/GalleryContent.d.ts +16 -19
- package/lib/components/GracePeriod/GracePeriodContent.d.ts +10 -14
- package/lib/components/Header/Header.fallback.d.ts +2 -0
- package/lib/components/Header/Header.fallback.js +9 -0
- package/lib/components/Header/Header.fallback.js.map +1 -0
- package/lib/components/Header/Header.js +4 -3
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/Header.mobile.js +3 -2
- package/lib/components/Header/Header.mobile.js.map +1 -1
- package/lib/components/Header/HeaderContent.d.ts +14 -23
- package/lib/components/Headline/HeadlineContent.d.ts +4 -3
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +8 -13
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +2 -2
- package/lib/components/MiniGallery/MiniGalleryContent.d.ts +8 -3
- package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +19 -5
- package/lib/components/OfficeServicesBlock/OfficeServicesBlock.js +1 -1
- package/lib/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/lib/components/OfficeServicesBlock/OfficeServicesBlockContent.d.ts +5 -20
- package/lib/components/OtherProducts/OtherProductsContent.d.ts +3 -4
- package/lib/components/PictureText/PictureText.js +1 -1
- package/lib/components/PictureText/PictureTextContent.d.ts +20 -4
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +13 -10
- package/lib/components/ProductTile/ProductTile.fixture.d.ts +1 -0
- package/lib/components/ProductTile/ProductTile.js +13 -8
- package/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/lib/components/ProductTile/ProductTileContent.d.ts +19 -9
- package/lib/components/Recommendation/RecommendationContent.d.ts +20 -2
- package/lib/components/SafeDepositRental/SafeDepositRentalContent.d.ts +4 -4
- package/lib/components/SafeDepositRental/YandexMap.js +6 -6
- package/lib/components/SafeDepositRental/YandexMap.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlockContent.d.ts +6 -25
- package/lib/components/Tabs/TabsContent.d.ts +8 -5
- package/lib/components/TariffsTable/EmbeddableCellData.mobile.d.ts +0 -3
- package/lib/components/TariffsTable/EmbeddableCellData.mobile.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableContent.d.ts +19 -36
- package/lib/components/TariffsTable/TariffsTableRow.js +2 -1
- package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/lib/components/TextBlock/TextBlockContent.d.ts +3 -6
- package/lib/components/Tile/TileContent.d.ts +17 -2
- package/lib/icons/IconName.d.ts +15 -5
- package/lib/icons/IconName.js +13 -3
- package/lib/icons/IconName.js.map +1 -1
- package/lib/model/ButtonVersion.d.ts +1 -1
- package/lib/model/Footnote.d.ts +4 -0
- package/lib/model/Footnote.js +2 -0
- package/lib/model/Footnote.js.map +1 -0
- package/lib/model/HeadlineType.d.ts +4 -0
- package/lib/model/Picture.d.ts +4 -0
- package/lib/model/ProductColorVersion.d.ts +4 -0
- package/lib/model/ProductColorVersion.js +2 -0
- package/lib/model/ProductColorVersion.js.map +1 -0
- package/lib/services/sitemap/useSitemap.d.ts +2 -1
- package/lib/services/sitemap/useSitemap.js +2 -2
- package/lib/services/sitemap/useSitemap.js.map +1 -1
- package/lib/types/Fallback.d.ts +5 -0
- package/lib/types/Fallback.js +2 -0
- package/lib/types/Fallback.js.map +1 -0
- package/lib/types.d.ts +1 -0
- package/lib/ui-kit/BenefitItem/BenefitItemProps.d.ts +3 -8
- package/lib/ui-kit/Button/ButtonProps.d.ts +3 -5
- package/lib/ui-kit/Button/ButtonSection.js +2 -1
- package/lib/ui-kit/Button/ButtonSection.js.map +1 -1
- package/lib/ui-kit/Button/buttonClassNameConstants.js +4 -3
- package/lib/ui-kit/Button/buttonClassNameConstants.js.map +1 -1
- package/lib/ui-kit/Foldable/Foldable.js +1 -1
- package/lib/ui-kit/Foldable/Foldable.js.map +1 -1
- package/lib/ui-kit/Input/Input.js +1 -1
- package/lib/ui-kit/Input/Input.js.map +1 -1
- package/lib/ui-kit/InputRange/InputRange.js +8 -15
- package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/lib/ui-kit/Radio/Radio.js +1 -1
- package/lib/ui-kit/Radio/Radio.js.map +1 -1
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +1 -1
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/lib/ui-kit/SearchBar/SearchBarInner.js +1 -1
- package/lib/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
- package/lib/ui-kit/SelectCustom/SelectCustom.d.ts +13 -0
- package/lib/{components/Navigation/Navigation.fixture.d.ts → ui-kit/SelectCustom/SelectCustom.fixture.d.ts} +0 -0
- package/lib/ui-kit/SelectCustom/SelectCustom.js +28 -0
- package/lib/ui-kit/SelectCustom/SelectCustom.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +53 -22
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/ProjectSettings.d.ts +2 -0
- package/mobile/dist/ProjectSettings.js +3 -0
- package/mobile/dist/ProjectSettings.js.map +1 -1
- package/mobile/dist/components/Accordion/AccordionContent.d.ts +4 -9
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +12 -19
- package/mobile/dist/components/BlockContent.d.ts +2 -3
- package/mobile/dist/components/Bonus/BonusContent.d.ts +6 -9
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +3 -5
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +5 -11
- package/mobile/dist/components/Calculator/BonusCalculatorForm.js +3 -2
- package/mobile/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/CalculatorContent.d.ts +7 -40
- package/mobile/dist/components/Calculator/CalculatorValueBlock.js +1 -1
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js +4 -3
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js +21 -2
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.d.ts +1 -3
- package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.js +0 -2
- package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
- package/mobile/dist/components/Calculator/renderFootnote.d.ts +2 -0
- package/mobile/dist/components/Calculator/renderFootnote.js +6 -0
- package/mobile/dist/components/Calculator/renderFootnote.js.map +1 -0
- package/mobile/dist/components/CardTransfer/CardTransferContent.d.ts +3 -6
- package/mobile/dist/components/Catalog/CatalogCard.js.map +1 -1
- package/mobile/dist/components/Catalog/CatalogContent.d.ts +2 -5
- package/mobile/dist/components/ComparisonTable/ComparisonTableContent.d.ts +9 -43
- package/mobile/dist/components/ComparisonTable/TableColumn.d.ts +8 -1
- package/mobile/dist/components/ComparisonTable/TableColumn.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/TableRow.d.ts +5 -1
- package/mobile/dist/components/ComparisonTable/TableRow.js.map +1 -1
- package/mobile/dist/components/ContentPage/computeAPIFallback.d.ts +5 -0
- package/mobile/dist/components/ContentPage/computeAPIFallback.js +68 -0
- package/mobile/dist/components/ContentPage/computeAPIFallback.js.map +1 -0
- package/mobile/dist/components/ErrorBlock/ErrorBlockContent.d.ts +17 -4
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +3 -4
- package/mobile/dist/components/ExchangeRateTile/renderInput.js +4 -3
- package/mobile/dist/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/mobile/dist/components/Footer/Footer.js +3 -2
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/Footer/FooterContent.d.ts +5 -9
- package/mobile/dist/components/Footer/HorizontalNavigation.d.ts +2 -2
- package/mobile/dist/components/Footer/HorizontalNavigation.js.map +1 -1
- package/mobile/dist/components/Footer/Sitemap.d.ts +2 -0
- package/mobile/dist/components/Footer/Sitemap.js +2 -2
- package/mobile/dist/components/Footer/Sitemap.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryContent.d.ts +16 -19
- package/mobile/dist/components/GracePeriod/GracePeriodContent.d.ts +10 -14
- package/mobile/dist/components/Header/Header.fallback.d.ts +2 -0
- package/mobile/dist/components/Header/Header.fallback.js +12 -0
- package/mobile/dist/components/Header/Header.fallback.js.map +1 -0
- package/mobile/dist/components/Header/Header.js +3 -2
- package/mobile/dist/components/Header/Header.js.map +1 -1
- package/mobile/dist/components/Header/HeaderContent.d.ts +14 -23
- package/mobile/dist/components/Headline/HeadlineContent.d.ts +4 -3
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +8 -13
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +2 -2
- package/mobile/dist/components/MiniGallery/MiniGalleryContent.d.ts +8 -3
- package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +19 -5
- package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.js +1 -1
- package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlockContent.d.ts +5 -20
- package/mobile/dist/components/OtherProducts/OtherProductsContent.d.ts +3 -4
- package/mobile/dist/components/PictureText/PictureText.js +1 -1
- package/mobile/dist/components/PictureText/PictureTextContent.d.ts +20 -4
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +13 -10
- package/mobile/dist/components/ProductTile/ProductTile.js +13 -8
- package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +19 -9
- package/mobile/dist/components/Recommendation/RecommendationContent.d.ts +20 -2
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalContent.d.ts +4 -4
- package/mobile/dist/components/SafeDepositRental/YandexMap.js +5 -5
- package/mobile/dist/components/SafeDepositRental/YandexMap.js.map +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlockContent.d.ts +6 -25
- package/mobile/dist/components/Tabs/TabsContent.d.ts +8 -5
- package/mobile/dist/components/TariffsTable/EmbeddableCellData.d.ts +0 -3
- package/mobile/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +19 -36
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js +2 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/dist/components/TextBlock/TextBlockContent.d.ts +3 -6
- package/mobile/dist/components/Tile/TileContent.d.ts +17 -2
- package/mobile/dist/icons/IconName.d.ts +15 -5
- package/mobile/dist/icons/IconName.js +13 -3
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/model/ButtonVersion.d.ts +1 -1
- package/mobile/dist/model/Footnote.d.ts +4 -0
- package/mobile/dist/model/Footnote.js +2 -0
- package/mobile/dist/model/Footnote.js.map +1 -0
- package/mobile/dist/model/HeadlineType.d.ts +4 -0
- package/mobile/dist/model/Picture.d.ts +4 -0
- package/mobile/dist/model/ProductColorVersion.d.ts +4 -0
- package/mobile/dist/model/ProductColorVersion.js +2 -0
- package/mobile/dist/model/ProductColorVersion.js.map +1 -0
- package/mobile/dist/services/sitemap/useSitemap.d.ts +2 -1
- package/mobile/dist/services/sitemap/useSitemap.js +2 -2
- package/mobile/dist/services/sitemap/useSitemap.js.map +1 -1
- package/mobile/dist/types/Fallback.d.ts +5 -0
- package/mobile/dist/types/Fallback.js +2 -0
- package/mobile/dist/types/Fallback.js.map +1 -0
- package/mobile/dist/types.d.ts +1 -0
- package/mobile/dist/ui-kit/BenefitItem/BenefitItemProps.d.ts +3 -8
- package/mobile/dist/ui-kit/Button/ButtonProps.d.ts +3 -5
- package/mobile/dist/ui-kit/Button/ButtonSection.js +2 -1
- package/mobile/dist/ui-kit/Button/ButtonSection.js.map +1 -1
- package/mobile/dist/ui-kit/Button/buttonClassNameConstants.js +4 -3
- package/mobile/dist/ui-kit/Button/buttonClassNameConstants.js.map +1 -1
- package/mobile/dist/ui-kit/Foldable/Foldable.js +1 -1
- package/mobile/dist/ui-kit/Foldable/Foldable.js.map +1 -1
- package/mobile/dist/ui-kit/Input/Input.js +1 -1
- package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
- package/mobile/dist/ui-kit/InputRange/InputRange.js +8 -15
- package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/dist/ui-kit/Radio/Radio.js +1 -1
- package/mobile/dist/ui-kit/Radio/Radio.js.map +1 -1
- package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +1 -1
- package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/mobile/dist/ui-kit/SearchBar/SearchBarInner.js +1 -1
- package/mobile/dist/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
- package/mobile/dist/ui-kit/SelectCustom/SelectCustom.d.ts +13 -0
- package/mobile/dist/ui-kit/SelectCustom/SelectCustom.js +30 -0
- package/mobile/dist/ui-kit/SelectCustom/SelectCustom.js.map +1 -0
- package/mobile/lib/ProjectSettings.d.ts +2 -0
- package/mobile/lib/ProjectSettings.js +3 -0
- package/mobile/lib/ProjectSettings.js.map +1 -1
- package/mobile/lib/components/Accordion/AccordionContent.d.ts +4 -9
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +12 -19
- package/mobile/lib/components/BlockContent.d.ts +2 -3
- package/mobile/lib/components/Bonus/BonusContent.d.ts +6 -9
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +3 -5
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +5 -11
- package/mobile/lib/components/Calculator/BonusCalculatorForm.js +3 -2
- package/mobile/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/CalculatorContent.d.ts +7 -40
- package/mobile/lib/components/Calculator/CalculatorValueBlock.js +1 -1
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js +4 -3
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js +21 -2
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.d.ts +1 -3
- package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.js +0 -2
- package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
- package/mobile/lib/components/Calculator/renderFootnote.d.ts +2 -0
- package/mobile/lib/components/Calculator/renderFootnote.js +3 -0
- package/mobile/lib/components/Calculator/renderFootnote.js.map +1 -0
- package/mobile/lib/components/CardTransfer/CardTransferContent.d.ts +3 -6
- package/mobile/lib/components/Catalog/CatalogCard.js.map +1 -1
- package/mobile/lib/components/Catalog/CatalogContent.d.ts +2 -5
- package/mobile/lib/components/ComparisonTable/ComparisonTableContent.d.ts +9 -43
- package/mobile/lib/components/ComparisonTable/TableColumn.d.ts +8 -1
- package/mobile/lib/components/ComparisonTable/TableColumn.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/TableRow.d.ts +5 -1
- package/mobile/lib/components/ComparisonTable/TableRow.js.map +1 -1
- package/mobile/lib/components/ContentPage/computeAPIFallback.d.ts +5 -0
- package/mobile/lib/components/ContentPage/computeAPIFallback.js +40 -0
- package/mobile/lib/components/ContentPage/computeAPIFallback.js.map +1 -0
- package/mobile/lib/components/ErrorBlock/ErrorBlockContent.d.ts +17 -4
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +3 -4
- package/mobile/lib/components/ExchangeRateTile/renderInput.js +4 -3
- package/mobile/lib/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/mobile/lib/components/Footer/Footer.js +3 -2
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/Footer/FooterContent.d.ts +5 -9
- package/mobile/lib/components/Footer/HorizontalNavigation.d.ts +2 -2
- package/mobile/lib/components/Footer/HorizontalNavigation.js.map +1 -1
- package/mobile/lib/components/Footer/Sitemap.d.ts +2 -0
- package/mobile/lib/components/Footer/Sitemap.js +2 -2
- package/mobile/lib/components/Footer/Sitemap.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryContent.d.ts +16 -19
- package/mobile/lib/components/GracePeriod/GracePeriodContent.d.ts +10 -14
- package/mobile/lib/components/Header/Header.fallback.d.ts +2 -0
- package/mobile/lib/components/Header/Header.fallback.js +9 -0
- package/mobile/lib/components/Header/Header.fallback.js.map +1 -0
- package/mobile/lib/components/Header/Header.js +3 -2
- package/mobile/lib/components/Header/Header.js.map +1 -1
- package/mobile/lib/components/Header/HeaderContent.d.ts +14 -23
- package/mobile/lib/components/Headline/HeadlineContent.d.ts +4 -3
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +8 -13
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +2 -2
- package/mobile/lib/components/MiniGallery/MiniGalleryContent.d.ts +8 -3
- package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +19 -5
- package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.js +1 -1
- package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlockContent.d.ts +5 -20
- package/mobile/lib/components/OtherProducts/OtherProductsContent.d.ts +3 -4
- package/mobile/lib/components/PictureText/PictureText.js +1 -1
- package/mobile/lib/components/PictureText/PictureTextContent.d.ts +20 -4
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +13 -10
- package/mobile/lib/components/ProductTile/ProductTile.js +13 -8
- package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +19 -9
- package/mobile/lib/components/Recommendation/RecommendationContent.d.ts +20 -2
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalContent.d.ts +4 -4
- package/mobile/lib/components/SafeDepositRental/YandexMap.js +6 -6
- package/mobile/lib/components/SafeDepositRental/YandexMap.js.map +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlockContent.d.ts +6 -25
- package/mobile/lib/components/Tabs/TabsContent.d.ts +8 -5
- package/mobile/lib/components/TariffsTable/EmbeddableCellData.d.ts +0 -3
- package/mobile/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +19 -36
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js +2 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/lib/components/TextBlock/TextBlockContent.d.ts +3 -6
- package/mobile/lib/components/Tile/TileContent.d.ts +17 -2
- package/mobile/lib/icons/IconName.d.ts +15 -5
- package/mobile/lib/icons/IconName.js +13 -3
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/model/ButtonVersion.d.ts +1 -1
- package/mobile/lib/model/Footnote.d.ts +4 -0
- package/mobile/lib/model/Footnote.js +2 -0
- package/mobile/lib/model/Footnote.js.map +1 -0
- package/mobile/lib/model/HeadlineType.d.ts +4 -0
- package/mobile/lib/model/Picture.d.ts +4 -0
- package/mobile/lib/model/ProductColorVersion.d.ts +4 -0
- package/mobile/lib/model/ProductColorVersion.js +2 -0
- package/mobile/lib/model/ProductColorVersion.js.map +1 -0
- package/mobile/lib/services/sitemap/useSitemap.d.ts +2 -1
- package/mobile/lib/services/sitemap/useSitemap.js +2 -2
- package/mobile/lib/services/sitemap/useSitemap.js.map +1 -1
- package/mobile/lib/types/Fallback.d.ts +5 -0
- package/mobile/lib/types/Fallback.js +2 -0
- package/mobile/lib/types/Fallback.js.map +1 -0
- package/mobile/lib/types.d.ts +1 -0
- package/mobile/lib/ui-kit/BenefitItem/BenefitItemProps.d.ts +3 -8
- package/mobile/lib/ui-kit/Button/ButtonProps.d.ts +3 -5
- package/mobile/lib/ui-kit/Button/ButtonSection.js +2 -1
- package/mobile/lib/ui-kit/Button/ButtonSection.js.map +1 -1
- package/mobile/lib/ui-kit/Button/buttonClassNameConstants.js +4 -3
- package/mobile/lib/ui-kit/Button/buttonClassNameConstants.js.map +1 -1
- package/mobile/lib/ui-kit/Foldable/Foldable.js +1 -1
- package/mobile/lib/ui-kit/Foldable/Foldable.js.map +1 -1
- package/mobile/lib/ui-kit/Input/Input.js +1 -1
- package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
- package/mobile/lib/ui-kit/InputRange/InputRange.js +8 -15
- package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/lib/ui-kit/Radio/Radio.js +1 -1
- package/mobile/lib/ui-kit/Radio/Radio.js.map +1 -1
- package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +1 -1
- package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/mobile/lib/ui-kit/SearchBar/SearchBarInner.js +1 -1
- package/mobile/lib/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
- package/mobile/lib/ui-kit/SelectCustom/SelectCustom.d.ts +13 -0
- package/mobile/lib/ui-kit/SelectCustom/SelectCustom.js +28 -0
- package/mobile/lib/ui-kit/SelectCustom/SelectCustom.js.map +1 -0
- package/mobile/src/ProjectSettings.ts +4 -0
- package/mobile/src/components/Accordion/AccordionContent.ts +5 -9
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +8 -14
- package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +15 -22
- package/mobile/src/components/BlockContent.ts +1 -3
- package/mobile/src/components/Bonus/BonusContent.ts +6 -8
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +25 -27
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlockContent.ts +5 -11
- package/mobile/src/components/Calculator/BonusCalculatorForm.tsx +4 -2
- package/mobile/src/components/Calculator/CalculatorContent.ts +6 -44
- package/mobile/src/components/Calculator/CalculatorValueBlock.tsx +1 -1
- package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +4 -2
- package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +25 -2
- package/mobile/src/components/Calculator/EmbeddableCalcBlocks.tsx +0 -3
- package/mobile/src/components/Calculator/renderFootnote.tsx +2 -0
- package/mobile/src/components/CardTransfer/CardTransferContent.ts +9 -10
- package/mobile/src/components/Catalog/CatalogCard.tsx +4 -3
- package/mobile/src/components/Catalog/CatalogContent.ts +2 -6
- package/mobile/src/components/ComparisonTable/ComparisonTableContent.ts +9 -47
- package/mobile/src/components/ComparisonTable/TableColumn.tsx +10 -1
- package/mobile/src/components/ComparisonTable/TableRow.tsx +5 -1
- package/mobile/src/components/ContentPage/computeAPIFallback.spec.ts +63 -0
- package/mobile/src/components/ContentPage/computeAPIFallback.ts +55 -0
- package/mobile/src/components/ErrorBlock/ErrorBlockContent.ts +17 -4
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +3 -4
- package/mobile/src/components/ExchangeRateTile/renderInput.tsx +13 -16
- package/mobile/src/components/Footer/Footer.tsx +4 -1
- package/mobile/src/components/Footer/FooterContent.ts +5 -9
- package/mobile/src/components/Footer/HorizontalNavigation.tsx +3 -4
- package/mobile/src/components/Footer/Sitemap.tsx +4 -2
- package/mobile/src/components/Gallery/GalleryContent.ts +16 -19
- package/mobile/src/components/GracePeriod/GracePeriodContent.ts +10 -13
- package/mobile/src/components/Header/Header.fallback.ts +14 -0
- package/mobile/src/components/Header/Header.tsx +4 -2
- package/mobile/src/components/Header/HeaderContent.ts +15 -23
- package/mobile/src/components/Headline/HeadlineContent.ts +9 -9
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +8 -13
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +2 -2
- package/mobile/src/components/MiniGallery/MiniGalleryContent.ts +8 -3
- package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +19 -6
- package/mobile/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +3 -3
- package/mobile/src/components/OfficeServicesBlock/OfficeServicesBlockContent.ts +5 -20
- package/mobile/src/components/OtherProducts/OtherProductsContent.ts +3 -4
- package/mobile/src/components/PictureText/PictureText.tsx +1 -1
- package/mobile/src/components/PictureText/PictureTextContent.ts +20 -5
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +13 -10
- package/mobile/src/components/ProductTile/ProductTile.tsx +21 -12
- package/mobile/src/components/ProductTile/ProductTileContent.ts +19 -10
- package/mobile/src/components/Recommendation/RecommendationContent.ts +20 -2
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalContent.ts +8 -6
- package/mobile/src/components/SafeDepositRental/YandexMap.tsx +8 -7
- package/mobile/src/components/StepsBlock/StepsBlockContent.ts +10 -27
- package/mobile/src/components/Tabs/TabsContent.ts +8 -5
- package/mobile/src/components/TariffsTable/EmbeddableCellData.tsx +0 -4
- package/mobile/src/components/TariffsTable/TariffsTableContent.ts +19 -36
- package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +4 -1
- package/mobile/src/components/TextBlock/TextBlockContent.ts +3 -6
- package/mobile/src/components/Tile/TileContent.ts +17 -3
- package/mobile/src/components/__snapshots__/Blocks.spec.tsx.snap +14 -20
- package/mobile/src/icons/ArrowDownIcon.svg +1 -1
- package/mobile/src/icons/ArrowUpIcon.svg +1 -1
- package/mobile/src/icons/BuildingIcon.svg +10 -0
- package/mobile/src/icons/Car2Icon.svg +10 -0
- package/mobile/src/icons/DocDownloadIcon.svg +1 -1
- package/mobile/src/icons/DoneIcon.svg +3 -3
- package/mobile/src/icons/DoneSimpleIcon.svg +3 -0
- package/mobile/src/icons/GpsIcon.svg +1 -1
- package/mobile/src/icons/IconName.ts +4 -4
- package/mobile/src/icons/MoneyIcon.svg +5 -1
- package/mobile/src/icons/MoneysIcon.svg +7 -0
- package/mobile/src/icons/Profile2UserIcon.svg +6 -1
- package/mobile/src/icons/StrongBoxIcon.svg +5 -0
- package/mobile/src/icons/UserSquareIcon.svg +5 -0
- package/mobile/src/icons/UserTickIcon.svg +5 -1
- package/mobile/src/model/ButtonVersion.ts +1 -1
- package/mobile/src/model/Footnote.ts +4 -0
- package/mobile/src/model/HeadlineType.ts +5 -0
- package/mobile/src/model/Picture.ts +5 -0
- package/mobile/src/model/ProductColorVersion.ts +4 -0
- package/mobile/src/services/sitemap/useSitemap.ts +3 -1
- package/mobile/src/types/Fallback.ts +4 -0
- package/mobile/src/types.ts +1 -0
- package/mobile/src/ui-kit/BenefitItem/BenefitItemProps.ts +3 -8
- package/mobile/src/ui-kit/Button/ButtonProps.ts +12 -13
- package/mobile/src/ui-kit/Button/ButtonSection.tsx +19 -2
- package/mobile/src/ui-kit/Button/buttonClassNameConstants.ts +5 -3
- package/mobile/src/ui-kit/Foldable/Foldable.tsx +1 -1
- package/mobile/src/ui-kit/Input/Input.tsx +1 -1
- package/mobile/src/ui-kit/InputRange/InputRange.tsx +24 -25
- package/mobile/src/ui-kit/Radio/Radio.tsx +2 -1
- package/mobile/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +1 -1
- package/mobile/src/ui-kit/SearchBar/SearchBarInner.tsx +1 -1
- package/mobile/src/ui-kit/SelectCustom/SelectCustom.tsx +84 -0
- package/package.json +2 -2
- package/src/ProjectSettings.ts +4 -0
- package/src/components/Accordion/AccordionContent.ts +5 -9
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +8 -14
- package/src/components/BenefitsBlock/BenefitsBlockContent.ts +15 -22
- package/src/components/BlockContent.ts +1 -3
- package/src/components/Blocks.ts +1 -3
- package/src/components/Bonus/BonusContent.ts +6 -8
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +25 -27
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlockContent.ts +5 -11
- package/src/components/Calculator/BonusCalculatorForm.tsx +4 -2
- package/src/components/Calculator/Calculator.fixture.tsx +5 -21
- package/src/components/Calculator/CalculatorContent.ts +6 -44
- package/src/components/Calculator/CalculatorValueBlock.tsx +1 -1
- package/src/components/Calculator/CreditCalculatorForm.tsx +4 -2
- package/src/components/Calculator/DepositCalculatorForm.tsx +25 -2
- package/src/components/Calculator/EmbeddableCalcBlocks.tsx +0 -3
- package/src/components/Calculator/renderFootnote.tsx +2 -0
- package/src/components/CardTransfer/CardTransferContent.ts +9 -10
- package/src/components/Catalog/Catalog.fixture.tsx +2 -2
- package/src/components/Catalog/CatalogCard.tsx +4 -3
- package/src/components/Catalog/CatalogContent.ts +2 -6
- package/src/components/ComparisonTable/ComparisonTableContent.ts +9 -47
- package/src/components/ComparisonTable/TableColumn.tsx +10 -1
- package/src/components/ComparisonTable/TableRow.tsx +5 -1
- package/src/components/ContentPage/computeAPIFallback.spec.ts +63 -0
- package/src/components/ContentPage/computeAPIFallback.ts +55 -0
- package/src/components/ErrorBlock/ErrorBlockContent.ts +17 -4
- package/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +3 -4
- package/src/components/ExchangeRateTile/renderInput.tsx +13 -16
- package/src/components/Footer/Footer.mobile.tsx +4 -1
- package/src/components/Footer/Footer.tsx +5 -1
- package/src/components/Footer/FooterContent.ts +5 -9
- package/src/components/Footer/HorizontalNavigation.mobile.tsx +3 -4
- package/src/components/Footer/HorizontalNavigation.tsx +3 -4
- package/src/components/Footer/Sitemap.tsx +4 -2
- package/src/components/Gallery/GalleryContent.ts +16 -19
- package/src/components/GracePeriod/GracePeriodContent.ts +10 -13
- package/src/components/Header/Header.fallback.ts +14 -0
- package/src/components/Header/Header.mobile.tsx +4 -2
- package/src/components/Header/Header.tsx +7 -2
- package/src/components/Header/HeaderContent.ts +15 -23
- package/src/components/Headline/HeadlineContent.ts +9 -9
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +8 -13
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +2 -2
- package/src/components/MiniGallery/MiniGalleryContent.ts +8 -3
- package/src/components/MobileAppTile/MobileAppTileContent.ts +19 -6
- package/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +3 -3
- package/src/components/OfficeServicesBlock/OfficeServicesBlockContent.ts +5 -20
- package/src/components/OtherProducts/OtherProductsContent.ts +3 -4
- package/src/components/PictureText/PictureText.tsx +1 -1
- package/src/components/PictureText/PictureTextContent.ts +20 -5
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +1 -21
- package/src/components/ProductBlock/ProductBlockContent.ts +13 -10
- package/src/components/ProductTile/ProductTile.fixture.tsx +12 -0
- package/src/components/ProductTile/ProductTile.tsx +21 -12
- package/src/components/ProductTile/ProductTileContent.ts +19 -10
- package/src/components/Recommendation/RecommendationContent.ts +20 -2
- package/src/components/SafeDepositRental/SafeDepositRentalContent.ts +8 -6
- package/src/components/SafeDepositRental/YandexMap.tsx +8 -7
- package/src/components/StepsBlock/StepsBlockContent.ts +10 -27
- package/src/components/Tabs/TabsContent.ts +8 -5
- package/src/components/TariffsTable/EmbeddableCellData.mobile.tsx +0 -4
- package/src/components/TariffsTable/TariffsTableContent.ts +19 -36
- package/src/components/TariffsTable/TariffsTableRow.tsx +4 -1
- package/src/components/TextBlock/TextBlockContent.ts +3 -6
- package/src/components/Tile/TileContent.ts +17 -3
- package/src/components/__snapshots__/Blocks.spec.tsx.snap +14 -20
- package/src/icons/ArrowDownIcon.svg +1 -1
- package/src/icons/ArrowUpIcon.svg +1 -1
- package/src/icons/BuildingIcon.svg +10 -0
- package/src/icons/Car2Icon.svg +10 -0
- package/src/icons/DocDownloadIcon.svg +1 -1
- package/src/icons/DoneIcon.svg +3 -3
- package/src/icons/DoneSimpleIcon.svg +3 -0
- package/src/icons/GpsIcon.svg +1 -1
- package/src/icons/IconName.ts +22 -7
- package/src/icons/MoneyIcon.svg +5 -1
- package/src/icons/MoneysIcon.svg +7 -0
- package/src/icons/Profile2UserIcon.svg +6 -1
- package/src/icons/StrongBoxIcon.svg +5 -0
- package/src/icons/UserSquareIcon.svg +5 -0
- package/src/icons/UserTickIcon.svg +5 -1
- package/src/model/ButtonVersion.ts +1 -1
- package/src/model/Footnote.ts +4 -0
- package/src/model/HeadlineType.ts +5 -0
- package/src/model/Picture.ts +5 -0
- package/src/model/ProductColorVersion.ts +4 -0
- package/src/services/sitemap/useSitemap.ts +3 -1
- package/src/types/Fallback.ts +4 -0
- package/src/types.ts +1 -0
- package/src/ui-kit/BenefitItem/BenefitItemProps.ts +3 -8
- package/src/ui-kit/Button/ButtonProps.ts +12 -13
- package/src/ui-kit/Button/ButtonSection.tsx +19 -2
- package/src/ui-kit/Button/buttonClassNameConstants.ts +5 -3
- package/src/ui-kit/Foldable/Foldable.tsx +1 -1
- package/src/ui-kit/Input/Input.tsx +1 -1
- package/src/ui-kit/InputRange/InputRange.tsx +24 -25
- package/src/ui-kit/Radio/Radio.tsx +2 -1
- package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +1 -1
- package/src/ui-kit/SearchBar/SearchBarInner.tsx +1 -1
- package/src/ui-kit/SelectCustom/SelectCustom.fixture.tsx +15 -0
- package/src/ui-kit/SelectCustom/SelectCustom.tsx +84 -0
- package/cosmos-static/icons/StateMortgageIcon.svg +0 -1
- package/dist/components/Calculator/MortgageCalculatorForm.d.ts +0 -5
- package/dist/components/Calculator/MortgageCalculatorForm.js +0 -34
- package/dist/components/Calculator/MortgageCalculatorForm.js.map +0 -1
- package/dist/components/Navigation/Navigation.d.ts +0 -5
- package/dist/components/Navigation/Navigation.js +0 -17
- package/dist/components/Navigation/Navigation.js.map +0 -1
- package/dist/components/Navigation/NavigationContent.d.ts +0 -10
- package/dist/components/Navigation/NavigationContent.js.map +0 -1
- package/dist/components/Navigation/NavigationItem.d.ts +0 -4
- package/dist/components/Navigation/NavigationItem.js +0 -6
- package/dist/components/Navigation/NavigationItem.js.map +0 -1
- package/lib/components/Calculator/MortgageCalculatorForm.d.ts +0 -5
- package/lib/components/Calculator/MortgageCalculatorForm.js +0 -32
- package/lib/components/Calculator/MortgageCalculatorForm.js.map +0 -1
- package/lib/components/Navigation/Navigation.d.ts +0 -5
- package/lib/components/Navigation/Navigation.js +0 -15
- package/lib/components/Navigation/Navigation.js.map +0 -1
- package/lib/components/Navigation/NavigationContent.d.ts +0 -10
- package/lib/components/Navigation/NavigationContent.js +0 -2
- package/lib/components/Navigation/NavigationContent.js.map +0 -1
- package/lib/components/Navigation/NavigationItem.d.ts +0 -4
- package/lib/components/Navigation/NavigationItem.js +0 -4
- package/lib/components/Navigation/NavigationItem.js.map +0 -1
- package/mobile/dist/components/Calculator/MortgageCalculatorForm.d.ts +0 -5
- package/mobile/dist/components/Calculator/MortgageCalculatorForm.js +0 -34
- package/mobile/dist/components/Calculator/MortgageCalculatorForm.js.map +0 -1
- package/mobile/dist/components/Navigation/Navigation.d.ts +0 -5
- package/mobile/dist/components/Navigation/Navigation.js +0 -17
- package/mobile/dist/components/Navigation/Navigation.js.map +0 -1
- package/mobile/dist/components/Navigation/NavigationContent.d.ts +0 -10
- package/mobile/dist/components/Navigation/NavigationContent.js.map +0 -1
- package/mobile/dist/components/Navigation/NavigationItem.d.ts +0 -4
- package/mobile/dist/components/Navigation/NavigationItem.js +0 -6
- package/mobile/dist/components/Navigation/NavigationItem.js.map +0 -1
- package/mobile/lib/components/Calculator/MortgageCalculatorForm.d.ts +0 -5
- package/mobile/lib/components/Calculator/MortgageCalculatorForm.js +0 -32
- package/mobile/lib/components/Calculator/MortgageCalculatorForm.js.map +0 -1
- package/mobile/lib/components/Navigation/Navigation.d.ts +0 -5
- package/mobile/lib/components/Navigation/Navigation.js +0 -15
- package/mobile/lib/components/Navigation/Navigation.js.map +0 -1
- package/mobile/lib/components/Navigation/NavigationContent.d.ts +0 -10
- package/mobile/lib/components/Navigation/NavigationContent.js +0 -2
- package/mobile/lib/components/Navigation/NavigationContent.js.map +0 -1
- package/mobile/lib/components/Navigation/NavigationItem.d.ts +0 -4
- package/mobile/lib/components/Navigation/NavigationItem.js +0 -4
- package/mobile/lib/components/Navigation/NavigationItem.js.map +0 -1
- package/mobile/src/components/Calculator/MortgageCalculatorForm.tsx +0 -75
- package/mobile/src/components/Navigation/Navigation.tsx +0 -44
- package/mobile/src/components/Navigation/NavigationContent.ts +0 -11
- package/mobile/src/components/Navigation/NavigationItem.tsx +0 -17
- package/mobile/src/icons/StateMortgageIcon.svg +0 -1
- package/src/components/Calculator/MortgageCalculatorForm.tsx +0 -75
- package/src/components/Navigation/Navigation.fixture.tsx +0 -30
- package/src/components/Navigation/Navigation.tsx +0 -44
- package/src/components/Navigation/NavigationContent.ts +0 -11
- package/src/components/Navigation/NavigationItem.tsx +0 -17
- package/src/icons/StateMortgageIcon.svg +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { addSpacesBetweenNumbers } from '../../utils/addSpacesBetweenNumbers';
|
|
3
|
+
import { clamp } from '../../utils/clamp';
|
|
3
4
|
import type { InputRangeProps } from './InputRangeProps';
|
|
4
5
|
|
|
5
6
|
const DISABLED_INPUT_CLASSES = 'disabled:border-main-stroke disabled:bg-main-divider';
|
|
@@ -16,27 +17,19 @@ export const InputRange = JSX<InputRangeProps>(
|
|
|
16
17
|
disabled = false,
|
|
17
18
|
onChange,
|
|
18
19
|
}) => {
|
|
19
|
-
const
|
|
20
|
+
const getSanitizedValue = (_: string) => Number(_.replace(/\D/g, ''));
|
|
21
|
+
|
|
22
|
+
const handleChange = (e) => {
|
|
20
23
|
if (!onChange) {
|
|
21
24
|
return;
|
|
22
25
|
}
|
|
23
|
-
|
|
24
|
-
onChange(
|
|
26
|
+
|
|
27
|
+
onChange(clamp(getSanitizedValue(e.target.value as string), min, max));
|
|
25
28
|
};
|
|
29
|
+
|
|
26
30
|
const inputStyle = {
|
|
27
31
|
backgroundSize: `${(((value - min) * 100) / (max - min)).toFixed(2)}% 100%`,
|
|
28
32
|
};
|
|
29
|
-
const handleBlur = () => {
|
|
30
|
-
if (!onChange) {
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
if (value < min) {
|
|
34
|
-
onChange(min);
|
|
35
|
-
}
|
|
36
|
-
if (value > max) {
|
|
37
|
-
onChange(max);
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
33
|
|
|
41
34
|
return (
|
|
42
35
|
<div className={className}>
|
|
@@ -44,11 +37,11 @@ export const InputRange = JSX<InputRangeProps>(
|
|
|
44
37
|
{title ? <span className="text-m-light">{title}</span> : null}
|
|
45
38
|
<input
|
|
46
39
|
className={`m-0 mt-2 font-sans text-h3 w-full h-14 border border-solid border-main-stroke rounded-md
|
|
47
|
-
|
|
40
|
+
outline-none p-0 pl-4 box-border text-primary-text hover:border-primary-hover focus:border-primary-focus ${DISABLED_INPUT_CLASSES}`}
|
|
48
41
|
value={addSpacesBetweenNumbers(value)}
|
|
49
42
|
disabled={disabled}
|
|
50
|
-
onChange={
|
|
51
|
-
onBlur={
|
|
43
|
+
onChange={handleChange}
|
|
44
|
+
onBlur={handleChange}
|
|
52
45
|
/>
|
|
53
46
|
<div className="absolute inset-x-0 -bottom-1 px-4 leading-[18px]">
|
|
54
47
|
<input
|
|
@@ -59,19 +52,25 @@ export const InputRange = JSX<InputRangeProps>(
|
|
|
59
52
|
step={step}
|
|
60
53
|
value={value}
|
|
61
54
|
disabled={disabled}
|
|
62
|
-
onChange={
|
|
55
|
+
onChange={handleChange}
|
|
63
56
|
style={inputStyle}
|
|
64
57
|
/>
|
|
65
58
|
</div>
|
|
66
59
|
</label>
|
|
67
|
-
|
|
68
|
-
{items.map((item, i) => (
|
|
69
|
-
<span key={String(i)} className="text-s-light text-secondary-text">
|
|
70
|
-
{item}
|
|
71
|
-
</span>
|
|
72
|
-
))}
|
|
73
|
-
</div>
|
|
60
|
+
{renderRangeCaption(items)}
|
|
74
61
|
</div>
|
|
75
62
|
);
|
|
76
63
|
},
|
|
77
64
|
);
|
|
65
|
+
|
|
66
|
+
function renderRangeCaption(items) {
|
|
67
|
+
return (
|
|
68
|
+
<div className="flex justify-between my-2">
|
|
69
|
+
{items.map((item, i) => (
|
|
70
|
+
<span key={String(i)} className="text-s-light text-secondary-text">
|
|
71
|
+
{item}
|
|
72
|
+
</span>
|
|
73
|
+
))}
|
|
74
|
+
</div>
|
|
75
|
+
);
|
|
76
|
+
}
|
|
@@ -5,7 +5,8 @@ export const Radio = JSX<RadioProps>(({ name, text, value, checked, onChange, cl
|
|
|
5
5
|
<div className={className}>
|
|
6
6
|
<label className="flex items-center relative cursor-pointer">
|
|
7
7
|
<input
|
|
8
|
-
className="appearance-none flex justify-center items-center shrink-0 w-5 h-5 border-2 border-primary-main
|
|
8
|
+
className="appearance-none flex justify-center items-center shrink-0 w-5 h-5 border-2 border-primary-main
|
|
9
|
+
rounded-full cursor-pointer after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main"
|
|
9
10
|
type="radio"
|
|
10
11
|
value={value}
|
|
11
12
|
name={name}
|
|
@@ -16,7 +16,7 @@ interface RadioButtonGroupProps extends UniBlockProps {
|
|
|
16
16
|
export const RadioButtonGroup = JSX<RadioButtonGroupProps>(
|
|
17
17
|
({ items, checkedItem, onChangeCheckedItem }) => {
|
|
18
18
|
return (
|
|
19
|
-
<div>
|
|
19
|
+
<div className="flex flex-col gap-3">
|
|
20
20
|
{items?.map(({ id, text }) => (
|
|
21
21
|
<Checkbox
|
|
22
22
|
key={id}
|
|
@@ -55,7 +55,7 @@ export const SearchBarInner = JSX<SearchBarInnerProps>(({ className, isMobile =
|
|
|
55
55
|
<Button
|
|
56
56
|
version="primary"
|
|
57
57
|
text="Найти"
|
|
58
|
-
className="invisible peer-focus:visible absolute top-
|
|
58
|
+
className="invisible peer-focus:visible absolute top-[3px] right-1"
|
|
59
59
|
onClick={(ev) => {
|
|
60
60
|
ev?.preventDefault();
|
|
61
61
|
console.log('click');
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { Icon } from '../Icon/Icon';
|
|
3
|
+
import { useState, useEffect } from '@redneckz/uni-jsx/lib/hooks';
|
|
4
|
+
|
|
5
|
+
export interface OptionProps {
|
|
6
|
+
key: string;
|
|
7
|
+
text: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface SelectCustomProps {
|
|
11
|
+
className?: string;
|
|
12
|
+
label?: string;
|
|
13
|
+
value?: OptionProps;
|
|
14
|
+
onChange: (value: OptionProps) => void;
|
|
15
|
+
options: OptionProps[];
|
|
16
|
+
isBorder?: boolean;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export const SelectCustom = JSX<SelectCustomProps>(
|
|
20
|
+
({ className = '', isBorder = true, label, options = [], value, onChange }) => {
|
|
21
|
+
const [selectedItem, setSelectedItem] = useState(options[0] || { key: '', text: '' });
|
|
22
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
23
|
+
|
|
24
|
+
const choiceOption = (option: OptionProps) => {
|
|
25
|
+
setSelectedItem(option);
|
|
26
|
+
setIsOpen(false);
|
|
27
|
+
onChange(option);
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const isSelected = (option) => Boolean(option.key === selectedItem.key);
|
|
31
|
+
|
|
32
|
+
useEffect(() => {
|
|
33
|
+
setSelectedItem(value || { key: '', text: '' });
|
|
34
|
+
}, [value]);
|
|
35
|
+
|
|
36
|
+
return (
|
|
37
|
+
<div className={`${isOpen ? 'z-10' : ''} ${className}`}>
|
|
38
|
+
{label ? <span className="mb-2">{label}</span> : null}
|
|
39
|
+
<div className={`relative w-fit`}>
|
|
40
|
+
<div
|
|
41
|
+
className={`text-m-light flex justify-between min-h-[56px] mb-0.5 p-4 pr-8 text-primary-text cursor-pointer
|
|
42
|
+
${getBorderStyle(isBorder)}`}
|
|
43
|
+
onClick={() => setIsOpen(!isOpen)}
|
|
44
|
+
>
|
|
45
|
+
{selectedItem.text}
|
|
46
|
+
<Icon name="ArrowUpIcon" className={`absolute right-3 ${isOpen ? '' : 'rotate-180'}`} />
|
|
47
|
+
</div>
|
|
48
|
+
{options.length > 0 ? (
|
|
49
|
+
<div className={`h-0 ${isOpen ? '' : 'overflow-hidden'}`}>
|
|
50
|
+
<div className={`bg-white text-l rounded-md`}>
|
|
51
|
+
{options.map(renderOption(choiceOption, isOpen, isSelected))}
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
) : null}
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
);
|
|
58
|
+
},
|
|
59
|
+
);
|
|
60
|
+
|
|
61
|
+
const renderOption =
|
|
62
|
+
(choiceOption, isOpen: boolean, isSelected) => (option: OptionProps, i: number) => {
|
|
63
|
+
return (
|
|
64
|
+
<div
|
|
65
|
+
key={String(i)}
|
|
66
|
+
onClick={() => {
|
|
67
|
+
choiceOption(option);
|
|
68
|
+
}}
|
|
69
|
+
className="flex px-4 py-3 cursor-pointer hover:bg-main-divider pr-11"
|
|
70
|
+
>
|
|
71
|
+
<span>{option.text}</span>
|
|
72
|
+
<Icon
|
|
73
|
+
name="DoneSimpleIcon"
|
|
74
|
+
className={['absolute right-4 pt-0.5', isSelected(option) && isOpen ? '' : 'hidden'].join(
|
|
75
|
+
' ',
|
|
76
|
+
)}
|
|
77
|
+
/>
|
|
78
|
+
</div>
|
|
79
|
+
);
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
function getBorderStyle(isBorder) {
|
|
83
|
+
return isBorder ? 'border border-main-stroke rounded-md hover:border-primary-hover' : '';
|
|
84
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redneckz/wildless-cms-uni-blocks",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ЦК",
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
"svgo": "^2.8.0",
|
|
166
166
|
"tailwindcss": "^3.1.8",
|
|
167
167
|
"ts-jest": "^28.0.6",
|
|
168
|
-
"ts-json-schema-generator": "^1.
|
|
168
|
+
"ts-json-schema-generator": "^1.1.2",
|
|
169
169
|
"ts-loader": "^9.3.0",
|
|
170
170
|
"typescript": "^4.7.4",
|
|
171
171
|
"webpack": "^5.73.0",
|
package/src/ProjectSettings.ts
CHANGED
|
@@ -7,6 +7,7 @@ export interface ProjectSettings {
|
|
|
7
7
|
SITEMAP?: string;
|
|
8
8
|
CDN?: string; // Should ends with "/"
|
|
9
9
|
YANDEX_MAP_API_KEY?: string;
|
|
10
|
+
YANDEX_METRIKA_ID?: string;
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
export const projectSettings = new (class implements ProjectSettings {
|
|
@@ -43,4 +44,7 @@ export const projectSettings = new (class implements ProjectSettings {
|
|
|
43
44
|
get YANDEX_MAP_API_KEY() {
|
|
44
45
|
return this._.YANDEX_MAP_API_KEY;
|
|
45
46
|
}
|
|
47
|
+
get YANDEX_METRIKA_ID() {
|
|
48
|
+
return this._.YANDEX_METRIKA_ID;
|
|
49
|
+
}
|
|
46
50
|
})();
|
|
@@ -2,6 +2,8 @@ import type { AlignType } from '../../model/AlignType';
|
|
|
2
2
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
3
|
import type { Picture } from '../../model/Picture';
|
|
4
4
|
import type { BlockDef } from '../../ui-kit/BlocksList/BlocksListProps';
|
|
5
|
+
import type { HeadlineCommonProps } from '../../model/HeadlineType';
|
|
6
|
+
|
|
5
7
|
/**
|
|
6
8
|
* @title Элемент списка
|
|
7
9
|
*/
|
|
@@ -11,9 +13,7 @@ export interface AccordionItemCommonProps {
|
|
|
11
13
|
* @default Список
|
|
12
14
|
*/
|
|
13
15
|
label?: string;
|
|
14
|
-
/**
|
|
15
|
-
* @title Отображать в раскрытом виде
|
|
16
|
-
*/
|
|
16
|
+
/** @title Отображать в раскрытом виде */
|
|
17
17
|
isExpanded?: boolean;
|
|
18
18
|
/** @title Блоки */
|
|
19
19
|
blocks?: BlockDef[];
|
|
@@ -28,9 +28,7 @@ export interface AccordionItemCommonProps {
|
|
|
28
28
|
/**
|
|
29
29
|
* @title Аккордеон
|
|
30
30
|
*/
|
|
31
|
-
export
|
|
32
|
-
/** @title Заголовок */
|
|
33
|
-
title?: string;
|
|
31
|
+
export type AccordionContent = HeadlineCommonProps & {
|
|
34
32
|
/**
|
|
35
33
|
* @title Выравнивание заголовка
|
|
36
34
|
* @default center
|
|
@@ -39,11 +37,9 @@ export interface AccordionContent {
|
|
|
39
37
|
version?: BlockVersion;
|
|
40
38
|
/** @title Список */
|
|
41
39
|
accordionItems?: AccordionItemCommonProps[];
|
|
42
|
-
/** @title Описание */
|
|
43
|
-
description?: string;
|
|
44
40
|
/**
|
|
45
41
|
* @title Отображать/скрывать обводку у элемента списка
|
|
46
42
|
* @default false
|
|
47
43
|
*/
|
|
48
44
|
bordered?: boolean; // TODO: только для мобильной версии
|
|
49
|
-
}
|
|
45
|
+
};
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import {
|
|
2
|
+
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
|
+
import type { Picture } from '../../model/Picture';
|
|
3
4
|
import type { UniBlockProps } from '../../types';
|
|
5
|
+
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
4
6
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
5
7
|
import { Img } from '../../ui-kit/Img/Img';
|
|
6
8
|
import type { BenefitsBlockContent, ListBenefitDef, TextBenefitDef } from './BenefitsBlockContent';
|
|
7
|
-
import {
|
|
8
|
-
BenefitBlockItemProps,
|
|
9
|
-
BenefitsBlockVersion,
|
|
10
|
-
DescriptionDef,
|
|
11
|
-
} from './BenefitsBlockContent';
|
|
12
|
-
import { Picture } from '../../model/Picture';
|
|
9
|
+
import { BenefitBlockItemProps, DescriptionDef } from './BenefitsBlockContent';
|
|
13
10
|
|
|
14
11
|
export interface BenefitsBlockProps extends BenefitsBlockContent, UniBlockProps {}
|
|
15
12
|
|
|
@@ -56,7 +53,7 @@ export const BenefitsBlock = JSX<BenefitsBlockProps>(
|
|
|
56
53
|
|
|
57
54
|
const renderBenefits = (
|
|
58
55
|
benefitList: BenefitBlockItemProps[],
|
|
59
|
-
benefitsBlockVersion:
|
|
56
|
+
benefitsBlockVersion: BlockVersion,
|
|
60
57
|
) => {
|
|
61
58
|
return (
|
|
62
59
|
<div className="flex flex-wrap w-full justify-center gap-x-20 mt-8">
|
|
@@ -65,7 +62,7 @@ const renderBenefits = (
|
|
|
65
62
|
);
|
|
66
63
|
};
|
|
67
64
|
|
|
68
|
-
const setIconVersion = (benefitIcon: Picture, benefitsBlockVersion:
|
|
65
|
+
const setIconVersion = (benefitIcon: Picture, benefitsBlockVersion: BlockVersion) => {
|
|
69
66
|
if (!benefitIcon.icon) {
|
|
70
67
|
return benefitIcon;
|
|
71
68
|
}
|
|
@@ -75,7 +72,7 @@ const setIconVersion = (benefitIcon: Picture, benefitsBlockVersion: BenefitsBloc
|
|
|
75
72
|
};
|
|
76
73
|
|
|
77
74
|
const renderStep =
|
|
78
|
-
(benefitsBlockVersion:
|
|
75
|
+
(benefitsBlockVersion: BlockVersion) => (benefit: BenefitBlockItemProps, i: number) => {
|
|
79
76
|
const description = (benefit?.description || undefined) as DescriptionDef;
|
|
80
77
|
|
|
81
78
|
return (
|
|
@@ -100,10 +97,7 @@ const renderStep =
|
|
|
100
97
|
);
|
|
101
98
|
};
|
|
102
99
|
|
|
103
|
-
const renderDescription = (
|
|
104
|
-
description: DescriptionDef,
|
|
105
|
-
benefitsBlockVersion: BenefitsBlockVersion,
|
|
106
|
-
) => {
|
|
100
|
+
const renderDescription = (description: DescriptionDef, benefitsBlockVersion: BlockVersion) => {
|
|
107
101
|
const benefitType = description ? description?.benefitType : null;
|
|
108
102
|
if (!benefitType) {
|
|
109
103
|
return null;
|
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { TitleProps } from '../../model/HeadlineType';
|
|
1
|
+
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
2
|
import type { EmptyOption } from '../../model/EmptyOptionType';
|
|
3
|
+
import type { LabelProps, TitleProps } from '../../model/HeadlineType';
|
|
4
|
+
import type { IconProps } from '../../model/Picture';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* @title Пункты описания
|
|
7
|
-
* @default {"benefitType": "text"}
|
|
8
8
|
*/
|
|
9
9
|
export type TextBenefitDef = {
|
|
10
|
-
/**
|
|
11
|
-
* @title Описание
|
|
12
|
-
*/
|
|
10
|
+
/** @title Описание */
|
|
13
11
|
name?: string;
|
|
12
|
+
/** @default text */
|
|
14
13
|
benefitType?: 'text';
|
|
15
14
|
};
|
|
16
15
|
|
|
17
16
|
/**
|
|
18
17
|
* @title Список
|
|
19
|
-
* @default {"benefitType": "list"}
|
|
20
18
|
*/
|
|
21
19
|
export type ListBenefitDef = {
|
|
22
20
|
/** @title Буллиты */
|
|
23
21
|
bullets?: boolean;
|
|
24
22
|
/**
|
|
25
23
|
* @title Пункты
|
|
26
|
-
* @
|
|
24
|
+
* @default [
|
|
25
|
+
* "Пункт 1"
|
|
26
|
+
* ]
|
|
27
27
|
*/
|
|
28
28
|
items?: string[];
|
|
29
|
+
/** @default list */
|
|
29
30
|
benefitType?: 'list';
|
|
30
31
|
};
|
|
31
32
|
|
|
@@ -37,19 +38,11 @@ export type DescriptionDef = EmptyOption | TextBenefitDef | ListBenefitDef;
|
|
|
37
38
|
/**
|
|
38
39
|
* @title Преимущество
|
|
39
40
|
*/
|
|
40
|
-
export
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
icon?: Picture;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* @title Цвет блока
|
|
50
|
-
* @enumNames ["Основная", "Второстепенная"]
|
|
51
|
-
*/
|
|
52
|
-
export type BenefitsBlockVersion = 'primary' | 'secondary';
|
|
41
|
+
export type BenefitBlockItemProps = LabelProps &
|
|
42
|
+
IconProps & {
|
|
43
|
+
/** @title Описание */
|
|
44
|
+
description?: DescriptionDef;
|
|
45
|
+
};
|
|
53
46
|
|
|
54
47
|
/**
|
|
55
48
|
* @title Блок преимущества
|
|
@@ -61,5 +54,5 @@ export type BenefitsBlockContent = TitleProps & {
|
|
|
61
54
|
*/
|
|
62
55
|
benefitList?: BenefitBlockItemProps[];
|
|
63
56
|
/** @default primary */
|
|
64
|
-
benefitsBlockVersion?:
|
|
57
|
+
benefitsBlockVersion?: BlockVersion;
|
|
65
58
|
};
|
|
@@ -3,6 +3,7 @@ import type { BonusContent } from './Bonus/BonusContent';
|
|
|
3
3
|
import type { BonusBenefitsBlockContent } from './BonusBenefitsBlock/BonusBenefitsBlockContent';
|
|
4
4
|
import type { CardTransferContent } from './CardTransfer/CardTransferContent';
|
|
5
5
|
import type { ComparisonTableContent } from './ComparisonTable/ComparisonTableContent';
|
|
6
|
+
import type { ErrorBlockContent } from './ErrorBlock/ErrorBlockContent';
|
|
6
7
|
import type { ExchangeRateTileContent } from './ExchangeRateTile/ExchangeRateTileContent';
|
|
7
8
|
import type { FooterContent } from './Footer/FooterContent';
|
|
8
9
|
import type { GalleryContent } from './Gallery/GalleryContent';
|
|
@@ -12,7 +13,6 @@ import type { InsuranceAmountBlockContent } from './InsuranceAmountBlock/Insuran
|
|
|
12
13
|
import type { LinkDocsContent } from './LinkDocs/LinkDocsContent';
|
|
13
14
|
import type { LinkListContent } from './LinkList/LinkListContent';
|
|
14
15
|
import type { MobileAppTileContent } from './MobileAppTile/MobileAppTileContent';
|
|
15
|
-
import type { NavigationContent } from './Navigation/NavigationContent';
|
|
16
16
|
import type { OfficeServicesBlockContent } from './OfficeServicesBlock/OfficeServicesBlockContent';
|
|
17
17
|
import type { PictureTextContent } from './PictureText/PictureTextContent';
|
|
18
18
|
import type { PlaceholderContent } from './Placeholder/PlaceholderContent';
|
|
@@ -26,7 +26,6 @@ import type { TabsContent } from './Tabs/TabsContent';
|
|
|
26
26
|
import type { TariffsTableContent } from './TariffsTable/TariffsTableContent';
|
|
27
27
|
import type { TextBlockContent } from './TextBlock/TextBlockContent';
|
|
28
28
|
import type { TileContent } from './Tile/TileContent';
|
|
29
|
-
import type { ErrorBlockContent } from './ErrorBlock/ErrorBlockContent';
|
|
30
29
|
|
|
31
30
|
/**
|
|
32
31
|
* @hidden
|
|
@@ -54,7 +53,6 @@ export type BlockContent =
|
|
|
54
53
|
| TariffsTableContent
|
|
55
54
|
| TextBlockContent
|
|
56
55
|
| TileContent
|
|
57
|
-
| NavigationContent
|
|
58
56
|
| LinkListContent
|
|
59
57
|
| BonusBenefitsBlockContent
|
|
60
58
|
| SafeDepositRentalContent
|
package/src/components/Blocks.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { Calculator } from './Calculator/Calculator';
|
|
|
6
6
|
import { CardTransfer } from './CardTransfer/CardTransfer';
|
|
7
7
|
import { Catalog } from './Catalog/Catalog';
|
|
8
8
|
import { ComparisonTable } from './ComparisonTable/ComparisonTable';
|
|
9
|
+
import { ErrorBlock } from './ErrorBlock/ErrorBlock';
|
|
9
10
|
import { ExchangeRateTile } from './ExchangeRateTile/ExchangeRateTile';
|
|
10
11
|
import { Footer } from './Footer/Footer';
|
|
11
12
|
import { Gallery } from './Gallery/Gallery';
|
|
@@ -16,7 +17,6 @@ import { InsuranceAmountBlock } from './InsuranceAmountBlock/InsuranceAmountBloc
|
|
|
16
17
|
import { LinkDocs } from './LinkDocs/LinkDocs';
|
|
17
18
|
import { MiniGallery } from './MiniGallery/MiniGallery';
|
|
18
19
|
import { MobileAppTile } from './MobileAppTile/MobileAppTile';
|
|
19
|
-
import { Navigation } from './Navigation/Navigation';
|
|
20
20
|
import { OfficeServicesBlock } from './OfficeServicesBlock/OfficeServicesBlock';
|
|
21
21
|
import { OtherProducts } from './OtherProducts/OtherProducts';
|
|
22
22
|
import { PictureText } from './PictureText/PictureText';
|
|
@@ -32,7 +32,6 @@ import { Tabs } from './Tabs/Tabs';
|
|
|
32
32
|
import { TariffsTable } from './TariffsTable/TariffsTable';
|
|
33
33
|
import { TextBlock } from './TextBlock/TextBlock';
|
|
34
34
|
import { Tile } from './Tile/Tile';
|
|
35
|
-
import { ErrorBlock } from './ErrorBlock/ErrorBlock';
|
|
36
35
|
|
|
37
36
|
export const Blocks = {
|
|
38
37
|
Accordion,
|
|
@@ -63,7 +62,6 @@ export const Blocks = {
|
|
|
63
62
|
TariffsTable,
|
|
64
63
|
TextBlock,
|
|
65
64
|
Tile,
|
|
66
|
-
Navigation,
|
|
67
65
|
Placeholder,
|
|
68
66
|
BonusBenefitsBlock,
|
|
69
67
|
SafeDepositRental,
|
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
import type { HeadlineCommonProps } from '../../model/HeadlineType';
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
/** @title Описание плитки */
|
|
8
|
-
description?: string;
|
|
3
|
+
/**
|
|
4
|
+
* @title Плитка
|
|
5
|
+
*/
|
|
6
|
+
export type BonusItem = HeadlineCommonProps & {
|
|
9
7
|
/** @title Количество баллов */
|
|
10
8
|
bonusCount?: string;
|
|
11
9
|
/** @title Наименование */
|
|
12
10
|
bonusName?: string;
|
|
13
|
-
}
|
|
11
|
+
};
|
|
14
12
|
|
|
15
13
|
/**
|
|
16
14
|
* @title Блок Бонусы
|
|
17
15
|
*/
|
|
18
16
|
export type BonusContent = HeadlineCommonProps & {
|
|
19
17
|
/** @title Список плиток */
|
|
20
|
-
bonusItems?:
|
|
18
|
+
bonusItems?: BonusItem[];
|
|
21
19
|
};
|
|
@@ -1,37 +1,35 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
3
2
|
import type { UniBlockProps } from '../../types';
|
|
3
|
+
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
4
4
|
import { Img } from '../../ui-kit/Img/Img';
|
|
5
|
+
import { Headline } from '../Headline/Headline';
|
|
5
6
|
import type { BonusBenefit, BonusBenefitsBlockContent } from './BonusBenefitsBlockContent';
|
|
6
7
|
import { getElementsColsValue } from './getElementsColsValue';
|
|
7
|
-
import { Headline } from '../Headline/Headline';
|
|
8
8
|
|
|
9
9
|
export interface BenefitsBlockProps extends BonusBenefitsBlockContent, UniBlockProps {}
|
|
10
10
|
|
|
11
11
|
export const BonusBenefitsBlock = JSX<BenefitsBlockProps>(
|
|
12
|
-
({ context, className = '', title, subtitle, bonusBenefits, ...rest }) =>
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
({ context, className = '', title, subtitle, bonusBenefits, ...rest }) => (
|
|
13
|
+
<BlockWrapper
|
|
14
|
+
className={`font-sans text-primary-text bg-white p-[50px] flex flex-col text-center ${className}`}
|
|
15
|
+
context={context}
|
|
16
|
+
{...rest}
|
|
17
|
+
>
|
|
18
|
+
<Headline
|
|
16
19
|
context={context}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
</div>
|
|
31
|
-
) : null}
|
|
32
|
-
</BlockWrapper>
|
|
33
|
-
);
|
|
34
|
-
},
|
|
20
|
+
className="!p-0"
|
|
21
|
+
title={title}
|
|
22
|
+
description={subtitle}
|
|
23
|
+
headlineVersion="M"
|
|
24
|
+
align="center"
|
|
25
|
+
/>
|
|
26
|
+
{bonusBenefits?.length ? (
|
|
27
|
+
<div className={`grid gap-1 mt-8 ${getElementsColsValue(className)}`}>
|
|
28
|
+
{bonusBenefits.map(renderBonusBenefit)}
|
|
29
|
+
</div>
|
|
30
|
+
) : null}
|
|
31
|
+
</BlockWrapper>
|
|
32
|
+
),
|
|
35
33
|
);
|
|
36
34
|
|
|
37
35
|
const renderBonusBenefit = (bonusBenefit: BonusBenefit, i: number) => {
|
|
@@ -39,10 +37,10 @@ const renderBonusBenefit = (bonusBenefit: BonusBenefit, i: number) => {
|
|
|
39
37
|
<div key={String(i)} className="flex flex-col items-center max-w-[292px]">
|
|
40
38
|
{bonusBenefit?.icon ? (
|
|
41
39
|
<Img
|
|
42
|
-
className="h-[
|
|
40
|
+
className="h-[160px] w-[180px] min-w-[180px] min-h-[160px]"
|
|
43
41
|
image={bonusBenefit.icon}
|
|
44
|
-
width="
|
|
45
|
-
height="
|
|
42
|
+
width="180"
|
|
43
|
+
height="160"
|
|
46
44
|
/>
|
|
47
45
|
) : null}
|
|
48
46
|
<div>
|
|
@@ -1,23 +1,17 @@
|
|
|
1
|
-
import type { Picture } from '../../model/Picture';
|
|
1
|
+
import type { IconProps, Picture } from '../../model/Picture';
|
|
2
|
+
import type { LabelProps, TitleProps } from '../../model/HeadlineType';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* @title Бонус и преимущество
|
|
5
6
|
*/
|
|
6
|
-
export
|
|
7
|
-
/** @title Название */
|
|
8
|
-
label?: string;
|
|
9
|
-
/** @title Изображение */
|
|
10
|
-
icon?: Picture;
|
|
11
|
-
}
|
|
7
|
+
export type BonusBenefit = LabelProps & IconProps & {};
|
|
12
8
|
|
|
13
9
|
/**
|
|
14
10
|
* @title Блок бонусов и преимуществ
|
|
15
11
|
*/
|
|
16
|
-
export
|
|
17
|
-
/** @title Заголовок */
|
|
18
|
-
title?: string;
|
|
12
|
+
export type BonusBenefitsBlockContent = TitleProps & {
|
|
19
13
|
/** @title Подзаголовок */
|
|
20
14
|
subtitle?: string;
|
|
21
15
|
/** @title Список бонусов */
|
|
22
16
|
bonusBenefits?: BonusBenefit[];
|
|
23
|
-
}
|
|
17
|
+
};
|
|
@@ -8,11 +8,12 @@ import { Rate } from './Rate';
|
|
|
8
8
|
import { renderButtonSection } from './renderButtonSection';
|
|
9
9
|
import { renderWantedSumInput } from './renderWantedSumInput';
|
|
10
10
|
import { useBonusCalculatorParams } from './useBonusCalculatorParams';
|
|
11
|
+
import { renderFootnote } from './renderFootnote';
|
|
11
12
|
|
|
12
13
|
export interface BonusCalculatorProps extends CommonCalculatorProps, UniBlockProps {}
|
|
13
14
|
|
|
14
15
|
export const BonusCalculatorForm = JSX<BonusCalculatorProps>(
|
|
15
|
-
({ context, className = '', sourceBookDir = '', buttons }) => {
|
|
16
|
+
({ context, className = '', sourceBookDir = '', buttons, footnote }) => {
|
|
16
17
|
const [travelExpenseValue, setTravelExpenseValue] = useState(DEFAULT_TRAVEL_MIN_SUM);
|
|
17
18
|
const [restExpenseValue, setRestExpenseValue] = useState(DEFAULT_REST_MIN_SUM);
|
|
18
19
|
const userInputParams = {
|
|
@@ -54,9 +55,10 @@ export const BonusCalculatorForm = JSX<BonusCalculatorProps>(
|
|
|
54
55
|
<Rate title="Баллов за месяц" rate={monthBonus} rateBlockClassName="tracking-[-14px]" />
|
|
55
56
|
) : null}
|
|
56
57
|
</div>
|
|
57
|
-
<div className="w-[
|
|
58
|
+
<div className="w-full max-w-[350px]">
|
|
58
59
|
{yearBonus >= 0 ? <CalculatorValueBlock title="Баллов за год" value={yearBonus} /> : null}
|
|
59
60
|
{renderButtonSection(context, buttons)}
|
|
61
|
+
{renderFootnote(footnote)}
|
|
60
62
|
</div>
|
|
61
63
|
</section>
|
|
62
64
|
);
|