@redneckz/wildless-cms-uni-blocks 0.6.32 → 0.6.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/migration-scripts/0.6.34.js +51 -0
- package/bundle/BlockRenderer/BlockRendererOptions.d.ts +11 -0
- package/bundle/BlockRenderer/defaultBlockDecorator.d.ts +2 -0
- package/bundle/BlockRenderer/getParentBlockContent.d.ts +2 -0
- package/bundle/BlockRenderer/getParentBlockDef.d.ts +3 -0
- package/bundle/BlockRenderer/renderBlock.d.ts +3 -0
- package/bundle/BlockRenderer/renderBlockList.d.ts +9 -0
- package/bundle/BlockRenderer/renderChildren.d.ts +10 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +382 -395
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +6 -3
- package/bundle/components/Carousel/Carousel.d.ts +1 -0
- package/bundle/components/Carousel/CarouselContainer.d.ts +8 -5
- package/bundle/components/Carousel/CarouselContent.d.ts +5 -8
- package/bundle/components/CarouselCard/CarouselCard.d.ts +0 -2
- package/bundle/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +1 -1
- package/bundle/components/ComparisonTable/ComparisonTableRows.d.ts +1 -2
- package/bundle/components/ComparisonTable/TableCarouselContainer.d.ts +1 -1
- package/bundle/components/ComparisonTable/TableRow.d.ts +1 -1
- package/bundle/components/ComparisonTable/constants.d.ts +1 -1
- package/bundle/components/Gallery/GalleryContainer.d.ts +1 -1
- package/bundle/components/ProductBlock/ProductBlockContent.d.ts +2 -1
- package/bundle/components/SafeDepositRental/SafeDepositRentalContent.d.ts +1 -4
- package/bundle/components/TariffsTable/TariffsTableRow.d.ts +1 -1
- package/bundle/components/Video/Video.d.ts +6 -0
- package/bundle/components/Video/VideoContent.d.ts +8 -0
- package/bundle/components/Video/getPaddings.d.ts +1 -0
- package/bundle/hooks/useCarouselControls.d.ts +5 -3
- package/bundle/model/JSXBlock.d.ts +4 -5
- package/bundle/model/LinkProps.d.ts +1 -0
- package/bundle/model/Picture.d.ts +8 -2
- package/bundle/{react/setup-fixture.d.ts → setup-fixture.d.ts} +0 -0
- package/bundle/ui-kit/Button/renderArrows.d.ts +6 -4
- package/bundle/ui-kit/Paragraph/Paragraph.d.ts +9 -0
- package/bundle/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +2 -1
- package/bundle/ui-kit/Text/Text.d.ts +34 -0
- package/dist/BlockRenderer/BlockRendererOptions.d.ts +11 -0
- package/dist/BlockRenderer/BlockRendererOptions.js +2 -0
- package/dist/BlockRenderer/BlockRendererOptions.js.map +1 -0
- package/dist/BlockRenderer/defaultBlockDecorator.d.ts +2 -0
- package/dist/BlockRenderer/defaultBlockDecorator.js +5 -0
- package/dist/BlockRenderer/defaultBlockDecorator.js.map +1 -0
- package/dist/BlockRenderer/getParentBlockContent.d.ts +2 -0
- package/{mobile/dist/model → dist/BlockRenderer}/getParentBlockContent.js +2 -2
- package/dist/BlockRenderer/getParentBlockContent.js.map +1 -0
- package/dist/BlockRenderer/getParentBlockDef.d.ts +3 -0
- package/dist/BlockRenderer/getParentBlockDef.js +7 -0
- package/dist/BlockRenderer/getParentBlockDef.js.map +1 -0
- package/dist/BlockRenderer/renderBlock.d.ts +3 -0
- package/dist/BlockRenderer/renderBlock.js +27 -0
- package/dist/BlockRenderer/renderBlock.js.map +1 -0
- package/dist/BlockRenderer/renderBlockList.d.ts +9 -0
- package/dist/BlockRenderer/renderBlockList.js +14 -0
- package/dist/BlockRenderer/renderBlockList.js.map +1 -0
- package/dist/BlockRenderer/renderChildren.d.ts +10 -0
- package/dist/BlockRenderer/renderChildren.js +13 -0
- package/dist/BlockRenderer/renderChildren.js.map +1 -0
- package/dist/components/Accordion/Accordion.js +3 -1
- package/dist/components/Accordion/Accordion.js.map +1 -1
- package/dist/components/Accordion/Accordion.mobile.js +3 -1
- package/dist/components/Accordion/Accordion.mobile.js.map +1 -1
- package/dist/components/AccordionItem/AccordionItem.js +4 -2
- package/dist/components/AccordionItem/AccordionItem.js.map +1 -1
- package/dist/components/AccordionItem/AccordionItem.mobile.js +7 -5
- package/dist/components/AccordionItem/AccordionItem.mobile.js.map +1 -1
- package/dist/components/Blocks.js +3 -1
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +16 -4
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +6 -3
- package/dist/components/Calculator/Calculator.js +22 -22
- package/dist/components/Calculator/Calculator.js.map +1 -1
- package/dist/components/Calculator/CalculatorValueBlock.js +1 -3
- package/dist/components/Calculator/CalculatorValueBlock.js.map +1 -1
- package/dist/components/CardTransfer/CardTransfer.js +2 -1
- package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/dist/components/Carousel/Carousel.d.ts +1 -0
- package/dist/components/Carousel/Carousel.js +16 -14
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/Carousel/CarouselContainer.d.ts +8 -5
- package/dist/components/Carousel/CarouselContainer.js +8 -5
- package/dist/components/Carousel/CarouselContainer.js.map +1 -1
- package/dist/components/Carousel/CarouselContent.d.ts +5 -8
- package/dist/components/Carousel/CarouselContent.js +0 -3
- package/dist/components/Carousel/CarouselContent.js.map +1 -1
- package/dist/components/CarouselCard/CarouselCard.d.ts +0 -2
- package/dist/components/CarouselCard/CarouselCard.js +4 -11
- package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- package/dist/components/CarouselLinks/CarouselLinks.js +9 -9
- package/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/dist/components/Catalog/Catalog.js +8 -11
- package/dist/components/Catalog/Catalog.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTable.mobile.js +2 -2
- package/dist/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTableBody.js +4 -4
- package/dist/components/ComparisonTable/ComparisonTableBody.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +1 -1
- package/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js +1 -1
- package/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTableRows.d.ts +1 -2
- package/dist/components/ComparisonTable/ComparisonTableRows.js +8 -7
- package/dist/components/ComparisonTable/ComparisonTableRows.js.map +1 -1
- package/dist/components/ComparisonTable/TableCarouselContainer.d.ts +1 -1
- package/dist/components/ComparisonTable/TableCarouselContainer.js +1 -1
- package/dist/components/ComparisonTable/TableCarouselContainer.js.map +1 -1
- package/dist/components/ComparisonTable/TableRow.d.ts +1 -1
- package/dist/components/ComparisonTable/TableRow.js +1 -1
- package/dist/components/ComparisonTable/TableRow.js.map +1 -1
- package/dist/components/ComparisonTable/constants.d.ts +1 -1
- package/dist/components/ComparisonTable/constants.js +1 -1
- package/dist/components/ContactsBlock/ContactsBlock.js +3 -5
- package/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/dist/components/ContentPage/ContentPage.js +13 -7
- package/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/dist/components/ExchangeRateTile/CurrencyTable.js +1 -3
- package/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -3
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/dist/components/Footer/Footer.js +1 -1
- package/dist/components/Footer/Footer.js.map +1 -1
- package/dist/components/Footer/Footer.mobile.js +2 -2
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/Gallery/GalleryCardInner.js +2 -4
- package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/dist/components/Gallery/GalleryContainer.d.ts +1 -1
- package/dist/components/Gallery/GalleryContainer.js +1 -3
- package/dist/components/Gallery/GalleryContainer.js.map +1 -1
- package/dist/components/Gallery/GalleryInner.js +9 -12
- package/dist/components/Gallery/GalleryInner.js.map +1 -1
- package/dist/components/Header/Header.js +1 -1
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/Header/Header.mobile.js +2 -3
- package/dist/components/Header/Header.mobile.js.map +1 -1
- package/dist/components/Headline/Headline.js +1 -2
- package/dist/components/Headline/Headline.js.map +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +23 -25
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/dist/components/InvestmentGallery/InvestmentGallery.js +10 -20
- package/dist/components/InvestmentGallery/InvestmentGallery.js.map +1 -1
- package/dist/components/InvestmentGallery/InvestmentGalleryCard.js +1 -2
- package/dist/components/InvestmentGallery/InvestmentGalleryCard.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js +4 -4
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/dist/components/OtherProducts/OtherProducts.js +2 -1
- package/dist/components/OtherProducts/OtherProducts.js.map +1 -1
- package/dist/components/OtherProductsItem/OtherProductsItem.js +5 -4
- package/dist/components/OtherProductsItem/OtherProductsItem.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +2 -1
- package/dist/components/ProductBlock/ProductBlockInner.js +2 -2
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/Recommendation/Recommendation.js +11 -21
- package/dist/components/Recommendation/Recommendation.js.map +1 -1
- package/dist/components/Recommendation/RecommendationCard.js +1 -2
- package/dist/components/Recommendation/RecommendationCard.js.map +1 -1
- package/dist/components/RollupItem/RollupItem.js +5 -3
- package/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalContent.d.ts +1 -4
- package/dist/components/StepsBlock/StepsBlock.js +1 -1
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTable.js +12 -14
- package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTable.mobile.js +1 -1
- package/dist/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableRow.d.ts +1 -1
- package/dist/components/TariffsTable/TariffsTableRow.js +2 -2
- package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/dist/components/Tile/Tile.js +2 -2
- package/dist/components/Tile/Tile.js.map +1 -1
- package/dist/components/VerticalLayout/VerticalLayout.js +3 -2
- package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/dist/components/Video/Video.d.ts +6 -0
- package/dist/components/Video/Video.js +12 -0
- package/dist/components/Video/Video.js.map +1 -0
- package/dist/components/Video/VideoContent.d.ts +8 -0
- package/dist/components/Video/VideoContent.js +2 -0
- package/dist/components/Video/VideoContent.js.map +1 -0
- package/dist/components/Video/getPaddings.d.ts +1 -0
- package/dist/components/Video/getPaddings.js +7 -0
- package/dist/components/Video/getPaddings.js.map +1 -0
- package/dist/hooks/useCarouselControls.d.ts +5 -3
- package/dist/hooks/useCarouselControls.js +19 -8
- package/dist/hooks/useCarouselControls.js.map +1 -1
- package/dist/model/JSXBlock.d.ts +4 -5
- package/dist/model/LinkProps.d.ts +1 -0
- package/dist/model/Picture.d.ts +8 -2
- package/dist/{react/setup-fixture.d.ts → setup-fixture.d.ts} +0 -0
- package/{mobile/dist/react → dist}/setup-fixture.js +4 -4
- package/dist/setup-fixture.js.map +1 -0
- package/dist/ui-kit/Button/renderArrows.d.ts +6 -4
- package/dist/ui-kit/Button/renderArrows.js +3 -2
- package/dist/ui-kit/Button/renderArrows.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTableBodyItem.js +9 -10
- package/dist/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
- package/dist/ui-kit/Paragraph/Paragraph.d.ts +9 -0
- package/dist/ui-kit/Paragraph/Paragraph.js +10 -0
- package/dist/ui-kit/Paragraph/Paragraph.js.map +1 -0
- package/dist/ui-kit/SwipeListControl/SwipeListControl.js +5 -2
- package/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +9 -12
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlList.js +2 -2
- package/dist/ui-kit/SwipeListControl/SwipeListControlList.js.map +1 -1
- package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +5 -3
- package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
- package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +2 -1
- package/dist/ui-kit/Text/Text.d.ts +34 -0
- package/dist/ui-kit/Text/Text.js +10 -0
- package/dist/ui-kit/Text/Text.js.map +1 -0
- package/lib/BlockRenderer/BlockRendererOptions.d.ts +11 -0
- package/lib/BlockRenderer/BlockRendererOptions.js +2 -0
- package/lib/BlockRenderer/BlockRendererOptions.js.map +1 -0
- package/lib/BlockRenderer/defaultBlockDecorator.d.ts +2 -0
- package/lib/BlockRenderer/defaultBlockDecorator.js +2 -0
- package/lib/BlockRenderer/defaultBlockDecorator.js.map +1 -0
- package/lib/BlockRenderer/getParentBlockContent.d.ts +2 -0
- package/lib/BlockRenderer/getParentBlockContent.js +6 -0
- package/lib/BlockRenderer/getParentBlockContent.js.map +1 -0
- package/lib/BlockRenderer/getParentBlockDef.d.ts +3 -0
- package/lib/BlockRenderer/getParentBlockDef.js +4 -0
- package/lib/BlockRenderer/getParentBlockDef.js.map +1 -0
- package/lib/BlockRenderer/renderBlock.d.ts +3 -0
- package/lib/BlockRenderer/renderBlock.js +24 -0
- package/lib/BlockRenderer/renderBlock.js.map +1 -0
- package/lib/BlockRenderer/renderBlockList.d.ts +9 -0
- package/lib/BlockRenderer/renderBlockList.js +11 -0
- package/lib/BlockRenderer/renderBlockList.js.map +1 -0
- package/lib/BlockRenderer/renderChildren.d.ts +10 -0
- package/lib/BlockRenderer/renderChildren.js +10 -0
- package/lib/BlockRenderer/renderChildren.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/Accordion/Accordion.fixture.d.ts +3 -2
- package/lib/components/Accordion/Accordion.fixture.mobile.d.ts +3 -2
- package/lib/components/Accordion/Accordion.js +3 -1
- package/lib/components/Accordion/Accordion.js.map +1 -1
- package/lib/components/Accordion/Accordion.mobile.js +3 -1
- package/lib/components/Accordion/Accordion.mobile.js.map +1 -1
- package/lib/components/AccordionItem/AccordionItem.js +4 -2
- package/lib/components/AccordionItem/AccordionItem.js.map +1 -1
- package/lib/components/AccordionItem/AccordionItem.mobile.js +7 -5
- package/lib/components/AccordionItem/AccordionItem.mobile.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.fixture.d.ts +1 -1
- package/lib/components/Blocks.js +3 -1
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Bonus/Bonus.fixture.d.ts +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.fixture.d.ts +2 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +16 -4
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +6 -3
- package/lib/components/BusinessBlock/BusinessBlock.fixture.d.ts +1 -1
- package/lib/components/Calculator/Calculator.fixture.d.ts +1 -1
- package/lib/components/Calculator/Calculator.js +23 -23
- package/lib/components/Calculator/Calculator.js.map +1 -1
- package/lib/components/Calculator/CalculatorValueBlock.js +1 -3
- package/lib/components/Calculator/CalculatorValueBlock.js.map +1 -1
- package/lib/components/CardTransfer/CardTransfer.fixture.d.ts +1 -1
- package/lib/components/CardTransfer/CardTransfer.js +3 -2
- package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/lib/components/Carousel/Carousel.d.ts +1 -0
- package/lib/components/Carousel/Carousel.fixture.d.ts +1 -1
- package/lib/components/Carousel/Carousel.js +16 -14
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/Carousel/CarouselContainer.d.ts +8 -5
- package/lib/components/Carousel/CarouselContainer.js +8 -5
- package/lib/components/Carousel/CarouselContainer.js.map +1 -1
- package/lib/components/Carousel/CarouselContent.d.ts +5 -8
- package/lib/components/Carousel/CarouselContent.js +0 -3
- package/lib/components/Carousel/CarouselContent.js.map +1 -1
- package/lib/components/CarouselCard/CarouselCard.d.ts +0 -2
- package/lib/components/CarouselCard/CarouselCard.fixture.d.ts +2 -1
- package/lib/components/CarouselCard/CarouselCard.js +4 -11
- package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- package/lib/components/CarouselLinks/CarouselLinks.js +9 -9
- package/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/lib/components/Catalog/Catalog.fixture.d.ts +1 -1
- package/lib/components/Catalog/Catalog.js +8 -11
- package/lib/components/Catalog/Catalog.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.fixture.d.ts +2 -2
- package/lib/components/ComparisonTable/ComparisonTable.fixture.mobile.d.ts +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.mobile.js +2 -2
- package/lib/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTableBody.js +4 -4
- package/lib/components/ComparisonTable/ComparisonTableBody.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +1 -1
- package/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js +1 -1
- package/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTableRows.d.ts +1 -2
- package/lib/components/ComparisonTable/ComparisonTableRows.js +8 -7
- package/lib/components/ComparisonTable/ComparisonTableRows.js.map +1 -1
- package/lib/components/ComparisonTable/TableCarouselContainer.d.ts +1 -1
- package/lib/components/ComparisonTable/TableCarouselContainer.js +1 -1
- package/lib/components/ComparisonTable/TableCarouselContainer.js.map +1 -1
- package/lib/components/ComparisonTable/TableRow.d.ts +1 -1
- package/lib/components/ComparisonTable/TableRow.js +1 -1
- package/lib/components/ComparisonTable/TableRow.js.map +1 -1
- package/lib/components/ComparisonTable/constants.d.ts +1 -1
- package/lib/components/ComparisonTable/constants.js +1 -1
- package/lib/components/ContactsBlock/ContactsBlock.fixture.d.ts +1 -1
- package/lib/components/ContactsBlock/ContactsBlock.js +3 -5
- package/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/lib/components/ContentPage/ContentPage.fixture.d.ts +1 -1
- package/lib/components/ContentPage/ContentPage.fixture.mobile.d.ts +1 -1
- package/lib/components/ContentPage/ContentPage.js +13 -7
- package/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/lib/components/ErrorBlock/ErrorBlock.fixture.d.ts +1 -1
- package/lib/components/ExchangeRateTile/CurrencyTable.js +1 -3
- package/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +2 -4
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTile.fixture.d.ts +1 -1
- package/lib/components/Footer/Footer.fixture.d.ts +1 -1
- package/lib/components/Footer/Footer.fixture.mobile.d.ts +1 -1
- package/lib/components/Footer/Footer.js +1 -1
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Footer/Footer.mobile.js +2 -2
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/Gallery/Gallery.fixture.d.ts +1 -1
- package/lib/components/Gallery/Gallery.fixture.mobile.d.ts +1 -1
- package/lib/components/Gallery/GalleryCardInner.js +2 -4
- package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/lib/components/Gallery/GalleryContainer.d.ts +1 -1
- package/lib/components/Gallery/GalleryContainer.js +1 -3
- package/lib/components/Gallery/GalleryContainer.js.map +1 -1
- package/lib/components/Gallery/GalleryInner.js +9 -12
- package/lib/components/Gallery/GalleryInner.js.map +1 -1
- package/lib/components/GracePeriod/GracePeriod.fixture.d.ts +1 -1
- package/lib/components/Header/Header.fixture.d.ts +1 -1
- package/lib/components/Header/Header.fixture.mobile.d.ts +1 -1
- package/lib/components/Header/Header.js +1 -1
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/Header.mobile.js +2 -3
- package/lib/components/Header/Header.mobile.js.map +1 -1
- package/lib/components/Headline/Headline.fixture.d.ts +1 -1
- package/lib/components/Headline/Headline.fixture.mobile.d.ts +1 -1
- package/lib/components/Headline/Headline.js +1 -2
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.d.ts +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +24 -26
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/lib/components/InvestmentGallery/InvestmentGallery.fixture.d.ts +1 -1
- package/lib/components/InvestmentGallery/InvestmentGallery.js +10 -20
- package/lib/components/InvestmentGallery/InvestmentGallery.js.map +1 -1
- package/lib/components/InvestmentGallery/InvestmentGalleryCard.js +1 -2
- package/lib/components/InvestmentGallery/InvestmentGalleryCard.js.map +1 -1
- package/lib/components/InvestmentInfo/InvestmentInfo.fixture.d.ts +1 -1
- package/lib/components/LikeControl/LikeControl.fixture.d.ts +1 -1
- package/lib/components/LinkDocs/LinkDocs.fixture.d.ts +1 -1
- package/lib/components/LinkDocs/LinkDocs.fixture.mobile.d.ts +1 -1
- package/lib/components/LinkList/LinkList.fixture.d.ts +1 -1
- package/lib/components/MiniGallery/MiniGallery.fixture.d.ts +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.fixture.d.ts +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.fixture.mobile.d.ts +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js +4 -4
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/lib/components/OfficeMap/OfficeMap.fixture.d.ts +1 -1
- package/lib/components/OfficeServicesBlock/OfficeServicesBlock.fixture.d.ts +1 -1
- package/lib/components/OtherProducts/OtherProducts.fixture.d.ts +3 -2
- package/lib/components/OtherProducts/OtherProducts.js +2 -1
- package/lib/components/OtherProducts/OtherProducts.js.map +1 -1
- package/lib/components/OtherProductsItem/OtherProductsItem.js +5 -4
- package/lib/components/OtherProductsItem/OtherProductsItem.js.map +1 -1
- package/lib/components/PictureText/PictureText.fixture.d.ts +1 -1
- package/lib/components/Placeholder/Placeholder.fixture.d.ts +1 -1
- package/lib/components/Placeholder/Placeholder.fixture.mobile.d.ts +1 -1
- package/lib/components/ProductBlock/ProductBlock.fixture.d.ts +2 -1
- package/lib/components/ProductBlock/ProductBlock.fixture.mobile.d.ts +1 -1
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +2 -1
- package/lib/components/ProductBlock/ProductBlockInner.js +2 -2
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.fixture.d.ts +1 -1
- package/lib/components/ProductTile/ProductTile.fixture.d.ts +1 -1
- package/lib/components/PromoTile/PromoTile.fixture.d.ts +1 -1
- package/lib/components/Recommendation/Recommendation.fixture.d.ts +1 -1
- package/lib/components/Recommendation/Recommendation.js +11 -21
- package/lib/components/Recommendation/Recommendation.js.map +1 -1
- package/lib/components/Recommendation/RecommendationCard.js +1 -2
- package/lib/components/Recommendation/RecommendationCard.js.map +1 -1
- package/lib/components/RollupItem/RollupItem.js +5 -3
- package/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRental.fixture.d.ts +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalContent.d.ts +1 -4
- package/lib/components/StepsBlock/StepsBlock.fixture.d.ts +1 -1
- package/lib/components/StepsBlock/StepsBlock.fixture.mobile.d.ts +1 -1
- package/lib/components/StepsBlock/StepsBlock.js +1 -1
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/Tabs/Tabs.fixture.d.ts +1 -1
- package/lib/components/TariffsTable/TariffsTable.fixture.d.ts +1 -1
- package/lib/components/TariffsTable/TariffsTable.fixture.mobile.d.ts +1 -1
- package/lib/components/TariffsTable/TariffsTable.js +12 -14
- package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTable.mobile.js +1 -1
- package/lib/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableRow.d.ts +1 -1
- package/lib/components/TariffsTable/TariffsTableRow.js +2 -2
- package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/lib/components/TextBlock/TextBlock.fixture.d.ts +1 -1
- package/lib/components/TextBlock/TextBlock.fixture.mobile.d.ts +1 -1
- package/lib/components/Tile/Tile.fixture.d.ts +1 -1
- package/lib/components/Tile/Tile.js +2 -2
- package/lib/components/Tile/Tile.js.map +1 -1
- package/lib/components/VerticalLayout/VerticalLayout.fixture.d.ts +1 -1
- package/lib/components/VerticalLayout/VerticalLayout.js +3 -2
- package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/lib/components/Video/Video.d.ts +6 -0
- package/lib/components/Video/Video.fixture.d.ts +8 -0
- package/lib/components/Video/Video.js +10 -0
- package/lib/components/Video/Video.js.map +1 -0
- package/lib/components/Video/VideoContent.d.ts +8 -0
- package/lib/components/Video/VideoContent.js +2 -0
- package/lib/components/Video/VideoContent.js.map +1 -0
- package/lib/components/Video/getPaddings.d.ts +1 -0
- package/lib/components/Video/getPaddings.js +4 -0
- package/lib/components/Video/getPaddings.js.map +1 -0
- package/lib/hooks/useCarouselControls.d.ts +5 -3
- package/lib/hooks/useCarouselControls.js +19 -8
- package/lib/hooks/useCarouselControls.js.map +1 -1
- package/lib/model/JSXBlock.d.ts +4 -5
- package/lib/model/LinkProps.d.ts +1 -0
- package/lib/model/Picture.d.ts +8 -2
- package/lib/{react/setup-fixture.d.ts → setup-fixture.d.ts} +0 -0
- package/lib/{react/setup-fixture.js → setup-fixture.js} +4 -4
- package/lib/setup-fixture.js.map +1 -0
- package/lib/ui-kit/Button/Button.fixture.d.ts +1 -1
- package/lib/ui-kit/Button/renderArrows.d.ts +6 -4
- package/lib/ui-kit/Button/renderArrows.js +3 -2
- package/lib/ui-kit/Button/renderArrows.js.map +1 -1
- package/lib/ui-kit/HeaderItem/HeaderItem.fixture.d.ts +1 -1
- package/lib/ui-kit/Icon/Icon.fixture.d.ts +1 -1
- package/lib/ui-kit/InnerTable/InnerTableBodyItem.js +9 -10
- package/lib/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
- package/lib/ui-kit/List/List.fixture.d.ts +1 -1
- package/lib/ui-kit/Logo/Logo.fixture.d.ts +1 -1
- package/lib/ui-kit/Paragraph/Paragraph.d.ts +9 -0
- package/lib/ui-kit/Paragraph/Paragraph.js +8 -0
- package/lib/ui-kit/Paragraph/Paragraph.js.map +1 -0
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.fixture.d.ts +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControl.fixture.mobile.d.ts +3 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControl.js +6 -3
- package/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +9 -12
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlList.js +2 -2
- package/lib/ui-kit/SwipeListControl/SwipeListControlList.js.map +1 -1
- package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +5 -3
- package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
- package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +2 -1
- package/lib/ui-kit/Text/Text.d.ts +34 -0
- package/lib/ui-kit/Text/Text.js +8 -0
- package/lib/ui-kit/Text/Text.js.map +1 -0
- package/lib/ui-kit/TopItem/TopItem.fixture.d.ts +1 -1
- package/mobile/bundle/BlockRenderer/BlockRendererOptions.d.ts +11 -0
- package/mobile/bundle/BlockRenderer/defaultBlockDecorator.d.ts +2 -0
- package/mobile/bundle/BlockRenderer/getParentBlockContent.d.ts +2 -0
- package/mobile/bundle/BlockRenderer/getParentBlockDef.d.ts +3 -0
- package/mobile/bundle/BlockRenderer/renderBlock.d.ts +3 -0
- package/mobile/bundle/BlockRenderer/renderBlockList.d.ts +9 -0
- package/mobile/bundle/BlockRenderer/renderChildren.d.ts +10 -0
- package/mobile/bundle/bundle.umd.js +103 -88
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +6 -3
- package/mobile/bundle/components/Carousel/Carousel.d.ts +1 -0
- package/mobile/bundle/components/Carousel/CarouselContainer.d.ts +8 -5
- package/mobile/bundle/components/Carousel/CarouselContent.d.ts +5 -8
- package/mobile/bundle/components/CarouselCard/CarouselCard.d.ts +0 -2
- package/mobile/bundle/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +1 -1
- package/mobile/bundle/components/ComparisonTable/ComparisonTableRows.d.ts +1 -2
- package/mobile/bundle/components/ComparisonTable/TableCarouselContainer.d.ts +1 -1
- package/mobile/bundle/components/ComparisonTable/TableRow.d.ts +1 -1
- package/mobile/bundle/components/ComparisonTable/constants.d.ts +1 -1
- package/mobile/bundle/components/Gallery/GalleryContainer.d.ts +1 -1
- package/mobile/bundle/components/ProductBlock/ProductBlockContent.d.ts +2 -1
- package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalContent.d.ts +1 -4
- package/mobile/bundle/components/TariffsTable/TariffsTableRow.d.ts +1 -1
- package/mobile/bundle/components/Video/Video.d.ts +6 -0
- package/mobile/bundle/components/Video/VideoContent.d.ts +8 -0
- package/mobile/bundle/components/Video/getPaddings.d.ts +1 -0
- package/mobile/bundle/hooks/useCarouselControls.d.ts +5 -3
- package/mobile/bundle/model/JSXBlock.d.ts +4 -5
- package/mobile/bundle/model/LinkProps.d.ts +1 -0
- package/mobile/bundle/model/Picture.d.ts +8 -2
- package/mobile/bundle/{react/setup-fixture.d.ts → setup-fixture.d.ts} +0 -0
- package/mobile/bundle/ui-kit/Button/renderArrows.d.ts +6 -4
- package/mobile/bundle/ui-kit/Paragraph/Paragraph.d.ts +9 -0
- package/mobile/bundle/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +2 -1
- package/mobile/bundle/ui-kit/Text/Text.d.ts +34 -0
- package/mobile/dist/BlockRenderer/BlockRendererOptions.d.ts +11 -0
- package/mobile/dist/BlockRenderer/BlockRendererOptions.js +2 -0
- package/mobile/dist/BlockRenderer/BlockRendererOptions.js.map +1 -0
- package/mobile/dist/BlockRenderer/defaultBlockDecorator.d.ts +2 -0
- package/mobile/dist/BlockRenderer/defaultBlockDecorator.js +5 -0
- package/mobile/dist/BlockRenderer/defaultBlockDecorator.js.map +1 -0
- package/mobile/dist/BlockRenderer/getParentBlockContent.d.ts +2 -0
- package/{dist/model → mobile/dist/BlockRenderer}/getParentBlockContent.js +2 -2
- package/mobile/dist/BlockRenderer/getParentBlockContent.js.map +1 -0
- package/mobile/dist/BlockRenderer/getParentBlockDef.d.ts +3 -0
- package/mobile/dist/BlockRenderer/getParentBlockDef.js +7 -0
- package/mobile/dist/BlockRenderer/getParentBlockDef.js.map +1 -0
- package/mobile/dist/BlockRenderer/renderBlock.d.ts +3 -0
- package/mobile/dist/BlockRenderer/renderBlock.js +27 -0
- package/mobile/dist/BlockRenderer/renderBlock.js.map +1 -0
- package/mobile/dist/BlockRenderer/renderBlockList.d.ts +9 -0
- package/mobile/dist/BlockRenderer/renderBlockList.js +14 -0
- package/mobile/dist/BlockRenderer/renderBlockList.js.map +1 -0
- package/mobile/dist/BlockRenderer/renderChildren.d.ts +10 -0
- package/mobile/dist/BlockRenderer/renderChildren.js +13 -0
- package/mobile/dist/BlockRenderer/renderChildren.js.map +1 -0
- package/mobile/dist/components/Accordion/Accordion.js +3 -1
- package/mobile/dist/components/Accordion/Accordion.js.map +1 -1
- package/mobile/dist/components/AccordionItem/AccordionItem.js +7 -5
- package/mobile/dist/components/AccordionItem/AccordionItem.js.map +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +16 -4
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +6 -3
- package/mobile/dist/components/Calculator/Calculator.js +22 -22
- package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
- package/mobile/dist/components/Calculator/CalculatorValueBlock.js +1 -3
- package/mobile/dist/components/Calculator/CalculatorValueBlock.js.map +1 -1
- package/mobile/dist/components/CardTransfer/CardTransfer.js +2 -1
- package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/dist/components/Carousel/Carousel.d.ts +1 -0
- package/mobile/dist/components/Carousel/Carousel.js +16 -14
- package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
- package/mobile/dist/components/Carousel/CarouselContainer.d.ts +8 -5
- package/mobile/dist/components/Carousel/CarouselContainer.js +8 -5
- package/mobile/dist/components/Carousel/CarouselContainer.js.map +1 -1
- package/mobile/dist/components/Carousel/CarouselContent.d.ts +5 -8
- package/mobile/dist/components/Carousel/CarouselContent.js +0 -3
- package/mobile/dist/components/Carousel/CarouselContent.js.map +1 -1
- package/mobile/dist/components/CarouselCard/CarouselCard.d.ts +0 -2
- package/mobile/dist/components/CarouselCard/CarouselCard.js +4 -11
- package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- package/mobile/dist/components/CarouselLinks/CarouselLinks.js +9 -9
- package/mobile/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/dist/components/Catalog/Catalog.js +8 -11
- package/mobile/dist/components/Catalog/Catalog.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/ComparisonTable.js +2 -2
- package/mobile/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/ComparisonTableBody.js +4 -4
- package/mobile/dist/components/ComparisonTable/ComparisonTableBody.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +1 -1
- package/mobile/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js +1 -1
- package/mobile/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/ComparisonTableRows.d.ts +1 -2
- package/mobile/dist/components/ComparisonTable/ComparisonTableRows.js +8 -7
- package/mobile/dist/components/ComparisonTable/ComparisonTableRows.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/TableCarouselContainer.d.ts +1 -1
- package/mobile/dist/components/ComparisonTable/TableCarouselContainer.js +1 -1
- package/mobile/dist/components/ComparisonTable/TableCarouselContainer.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/TableRow.d.ts +1 -1
- package/mobile/dist/components/ComparisonTable/TableRow.js +1 -1
- package/mobile/dist/components/ComparisonTable/TableRow.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/constants.d.ts +1 -1
- package/mobile/dist/components/ComparisonTable/constants.js +1 -1
- package/mobile/dist/components/ContactsBlock/ContactsBlock.js +3 -5
- package/mobile/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.js +13 -7
- package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js +1 -3
- package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -3
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/mobile/dist/components/Footer/Footer.js +2 -2
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryCardInner.js +2 -4
- package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryContainer.d.ts +1 -1
- package/mobile/dist/components/Gallery/GalleryContainer.js +1 -3
- package/mobile/dist/components/Gallery/GalleryContainer.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryInner.js +9 -12
- package/mobile/dist/components/Gallery/GalleryInner.js.map +1 -1
- package/mobile/dist/components/Header/Header.js +2 -3
- package/mobile/dist/components/Header/Header.js.map +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +23 -25
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/mobile/dist/components/InvestmentGallery/InvestmentGallery.js +10 -20
- package/mobile/dist/components/InvestmentGallery/InvestmentGallery.js.map +1 -1
- package/mobile/dist/components/InvestmentGallery/InvestmentGalleryCard.js +1 -2
- package/mobile/dist/components/InvestmentGallery/InvestmentGalleryCard.js.map +1 -1
- package/mobile/dist/components/OtherProducts/OtherProducts.js +2 -1
- package/mobile/dist/components/OtherProducts/OtherProducts.js.map +1 -1
- package/mobile/dist/components/OtherProductsItem/OtherProductsItem.js +5 -4
- package/mobile/dist/components/OtherProductsItem/OtherProductsItem.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +2 -1
- package/mobile/dist/components/Recommendation/Recommendation.js +11 -21
- package/mobile/dist/components/Recommendation/Recommendation.js.map +1 -1
- package/mobile/dist/components/Recommendation/RecommendationCard.js +1 -2
- package/mobile/dist/components/Recommendation/RecommendationCard.js.map +1 -1
- package/mobile/dist/components/RollupItem/RollupItem.js +5 -3
- package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalContent.d.ts +1 -4
- package/mobile/dist/components/TariffsTable/TariffsTable.js +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRow.d.ts +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js +2 -2
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/dist/components/Tile/Tile.js +2 -2
- package/mobile/dist/components/Tile/Tile.js.map +1 -1
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js +3 -2
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/dist/components/Video/Video.d.ts +6 -0
- package/mobile/dist/components/Video/Video.js +12 -0
- package/mobile/dist/components/Video/Video.js.map +1 -0
- package/mobile/dist/components/Video/VideoContent.d.ts +8 -0
- package/mobile/dist/components/Video/VideoContent.js +2 -0
- package/mobile/dist/components/Video/VideoContent.js.map +1 -0
- package/mobile/dist/components/Video/getPaddings.d.ts +1 -0
- package/mobile/dist/components/Video/getPaddings.js +7 -0
- package/mobile/dist/components/Video/getPaddings.js.map +1 -0
- package/mobile/dist/hooks/useCarouselControls.d.ts +5 -3
- package/mobile/dist/hooks/useCarouselControls.js +19 -8
- package/mobile/dist/hooks/useCarouselControls.js.map +1 -1
- package/mobile/dist/model/JSXBlock.d.ts +4 -5
- package/mobile/dist/model/LinkProps.d.ts +1 -0
- package/mobile/dist/model/Picture.d.ts +8 -2
- package/mobile/dist/{react/setup-fixture.d.ts → setup-fixture.d.ts} +0 -0
- package/{dist/react → mobile/dist}/setup-fixture.js +4 -4
- package/mobile/dist/setup-fixture.js.map +1 -0
- package/mobile/dist/ui-kit/Button/renderArrows.d.ts +6 -4
- package/mobile/dist/ui-kit/Button/renderArrows.js +3 -2
- package/mobile/dist/ui-kit/Button/renderArrows.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableBodyItem.js +9 -10
- package/mobile/dist/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
- package/mobile/dist/ui-kit/Paragraph/Paragraph.d.ts +9 -0
- package/mobile/dist/ui-kit/Paragraph/Paragraph.js +10 -0
- package/mobile/dist/ui-kit/Paragraph/Paragraph.js.map +1 -0
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js +5 -2
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +9 -12
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlList.js +2 -2
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlList.js.map +1 -1
- package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +5 -3
- package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
- package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +2 -1
- package/mobile/dist/ui-kit/Text/Text.d.ts +34 -0
- package/mobile/dist/ui-kit/Text/Text.js +10 -0
- package/mobile/dist/ui-kit/Text/Text.js.map +1 -0
- package/mobile/lib/BlockRenderer/BlockRendererOptions.d.ts +11 -0
- package/mobile/lib/BlockRenderer/BlockRendererOptions.js +2 -0
- package/mobile/lib/BlockRenderer/BlockRendererOptions.js.map +1 -0
- package/mobile/lib/BlockRenderer/defaultBlockDecorator.d.ts +2 -0
- package/mobile/lib/BlockRenderer/defaultBlockDecorator.js +2 -0
- package/mobile/lib/BlockRenderer/defaultBlockDecorator.js.map +1 -0
- package/mobile/lib/BlockRenderer/getParentBlockContent.d.ts +2 -0
- package/mobile/lib/BlockRenderer/getParentBlockContent.js +6 -0
- package/mobile/lib/BlockRenderer/getParentBlockContent.js.map +1 -0
- package/mobile/lib/BlockRenderer/getParentBlockDef.d.ts +3 -0
- package/mobile/lib/BlockRenderer/getParentBlockDef.js +4 -0
- package/mobile/lib/BlockRenderer/getParentBlockDef.js.map +1 -0
- package/mobile/lib/BlockRenderer/renderBlock.d.ts +3 -0
- package/mobile/lib/BlockRenderer/renderBlock.js +24 -0
- package/mobile/lib/BlockRenderer/renderBlock.js.map +1 -0
- package/mobile/lib/BlockRenderer/renderBlockList.d.ts +9 -0
- package/mobile/lib/BlockRenderer/renderBlockList.js +11 -0
- package/mobile/lib/BlockRenderer/renderBlockList.js.map +1 -0
- package/mobile/lib/BlockRenderer/renderChildren.d.ts +10 -0
- package/mobile/lib/BlockRenderer/renderChildren.js +10 -0
- package/mobile/lib/BlockRenderer/renderChildren.js.map +1 -0
- package/mobile/lib/components/Accordion/Accordion.js +3 -1
- package/mobile/lib/components/Accordion/Accordion.js.map +1 -1
- package/mobile/lib/components/AccordionItem/AccordionItem.js +7 -5
- package/mobile/lib/components/AccordionItem/AccordionItem.js.map +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +16 -4
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +6 -3
- package/mobile/lib/components/Calculator/Calculator.js +23 -23
- package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
- package/mobile/lib/components/Calculator/CalculatorValueBlock.js +1 -3
- package/mobile/lib/components/Calculator/CalculatorValueBlock.js.map +1 -1
- package/mobile/lib/components/CardTransfer/CardTransfer.js +3 -2
- package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/lib/components/Carousel/Carousel.d.ts +1 -0
- package/mobile/lib/components/Carousel/Carousel.js +16 -14
- package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
- package/mobile/lib/components/Carousel/CarouselContainer.d.ts +8 -5
- package/mobile/lib/components/Carousel/CarouselContainer.js +8 -5
- package/mobile/lib/components/Carousel/CarouselContainer.js.map +1 -1
- package/mobile/lib/components/Carousel/CarouselContent.d.ts +5 -8
- package/mobile/lib/components/Carousel/CarouselContent.js +0 -3
- package/mobile/lib/components/Carousel/CarouselContent.js.map +1 -1
- package/mobile/lib/components/CarouselCard/CarouselCard.d.ts +0 -2
- package/mobile/lib/components/CarouselCard/CarouselCard.js +4 -11
- package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- package/mobile/lib/components/CarouselLinks/CarouselLinks.js +9 -9
- package/mobile/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/lib/components/Catalog/Catalog.js +8 -11
- package/mobile/lib/components/Catalog/Catalog.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/ComparisonTable.js +2 -2
- package/mobile/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/ComparisonTableBody.js +4 -4
- package/mobile/lib/components/ComparisonTable/ComparisonTableBody.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +1 -1
- package/mobile/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js +1 -1
- package/mobile/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/ComparisonTableRows.d.ts +1 -2
- package/mobile/lib/components/ComparisonTable/ComparisonTableRows.js +8 -7
- package/mobile/lib/components/ComparisonTable/ComparisonTableRows.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/TableCarouselContainer.d.ts +1 -1
- package/mobile/lib/components/ComparisonTable/TableCarouselContainer.js +1 -1
- package/mobile/lib/components/ComparisonTable/TableCarouselContainer.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/TableRow.d.ts +1 -1
- package/mobile/lib/components/ComparisonTable/TableRow.js +1 -1
- package/mobile/lib/components/ComparisonTable/TableRow.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/constants.d.ts +1 -1
- package/mobile/lib/components/ComparisonTable/constants.js +1 -1
- package/mobile/lib/components/ContactsBlock/ContactsBlock.js +3 -5
- package/mobile/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.js +13 -7
- package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js +1 -3
- package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +2 -4
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/mobile/lib/components/Footer/Footer.js +2 -2
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryCardInner.js +2 -4
- package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryContainer.d.ts +1 -1
- package/mobile/lib/components/Gallery/GalleryContainer.js +1 -3
- package/mobile/lib/components/Gallery/GalleryContainer.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryInner.js +9 -12
- package/mobile/lib/components/Gallery/GalleryInner.js.map +1 -1
- package/mobile/lib/components/Header/Header.js +2 -3
- package/mobile/lib/components/Header/Header.js.map +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +24 -26
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/mobile/lib/components/InvestmentGallery/InvestmentGallery.js +10 -20
- package/mobile/lib/components/InvestmentGallery/InvestmentGallery.js.map +1 -1
- package/mobile/lib/components/InvestmentGallery/InvestmentGalleryCard.js +1 -2
- package/mobile/lib/components/InvestmentGallery/InvestmentGalleryCard.js.map +1 -1
- package/mobile/lib/components/OtherProducts/OtherProducts.js +2 -1
- package/mobile/lib/components/OtherProducts/OtherProducts.js.map +1 -1
- package/mobile/lib/components/OtherProductsItem/OtherProductsItem.js +5 -4
- package/mobile/lib/components/OtherProductsItem/OtherProductsItem.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +2 -1
- package/mobile/lib/components/Recommendation/Recommendation.js +11 -21
- package/mobile/lib/components/Recommendation/Recommendation.js.map +1 -1
- package/mobile/lib/components/Recommendation/RecommendationCard.js +1 -2
- package/mobile/lib/components/Recommendation/RecommendationCard.js.map +1 -1
- package/mobile/lib/components/RollupItem/RollupItem.js +5 -3
- package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalContent.d.ts +1 -4
- package/mobile/lib/components/TariffsTable/TariffsTable.js +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRow.d.ts +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js +2 -2
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/lib/components/Tile/Tile.js +2 -2
- package/mobile/lib/components/Tile/Tile.js.map +1 -1
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js +3 -2
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/lib/components/Video/Video.d.ts +6 -0
- package/mobile/lib/components/Video/Video.js +10 -0
- package/mobile/lib/components/Video/Video.js.map +1 -0
- package/mobile/lib/components/Video/VideoContent.d.ts +8 -0
- package/mobile/lib/components/Video/VideoContent.js +2 -0
- package/mobile/lib/components/Video/VideoContent.js.map +1 -0
- package/mobile/lib/components/Video/getPaddings.d.ts +1 -0
- package/mobile/lib/components/Video/getPaddings.js +4 -0
- package/mobile/lib/components/Video/getPaddings.js.map +1 -0
- package/mobile/lib/hooks/useCarouselControls.d.ts +5 -3
- package/mobile/lib/hooks/useCarouselControls.js +19 -8
- package/mobile/lib/hooks/useCarouselControls.js.map +1 -1
- package/mobile/lib/model/JSXBlock.d.ts +4 -5
- package/mobile/lib/model/LinkProps.d.ts +1 -0
- package/mobile/lib/model/Picture.d.ts +8 -2
- package/mobile/lib/{react/setup-fixture.d.ts → setup-fixture.d.ts} +0 -0
- package/mobile/lib/{react/setup-fixture.js → setup-fixture.js} +4 -4
- package/mobile/lib/setup-fixture.js.map +1 -0
- package/mobile/lib/ui-kit/Button/renderArrows.d.ts +6 -4
- package/mobile/lib/ui-kit/Button/renderArrows.js +3 -2
- package/mobile/lib/ui-kit/Button/renderArrows.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableBodyItem.js +9 -10
- package/mobile/lib/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
- package/mobile/lib/ui-kit/Paragraph/Paragraph.d.ts +9 -0
- package/mobile/lib/ui-kit/Paragraph/Paragraph.js +8 -0
- package/mobile/lib/ui-kit/Paragraph/Paragraph.js.map +1 -0
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js +6 -3
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +9 -12
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlList.js +2 -2
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlList.js.map +1 -1
- package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +5 -3
- package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
- package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +2 -1
- package/mobile/lib/ui-kit/Text/Text.d.ts +34 -0
- package/mobile/lib/ui-kit/Text/Text.js +8 -0
- package/mobile/lib/ui-kit/Text/Text.js.map +1 -0
- package/mobile/src/BlockRenderer/BlockRendererOptions.ts +12 -0
- package/mobile/src/BlockRenderer/defaultBlockDecorator.ts +4 -0
- package/mobile/src/{model → BlockRenderer}/getParentBlockContent.ts +3 -3
- package/mobile/src/BlockRenderer/getParentBlockDef.ts +6 -0
- package/mobile/src/BlockRenderer/renderBlock.tsx +47 -0
- package/mobile/src/BlockRenderer/renderBlockList.tsx +33 -0
- package/mobile/src/BlockRenderer/renderChildren.ts +25 -0
- package/mobile/src/components/Accordion/Accordion.tsx +12 -7
- package/mobile/src/components/AccordionItem/AccordionItem.tsx +12 -8
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.example.json +1 -0
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +31 -18
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlockContent.ts +6 -3
- package/mobile/src/components/Calculator/Calculator.tsx +32 -33
- package/mobile/src/components/Calculator/CalculatorValueBlock.tsx +10 -12
- package/mobile/src/components/CardTransfer/CardTransfer.tsx +3 -2
- package/mobile/src/components/Carousel/Carousel.example.json +2 -2
- package/mobile/src/components/Carousel/Carousel.tsx +29 -40
- package/mobile/src/components/Carousel/CarouselContainer.tsx +19 -12
- package/mobile/src/components/Carousel/CarouselContent.ts +5 -9
- package/mobile/src/components/CarouselCard/CarouselCard.tsx +22 -34
- package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +30 -24
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +3 -3
- package/mobile/src/components/Catalog/Catalog.tsx +8 -13
- package/mobile/src/components/ComparisonTable/ComparisonTable.tsx +2 -2
- package/mobile/src/components/ComparisonTable/ComparisonTableBody.tsx +6 -7
- package/mobile/src/components/ComparisonTable/ComparisonTableColumnHeaders.tsx +3 -3
- package/mobile/src/components/ComparisonTable/ComparisonTableRows.tsx +10 -14
- package/mobile/src/components/ComparisonTable/TableCarouselContainer.tsx +3 -3
- package/mobile/src/components/ComparisonTable/TableRow.tsx +3 -3
- package/mobile/src/components/ComparisonTable/constants.ts +1 -1
- package/mobile/src/components/ContactsBlock/ContactsBlock.tsx +10 -13
- package/mobile/src/components/ContentPage/ContentPage.tsx +21 -20
- package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +12 -14
- package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +5 -4
- package/mobile/src/components/Footer/Footer.tsx +3 -3
- package/mobile/src/components/Gallery/GalleryCardInner.tsx +12 -14
- package/mobile/src/components/Gallery/GalleryContainer.tsx +14 -16
- package/mobile/src/components/Gallery/GalleryInner.tsx +9 -22
- package/mobile/src/components/Header/Header.tsx +3 -4
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +29 -42
- package/mobile/src/components/InvestmentGallery/InvestmentGallery.tsx +12 -34
- package/mobile/src/components/InvestmentGallery/InvestmentGalleryCard.tsx +2 -3
- package/mobile/src/components/OtherProducts/OtherProducts.tsx +3 -2
- package/mobile/src/components/OtherProductsItem/OtherProductsItem.tsx +6 -5
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +3 -1
- package/mobile/src/components/Recommendation/Recommendation.tsx +12 -36
- package/mobile/src/components/Recommendation/RecommendationCard.tsx +1 -2
- package/mobile/src/components/RollupItem/RollupItem.tsx +9 -7
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalContent.ts +1 -5
- package/mobile/src/components/TariffsTable/TariffsTable.tsx +1 -1
- package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +3 -3
- package/mobile/src/components/Tile/Tile.tsx +4 -2
- package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +3 -2
- package/mobile/src/components/Video/Video.tsx +29 -0
- package/mobile/src/components/Video/Video.ui.json +12 -0
- package/mobile/src/components/Video/VideoContent.ts +9 -0
- package/mobile/src/components/Video/getPaddings.ts +6 -0
- package/mobile/src/hooks/useCarouselControls.ts +33 -19
- package/mobile/src/model/JSXBlock.ts +4 -5
- package/mobile/src/model/LinkProps.ts +1 -0
- package/mobile/src/model/Picture.ts +8 -2
- package/{src/react → mobile/src}/setup-fixture.ts +4 -4
- package/mobile/src/ui-kit/Button/renderArrows.tsx +22 -17
- package/mobile/src/ui-kit/InnerTable/InnerTableBodyItem.tsx +9 -13
- package/mobile/src/ui-kit/Paragraph/Paragraph.tsx +17 -0
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControl.tsx +35 -28
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +32 -27
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlList.tsx +10 -8
- package/mobile/src/ui-kit/TableArrowScrollControl/TableArrowScrollControl.tsx +5 -3
- package/mobile/src/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.ts +2 -1
- package/mobile/src/ui-kit/Text/Text.tsx +79 -0
- package/package.json +1 -1
- package/src/BlockRenderer/BlockRendererOptions.ts +12 -0
- package/src/BlockRenderer/defaultBlockDecorator.ts +4 -0
- package/src/{model → BlockRenderer}/getParentBlockContent.ts +3 -3
- package/src/BlockRenderer/getParentBlockDef.ts +6 -0
- package/src/BlockRenderer/renderBlock.tsx +47 -0
- package/src/BlockRenderer/renderBlockList.tsx +33 -0
- package/src/BlockRenderer/renderChildren.ts +25 -0
- package/src/components/Accordion/Accordion.fixture.mobile.tsx +40 -55
- package/src/components/Accordion/Accordion.fixture.tsx +79 -52
- package/src/components/Accordion/Accordion.mobile.tsx +12 -7
- package/src/components/Accordion/Accordion.tsx +10 -4
- package/src/components/AccordionItem/AccordionItem.fixture.mobile.tsx +13 -2
- package/src/components/AccordionItem/AccordionItem.fixture.tsx +12 -1
- package/src/components/AccordionItem/AccordionItem.mobile.tsx +12 -8
- package/src/components/AccordionItem/AccordionItem.tsx +7 -3
- package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +1 -1
- package/src/components/Blocks.ts +3 -1
- package/src/components/Bonus/Bonus.fixture.tsx +1 -1
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.example.json +1 -0
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.fixture.tsx +12 -1
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +31 -18
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlockContent.ts +6 -3
- package/src/components/BusinessBlock/BusinessBlock.fixture.tsx +1 -1
- package/src/components/Calculator/Calculator.fixture.tsx +1 -1
- package/src/components/Calculator/Calculator.tsx +32 -33
- package/src/components/Calculator/CalculatorValueBlock.tsx +10 -12
- package/src/components/CardTransfer/CardTransfer.fixture.tsx +1 -1
- package/src/components/CardTransfer/CardTransfer.tsx +3 -2
- package/src/components/Carousel/Carousel.example.json +2 -2
- package/src/components/Carousel/Carousel.fixture.tsx +38 -45
- package/src/components/Carousel/Carousel.tsx +29 -40
- package/src/components/Carousel/CarouselContainer.tsx +19 -12
- package/src/components/Carousel/CarouselContent.ts +5 -9
- package/src/components/CarouselCard/CarouselCard.fixture.tsx +9 -4
- package/src/components/CarouselCard/CarouselCard.tsx +22 -34
- package/src/components/CarouselLinks/CarouselLinks.tsx +30 -24
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +3 -3
- package/src/components/Catalog/Catalog.fixture.tsx +1 -1
- package/src/components/Catalog/Catalog.tsx +8 -13
- package/src/components/ComparisonTable/ComparisonTable.fixture.mobile.tsx +1 -1
- package/src/components/ComparisonTable/ComparisonTable.fixture.tsx +2 -2
- package/src/components/ComparisonTable/ComparisonTable.mobile.tsx +2 -2
- package/src/components/ComparisonTable/ComparisonTableBody.tsx +6 -7
- package/src/components/ComparisonTable/ComparisonTableColumnHeaders.tsx +3 -3
- package/src/components/ComparisonTable/ComparisonTableRows.tsx +10 -14
- package/src/components/ComparisonTable/TableCarouselContainer.tsx +3 -3
- package/src/components/ComparisonTable/TableRow.tsx +3 -3
- package/src/components/ComparisonTable/constants.ts +1 -1
- package/src/components/ContactsBlock/ContactsBlock.fixture.tsx +1 -1
- package/src/components/ContactsBlock/ContactsBlock.tsx +10 -13
- package/src/components/ContentPage/ContentPage.fixture.mobile.tsx +1 -1
- package/src/components/ContentPage/ContentPage.fixture.tsx +1 -1
- package/src/components/ContentPage/ContentPage.tsx +21 -20
- package/src/components/ErrorBlock/ErrorBlock.fixture.tsx +1 -1
- package/src/components/ExchangeRateTile/CurrencyTable.tsx +12 -14
- package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +5 -4
- package/src/components/ExchangeRateTile/ExchangeRateTile.fixture.tsx +1 -1
- package/src/components/Footer/Footer.fixture.mobile.tsx +1 -1
- package/src/components/Footer/Footer.fixture.tsx +1 -1
- package/src/components/Footer/Footer.mobile.tsx +3 -3
- package/src/components/Footer/Footer.tsx +1 -1
- package/src/components/Gallery/Gallery.fixture.mobile.tsx +1 -1
- package/src/components/Gallery/Gallery.fixture.tsx +1 -1
- package/src/components/Gallery/GalleryCardInner.tsx +12 -14
- package/src/components/Gallery/GalleryContainer.tsx +14 -16
- package/src/components/Gallery/GalleryInner.tsx +9 -22
- package/src/components/GracePeriod/GracePeriod.fixture.tsx +1 -1
- package/src/components/Header/Header.fixture.mobile.tsx +1 -1
- package/src/components/Header/Header.fixture.tsx +1 -1
- package/src/components/Header/Header.mobile.tsx +3 -4
- package/src/components/Header/Header.tsx +1 -1
- package/src/components/Headline/Headline.fixture.mobile.tsx +1 -1
- package/src/components/Headline/Headline.fixture.tsx +1 -1
- package/src/components/Headline/Headline.tsx +3 -5
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.tsx +1 -1
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +29 -42
- package/src/components/InvestmentGallery/InvestmentGallery.fixture.tsx +1 -1
- package/src/components/InvestmentGallery/InvestmentGallery.tsx +12 -34
- package/src/components/InvestmentGallery/InvestmentGalleryCard.tsx +2 -3
- package/src/components/InvestmentInfo/InvestmentInfo.fixture.tsx +1 -1
- package/src/components/LikeControl/LikeControl.fixture.tsx +1 -1
- package/src/components/LinkDocs/LinkDocs.fixture.mobile.tsx +1 -1
- package/src/components/LinkDocs/LinkDocs.fixture.tsx +1 -1
- package/src/components/LinkList/LinkList.fixture.tsx +1 -1
- package/src/components/MiniGallery/MiniGallery.fixture.tsx +1 -1
- package/src/components/MobileAppTile/MobileAppTile.fixture.mobile.tsx +1 -1
- package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +1 -1
- package/src/components/MobileAppTile/MobileAppTile.tsx +5 -5
- package/src/components/OfficeMap/OfficeMap.fixture.tsx +1 -1
- package/src/components/OfficeServicesBlock/OfficeServicesBlock.fixture.tsx +1 -1
- package/src/components/OtherProducts/OtherProducts.fixture.tsx +86 -76
- package/src/components/OtherProducts/OtherProducts.tsx +3 -2
- package/src/components/OtherProductsItem/OtherProductsItem.fixture.tsx +16 -1
- package/src/components/OtherProductsItem/OtherProductsItem.tsx +6 -5
- package/src/components/PictureText/PictureText.fixture.tsx +1 -1
- package/src/components/Placeholder/Placeholder.fixture.mobile.tsx +1 -1
- package/src/components/Placeholder/Placeholder.fixture.tsx +1 -1
- package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +1 -1
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +13 -1
- package/src/components/ProductBlock/ProductBlockContent.ts +3 -1
- package/src/components/ProductBlock/ProductBlockInner.tsx +26 -22
- package/src/components/ProductGallery/ProductGallery.fixture.tsx +1 -1
- package/src/components/ProductTile/ProductTile.fixture.tsx +1 -1
- package/src/components/PromoTile/PromoTile.fixture.tsx +1 -1
- package/src/components/Recommendation/Recommendation.fixture.tsx +1 -1
- package/src/components/Recommendation/Recommendation.tsx +12 -36
- package/src/components/Recommendation/RecommendationCard.tsx +1 -2
- package/src/components/RollupItem/RollupItem.fixture.tsx +44 -11
- package/src/components/RollupItem/RollupItem.tsx +9 -7
- package/src/components/SafeDepositRental/SafeDepositRental.fixture.tsx +1 -1
- package/src/components/SafeDepositRental/SafeDepositRentalContent.ts +1 -5
- package/src/components/StepsBlock/StepsBlock.fixture.mobile.tsx +1 -1
- package/src/components/StepsBlock/StepsBlock.fixture.tsx +1 -1
- package/src/components/StepsBlock/StepsBlock.tsx +1 -1
- package/src/components/Tabs/Tabs.fixture.tsx +1 -1
- package/src/components/TariffsTable/TariffsTable.fixture.mobile.tsx +1 -1
- package/src/components/TariffsTable/TariffsTable.fixture.tsx +1 -1
- package/src/components/TariffsTable/TariffsTable.mobile.tsx +1 -1
- package/src/components/TariffsTable/TariffsTable.tsx +21 -38
- package/src/components/TariffsTable/TariffsTableRow.tsx +3 -3
- package/src/components/TextBlock/TextBlock.fixture.mobile.tsx +1 -1
- package/src/components/TextBlock/TextBlock.fixture.tsx +1 -1
- package/src/components/Tile/Tile.fixture.tsx +1 -1
- package/src/components/Tile/Tile.tsx +4 -2
- package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +126 -47
- package/src/components/VerticalLayout/VerticalLayout.tsx +3 -2
- package/src/components/Video/Video.fixture.tsx +33 -0
- package/src/components/Video/Video.tsx +29 -0
- package/src/components/Video/Video.ui.json +12 -0
- package/src/components/Video/VideoContent.ts +9 -0
- package/src/components/Video/getPaddings.ts +6 -0
- package/src/hooks/useCarouselControls.ts +33 -19
- package/src/model/JSXBlock.ts +4 -5
- package/src/model/LinkProps.ts +1 -0
- package/src/model/Picture.ts +8 -2
- package/{mobile/src/react → src}/setup-fixture.ts +4 -4
- package/src/ui-kit/Button/Button.fixture.tsx +1 -1
- package/src/ui-kit/Button/renderArrows.tsx +22 -17
- package/src/ui-kit/HeaderItem/HeaderItem.fixture.tsx +1 -1
- package/src/ui-kit/Icon/Icon.fixture.tsx +1 -1
- package/src/ui-kit/InnerTable/InnerTableBodyItem.tsx +9 -13
- package/src/ui-kit/List/List.fixture.tsx +1 -1
- package/src/ui-kit/Logo/Logo.fixture.tsx +1 -1
- package/src/ui-kit/Paragraph/Paragraph.tsx +17 -0
- package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.fixture.tsx +1 -1
- package/src/ui-kit/SwipeListControl/SwipeListControl.fixture.mobile.tsx +24 -8
- package/src/ui-kit/SwipeListControl/SwipeListControl.tsx +35 -28
- package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +32 -27
- package/src/ui-kit/SwipeListControl/SwipeListControlList.tsx +10 -8
- package/src/ui-kit/TableArrowScrollControl/TableArrowScrollControl.tsx +5 -3
- package/src/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.ts +2 -1
- package/src/ui-kit/Text/Text.tsx +79 -0
- package/src/ui-kit/TopItem/TopItem.fixture.tsx +1 -1
- package/bundle/components/Carousel/CarouselNavButtons.d.ts +0 -11
- package/bundle/components/ContentPage/renderBlock.d.ts +0 -15
- package/bundle/components/ContentPage/renderBlockList.d.ts +0 -14
- package/bundle/components/ContentPage/renderSlots.d.ts +0 -12
- package/bundle/model/getParentBlockContent.d.ts +0 -2
- package/bundle/model/getParentBlockDef.d.ts +0 -3
- package/bundle/ui-kit/Description/Description.d.ts +0 -5
- package/bundle/utils/sliceArray.d.ts +0 -1
- package/dist/components/Carousel/CarouselNavButtons.d.ts +0 -11
- package/dist/components/Carousel/CarouselNavButtons.js +0 -36
- package/dist/components/Carousel/CarouselNavButtons.js.map +0 -1
- package/dist/components/ContentPage/renderBlock.d.ts +0 -15
- package/dist/components/ContentPage/renderBlock.js +0 -29
- package/dist/components/ContentPage/renderBlock.js.map +0 -1
- package/dist/components/ContentPage/renderBlockList.d.ts +0 -14
- package/dist/components/ContentPage/renderBlockList.js +0 -11
- package/dist/components/ContentPage/renderBlockList.js.map +0 -1
- package/dist/components/ContentPage/renderSlots.d.ts +0 -12
- package/dist/components/ContentPage/renderSlots.js +0 -15
- package/dist/components/ContentPage/renderSlots.js.map +0 -1
- package/dist/model/getParentBlockContent.d.ts +0 -2
- package/dist/model/getParentBlockContent.js.map +0 -1
- package/dist/model/getParentBlockDef.d.ts +0 -3
- package/dist/model/getParentBlockDef.js +0 -11
- package/dist/model/getParentBlockDef.js.map +0 -1
- package/dist/react/setup-fixture.js.map +0 -1
- package/dist/ui-kit/Description/Description.d.ts +0 -5
- package/dist/ui-kit/Description/Description.js +0 -9
- package/dist/ui-kit/Description/Description.js.map +0 -1
- package/dist/utils/sliceArray.d.ts +0 -1
- package/dist/utils/sliceArray.js +0 -15
- package/dist/utils/sliceArray.js.map +0 -1
- package/lib/components/Carousel/CarouselNavButtons.d.ts +0 -11
- package/lib/components/Carousel/CarouselNavButtons.js +0 -34
- package/lib/components/Carousel/CarouselNavButtons.js.map +0 -1
- package/lib/components/ContentPage/renderBlock.d.ts +0 -15
- package/lib/components/ContentPage/renderBlock.js +0 -26
- package/lib/components/ContentPage/renderBlock.js.map +0 -1
- package/lib/components/ContentPage/renderBlockList.d.ts +0 -14
- package/lib/components/ContentPage/renderBlockList.js +0 -8
- package/lib/components/ContentPage/renderBlockList.js.map +0 -1
- package/lib/components/ContentPage/renderSlots.d.ts +0 -12
- package/lib/components/ContentPage/renderSlots.js +0 -12
- package/lib/components/ContentPage/renderSlots.js.map +0 -1
- package/lib/model/getParentBlockContent.d.ts +0 -2
- package/lib/model/getParentBlockContent.js +0 -6
- package/lib/model/getParentBlockContent.js.map +0 -1
- package/lib/model/getParentBlockDef.d.ts +0 -3
- package/lib/model/getParentBlockDef.js +0 -8
- package/lib/model/getParentBlockDef.js.map +0 -1
- package/lib/react/setup-fixture.js.map +0 -1
- package/lib/ui-kit/Description/Description.d.ts +0 -5
- package/lib/ui-kit/Description/Description.js +0 -7
- package/lib/ui-kit/Description/Description.js.map +0 -1
- package/lib/utils/sliceArray.d.ts +0 -1
- package/lib/utils/sliceArray.js +0 -12
- package/lib/utils/sliceArray.js.map +0 -1
- package/mobile/bundle/components/Carousel/CarouselNavButtons.d.ts +0 -11
- package/mobile/bundle/components/ContentPage/renderBlock.d.ts +0 -15
- package/mobile/bundle/components/ContentPage/renderBlockList.d.ts +0 -14
- package/mobile/bundle/components/ContentPage/renderSlots.d.ts +0 -12
- package/mobile/bundle/model/getParentBlockContent.d.ts +0 -2
- package/mobile/bundle/model/getParentBlockDef.d.ts +0 -3
- package/mobile/bundle/ui-kit/Description/Description.d.ts +0 -5
- package/mobile/bundle/utils/sliceArray.d.ts +0 -1
- package/mobile/dist/components/Carousel/CarouselNavButtons.d.ts +0 -11
- package/mobile/dist/components/Carousel/CarouselNavButtons.js +0 -36
- package/mobile/dist/components/Carousel/CarouselNavButtons.js.map +0 -1
- package/mobile/dist/components/ContentPage/renderBlock.d.ts +0 -15
- package/mobile/dist/components/ContentPage/renderBlock.js +0 -29
- package/mobile/dist/components/ContentPage/renderBlock.js.map +0 -1
- package/mobile/dist/components/ContentPage/renderBlockList.d.ts +0 -14
- package/mobile/dist/components/ContentPage/renderBlockList.js +0 -11
- package/mobile/dist/components/ContentPage/renderBlockList.js.map +0 -1
- package/mobile/dist/components/ContentPage/renderSlots.d.ts +0 -12
- package/mobile/dist/components/ContentPage/renderSlots.js +0 -15
- package/mobile/dist/components/ContentPage/renderSlots.js.map +0 -1
- package/mobile/dist/model/getParentBlockContent.d.ts +0 -2
- package/mobile/dist/model/getParentBlockContent.js.map +0 -1
- package/mobile/dist/model/getParentBlockDef.d.ts +0 -3
- package/mobile/dist/model/getParentBlockDef.js +0 -11
- package/mobile/dist/model/getParentBlockDef.js.map +0 -1
- package/mobile/dist/react/setup-fixture.js.map +0 -1
- package/mobile/dist/ui-kit/Description/Description.d.ts +0 -5
- package/mobile/dist/ui-kit/Description/Description.js +0 -9
- package/mobile/dist/ui-kit/Description/Description.js.map +0 -1
- package/mobile/dist/utils/sliceArray.d.ts +0 -1
- package/mobile/dist/utils/sliceArray.js +0 -15
- package/mobile/dist/utils/sliceArray.js.map +0 -1
- package/mobile/lib/components/Carousel/CarouselNavButtons.d.ts +0 -11
- package/mobile/lib/components/Carousel/CarouselNavButtons.js +0 -34
- package/mobile/lib/components/Carousel/CarouselNavButtons.js.map +0 -1
- package/mobile/lib/components/ContentPage/renderBlock.d.ts +0 -15
- package/mobile/lib/components/ContentPage/renderBlock.js +0 -26
- package/mobile/lib/components/ContentPage/renderBlock.js.map +0 -1
- package/mobile/lib/components/ContentPage/renderBlockList.d.ts +0 -14
- package/mobile/lib/components/ContentPage/renderBlockList.js +0 -8
- package/mobile/lib/components/ContentPage/renderBlockList.js.map +0 -1
- package/mobile/lib/components/ContentPage/renderSlots.d.ts +0 -12
- package/mobile/lib/components/ContentPage/renderSlots.js +0 -12
- package/mobile/lib/components/ContentPage/renderSlots.js.map +0 -1
- package/mobile/lib/model/getParentBlockContent.d.ts +0 -2
- package/mobile/lib/model/getParentBlockContent.js +0 -6
- package/mobile/lib/model/getParentBlockContent.js.map +0 -1
- package/mobile/lib/model/getParentBlockDef.d.ts +0 -3
- package/mobile/lib/model/getParentBlockDef.js +0 -8
- package/mobile/lib/model/getParentBlockDef.js.map +0 -1
- package/mobile/lib/react/setup-fixture.js.map +0 -1
- package/mobile/lib/ui-kit/Description/Description.d.ts +0 -5
- package/mobile/lib/ui-kit/Description/Description.js +0 -7
- package/mobile/lib/ui-kit/Description/Description.js.map +0 -1
- package/mobile/lib/utils/sliceArray.d.ts +0 -1
- package/mobile/lib/utils/sliceArray.js +0 -12
- package/mobile/lib/utils/sliceArray.js.map +0 -1
- package/mobile/src/components/Carousel/CarouselNavButtons.tsx +0 -51
- package/mobile/src/components/ContentPage/renderBlock.tsx +0 -61
- package/mobile/src/components/ContentPage/renderBlockList.tsx +0 -28
- package/mobile/src/components/ContentPage/renderSlots.tsx +0 -32
- package/mobile/src/model/getParentBlockDef.ts +0 -12
- package/mobile/src/ui-kit/Description/Description.tsx +0 -12
- package/mobile/src/utils/sliceArray.ts +0 -15
- package/src/components/Carousel/CarouselNavButtons.tsx +0 -51
- package/src/components/ContentPage/renderBlock.tsx +0 -61
- package/src/components/ContentPage/renderBlockList.tsx +0 -28
- package/src/components/ContentPage/renderSlots.tsx +0 -32
- package/src/model/.CarouselCardVersion.ts.icloud +0 -0
- package/src/model/getParentBlockDef.ts +0 -12
- package/src/ui-kit/Description/Description.tsx +0 -12
- package/src/utils/sliceArray.ts +0 -15
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { SlotName } from '../model/BlockDecorator';
|
|
2
|
+
import type { BlockDef } from '../model/ContentPageDef';
|
|
3
|
+
import type { VNode } from '../model/VNode';
|
|
4
|
+
import type { BlockRendererOptions } from './BlockRendererOptions';
|
|
5
|
+
export interface BlocksListRendererProps extends BlockRendererOptions {
|
|
6
|
+
slotName?: SlotName;
|
|
7
|
+
renderChild?: (block: BlockDef, options: BlockRendererOptions) => VNode;
|
|
8
|
+
}
|
|
9
|
+
export declare const renderBlocksList: (blocks: BlockDef[] | undefined, { key, ancestors, slotName, renderChild, ...options }: BlocksListRendererProps) => VNode[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DEFAULT_SLOT_NAME } from '../model/BlockDecorator.js';
|
|
2
|
+
import { renderBlock } from './renderBlock.js';
|
|
3
|
+
const EMPTY_ANCESTORS = [];
|
|
4
|
+
export const renderBlocksList = (blocks, { key, ancestors = EMPTY_ANCESTORS, slotName = DEFAULT_SLOT_NAME, renderChild = renderBlock, ...options }) => (blocks || []).map((_, j) => renderChild(_, {
|
|
5
|
+
...options,
|
|
6
|
+
key: `${key ? key : _.type}-${j}`,
|
|
7
|
+
ancestors: options.parent
|
|
8
|
+
? [...(ancestors || EMPTY_ANCESTORS), [options.parent, slotName]]
|
|
9
|
+
: ancestors,
|
|
10
|
+
}));
|
|
11
|
+
//# sourceMappingURL=renderBlockList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderBlockList.js","sourceRoot":"","sources":["../../src/BlockRenderer/renderBlockList.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAI5D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAO5C,MAAM,eAAe,GAAmB,EAAE,CAAC;AAE3C,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC9B,MAA8B,EAC9B,EACE,GAAG,EACH,SAAS,GAAG,eAAe,EAC3B,QAAQ,GAAG,iBAAiB,EAC5B,WAAW,GAAG,WAAW,EACzB,GAAG,OAAO,EACc,EACjB,EAAE,CACX,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAW,EAAE,CAAS,EAAE,EAAE,CAC5C,WAAW,CAAC,CAAC,EAAE;IACb,GAAG,OAAO;IACV,GAAG,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,EAAE;IACjC,SAAS,EAAE,OAAO,CAAC,MAAM;QACvB,CAAC,CAAC,CAAC,GAAG,CAAC,SAAS,IAAI,eAAe,CAAC,EAAE,CAAC,OAAO,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACjE,CAAC,CAAC,SAAS;CACd,CAAC,CACH,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { BlockDef } from '../model/ContentPageDef';
|
|
2
|
+
import type { UniBlockProps } from '../model/JSXBlock';
|
|
3
|
+
import type { VNode } from '../model/VNode';
|
|
4
|
+
import type { BlockRendererOptions } from './BlockRendererOptions';
|
|
5
|
+
interface ChildrenRendererProps extends UniBlockProps {
|
|
6
|
+
children?: VNode;
|
|
7
|
+
renderChild?: (block: BlockDef, options: BlockRendererOptions) => VNode;
|
|
8
|
+
}
|
|
9
|
+
export declare function renderChildren({ children, block, options, renderChild, }: ChildrenRendererProps): VNode[] | null;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { renderBlocksList } from './renderBlockList.js';
|
|
2
|
+
export function renderChildren({ children, block, options, renderChild, }) {
|
|
3
|
+
if (children) {
|
|
4
|
+
return children;
|
|
5
|
+
}
|
|
6
|
+
return block && options
|
|
7
|
+
? renderBlocksList(block.blocks, { ...options, parent: block, renderChild })
|
|
8
|
+
: null;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=renderChildren.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderChildren.js","sourceRoot":"","sources":["../../src/BlockRenderer/renderChildren.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAOrD,MAAM,UAAU,cAAc,CAAC,EAC7B,QAAQ,EACR,KAAK,EACL,OAAO,EACP,WAAW,GACW;IACtB,IAAI,QAAQ,EAAE;QACZ,OAAO,QAAQ,CAAC;KACjB;IAED,OAAO,KAAK,IAAI,OAAO;QACrB,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,MAAM,EAAE,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC;QAC5E,CAAC,CAAC,IAAI,CAAC;AACX,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
+
import { renderChildren } from '../../BlockRenderer/renderChildren.js';
|
|
3
4
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
|
|
4
5
|
import { Heading } from '../../ui-kit/Heading/Heading.js';
|
|
6
|
+
import { Paragraph } from '../../ui-kit/Paragraph/Paragraph.js';
|
|
5
7
|
import { AccordionItemsList } from './AccordionItemsList.js';
|
|
6
|
-
export const Accordion = JSX(({ title, description, className = '',
|
|
8
|
+
export const Accordion = JSX(({ title, description, className = '', ...rest }) => (_jsxs(BlockWrapper, { className: `py-6 px-4 bg-white text-primary-text ${className}`, ...rest, children: [title ? _jsx(Heading, { headingType: "h3", className: "mb-2 text-center", title: title }) : null, description ? (_jsx("div", { className: "mb-5", children: _jsx(Paragraph, { size: "text-m", font: "font-light", align: "text-center", children: description }) })) : null, _jsx(AccordionItemsList, { children: renderChildren(rest) })] })));
|
|
7
9
|
Accordion.childrenTypes = ['AccordionItem'];
|
|
8
10
|
//# sourceMappingURL=Accordion.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Accordion.js","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"Accordion.js","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAEpE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAE7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAI1D,MAAM,CAAC,MAAM,SAAS,GAA6B,GAAG,CACpD,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CACnD,MAAC,YAAY,IAAC,SAAS,EAAE,wCAAwC,SAAS,EAAE,KAAM,IAAI,aACnF,KAAK,CAAC,CAAC,CAAC,KAAC,OAAO,IAAC,WAAW,EAAC,IAAI,EAAC,SAAS,EAAC,kBAAkB,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EACtF,WAAW,CAAC,CAAC,CAAC,CACb,cAAK,SAAS,EAAC,MAAM,YACnB,KAAC,SAAS,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,EAAC,KAAK,EAAC,aAAa,YAC3D,WAAW,GACF,GACR,CACP,CAAC,CAAC,CAAC,IAAI,EACR,KAAC,kBAAkB,cAAE,cAAc,CAAC,IAAI,CAAC,GAAsB,IAClD,CAChB,CACF,CAAC;AAEF,SAAS,CAAC,aAAa,GAAG,CAAC,eAAe,CAAC,CAAC"}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { getParentBlockContent } from '../../
|
|
3
|
+
import { getParentBlockContent } from '../../BlockRenderer/getParentBlockContent.js';
|
|
4
|
+
import { renderChildren } from '../../BlockRenderer/renderChildren.js';
|
|
4
5
|
import { Foldable } from '../../ui-kit/Foldable/Foldable.js';
|
|
5
6
|
import { FoldableSection } from '../../ui-kit/Foldable/FoldableSection.js';
|
|
6
7
|
import { Img } from '../../ui-kit/Img/Img.js';
|
|
8
|
+
import { Text } from '../../ui-kit/Text/Text.js';
|
|
7
9
|
import { getIconWithVersion } from '../../utils/getIconWithVersion.js';
|
|
8
10
|
const icons = ['PlusIcon', 'MinusIcon'];
|
|
9
|
-
export const AccordionItem = JSX(({ className = '',
|
|
10
|
-
const { bordered } = getParentBlockContent(
|
|
11
|
-
return (_jsx("li", { className: `${bordered ? 'border p-4 rounded mb-4' : 'border-0 border-b last:border-b-0'} border-solid border-main-divider ${className}`, children: _jsx(Foldable, { isFoldButtonOnTop: true, unfoldedByDefault: isExpanded, renderFoldableSection: ({ isUnfolded }) => (_jsx(FoldableSection, { className: "flex flex-wrap group-last:last:pb-0 gap-5 [&>*]:p-0", isUnfolded: isUnfolded, children:
|
|
11
|
+
export const AccordionItem = JSX(({ className = '', label = '', labelIcon, isExpanded, ...rest }) => {
|
|
12
|
+
const { bordered } = getParentBlockContent(rest.options, {});
|
|
13
|
+
return (_jsx("li", { className: `${bordered ? 'border p-4 rounded mb-4' : 'border-0 border-b last:border-b-0'} border-solid border-main-divider ${className}`, children: _jsx(Foldable, { isFoldButtonOnTop: true, unfoldedByDefault: isExpanded, renderFoldableSection: ({ isUnfolded }) => (_jsx(FoldableSection, { className: "flex flex-wrap group-last:last:pb-0 gap-5 [&>*]:p-0", isUnfolded: isUnfolded, children: renderChildren(rest) })), renderFoldButton: ({ isUnfolded, onToggle }) => (_jsx(FoldButton, { className: bordered ? '' : 'py-[14px] px-0', label: label, icon: icons[Number(isUnfolded)], primaryIcon: labelIcon, onClick: onToggle })) }) }));
|
|
12
14
|
});
|
|
13
15
|
AccordionItem.childrenTypes = [];
|
|
14
|
-
const FoldButton = JSX(({ className, icon, label, primaryIcon, onClick }) => (_jsxs("button", { className: `border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text group cursor-pointer ${className}`, onClick: onClick, children: [_jsxs("
|
|
16
|
+
const FoldButton = JSX(({ className, icon, label, primaryIcon, onClick }) => (_jsxs("button", { className: `border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text group cursor-pointer ${className}`, onClick: onClick, children: [_jsxs("div", { className: "flex group-hover:text-primary-main", children: [primaryIcon ? (_jsx(Img, { image: getIconWithVersion(primaryIcon), className: "mr-3 flex-shrink-0", width: "24", height: "24", asSVG: true })) : null, _jsx(Text, { size: "text-m-title-xs", font: "font-medium", children: label })] }), _jsx(Img, { className: "flex-shrink-0", image: getIconWithVersion({ icon: icon }), width: "24", height: "24", asSVG: true })] })));
|
|
15
17
|
//# sourceMappingURL=AccordionItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccordionItem.js","sourceRoot":"","sources":["../../../src/components/AccordionItem/AccordionItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,qBAAqB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"AccordionItem.js","sourceRoot":"","sources":["../../../src/components/AccordionItem/AccordionItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAC;AAClF,OAAO,EAAE,cAA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AC/B,WAAW,EAAE,SAAS,EACtB,OAAO,EAAE,QAAQ,GACjB,CACH,GACD,GACC,CACN,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,aAAa,CAAC,aAAa,GAAG,EAAE,CAAC;AAUjC,MAAM,UAAU,GAAG,GAAG,CAAkB,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAC5F,kBACE,SAAS,EAAE,qHAAqH,SAAS,EAAE,EAC3I,OAAO,EAAE,OAAO,aAEhB,eAAK,SAAS,EAAC,oCAAoC,aAChD,WAAW,CAAC,CAAC,CAAC,CACb,KAAC,GAAG,IACF,KAAK,EAAE,kBAAkB,CAAC,WAAW,CAAC,EACtC,SAAS,EAAC,oBAAoB,EAC9B,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,CACH,CAAC,CAAC,CAAC,IAAI,EACR,KAAC,IAAI,IAAC,IAAI,EAAC,iBAAiB,EAAC,IAAI,EAAC,aAAa,YAC5C,KAAK,GACD,IACH,EACN,KAAC,GAAG,IACF,SAAS,EAAC,eAAe,EACzB,KAAK,EAAE,kBAAkB,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EACzC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,IACK,CACV,CAAC,CAAC"}
|
|
@@ -1,11 +1,23 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
+
import { AlignText } from '../../model/AlignText.js';
|
|
3
4
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
|
|
4
5
|
import { Img } from '../../ui-kit/Img/Img.js';
|
|
5
6
|
import { Headline } from '../Headline/Headline.js';
|
|
6
|
-
export const BonusBenefitsBlock = JSX(({
|
|
7
|
-
const renderBonusBenefit = (
|
|
8
|
-
return (_jsxs("div", { className: "flex flex-col items-center
|
|
7
|
+
export const BonusBenefitsBlock = JSX(({ bonusBenefits, cardTextAlign = 'center', className = '', columnsCount = '4', subtitle, title, ...rest }) => (_jsxs(BlockWrapper, { className: `font-sans text-primary-text bg-white p-[50px] flex flex-col text-center ${className}`, ...rest, children: [_jsx(Headline, { className: "!p-0 mb-8", title: title, description: subtitle, headlineVersion: "M", align: "center", ...rest }), bonusBenefits?.length ? (_jsx("div", { className: `grid gap-1 ${AlignText[cardTextAlign]} ${getElementsColsValue(columnsCount)}`, children: bonusBenefits.map(renderBonusBenefit) })) : null] })));
|
|
8
|
+
const renderBonusBenefit = ({ icon, label, description }, i) => {
|
|
9
|
+
return (_jsxs("div", { className: "flex flex-col items-center text-h6", children: [description ? _jsx("span", { children: description }) : null, icon ? _jsx(Img, { image: icon, height: "180", width: "auto", className: "h-[180px] w-auto" }) : null, _jsx("div", { children: label ? _jsx("span", { children: label }) : null })] }, String(i)));
|
|
10
|
+
};
|
|
11
|
+
const getElementsColsValue = (colValue) => {
|
|
12
|
+
switch (colValue) {
|
|
13
|
+
case '3':
|
|
14
|
+
return 'grid-cols-3';
|
|
15
|
+
case '4':
|
|
16
|
+
return 'grid-cols-4';
|
|
17
|
+
case '5':
|
|
18
|
+
return 'grid-cols-5';
|
|
19
|
+
default:
|
|
20
|
+
return 'grid-cols-5';
|
|
21
|
+
}
|
|
9
22
|
};
|
|
10
|
-
const getElementsColsValue = (colValue) => colValue === '4' ? 'grid-cols-4' : 'grid-cols-5';
|
|
11
23
|
//# sourceMappingURL=BonusBenefitsBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BonusBenefitsBlock.js","sourceRoot":"","sources":["../../../src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"BonusBenefitsBlock.js","source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,KAAC,GAAG,IAAC,KAAK,EAAE,IAAI,EAAE,MAAM,EAAC,KAAK,EAAC,KAAK,EAAC,MAAM,EAAC,SAAS,EAAC,kBAAkB,GAAG,CAAC,CAAC,CAAC,IAAI,EAC1F,wBAAM,KAAK,CAAC,CAAC,CAAC,yBAAO,KAAK,GAAQ,CAAC,CAAC,CAAC,IAAI,GAAO,KAHxC,MAAM,CAAC,CAAC,CAAC,CAIb,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,oBAAoB,GAAG,CAAC,QAAsB,EAAE,EAAE;IACtD,QAAQ,QAAQ,EAAE;QAChB,KAAK,GAAG;YACN,OAAO,aAAa,CAAC;QACvB,KAAK,GAAG;YACN,OAAO,aAAa,CAAC;QACvB,KAAK,GAAG;YACN,OAAO,aAAa,CAAC;QACvB;YACE,OAAO,aAAa,CAAC;KACxB;AACH,CAAC,CAAC"}
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AlignType } from '../../model/AlignType';
|
|
2
|
+
import type { DescriptionProps, LabelProps, TitleProps } from '../../model/HeadlineType';
|
|
2
3
|
import type { IconProps } from '../../model/Picture';
|
|
3
4
|
/**
|
|
4
5
|
* @title Количество элементов в строке
|
|
5
6
|
* @enumNames [
|
|
7
|
+
* "Три колонки",
|
|
6
8
|
* "Четыре колонки",
|
|
7
9
|
* "Пять колонок",
|
|
8
10
|
* ]
|
|
9
11
|
*/
|
|
10
|
-
export declare type ColumnsCount = '4' | '5';
|
|
12
|
+
export declare type ColumnsCount = '3' | '4' | '5';
|
|
11
13
|
/**
|
|
12
14
|
* @title Бонус и преимущество
|
|
13
15
|
*/
|
|
14
|
-
export declare type BonusBenefit = LabelProps & IconProps;
|
|
16
|
+
export declare type BonusBenefit = LabelProps & IconProps & DescriptionProps;
|
|
15
17
|
/**
|
|
16
18
|
* @title Блок бонусов и преимуществ
|
|
17
19
|
*/
|
|
@@ -21,4 +23,5 @@ export declare type BonusBenefitsBlockContent = TitleProps & {
|
|
|
21
23
|
/** @title Список бонусов */
|
|
22
24
|
bonusBenefits?: BonusBenefit[];
|
|
23
25
|
columnsCount?: ColumnsCount;
|
|
26
|
+
cardTextAlign?: AlignType;
|
|
24
27
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsxs as _jsxs, jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
4
|
+
import { useCarouselControls } from '../../hooks/useCarouselControls.js';
|
|
4
5
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
|
|
5
6
|
import { renderArrows } from '../../ui-kit/Button/renderArrows.js';
|
|
6
7
|
import { Img } from '../../ui-kit/Img/Img.js';
|
|
@@ -8,46 +9,45 @@ import { renderCalculatorBlock } from './renderCalculatorBlock.js';
|
|
|
8
9
|
export const Calculator = JSX(({ className = '', calculatorTabs = [], ...rest }) => {
|
|
9
10
|
const tabsNav = calculatorTabs.map((_) => _.nav || {});
|
|
10
11
|
const calculatorBlocks = calculatorTabs.map(({ calculatorBlock }) => calculatorBlock || {});
|
|
11
|
-
const [
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
const [slideIndexShift, setSlideIndexShift] = useState(0);
|
|
13
|
+
const handleSlideIndexShift = useCallback((_) => setSlideIndexShift(_), []);
|
|
14
|
+
const COLUMNS_FOR_SCROLL = 3;
|
|
15
|
+
const [activeIndex, controls] = useCarouselControls({
|
|
16
|
+
itemCount: calculatorTabs?.length,
|
|
17
|
+
visibleItemCount: COLUMNS_FOR_SCROLL,
|
|
18
|
+
});
|
|
18
19
|
return (_jsxs(BlockWrapper, { className: `box-border overflow-hidden relative font-sans w-100 text-primary-text bg-white ${className}`, ...rest, children: [_jsxs("div", { className: "bg-white", children: [tabsNav.length > 1
|
|
19
|
-
? renderTabs({
|
|
20
|
+
? renderTabs({ activeIndex, tabsNav, slideIndexShift, onClick: handleSlideIndexShift })
|
|
20
21
|
: null, renderArrows({
|
|
21
|
-
|
|
22
|
-
isShown: [showPrevButton, showNextButton],
|
|
22
|
+
...controls,
|
|
23
23
|
btnClass: ['left-3', 'right-3'],
|
|
24
24
|
className: 'top-8',
|
|
25
|
-
})] }), _jsx("div", { className: "flex", style: { transform: `translateX(-${
|
|
25
|
+
})] }), _jsx("div", { className: "flex", style: { transform: `translateX(-${slideIndexShift}00%)` }, role: "list", children: calculatorBlocks?.length ? calculatorBlocks.map(renderCalculatorBlock) : null })] }));
|
|
26
26
|
});
|
|
27
|
-
function renderNavButton({ tab, i,
|
|
28
|
-
const
|
|
29
|
-
const btnClassName = isActiveBtn
|
|
27
|
+
function renderNavButton({ tab, i, isActive, onClick }) {
|
|
28
|
+
const btnClassName = isActive
|
|
30
29
|
? 'h-[88px] w-[387px] min-w-[387px] p-5 border-none bg-primary-main text-white'
|
|
31
30
|
: `h-[77px] w-[328px] min-w-[328px] px-5 py-4 ease-in duration-300 bg-white text-primary-text`;
|
|
32
|
-
const btnTitleClassName =
|
|
33
|
-
const btnDescClassName =
|
|
31
|
+
const btnTitleClassName = isActive ? 'text-xl mb-1.5' : `text-l mb-[3px]`;
|
|
32
|
+
const btnDescClassName = isActive
|
|
34
33
|
? 'text-l-light text-white'
|
|
35
34
|
: `text-m-light text-secondary-text`;
|
|
36
|
-
const iconClassName =
|
|
35
|
+
const iconClassName = isActive ? '' : `text-primary-main`;
|
|
37
36
|
const iconVersion = tab?.icon?.iconVersion;
|
|
38
|
-
const activeIconStyle =
|
|
37
|
+
const activeIconStyle = isActive ? 'white' : 'normal';
|
|
39
38
|
return (_jsxs("button", { type: "button", onClick: onClick, "aria-label": tab?.title, className: `box-border relative border border-main-stroke cursor-pointer text-left border-b-0 flex hover:h-[88px]
|
|
40
39
|
${btnClassName}`, children: [_jsx(Img, { className: `h-6 w-6 min-w-6 min-h-6 mr-4 ${iconClassName}`, image: {
|
|
41
40
|
...tab?.icon,
|
|
42
41
|
iconVersion: iconVersion ?? activeIconStyle,
|
|
43
42
|
}, width: "24", height: "24", asSVG: true }), _jsxs("div", { className: "border-0", children: [_jsx("div", { className: `${btnTitleClassName}`, children: tab?.title }), _jsx("div", { className: `${btnDescClassName}`, children: tab.description })] })] }, String(i)));
|
|
44
43
|
}
|
|
45
|
-
function renderTabs({
|
|
46
|
-
|
|
44
|
+
function renderTabs({ activeIndex, tabsNav, slideIndexShift, onClick }) {
|
|
45
|
+
const CARD_SHIFT = 388;
|
|
46
|
+
return (_jsxs("div", { children: [_jsx("div", { style: { transform: `translateX(-${activeIndex * CARD_SHIFT}px)` }, className: "flex flex-col justify-end items-center h-[126px] pt-9 box-border duration-1000", children: _jsx("div", { className: "w-full flex flex-nowrap items-end gap-2", children: tabsNav.map((tab, i) => renderNavButton({
|
|
47
47
|
tab,
|
|
48
48
|
i,
|
|
49
|
-
|
|
50
|
-
onClick: () =>
|
|
49
|
+
isActive: Boolean(i === slideIndexShift),
|
|
50
|
+
onClick: () => onClick(i),
|
|
51
51
|
})) }) }), _jsx("div", { className: "w-full h-2 bg-primary-main" })] }));
|
|
52
52
|
}
|
|
53
53
|
//# sourceMappingURL=Calculator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Calculator.js","sourceRoot":"","sources":["../../../src/components/Calculator/Calculator.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"Calculator.js","sourceRoot":"","sources":["../../../src/components/Calculator/Calculator.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,QAA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AAE,aAEhB,KAAC,GAAG,IACF,SAAS,EAAE,gCAAgC,aAAa,EAAE,EAC1D,KAAK,EAAE;oBACL,GAAG,GAAG,EAAE,IAAI;oBACZ,WAAW,EAAE,WAAW,IAAI,eAAe;iBAC5C,EACD,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,EACF,eAAK,SAAS,EAAC,UAAU,aACvB,cAAK,SAAS,EAAE,GAAG,iBAAiB,EAAE,YAAG,GAAG,EAAE,KAAK,GAAO,EAC1D,cAAK,SAAS,EAAE,GAAG,gBAAgB,EAAE,YAAG,GAAG,CAAC,WAAW,GAAO,IAC1D,KAnBD,MAAM,CAAC,CAAC,CAAC,CAoBP,CACV,CAAC;AACJ,CAAC;AAED,SAAS,UAAU,CAAC,EAAE,WAAW,EAAE,OAAO,EAAE,eAAe,EAAE,OAAO,EAAa;IAC/E,MAAM,UAAU,GAAG,GAAG,CAAC;IAEvB,OAAO,CACL,0BACE,cACE,KAAK,EAAE,EAAE,SAAS,EAAE,eAAe,WAAW,GAAG,UAAU,KAAK,EAAE,EAClE,SAAS,EAAC,gFAAgF,YAE1F,cAAK,SAAS,EAAC,yCAAyC,YACrD,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CACtB,eAAe,CAAC;wBACd,GAAG;wBACH,CAAC;wBACD,QAAQ,EAAE,OAAO,CAAC,CAAC,KAAK,eAAe,CAAC;wBACxC,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;qBAC1B,CAAC,CACH,GACG,GACF,EACN,cAAK,SAAS,EAAC,4BAA4B,GAAG,IAC1C,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
import { addSpacesBetweenNumbers } from '../../utils/addSpacesBetweenNumbers.js';
|
|
4
|
-
export const CalculatorValueBlock = JSX(({ title, value, postfix = '', prefix, className = '' }) => {
|
|
5
|
-
return (_jsxs("div", { className: `mb-7 ${className}`, children: [title ? _jsx("div", { className: "text-l-light text-secondary-text", children: title }) : null, value ? (_jsxs("div", { className: "text-h3", children: [prefix, " ", addSpacesBetweenNumbers(Math.round(value)), " ", postfix] })) : null] }));
|
|
6
|
-
});
|
|
4
|
+
export const CalculatorValueBlock = JSX(({ title, value, postfix = '', prefix, className = '' }) => (_jsxs("div", { className: `mb-7 ${className}`, children: [title ? _jsx("div", { className: "text-l-light text-secondary-text", children: title }) : null, value ? (_jsxs("div", { className: "text-h3", children: [prefix, " ", addSpacesBetweenNumbers(Math.round(value)), " ", postfix] })) : null] })));
|
|
7
5
|
//# sourceMappingURL=CalculatorValueBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CalculatorValueBlock.js","sourceRoot":"","sources":["../../../src/components/Calculator/CalculatorValueBlock.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAU9E,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CACrC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,EAAE,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,EAAE,EAAE
|
|
1
|
+
{"version":3,"file":"CalculatorValueBlock.js","sourceRoot":"","sources":["../../../src/components/Calculator/CalculatorValueBlock.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAU9E,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CACrC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,EAAE,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,EAAE,EAAE,CAAC,CAC1D,eAAK,SAAS,EAAE,QAAQ,SAAS,EAAE,aAChC,KAAK,CAAC,CAAC,CAAC,cAAK,SAAS,EAAC,kCAAkC,YAAE,KAAK,GAAO,CAAC,CAAC,CAAC,IAAI,EAC9E,KAAK,CAAC,CAAC,CAAC,CACP,eAAK,SAAS,EAAC,SAAS,aACrB,MAAM,OAAG,uBAAuB,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,OAAG,OAAO,IAC1D,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CACF,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
4
4
|
import { useLink } from '../../hooks/useLink.js';
|
|
5
5
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
|
|
6
6
|
import { getDisabledButtonClasses } from '../../ui-kit/Button/getDisabledButtonClasses.js';
|
|
@@ -15,11 +15,12 @@ const DEFAULT_LABEL = 'Сумма перевода';
|
|
|
15
15
|
const DEFAULT_PLACEHOLDER = '1500';
|
|
16
16
|
export const CardTransfer = JSX(({ className = '', title = DEFAULT_TITLE, label = DEFAULT_LABEL, placeholder = DEFAULT_PLACEHOLDER, button, ...rest }) => {
|
|
17
17
|
const [value, setValue] = useState('');
|
|
18
|
+
const handleChange = useCallback((_) => setValue(_), []);
|
|
18
19
|
const isDisabled = !Number(getSanitizedValue(value));
|
|
19
20
|
const buttonStyle = isDisabled
|
|
20
21
|
? getDisabledButtonClasses({ version: button?.version })
|
|
21
22
|
: getRegularButtonClasses({ className: 'text-white', version: button?.version });
|
|
22
23
|
const link = useLink();
|
|
23
|
-
return (_jsxs(BlockWrapper, { className: `p-[50px] flex flex-col items-center font-sans bg-white ${className}`, ...rest, children: [title ? _jsx(Heading, { className: "max-w-[684px] pb-9", headingType: "h2", title: title }) : null, _jsxs("form", { className: "w-[468px]", method: "POST", action: FORM_URL, children: [_jsx(CurrencyInput, { name: AMOUNT_KEY, value: value, onChange:
|
|
24
|
+
return (_jsxs(BlockWrapper, { className: `p-[50px] flex flex-col items-center font-sans bg-white ${className}`, ...rest, children: [title ? _jsx(Heading, { className: "max-w-[684px] pb-9", headingType: "h2", title: title }) : null, _jsxs("form", { className: "w-[468px]", method: "POST", action: FORM_URL, children: [_jsx(CurrencyInput, { name: AMOUNT_KEY, value: value, onChange: handleChange, valid: value === '' || !isDisabled, placeholder: placeholder, label: label }), button?.text ? (_jsx("button", { type: "submit", className: `w-full p-4 mt-6 ${buttonStyle} `, disabled: isDisabled, ...link(button), children: button.text })) : null] })] }));
|
|
24
25
|
});
|
|
25
26
|
//# sourceMappingURL=CardTransfer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardTransfer.js","sourceRoot":"","sources":["../../../src/components/CardTransfer/CardTransfer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"CardTransfer.js","sourceRoot":"","sources":["../../../src/components/CardTransfer/CardTransfer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAC;AACxF,OAAO,EAAE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CAAC,KAAC,OAAO,IAAC,SAAS,EAAC,oBAAoB,EAAC,WAAW,EAAC,IAAI,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EACzF,gBAAM,SAAS,EAAC,WAAW,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,EAAE,QAAQ,aACxD,KAAC,aAAa,IACZ,IAAI,EAAE,UAAU,EAChB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,YAAY,EACtB,KAAK,EAAE,KAAK,KAAK,EAAE,IAAI,CAAC,UAAU,EAClC,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,KAAK,GACZ,EACD,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,CACd,iBACE,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,mBAAmB,WAAW,GAAG,EAC5C,QAAQ,EAAE,UAAU,KAChB,IAAI,CAAC,MAAM,CAAC,YAEf,MAAM,CAAC,IAAI,GACL,CACV,CAAC,CAAC,CAAC,IAAI,IACH,IACM,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { JSXBlock, UniBlockProps } from '../../model/JSXBlock';
|
|
2
2
|
import type { CarouselContent } from './CarouselContent';
|
|
3
3
|
export interface CarouselProps extends CarouselContent, UniBlockProps {
|
|
4
|
+
itemCount?: number;
|
|
4
5
|
}
|
|
5
6
|
export declare const Carousel: JSXBlock<CarouselProps>;
|
|
@@ -1,26 +1,28 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
+
import { useRef } from '@redneckz/uni-jsx/lib/hooks';
|
|
4
|
+
import { renderChildren } from '../../BlockRenderer/renderChildren.js';
|
|
3
5
|
import { useCarouselControls } from '../../hooks/useCarouselControls.js';
|
|
4
6
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
|
|
5
7
|
import { renderArrows } from '../../ui-kit/Button/renderArrows.js';
|
|
6
8
|
import { CarouselContainer } from './CarouselContainer.js';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const { blocks: childBlocks } = block || {};
|
|
10
|
-
const
|
|
11
|
-
const
|
|
9
|
+
const blurBaseStyle = 'absolute top-0 bottom-0 z-50 w-[84px]';
|
|
10
|
+
export const Carousel = JSX(({ className = '', itemCount, visibleItemCount, isBlur = true, isCyclic = false, ...rest }) => {
|
|
11
|
+
const { blocks: childBlocks } = rest.block || {};
|
|
12
|
+
const count = itemCount || childBlocks?.length || 0;
|
|
13
|
+
const containerRef = useRef(null);
|
|
12
14
|
const [activeIndex, controls] = useCarouselControls({
|
|
13
|
-
|
|
14
|
-
visibleItemCount
|
|
15
|
+
itemCount: count,
|
|
16
|
+
visibleItemCount,
|
|
15
17
|
isCyclic,
|
|
18
|
+
container: containerRef.current,
|
|
16
19
|
});
|
|
17
|
-
const {
|
|
18
|
-
return (_jsxs(BlockWrapper, { className: `
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}) })) : null, isScrollAvailable ? (_jsxs("div", { children: [_jsx("div", { className: `${blurClasses} left-0 bg-opacity-from-white` }), _jsx("div", { className: `${blurClasses} right-0 bg-opacity-to-white` })] })) : null] }));
|
|
20
|
+
const { isScrollAvailable } = controls;
|
|
21
|
+
return (_jsxs(BlockWrapper, { className: `relative font-sans overflow-hidden ${className}`, ...rest, children: [_jsx(CarouselContainer, { activeIndex: activeIndex, itemCount: count, visibleItemCount: visibleItemCount, containerRef: containerRef, children: renderChildren(rest) }), isScrollAvailable && isBlur ? (_jsxs("div", { children: [_jsx("div", { className: `${blurBaseStyle} left-0 bg-opacity-from-white` }), _jsx("div", { className: `${blurBaseStyle} right-0 bg-opacity-to-white` })] })) : null, renderArrows({
|
|
22
|
+
...controls,
|
|
23
|
+
btnClass: ['left-8', 'right-8'],
|
|
24
|
+
className: 'top-1/2',
|
|
25
|
+
})] }));
|
|
24
26
|
});
|
|
25
27
|
Carousel.childrenTypes = ['CarouselCard', 'CarouselTariffsCard'];
|
|
26
28
|
//# sourceMappingURL=Carousel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Carousel.js","sourceRoot":"","sources":["../../../src/components/Carousel/Carousel.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAEtE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"Carousel.js","sourceRoot":"","sources":["../../../src/components/Carousel/Carousel.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAEtE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAOxD,MAAM,aAAa,GAAG,uCAAuC,CAAC;AAE9D,MAAM,CAAC,MAAM,QAAQ,GAA4B,GAAG,CAClD,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,GAAG,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC5F,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,CA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5
|
+
containerRef?: {
|
|
6
|
+
current: HTMLDivElement | null;
|
|
7
|
+
};
|
|
6
8
|
}
|
|
7
9
|
export declare const CarouselContainer: import("@redneckz/uni-jsx").UNIComponent<CarouselContainerProps, any, any>;
|
|
10
|
+
export {};
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
const childStyleMap = ['[&>*]:min-w-[100%]', '[&>*]:min-w-[50%]', '[&>*]:min-w-[33.33%]'];
|
|
4
|
+
export const CarouselContainer = JSX(({ activeIndex, itemCount, visibleItemCount, containerRef, children }) => {
|
|
5
|
+
const scrollWidth = containerRef?.current?.scrollWidth || 0;
|
|
6
|
+
const maxScrollLeft = scrollWidth - (containerRef?.current?.clientWidth || 0);
|
|
7
|
+
const translateX = visibleItemCount
|
|
8
|
+
? `${-Math.round((100 * activeIndex) / visibleItemCount)}%`
|
|
9
|
+
: `${-Math.round(Math.min((scrollWidth * activeIndex) / (itemCount || 1), maxScrollLeft))}px`;
|
|
10
|
+
return (_jsx("div", { className: `flex gap-1 duration-1000 ${visibleItemCount ? childStyleMap[visibleItemCount - 1] : ''}`, style: { transform: `translateX(${translateX})` }, role: "list", ref: containerRef, children: children }));
|
|
8
11
|
});
|
|
9
12
|
//# sourceMappingURL=CarouselContainer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselContainer.js","sourceRoot":"","sources":["../../../src/components/Carousel/CarouselContainer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AASxC,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAClC,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"CarouselContainer.js","sourceRoot":"","sources":["../../../src/components/Carousel/C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 "1007", "833", "350", "322" ]
|
|
7
|
-
*/
|
|
8
|
-
export declare type CardWidth = '322' | '350' | '832' | '1007';
|
|
9
4
|
export interface CarouselContent {
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
/**
|
|
6
|
+
* @title Количество видимых карточек
|
|
7
|
+
* @enumNames ["auto", "1", "2", "3"]
|
|
8
|
+
*/
|
|
9
|
+
visibleItemCount?: 0 | 1 | 2 | 3;
|
|
13
10
|
/** @title Добавление блюра */
|
|
14
11
|
isBlur?: boolean;
|
|
15
12
|
/** @title Цикличность */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselContent.js","sourceRoot":"","sources":["../../../src/components/Carousel/CarouselContent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CarouselContent.js","sourceRoot":"","sources":["../../../src/components/Carousel/CarouselContent.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import type { CarouselCardVersion } from '../../model/CarouselCardVersion';
|
|
2
1
|
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
3
2
|
import type { CarouselCardContent } from './CarouselCardContent';
|
|
4
3
|
export interface CarouselCardProps extends CarouselCardContent, UniBlockProps {
|
|
5
|
-
version?: CarouselCardVersion;
|
|
6
4
|
}
|
|
7
5
|
export declare const CarouselCard: import("@redneckz/uni-jsx").UNIComponent<CarouselCardProps, any, any>;
|
|
@@ -2,17 +2,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
import { renderButton } from '../../ui-kit/Button/ButtonSection.js';
|
|
4
4
|
import { Headline } from '../Headline/Headline.js';
|
|
5
|
-
const BLOCK_CLASSES = 'absolute border border-solid border-main-stroke w-
|
|
6
|
-
const CARD_STYLE_MAP = {
|
|
7
|
-
normal: 'min-w-[100%] justify-center items-center my-7 col-span-12',
|
|
8
|
-
mini: 'justify-center items-center mx-4 my-9 col-span-4',
|
|
9
|
-
};
|
|
5
|
+
const BLOCK_CLASSES = 'absolute border border-solid border-main-stroke w-full h-full';
|
|
10
6
|
const CARD_WIDTH_MAP = {
|
|
11
|
-
normal:
|
|
12
|
-
mini:
|
|
7
|
+
normal: `w-[${1007 + 48}px]`,
|
|
8
|
+
mini: `w-[${350 + 48}px]`,
|
|
13
9
|
};
|
|
14
|
-
export const CarouselCard = JSX(({
|
|
15
|
-
return (_jsx("section", { className: `flex ${CARD_STYLE_MAP[version]}`, children: _jsxs("div", { className: `relative ${CARD_WIDTH_MAP[version]}`, children: [_jsxs("div", { className: `relative bg-white py-6 px-10 z-10
|
|
16
|
-
border border-solid border-green-light ${className}`, children: [_jsx(Headline, { className: "!p-0", title: title, description: description, headlineVersion: "M", align: "center" }), button ? renderButton({ button, buttonClassName: 'mt-6 w-[158px]' }) : null] }), _jsx("div", { className: `top-9 right-12 bg-green-dark ${BLOCK_CLASSES}` }), _jsx("div", { className: `top-6 right-8 bg-green ${BLOCK_CLASSES}` }), _jsx("div", { className: `top-3 right-4 bg-green-light ${BLOCK_CLASSES}` })] }) }));
|
|
17
|
-
});
|
|
10
|
+
export const CarouselCard = JSX(({ className = '', button, description, title, version = 'normal' }) => (_jsx("section", { className: `flex pb-9 pl-12 ${CARD_WIDTH_MAP[version]} ${className}`, children: _jsxs("div", { className: "relative w-full", children: [_jsx("div", { className: `${BLOCK_CLASSES} z-10 top-9 right-12 bg-green-dark` }), _jsx("div", { className: `${BLOCK_CLASSES} z-10 top-6 right-8 bg-green` }), _jsx("div", { className: `${BLOCK_CLASSES} z-10 top-3 right-4 bg-green-light` }), _jsxs("div", { className: "relative bg-white z-10 py-6 px-10 border border-solid border-green-light", children: [_jsx(Headline, { className: "!p-0", title: title, description: description, headlineVersion: "M", align: "center" }), button ? _jsx("div", { className: "mt-6", children: renderButton({ button }) }) : null] })] }) })));
|
|
18
11
|
//# sourceMappingURL=CarouselCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselCard.js","sourceRoot":"","sources":["../../../src/components/CarouselCard/CarouselCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"CarouselCard.js","sourceRoot":"","sources":["../../../src/components/CarouselCard/CarouselCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAKhD,MAAM,aAAa,GAAG,+DAA+D,CAAC;AAEtF,MAAM,cAAc,GAAwC;IAC1D,MAAM,EAAE,MAAM,IAAI,GAAG,EAAE,KAAK;IAC5B,IAAI,EAAE,MAAM,GAAG,GAAG,EAAE,KAAK;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAC7B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,GAAG,QAAQ,EAAE,EAAE,EAAE,CAAC,CACtE,kBAAS,SAAS,EAAE,mBAAmB,cAAc,CAAC,OAAO,CAAC,IAAI,SAAS,EAAE,YAC3E,eAAK,SAAS,EAAC,iBAAiB,aAC9B,cAAK,SAAS,EAAE,GAAG,aAAa,oCAAoC,GAAI,EACxE,cAAK,SAAS,EAAE,GAAG,aAAa,8BAA8B,GAAI,EAClE,cAAK,SAAS,EAAE,GAAG,aAAa,oCAAoC,GAAI,EACxE,eAAK,SAAS,EAAC,0EAA0E,aACvF,KAAC,QAAQ,IACP,SAAS,EAAC,MAAM,EAChB,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,eAAe,EAAC,GAAG,EACnB,KAAK,EAAC,QAAQ,GACd,EACD,MAAM,CAAC,CAAC,CAAC,cAAK,SAAS,EAAC,MAAM,YAAE,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC,GAAO,CAAC,CAAC,CAAC,IAAI,IACnE,IACF,GACE,CACX,CACF,CAAC"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
|
|
4
|
-
import { Description } from '../../ui-kit/Description/Description.js';
|
|
5
|
-
import { Heading } from '../../ui-kit/Heading/Heading.js';
|
|
6
4
|
import { LinkButton } from '../../ui-kit/LinkButton/LinkButton.js';
|
|
7
|
-
import {
|
|
5
|
+
import { Paragraph } from '../../ui-kit/Paragraph/Paragraph.js';
|
|
8
6
|
import { Carousel } from '../Carousel/Carousel.js';
|
|
7
|
+
import { Headline } from '../Headline/Headline.js';
|
|
9
8
|
const MAX_LINKS_COUNT = 12;
|
|
10
|
-
export const CarouselLinks = JSX(({
|
|
11
|
-
return (_jsxs(BlockWrapper, { className: `bg-primary-main flex w-full p-10 overflow-hidden justify-between font-sans ${className}`, ...rest, children: [_jsxs("div", { className: "flex flex-col max-w-96 pr-9 text-white text-xl-light", children: [
|
|
9
|
+
export const CarouselLinks = JSX(({ className = '', additionalDescription, description, links, title, ...rest }) => {
|
|
10
|
+
return (_jsxs(BlockWrapper, { className: `bg-primary-main flex w-full p-10 overflow-hidden justify-between font-sans ${className}`, ...rest, children: [_jsxs("div", { className: "flex flex-col max-w-96 pr-9 text-white text-xl-light", children: [_jsx(Headline, { title: title, as: "h1", description: description, align: "left", className: "p-0", bgColorHeadline: "secondary" }), additionalDescription ? (_jsx("div", { className: "pt-6", children: _jsx(Paragraph, { children: additionalDescription }) })) : null] }), links?.length ? renderLinks(links) : null] }));
|
|
12
11
|
});
|
|
13
|
-
const renderLinks = (links
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
const renderLinks = (links) => {
|
|
13
|
+
const itemCount = Math.ceil(links.length / MAX_LINKS_COUNT);
|
|
14
|
+
return (_jsx(Carousel, { className: "min-w-[832px] w-[832px]", isBlur: false, isCyclic: true, itemCount: itemCount, children: new Array(itemCount).fill(null).map((_, groupIndex) => (_jsx("div", { className: "w-[672px] min-w-[672px] ml-20 mr-20 flex flex-wrap self-start", children: links
|
|
15
|
+
.slice(groupIndex * MAX_LINKS_COUNT, (groupIndex + 1) * MAX_LINKS_COUNT)
|
|
16
|
+
.map((link, index) => (_jsx(LinkButton, { className: "m-1", ...link }, String(index)))) }, String(groupIndex)))) }));
|
|
17
17
|
};
|
|
18
18
|
//# sourceMappingURL=CarouselLinks.js.map
|