@redneckz/wildless-cms-uni-blocks 0.14.27 → 0.14.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/migration-scripts/0.12.12.js +0 -10
- package/bin/migration-scripts/0.14.28.js +28 -0
- package/bin/migration-scripts/0.14.29.js +105 -0
- package/bin/migration-scripts/0.14.4.js +4 -4
- package/bin/utils.js +20 -9
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +79 -120
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -0
- package/bundle/components/Bonus/BonusContent.d.ts +1 -0
- package/bundle/components/Calculator/CalculatorContent.d.ts +3 -0
- package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +3 -2
- package/bundle/components/Headline/headlineVersionStyles.d.ts +1 -2
- package/bundle/components/LinkDocs/LinkDocsContent.d.ts +6 -0
- package/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
- package/bundle/components/MobileAppTile/renderList.d.ts +1 -1
- package/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +1 -0
- package/bundle/components/RichTextBlock/RichTextBlockContent.d.ts +2 -1
- package/bundle/components/TariffsTable/TariffsTableContent.d.ts +1 -0
- package/bundle/components/Tile/Tile.d.ts +5 -0
- package/bundle/components/Tile/TileContent.d.ts +6 -0
- package/bundle/components/VerticalLayout/VerticalLayout.d.ts +1 -0
- package/bundle/icons/IconName.d.ts +14 -2
- package/bundle/model/HeadlineType.d.ts +0 -8
- package/bundle/utils/getBorderStyle.d.ts +1 -0
- package/cosmos-static/icons/CardSendIcon.svg +1 -0
- package/cosmos-static/icons/CoinIcon.svg +1 -0
- package/cosmos-static/icons/ConvertCardIcon.svg +1 -0
- package/cosmos-static/icons/HeartTickIcon.svg +1 -0
- package/cosmos-static/icons/NotificationBingIcon.svg +1 -0
- package/cosmos-static/icons/Security/320/241ardIcon.svg +1 -0
- package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -0
- package/dist/components/Blocks.js +2 -6
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Blocks.mobile.js +2 -2
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/Bonus/BonusContent.d.ts +1 -0
- package/dist/components/Calculator/Calculator.mobile.js +2 -1
- package/dist/components/Calculator/Calculator.mobile.js.map +1 -1
- package/dist/components/Calculator/CalculatorContent.d.ts +3 -0
- package/dist/components/Carousel/Carousel.js +1 -1
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/Carousel/renderCarouselCards.js +2 -2
- package/dist/components/Carousel/renderCarouselCards.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +4 -2
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +3 -2
- package/dist/components/Footer/SocialMedia.js +2 -2
- package/dist/components/Footer/SocialMedia.js.map +1 -1
- package/dist/components/Headline/headlineVersionStyles.d.ts +1 -2
- package/dist/components/Headline/headlineVersionStyles.js +1 -12
- package/dist/components/Headline/headlineVersionStyles.js.map +1 -1
- package/dist/components/HorizontalLayout/HorizontalLayout.js +2 -3
- package/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocItem.js +6 -14
- package/dist/components/LinkDocs/LinkDocItem.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.js +4 -3
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsContent.d.ts +6 -0
- package/dist/components/LinkDocs/linkDocsContentExample.js +14 -5
- package/dist/components/LinkDocs/linkDocsContentExample.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js +2 -2
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
- package/dist/components/MobileAppTile/renderList.d.ts +1 -1
- package/dist/components/MobileAppTile/renderList.js +3 -2
- package/dist/components/MobileAppTile/renderList.js.map +1 -1
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +1 -0
- package/dist/components/ProductBlock/ProductBlock.js +4 -4
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/RichTextBlock/RichTextBlockContent.d.ts +2 -1
- package/dist/components/TariffsTable/TariffsTable.js +1 -2
- package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableContent.d.ts +1 -0
- package/dist/components/TariffsTable/TariffsTableVertical.js.map +1 -1
- package/dist/components/Tile/Tile.d.ts +5 -0
- package/dist/components/Tile/Tile.js +8 -0
- package/dist/components/Tile/Tile.js.map +1 -0
- package/dist/components/Tile/TileContent.d.ts +6 -0
- package/{mobile/dist/components/PromoTile/PromoTileContent.js → dist/components/Tile/TileContent.js} +1 -1
- package/dist/components/Tile/TileContent.js.map +1 -0
- package/dist/components/VerticalLayout/VerticalLayout.d.ts +1 -0
- package/dist/components/VerticalLayout/VerticalLayout.js +6 -2
- package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/dist/icons/IconName.d.ts +14 -2
- package/dist/icons/IconName.js +12 -0
- package/dist/icons/IconName.js.map +1 -1
- package/dist/model/HeadlineType.d.ts +0 -8
- package/dist/ui-kit/BaseTile/BaseTile.js +2 -2
- package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/dist/ui-kit/Button/renderButtonsSection.js +1 -1
- package/dist/ui-kit/List/List.js +1 -1
- package/dist/ui-kit/List/List.js.map +1 -1
- package/dist/ui-kit/List/ListItem.js +1 -1
- package/dist/ui-kit/List/ListItem.js.map +1 -1
- package/dist/utils/getBorderStyle.d.ts +1 -0
- package/dist/utils/getBorderStyle.js +7 -0
- package/dist/utils/getBorderStyle.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -0
- package/lib/components/Blocks.js +2 -6
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Blocks.mobile.js +2 -2
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/Bonus/BonusContent.d.ts +1 -0
- package/lib/components/Calculator/Calculator.mobile.js +2 -1
- package/lib/components/Calculator/Calculator.mobile.js.map +1 -1
- package/lib/components/Calculator/CalculatorContent.d.ts +3 -0
- package/lib/components/Carousel/Carousel.fixture.d.ts +0 -2
- package/lib/components/Carousel/Carousel.fixture.mobile.d.ts +0 -2
- package/lib/components/Carousel/Carousel.js +1 -1
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/Carousel/renderCarouselCards.js +2 -2
- package/lib/components/Carousel/renderCarouselCards.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.d.ts +2 -0
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +4 -2
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +3 -2
- package/lib/components/Footer/SocialMedia.js +2 -2
- package/lib/components/Footer/SocialMedia.js.map +1 -1
- package/lib/components/Headline/headlineVersionStyles.d.ts +1 -2
- package/lib/components/Headline/headlineVersionStyles.js +0 -11
- package/lib/components/Headline/headlineVersionStyles.js.map +1 -1
- package/lib/components/HorizontalLayout/HorizontalLayout.js +2 -3
- package/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocItem.js +6 -14
- package/lib/components/LinkDocs/LinkDocItem.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.js +4 -3
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsContent.d.ts +6 -0
- package/lib/components/LinkDocs/linkDocsContentExample.js +14 -5
- package/lib/components/LinkDocs/linkDocsContentExample.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js +2 -2
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
- package/lib/components/MobileAppTile/renderList.d.ts +1 -1
- package/lib/components/MobileAppTile/renderList.js +3 -2
- package/lib/components/MobileAppTile/renderList.js.map +1 -1
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +1 -0
- package/lib/components/ProductBlock/ProductBlock.js +4 -4
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/RichTextBlock/RichTextBlock.fixture.d.ts +1 -0
- package/lib/components/RichTextBlock/RichTextBlockContent.d.ts +2 -1
- package/lib/components/TariffsTable/TariffsTable.js +1 -2
- package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableContent.d.ts +1 -0
- package/lib/components/TariffsTable/TariffsTableVertical.js.map +1 -1
- package/lib/components/Tile/Tile.d.ts +5 -0
- package/lib/components/Tile/Tile.fixture.d.ts +15 -0
- package/lib/components/{PromoTile/PromoTile.fixture.d.ts → Tile/Tile.fixture.mobile.d.ts} +3 -0
- package/lib/components/Tile/Tile.js +6 -0
- package/lib/components/Tile/Tile.js.map +1 -0
- package/lib/components/Tile/TileContent.d.ts +6 -0
- package/lib/components/Tile/TileContent.js +2 -0
- package/lib/components/Tile/TileContent.js.map +1 -0
- package/lib/components/VerticalLayout/VerticalLayout.d.ts +1 -0
- package/lib/components/VerticalLayout/VerticalLayout.js +6 -2
- package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/lib/icons/IconName.d.ts +14 -2
- package/lib/icons/IconName.js +12 -0
- package/lib/icons/IconName.js.map +1 -1
- package/lib/model/HeadlineType.d.ts +0 -8
- package/lib/ui-kit/BaseTile/BaseTile.js +2 -2
- package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/lib/ui-kit/Button/renderButtonsSection.js +1 -1
- package/lib/ui-kit/List/List.js +1 -1
- package/lib/ui-kit/List/List.js.map +1 -1
- package/lib/ui-kit/List/ListItem.js +1 -1
- package/lib/ui-kit/List/ListItem.js.map +1 -1
- package/lib/utils/getBorderStyle.d.ts +1 -0
- package/lib/utils/getBorderStyle.js +4 -0
- package/lib/utils/getBorderStyle.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +76 -99
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -0
- package/mobile/bundle/components/Bonus/BonusContent.d.ts +1 -0
- package/mobile/bundle/components/Calculator/CalculatorContent.d.ts +3 -0
- package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +3 -2
- package/mobile/bundle/components/Headline/headlineVersionStyles.d.ts +1 -2
- package/mobile/bundle/components/LinkDocs/LinkDocsContent.d.ts +6 -0
- package/mobile/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
- package/mobile/bundle/components/MobileAppTile/renderList.d.ts +1 -1
- package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +1 -0
- package/mobile/bundle/components/RichTextBlock/RichTextBlockContent.d.ts +2 -1
- package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +1 -0
- package/mobile/bundle/components/Tile/Tile.d.ts +5 -0
- package/mobile/bundle/components/Tile/TileContent.d.ts +6 -0
- package/mobile/bundle/components/VerticalLayout/VerticalLayout.d.ts +1 -0
- package/mobile/bundle/icons/IconName.d.ts +14 -2
- package/mobile/bundle/model/HeadlineType.d.ts +0 -8
- package/mobile/bundle/utils/getBorderStyle.d.ts +1 -0
- package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -0
- package/mobile/dist/components/Blocks.js +2 -2
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/Bonus/BonusContent.d.ts +1 -0
- package/mobile/dist/components/Calculator/Calculator.js +2 -1
- package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
- package/mobile/dist/components/Calculator/CalculatorContent.d.ts +3 -0
- package/mobile/dist/components/Carousel/Carousel.js +1 -1
- package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
- package/mobile/dist/components/Carousel/renderCarouselCards.js +2 -2
- package/mobile/dist/components/Carousel/renderCarouselCards.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +4 -2
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +3 -2
- package/mobile/dist/components/Footer/SocialMedia.js +2 -2
- package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/dist/components/Headline/headlineVersionStyles.d.ts +1 -2
- package/mobile/dist/components/Headline/headlineVersionStyles.js +1 -12
- package/mobile/dist/components/Headline/headlineVersionStyles.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocItem.js +6 -14
- package/mobile/dist/components/LinkDocs/LinkDocItem.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocs.js +4 -3
- package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +6 -0
- package/mobile/dist/components/LinkDocs/linkDocsContentExample.js +14 -5
- package/mobile/dist/components/LinkDocs/linkDocsContentExample.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js +2 -2
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
- package/mobile/dist/components/MobileAppTile/renderList.d.ts +1 -1
- package/mobile/dist/components/MobileAppTile/renderList.js +3 -2
- package/mobile/dist/components/MobileAppTile/renderList.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +1 -0
- package/mobile/dist/components/ProductBlock/ProductBlock.js +4 -4
- package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/dist/components/RichTextBlock/RichTextBlockContent.d.ts +2 -1
- package/mobile/dist/components/TariffsTable/TariffsTable.js +1 -2
- package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +1 -0
- package/mobile/dist/components/TariffsTable/TariffsTableVertical.js.map +1 -1
- package/mobile/dist/components/Tile/Tile.d.ts +5 -0
- package/mobile/dist/components/Tile/Tile.js +8 -0
- package/mobile/dist/components/Tile/Tile.js.map +1 -0
- package/mobile/dist/components/Tile/TileContent.d.ts +6 -0
- package/{dist/components/PromoTile/PromoTileContent.js → mobile/dist/components/Tile/TileContent.js} +1 -1
- package/mobile/dist/components/Tile/TileContent.js.map +1 -0
- package/mobile/dist/components/VerticalLayout/VerticalLayout.d.ts +1 -0
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js +6 -2
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/dist/icons/IconName.d.ts +14 -2
- package/mobile/dist/icons/IconName.js +12 -0
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/model/HeadlineType.d.ts +0 -8
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js +2 -2
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/dist/ui-kit/Button/renderButtonsSection.js +1 -1
- package/mobile/dist/ui-kit/List/List.js +1 -1
- package/mobile/dist/ui-kit/List/List.js.map +1 -1
- package/mobile/dist/ui-kit/List/ListItem.js +1 -1
- package/mobile/dist/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/dist/utils/getBorderStyle.d.ts +1 -0
- package/mobile/dist/utils/getBorderStyle.js +7 -0
- package/mobile/dist/utils/getBorderStyle.js.map +1 -0
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -0
- package/mobile/lib/components/Blocks.js +2 -2
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/Bonus/BonusContent.d.ts +1 -0
- package/mobile/lib/components/Calculator/Calculator.js +2 -1
- package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
- package/mobile/lib/components/Calculator/CalculatorContent.d.ts +3 -0
- package/mobile/lib/components/Carousel/Carousel.js +1 -1
- package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
- package/mobile/lib/components/Carousel/renderCarouselCards.js +2 -2
- package/mobile/lib/components/Carousel/renderCarouselCards.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +4 -2
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +3 -2
- package/mobile/lib/components/Footer/SocialMedia.js +2 -2
- package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/lib/components/Headline/headlineVersionStyles.d.ts +1 -2
- package/mobile/lib/components/Headline/headlineVersionStyles.js +0 -11
- package/mobile/lib/components/Headline/headlineVersionStyles.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocItem.js +6 -14
- package/mobile/lib/components/LinkDocs/LinkDocItem.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocs.js +4 -3
- package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +6 -0
- package/mobile/lib/components/LinkDocs/linkDocsContentExample.js +14 -5
- package/mobile/lib/components/LinkDocs/linkDocsContentExample.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js +2 -2
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
- package/mobile/lib/components/MobileAppTile/renderList.d.ts +1 -1
- package/mobile/lib/components/MobileAppTile/renderList.js +3 -2
- package/mobile/lib/components/MobileAppTile/renderList.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +1 -0
- package/mobile/lib/components/ProductBlock/ProductBlock.js +4 -4
- package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/lib/components/RichTextBlock/RichTextBlockContent.d.ts +2 -1
- package/mobile/lib/components/TariffsTable/TariffsTable.js +1 -2
- package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +1 -0
- package/mobile/lib/components/TariffsTable/TariffsTableVertical.js.map +1 -1
- package/mobile/lib/components/Tile/Tile.d.ts +5 -0
- package/mobile/lib/components/Tile/Tile.js +6 -0
- package/mobile/lib/components/Tile/Tile.js.map +1 -0
- package/mobile/lib/components/Tile/TileContent.d.ts +6 -0
- package/mobile/lib/components/Tile/TileContent.js +2 -0
- package/mobile/lib/components/Tile/TileContent.js.map +1 -0
- package/mobile/lib/components/VerticalLayout/VerticalLayout.d.ts +1 -0
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js +6 -2
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/lib/icons/IconName.d.ts +14 -2
- package/mobile/lib/icons/IconName.js +12 -0
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/model/HeadlineType.d.ts +0 -8
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js +2 -2
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/lib/ui-kit/Button/renderButtonsSection.js +1 -1
- package/mobile/lib/ui-kit/List/List.js +1 -1
- package/mobile/lib/ui-kit/List/List.js.map +1 -1
- package/mobile/lib/ui-kit/List/ListItem.js +1 -1
- package/mobile/lib/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/lib/utils/getBorderStyle.d.ts +1 -0
- package/mobile/lib/utils/getBorderStyle.js +4 -0
- package/mobile/lib/utils/getBorderStyle.js.map +1 -0
- package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +1 -0
- package/mobile/src/components/Blocks.ts +2 -2
- package/mobile/src/components/Bonus/BonusContent.ts +1 -0
- package/mobile/src/components/Calculator/Calculator.tsx +4 -2
- package/mobile/src/components/Calculator/CalculatorContent.ts +3 -0
- package/mobile/src/components/Carousel/Carousel.tsx +1 -1
- package/mobile/src/components/Carousel/renderCarouselCards.tsx +3 -2
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +20 -2
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +8 -1
- package/mobile/src/components/Footer/SocialMedia.tsx +2 -2
- package/mobile/src/components/Headline/headlineVersionStyles.ts +1 -13
- package/mobile/src/components/LinkDocs/LinkDocItem.tsx +24 -34
- package/mobile/src/components/LinkDocs/LinkDocs.example.json +4 -1
- package/mobile/src/components/LinkDocs/LinkDocs.tsx +5 -3
- package/mobile/src/components/LinkDocs/LinkDocsContent.ts +6 -0
- package/mobile/src/components/LinkDocs/linkDocsContentExample.ts +14 -5
- package/mobile/src/components/MobileAppTile/MobileAppTile.example.json +2 -1
- package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +2 -1
- package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +5 -1
- package/mobile/src/components/MobileAppTile/renderList.tsx +9 -4
- package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +1 -0
- package/mobile/src/components/ProductBlock/ProductBlock.tsx +8 -5
- package/mobile/src/components/RichTextBlock/RichTextBlockContent.ts +2 -1
- package/mobile/src/components/TariffsTable/TariffsTable.tsx +2 -3
- package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +0 -1
- package/mobile/src/components/TariffsTable/TariffsTableContent.ts +1 -0
- package/mobile/src/components/TariffsTable/TariffsTableVertical.tsx +0 -1
- package/mobile/src/components/Tile/Tile.example.json +28 -0
- package/mobile/src/components/Tile/Tile.tsx +23 -0
- package/mobile/src/components/Tile/Tile.ui.json +17 -0
- package/mobile/src/components/Tile/TileContent.ts +7 -0
- package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +9 -2
- package/mobile/src/icons/CardSendIcon.svg +9 -0
- package/mobile/src/icons/CoinIcon.svg +5 -0
- package/mobile/src/icons/ConvertCardIcon.svg +8 -0
- package/mobile/src/icons/HeartTickIcon.svg +5 -0
- package/mobile/src/icons/IconName.ts +4 -4
- package/mobile/src/icons/NotificationBingIcon.svg +5 -0
- package/mobile/src/icons/Security/320/241ardIcon.svg +7 -0
- package/mobile/src/model/HeadlineType.ts +0 -10
- package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +3 -3
- package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +1 -1
- package/mobile/src/ui-kit/List/List.tsx +1 -1
- package/mobile/src/ui-kit/List/ListItem.tsx +15 -17
- package/mobile/src/utils/getBorderStyle.ts +4 -0
- package/package.json +1 -1
- package/src/components/BenefitsBlock/BenefitsBlockContent.ts +1 -0
- package/src/components/Blocks.mobile.ts +2 -2
- package/src/components/Blocks.ts +2 -6
- package/src/components/Bonus/BonusContent.ts +1 -0
- package/src/components/Calculator/Calculator.mobile.tsx +4 -2
- package/src/components/Calculator/CalculatorContent.ts +3 -0
- package/src/components/Carousel/Carousel.fixture.mobile.tsx +0 -34
- package/src/components/Carousel/Carousel.fixture.tsx +2 -52
- package/src/components/Carousel/Carousel.tsx +1 -1
- package/src/components/Carousel/renderCarouselCards.tsx +3 -2
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +44 -0
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +20 -2
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +8 -1
- package/src/components/Footer/SocialMedia.tsx +2 -2
- package/src/components/Headline/headlineVersionStyles.ts +1 -13
- package/src/components/HorizontalLayout/HorizontalLayout.tsx +2 -3
- package/src/components/LinkDocs/LinkDocItem.tsx +24 -34
- package/src/components/LinkDocs/LinkDocs.example.json +4 -1
- package/src/components/LinkDocs/LinkDocs.tsx +5 -3
- package/src/components/LinkDocs/LinkDocsContent.ts +6 -0
- package/src/components/LinkDocs/linkDocsContentExample.ts +14 -5
- package/src/components/MobileAppTile/MobileAppTile.example.json +2 -1
- package/src/components/MobileAppTile/MobileAppTile.fixture.mobile.tsx +3 -1
- package/src/components/MobileAppTile/MobileAppTile.tsx +2 -1
- package/src/components/MobileAppTile/MobileAppTileContent.ts +5 -1
- package/src/components/MobileAppTile/renderList.tsx +9 -4
- package/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +1 -0
- package/src/components/ProductBlock/ProductBlock.tsx +8 -5
- package/src/components/RichTextBlock/RichTextBlock.fixture.tsx +15 -0
- package/src/components/RichTextBlock/RichTextBlockContent.ts +2 -1
- package/src/components/TariffsTable/TariffsTable.tsx +2 -3
- package/src/components/TariffsTable/TariffsTableCell.tsx +0 -1
- package/src/components/TariffsTable/TariffsTableContent.ts +1 -0
- package/src/components/TariffsTable/TariffsTableVertical.tsx +0 -1
- package/src/components/Tile/Tile.example.json +28 -0
- package/src/components/Tile/Tile.fixture.mobile.tsx +48 -0
- package/src/components/Tile/Tile.fixture.tsx +146 -0
- package/src/components/Tile/Tile.tsx +23 -0
- package/src/components/Tile/Tile.ui.json +17 -0
- package/src/components/Tile/TileContent.ts +7 -0
- package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +4 -12
- package/src/components/VerticalLayout/VerticalLayout.tsx +9 -2
- package/src/icons/CardSendIcon.svg +9 -0
- package/src/icons/CoinIcon.svg +5 -0
- package/src/icons/ConvertCardIcon.svg +8 -0
- package/src/icons/HeartTickIcon.svg +5 -0
- package/src/icons/IconName.ts +19 -1
- package/src/icons/NotificationBingIcon.svg +5 -0
- package/src/icons/Security/320/241ardIcon.svg +7 -0
- package/src/model/HeadlineType.ts +0 -10
- package/src/ui-kit/BaseTile/BaseTile.tsx +3 -3
- package/src/ui-kit/Button/renderButtonsSection.tsx +1 -1
- package/src/ui-kit/List/List.tsx +1 -1
- package/src/ui-kit/List/ListItem.tsx +15 -17
- package/src/utils/getBorderStyle.ts +4 -0
- package/bin/migration-scripts/0.14.12.js +0 -34
- package/bin/migration-scripts/0.14.27.js +0 -38
- package/bundle/components/CarouselProductCard/CarouselProductCard.d.ts +0 -5
- package/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +0 -27
- package/bundle/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +0 -5
- package/bundle/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +0 -6
- package/bundle/components/PromoTile/PromoTile.d.ts +0 -5
- package/bundle/components/PromoTile/PromoTileContent.d.ts +0 -10
- package/bundle/components/TariffsTable/headlineAlign.d.ts +0 -1
- package/bundle/components/TariffsTable/headlineAlign.mobile.d.ts +0 -1
- package/dist/components/CarouselProductCard/CarouselProductCard.d.ts +0 -5
- package/dist/components/CarouselProductCard/CarouselProductCard.js +0 -26
- package/dist/components/CarouselProductCard/CarouselProductCard.js.map +0 -1
- package/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +0 -27
- package/dist/components/CarouselProductCard/CarouselProductCardContent.js +0 -2
- package/dist/components/CarouselProductCard/CarouselProductCardContent.js.map +0 -1
- package/dist/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +0 -5
- package/dist/components/CarouselRichTextCard/CarouselRichTextCard.js +0 -8
- package/dist/components/CarouselRichTextCard/CarouselRichTextCard.js.map +0 -1
- package/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +0 -6
- package/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.js +0 -2
- package/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.js.map +0 -1
- package/dist/components/PromoTile/PromoTile.d.ts +0 -5
- package/dist/components/PromoTile/PromoTile.js +0 -20
- package/dist/components/PromoTile/PromoTile.js.map +0 -1
- package/dist/components/PromoTile/PromoTileContent.d.ts +0 -10
- package/dist/components/PromoTile/PromoTileContent.js.map +0 -1
- package/dist/components/TariffsTable/headlineAlign.d.ts +0 -1
- package/dist/components/TariffsTable/headlineAlign.js +0 -4
- package/dist/components/TariffsTable/headlineAlign.js.map +0 -1
- package/dist/components/TariffsTable/headlineAlign.mobile.d.ts +0 -1
- package/dist/components/TariffsTable/headlineAlign.mobile.js +0 -4
- package/dist/components/TariffsTable/headlineAlign.mobile.js.map +0 -1
- package/lib/components/CarouselProductCard/CarouselProductCard.d.ts +0 -5
- package/lib/components/CarouselProductCard/CarouselProductCard.fixture.d.ts +0 -13
- package/lib/components/CarouselProductCard/CarouselProductCard.fixture.mobile.d.ts +0 -13
- package/lib/components/CarouselProductCard/CarouselProductCard.js +0 -24
- package/lib/components/CarouselProductCard/CarouselProductCard.js.map +0 -1
- package/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +0 -27
- package/lib/components/CarouselProductCard/CarouselProductCardContent.js +0 -2
- package/lib/components/CarouselProductCard/CarouselProductCardContent.js.map +0 -1
- package/lib/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +0 -5
- package/lib/components/CarouselRichTextCard/CarouselRichTextCard.fixture.d.ts +0 -8
- package/lib/components/CarouselRichTextCard/CarouselRichTextCard.js +0 -6
- package/lib/components/CarouselRichTextCard/CarouselRichTextCard.js.map +0 -1
- package/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +0 -6
- package/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.js +0 -2
- package/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.js.map +0 -1
- package/lib/components/PromoTile/PromoTile.d.ts +0 -5
- package/lib/components/PromoTile/PromoTile.js +0 -18
- package/lib/components/PromoTile/PromoTile.js.map +0 -1
- package/lib/components/PromoTile/PromoTileContent.d.ts +0 -10
- package/lib/components/PromoTile/PromoTileContent.js +0 -2
- package/lib/components/PromoTile/PromoTileContent.js.map +0 -1
- package/lib/components/TariffsTable/headlineAlign.d.ts +0 -1
- package/lib/components/TariffsTable/headlineAlign.js +0 -2
- package/lib/components/TariffsTable/headlineAlign.js.map +0 -1
- package/lib/components/TariffsTable/headlineAlign.mobile.d.ts +0 -1
- package/lib/components/TariffsTable/headlineAlign.mobile.js +0 -2
- package/lib/components/TariffsTable/headlineAlign.mobile.js.map +0 -1
- package/mobile/bundle/components/CarouselProductCard/CarouselProductCard.d.ts +0 -5
- package/mobile/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +0 -27
- package/mobile/bundle/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +0 -5
- package/mobile/bundle/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +0 -6
- package/mobile/bundle/components/PromoTile/PromoTile.d.ts +0 -5
- package/mobile/bundle/components/PromoTile/PromoTileContent.d.ts +0 -10
- package/mobile/bundle/components/TariffsTable/headlineAlign.d.ts +0 -1
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.d.ts +0 -5
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +0 -26
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +0 -1
- package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +0 -27
- package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.js +0 -2
- package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.js.map +0 -1
- package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +0 -5
- package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCard.js +0 -8
- package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCard.js.map +0 -1
- package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +0 -6
- package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.js +0 -2
- package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.js.map +0 -1
- package/mobile/dist/components/PromoTile/PromoTile.d.ts +0 -5
- package/mobile/dist/components/PromoTile/PromoTile.js +0 -20
- package/mobile/dist/components/PromoTile/PromoTile.js.map +0 -1
- package/mobile/dist/components/PromoTile/PromoTileContent.d.ts +0 -10
- package/mobile/dist/components/PromoTile/PromoTileContent.js.map +0 -1
- package/mobile/dist/components/TariffsTable/headlineAlign.d.ts +0 -1
- package/mobile/dist/components/TariffsTable/headlineAlign.js +0 -4
- package/mobile/dist/components/TariffsTable/headlineAlign.js.map +0 -1
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.d.ts +0 -5
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +0 -24
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +0 -1
- package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +0 -27
- package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.js +0 -2
- package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.js.map +0 -1
- package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +0 -5
- package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCard.js +0 -6
- package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCard.js.map +0 -1
- package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +0 -6
- package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.js +0 -2
- package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.js.map +0 -1
- package/mobile/lib/components/PromoTile/PromoTile.d.ts +0 -5
- package/mobile/lib/components/PromoTile/PromoTile.js +0 -18
- package/mobile/lib/components/PromoTile/PromoTile.js.map +0 -1
- package/mobile/lib/components/PromoTile/PromoTileContent.d.ts +0 -10
- package/mobile/lib/components/PromoTile/PromoTileContent.js +0 -2
- package/mobile/lib/components/PromoTile/PromoTileContent.js.map +0 -1
- package/mobile/lib/components/TariffsTable/headlineAlign.d.ts +0 -1
- package/mobile/lib/components/TariffsTable/headlineAlign.js +0 -2
- package/mobile/lib/components/TariffsTable/headlineAlign.js.map +0 -1
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.example.json +0 -20
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +0 -115
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.ui.json +0 -21
- package/mobile/src/components/CarouselProductCard/CarouselProductCardContent.ts +0 -39
- package/mobile/src/components/CarouselRichTextCard/CarouselRichTextCard.example.json +0 -6
- package/mobile/src/components/CarouselRichTextCard/CarouselRichTextCard.tsx +0 -15
- package/mobile/src/components/CarouselRichTextCard/CarouselRichTextCard.ui.json +0 -7
- package/mobile/src/components/CarouselRichTextCard/CarouselRichTextCardContent.ts +0 -7
- package/mobile/src/components/PromoTile/PromoTile.example.json +0 -16
- package/mobile/src/components/PromoTile/PromoTile.tsx +0 -53
- package/mobile/src/components/PromoTile/PromoTile.ui.json +0 -1
- package/mobile/src/components/PromoTile/PromoTileContent.ts +0 -14
- package/mobile/src/components/TariffsTable/headlineAlign.tsx +0 -1
- package/src/components/CarouselProductCard/CarouselProductCard.example.json +0 -20
- package/src/components/CarouselProductCard/CarouselProductCard.fixture.mobile.tsx +0 -92
- package/src/components/CarouselProductCard/CarouselProductCard.fixture.tsx +0 -96
- package/src/components/CarouselProductCard/CarouselProductCard.tsx +0 -115
- package/src/components/CarouselProductCard/CarouselProductCard.ui.json +0 -21
- package/src/components/CarouselProductCard/CarouselProductCardContent.ts +0 -39
- package/src/components/CarouselRichTextCard/CarouselRichTextCard.example.json +0 -6
- package/src/components/CarouselRichTextCard/CarouselRichTextCard.fixture.tsx +0 -26
- package/src/components/CarouselRichTextCard/CarouselRichTextCard.tsx +0 -15
- package/src/components/CarouselRichTextCard/CarouselRichTextCard.ui.json +0 -7
- package/src/components/CarouselRichTextCard/CarouselRichTextCardContent.ts +0 -7
- package/src/components/PromoTile/PromoTile.example.json +0 -16
- package/src/components/PromoTile/PromoTile.fixture.tsx +0 -25
- package/src/components/PromoTile/PromoTile.tsx +0 -53
- package/src/components/PromoTile/PromoTile.ui.json +0 -1
- package/src/components/PromoTile/PromoTileContent.ts +0 -14
- package/src/components/TariffsTable/headlineAlign.mobile.tsx +0 -1
- package/src/components/TariffsTable/headlineAlign.tsx +0 -1
package/bundle/bundle.umd.js
CHANGED
|
@@ -887,11 +887,11 @@
|
|
|
887
887
|
onChange,
|
|
888
888
|
onClose: handleClose,
|
|
889
889
|
});
|
|
890
|
-
return (jsxs("div", { className: className, children: [renderLabel(label), jsxs("div", { className: style('relative', isOpen ? 'z-20' : 'z-10'), ref: inputRef, children: [jsxs("div", { className: style('h-14 text-l flex justify-between items-center text-primary-text cursor-pointer relative z-10', getBorderStyle(isBorder, valid)), onClick: isOpen ? handleClose : open, children: [jsx("p", { className: "p-m pr-3xl flex items-center overflow-hidden text-ellipsis whitespace-nowrap", children: formatOption(value) || placeholder }), renderIcon$1(isOpen, iconVersion)] }), isSearch && isOpen ? (jsx("div", { className: style('absolute top-0 w-full z-20'), children: jsx(Input, { type: "text", autoFocus: true, value: query, onChange: setQuery }) })) : null] })] }));
|
|
890
|
+
return (jsxs("div", { className: className, children: [renderLabel(label), jsxs("div", { className: style('relative', isOpen ? 'z-20' : 'z-10'), ref: inputRef, children: [jsxs("div", { className: style('h-14 text-l flex justify-between items-center text-primary-text cursor-pointer relative z-10', getBorderStyle$1(isBorder, valid)), onClick: isOpen ? handleClose : open, children: [jsx("p", { className: "p-m pr-3xl flex items-center overflow-hidden text-ellipsis whitespace-nowrap", children: formatOption(value) || placeholder }), renderIcon$1(isOpen, iconVersion)] }), isSearch && isOpen ? (jsx("div", { className: style('absolute top-0 w-full z-20'), children: jsx(Input, { type: "text", autoFocus: true, value: query, onChange: setQuery }) })) : null] })] }));
|
|
891
891
|
});
|
|
892
892
|
const renderLabel = (label) => label ? (jsx("div", { className: "mb-xs", children: jsx(Text, { size: "text-m", color: "text-primary-text", font: "font-light", children: label }) })) : null;
|
|
893
893
|
const renderIcon$1 = (isOpen, iconVersion) => (jsx(Icon, { className: style('absolute right-3', isOpen ? '' : 'rotate-180'), iconVersion: iconVersion, name: "ArrowUpIcon", width: "16", height: "16" }));
|
|
894
|
-
const getBorderStyle = (isBorder, valid) => style(isBorder ? 'border rounded-md hover:border-primary-hover' : '', valid ? ' border-gray' : 'border-error');
|
|
894
|
+
const getBorderStyle$1 = (isBorder, valid) => style(isBorder ? 'border rounded-md hover:border-primary-hover' : '', valid ? ' border-gray' : 'border-error');
|
|
895
895
|
|
|
896
896
|
const SelectControl = JSX(({ className = '', error, ...rest }) => (jsxs("div", { className: className, children: [jsx(Select, { ...rest, valid: !error }), jsx("div", { className: "h-2", children: error ? (jsx(Text, { size: "text-xs", font: "font-light", color: "text-error", children: error })) : null })] })));
|
|
897
897
|
|
|
@@ -1183,7 +1183,7 @@
|
|
|
1183
1183
|
});
|
|
1184
1184
|
const checkboxStyle = (value) => style('rounded border', value ? 'bg-primary-main' : '');
|
|
1185
1185
|
|
|
1186
|
-
const formatDate
|
|
1186
|
+
const formatDate = (date, toTimeStamp = false) => {
|
|
1187
1187
|
if (typeof date === 'string') {
|
|
1188
1188
|
return date.split('-').reverse().join('.');
|
|
1189
1189
|
}
|
|
@@ -1334,7 +1334,7 @@
|
|
|
1334
1334
|
});
|
|
1335
1335
|
return (jsxs("div", { className: style(className, 'relative'), ref: ref, children: [jsx(Text, { size: "text-m", children: label }), renderDatePickerForm(handleChangeVisibleCalendar, value, valid), showCalendar ? (jsxs("div", { className: "absolute bg-white z-10 select-none", children: [jsxs("div", { className: "flex gap-s", children: [jsx("div", { className: "my-auto", onClick: handlePrevMonth, children: jsx(Icon, { ...ICON_PROPS, className: "-rotate-90 cursor-pointer" }) }), jsx(Select, { onChange: handleSelectMonth, value: { key: months[selectedMonth] }, options: monthsOptions, ...SELECT_PROPS }), jsx(Select, { onChange: handleSelectYear, value: { key: String(selectedYear) }, options: yearsOptions, ...SELECT_PROPS }), jsx("div", { className: "my-auto", onClick: handleNextMonth, children: jsx(Icon, { ...ICON_PROPS, className: "rotate-90 cursor-pointer" }) })] }), jsx(Calendar, { today: value, currentMonth: selectedMonth, currentYear: selectedYear, onDateSelect: onChange, min: minDate, max: maxDate })] })) : null] }));
|
|
1336
1336
|
});
|
|
1337
|
-
const renderDatePickerForm = (handleChangeVisibleCalendar, value, valid) => (jsxs("div", { onClick: handleChangeVisibleCalendar, className: style(formStyle, valid ? 'border-gray' : 'border-error'), children: [jsx(Paragraph, { children: value && formatDate
|
|
1337
|
+
const renderDatePickerForm = (handleChangeVisibleCalendar, value, valid) => (jsxs("div", { onClick: handleChangeVisibleCalendar, className: style(formStyle, valid ? 'border-gray' : 'border-error'), children: [jsx(Paragraph, { children: value && formatDate(value) }), jsx(Icon, { ...ICON_PROPS, name: "CalendarIcon" })] }));
|
|
1338
1338
|
|
|
1339
1339
|
const DatePickerControl = JSX(({ className, label, value = undefined, error, onChange }) => (jsxs("div", { className: className, children: [label ? (jsx("div", { className: "mb-xs", children: jsx(Text, { size: "text-m", font: "font-light", children: label }) })) : null, jsx(DatePicker, { value: value, onChange: onChange, valid: Boolean(!error) }), jsx("div", { className: "h-2", children: error ? (jsx(Text, { size: "text-xs", font: "font-light", color: "text-error", children: error })) : null })] })));
|
|
1340
1340
|
|
|
@@ -1530,8 +1530,8 @@
|
|
|
1530
1530
|
const defaultIconSize = 44;
|
|
1531
1531
|
|
|
1532
1532
|
const BenefitsBlock = JSX(({ className = '', title, benefitList, ...rest }) => (jsxs(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: [title ? jsx(Heading, { headingType: "h3", as: "h2", className: AlignStyles, title: title }) : null, benefitList?.length ? (jsx("div", { className: "flex flex-col @md:flex-row flex-wrap w-full @md:justify-center mt-xl gap-5xl", role: "list", children: benefitList.map(renderBenefit) })) : null] })));
|
|
1533
|
-
const renderBenefit = (benefit, i) => (jsxs("div", { className: "flex gap-m items-center @md:basis-1/2 @md:max-w-[500px]", role: "listitem", children: [benefit?.icon?.icon ? (jsx(RoundedIcon, { className: "shrink-0", defaultIconSize: defaultIconSize, iconBgVersion: benefit?.iconBgVersion || '', ...benefit?.icon })) : null, benefit?.icon?.src ? jsx(Img, { className: "shrink-0", image: benefit.icon }) : null, benefit?.label ? (jsxs("div", { className: "@sm:h-full", children: [jsx(Heading, { headingType: "h6", children: benefit.label }), renderDescription$
|
|
1534
|
-
const renderDescription$
|
|
1533
|
+
const renderBenefit = (benefit, i) => (jsxs("div", { className: "flex gap-m items-center @md:basis-1/2 @md:max-w-[500px]", role: "listitem", children: [benefit?.icon?.icon ? (jsx(RoundedIcon, { className: "shrink-0", defaultIconSize: defaultIconSize, iconBgVersion: benefit?.iconBgVersion || '', ...benefit?.icon })) : null, benefit?.icon?.src ? jsx(Img, { className: "shrink-0", image: benefit.icon }) : null, benefit?.label ? (jsxs("div", { className: "@sm:h-full", children: [jsx(Heading, { headingType: "h6", children: benefit.label }), renderDescription$1(benefit.description)] })) : null] }, String(i)));
|
|
1534
|
+
const renderDescription$1 = (description) => {
|
|
1535
1535
|
const benefitType = description?.benefitType || null;
|
|
1536
1536
|
return description && benefitType ? (jsx("div", { className: "mt-xs text-l font-light text-secondary-text group-data-secondary:text-white/80", children: benefitType === 'list'
|
|
1537
1537
|
? renderListBenefit(description)
|
|
@@ -1552,7 +1552,7 @@
|
|
|
1552
1552
|
const { text, icon, iconRight, version, ...rest } = button || {};
|
|
1553
1553
|
const iconVersion = getIconVersion(icon, version);
|
|
1554
1554
|
const iconRightVersion = getIconVersion(iconRight, version);
|
|
1555
|
-
return text || icon?.icon ? (jsx(Button, { className: style('basis-full
|
|
1555
|
+
return text || icon?.icon ? (jsx(Button, { className: style('basis-full lg:basis-auto', buttonClassName), appendLeft: renderButtonIcon({ ...icon, iconVersion }), appendRight: renderButtonIcon({ ...iconRight, iconVersion: iconRightVersion }), version: version, text: text, ...rest }, index ? String(index) : '')) : null;
|
|
1556
1556
|
};
|
|
1557
1557
|
const DEFAULT_ICON_W = 24;
|
|
1558
1558
|
const getIconVersion = (icon, version = 'secondary') => {
|
|
@@ -1599,17 +1599,6 @@
|
|
|
1599
1599
|
descriptionStyle: 'mt-xs',
|
|
1600
1600
|
},
|
|
1601
1601
|
};
|
|
1602
|
-
// TODO: Move to Gallery and rename
|
|
1603
|
-
const HEADLINE_SMALL_VERSION = {
|
|
1604
|
-
H6: 'text-h6',
|
|
1605
|
-
XL_L: 'text-xl-light',
|
|
1606
|
-
XL_R: 'text-xl',
|
|
1607
|
-
L_L: 'text-l-light',
|
|
1608
|
-
L_R: 'text-l',
|
|
1609
|
-
M: 'text-m-light',
|
|
1610
|
-
S: 'text-s-light',
|
|
1611
|
-
XS: 'text-xs-light',
|
|
1612
|
-
};
|
|
1613
1602
|
|
|
1614
1603
|
const Headline = JSX(({ className, version = '', headlineVersion = 'XL', title, description, align = 'text-center', as, isEmbedded = false, isTheme = false, ...rest }) => {
|
|
1615
1604
|
const versionStyle = headlineVersionStyles[headlineVersion];
|
|
@@ -2739,6 +2728,10 @@
|
|
|
2739
2728
|
: null;
|
|
2740
2729
|
}
|
|
2741
2730
|
|
|
2731
|
+
const getBorderStyle = (showBorder) => showBorder
|
|
2732
|
+
? 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider'
|
|
2733
|
+
: '';
|
|
2734
|
+
|
|
2742
2735
|
const renderCardHighlight = ({ className, text = 'ХИТ' } = {}) => (jsxs("div", { className: style('w-14 h-14 bg-white flex flex-col items-center justify-center rounded-md shadow-main-black', className), children: [jsx(Icon, { iconVersion: "black", name: "HeartIcon", width: "24", height: "24" }), jsx(Paragraph, { size: "text-s", font: "font-normal", align: "text-center", color: "text-primary-text", children: text })] }));
|
|
2743
2736
|
|
|
2744
2737
|
const cardBaseStyle = 'relative h-full';
|
|
@@ -2767,8 +2760,7 @@
|
|
|
2767
2760
|
};
|
|
2768
2761
|
const cardWrapperStyle = (_, { someCardsHighlighted }) => style(cardBaseStyle, someCardsHighlighted && (isCardHighlighted(_) ? 'pt-3xl' : 'pt-3xl sm:pt-16'));
|
|
2769
2762
|
const cardStyle = (_, { someCardsHighlighted, showBorder, cardSize = 'normal', }) => style(cardBaseStyle, 'min-w-80', CARD_SIZE_MAP[cardSize], // TODO fix для RecommendationCard
|
|
2770
|
-
someCardsHighlighted && (isCardHighlighted(_) ? 'pt-3xl sm:pt-16' : 'pt-3xl'), showBorder &&
|
|
2771
|
-
'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider h-full');
|
|
2763
|
+
someCardsHighlighted && (isCardHighlighted(_) ? 'pt-3xl sm:pt-16' : 'pt-3xl'), getBorderStyle(showBorder), showBorder && 'h-full');
|
|
2772
2764
|
const isCardHighlighted = (_) => _?.content && 'isHighlighting' in _.content && _.content.isHighlighting;
|
|
2773
2765
|
|
|
2774
2766
|
const VISIBLE_ITEM_COUNT = 1;
|
|
@@ -2795,8 +2787,8 @@
|
|
|
2795
2787
|
'CarouselProgramsCard',
|
|
2796
2788
|
'CarouselRecommendationCard',
|
|
2797
2789
|
'CarouselTariffsCard',
|
|
2798
|
-
'CarouselRichTextCard',
|
|
2799
2790
|
'CarouselInvestmentCard',
|
|
2791
|
+
'RichTextBlock',
|
|
2800
2792
|
'ProductBlock',
|
|
2801
2793
|
];
|
|
2802
2794
|
Carousel.childSchema = () => ({
|
|
@@ -2828,7 +2820,7 @@
|
|
|
2828
2820
|
center: '@xl:self-center',
|
|
2829
2821
|
end: '@xl:self-end',
|
|
2830
2822
|
};
|
|
2831
|
-
const BaseTile = JSX(({ className, defaultPadding, padding, title = '', insetTitle = '', buttons, leftImage, rightImage, imageAlign, isImageAlwaysOnRight = false, isImageSecondary = false, children, }) => (jsxs("div", { className: style('relative flex flex-col gap-3xl overflow-hidden', padding || defaultPadding, className), children: [title ? jsx("div", { className: "relative", children: title }) : null, jsxs("div", { className: style('grow relative flex flex-col @
|
|
2823
|
+
const BaseTile = JSX(({ className, defaultPadding, padding, title = '', insetTitle = '', buttons, leftImage, rightImage, imageAlign, isImageAlwaysOnRight = false, isImageSecondary = false, children, }) => (jsxs("div", { className: style('relative flex flex-col gap-3xl overflow-hidden', padding || defaultPadding, className), children: [title ? jsx("div", { className: "relative", children: title }) : null, jsxs("div", { className: style('grow relative flex flex-col @xl:flex-row gap-3xl', leftImage ? 'self-start' : ''), children: [renderImageContainer(leftImage, { imageAlign, className: 'mx-auto' }), jsxs("div", { className: style('grid gap-3xl', rightImage ? '@xl:grid-cols-2' : '', leftImage ? '' : 'grow'), children: [jsxs("div", { className: "grow space-y-lg min-w-fit", children: [insetTitle, children] }), renderImageContainer(rightImage, {
|
|
2832
2824
|
className: style('@xl:justify-self-end @xl:col-start-2', buttons ? rowSpanStyle(isImageAlwaysOnRight) : '', positionStyle(isImageAlwaysOnRight), imageSecondaryStyle(isImageSecondary)),
|
|
2833
2825
|
imageAlign,
|
|
2834
2826
|
}), renderButtons(buttons)] })] })] })));
|
|
@@ -2836,7 +2828,7 @@
|
|
|
2836
2828
|
const positionStyle = (isImageAlwaysOnRight) => isImageAlwaysOnRight ? 'justify-self-end col-start-2 self-center' : '';
|
|
2837
2829
|
const renderButtons = (buttons) => buttons ? jsx("div", { className: "self-end", children: buttons }) : null;
|
|
2838
2830
|
const renderImageContainer = (image, { className, imageAlign }) => image ? (jsx("div", { className: style('shrink-1/2 justify-self-center', imageAlign && imageAlignmentMap[imageAlign], className), children: image })) : null;
|
|
2839
|
-
const imageSecondaryStyle = (isImageSecondary) => isImageSecondary ? 'hidden @
|
|
2831
|
+
const imageSecondaryStyle = (isImageSecondary) => isImageSecondary ? 'hidden @xl:block' : '';
|
|
2840
2832
|
|
|
2841
2833
|
const cardStyleMap = {
|
|
2842
2834
|
black: 'bg-black',
|
|
@@ -2871,47 +2863,6 @@
|
|
|
2871
2863
|
.map((link, index) => (jsx(CarouselLinkButton, { ...link }, String(index)))) }, String(groupIndex)))) }));
|
|
2872
2864
|
};
|
|
2873
2865
|
|
|
2874
|
-
const LinkWrapper = JSX(({ className = '', href, target, isRemote = false, children }) => {
|
|
2875
|
-
const link = useLink({ isRemote });
|
|
2876
|
-
const linkProps = link({ href, target });
|
|
2877
|
-
const Tag = href ? 'a' : 'div';
|
|
2878
|
-
return (jsx(Tag, { className: style('block', className), ...(href ? linkProps : {}), children: children }));
|
|
2879
|
-
});
|
|
2880
|
-
|
|
2881
|
-
const DOT_SIZE_MAP = {
|
|
2882
|
-
L: 'w-1.5 h-1.5 mr-m',
|
|
2883
|
-
M: 'w-1.5 h-1.5 mr-s',
|
|
2884
|
-
S: 'w-1 h-1 mr-xs',
|
|
2885
|
-
XS: 'w-1 h-1 mr-xs',
|
|
2886
|
-
};
|
|
2887
|
-
const ListItem = JSX(({ className, isDotted = true, children, size = 'M' }) => (jsxs("div", { className: style('font-sans flex', className), role: "listitem", children: [isDotted ? (jsx("div", { className: "shrink-0", children: jsx("div", { className: style('align-middle inline-block rounded-full bg-primary-text group-data-secondary:bg-white', DOT_SIZE_MAP[size]) }) })) : null, jsx("span", { children: children })] })));
|
|
2888
|
-
|
|
2889
|
-
const TEXT_SIZE_MAP = {
|
|
2890
|
-
XS: 'text-m font-light',
|
|
2891
|
-
S: 'text-l font-light',
|
|
2892
|
-
M: 'text-h6',
|
|
2893
|
-
L: 'text-h5',
|
|
2894
|
-
};
|
|
2895
|
-
const ITEM_INDENT_MAP = {
|
|
2896
|
-
XS: 'ml-2xs',
|
|
2897
|
-
S: 'ml-xs',
|
|
2898
|
-
M: 'ml-s',
|
|
2899
|
-
L: 'ml-m',
|
|
2900
|
-
};
|
|
2901
|
-
const List = JSX(({ className, hasIndent, isDotted, items, listItemSize = 'M' }) => items?.length ? (jsx("section", { className: style('flex flex-col gap-xs text-left text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text', TEXT_SIZE_MAP[listItemSize], hasIndent ? ITEM_INDENT_MAP[listItemSize] : '', className), role: "list", children: items.map((item, i) => (jsx(ListItem, { isDotted: isDotted, size: listItemSize, children: item }, String(i)))) })) : null);
|
|
2902
|
-
|
|
2903
|
-
const CarouselProductCard = JSX(({ additionalDescription, align = AlignStyles, button = {}, className = '', description, headlineSmallVersion = 'H6', href, icon, isDotted = true, isButtonFullWidth = true, isImageFullWidth = false, isTopPosition = false, items = [], target, title, version = 'primary', ...rest }) => {
|
|
2904
|
-
return (jsxs(BlockWrapper, { className: style('flex flex-col justify-between', className), defaultPadding: "p-0", version: version, ...rest, children: [jsxs(LinkWrapper, { className: "p-m flex flex-col gap-xs", href: href, target: target, children: [renderCardTitle(headlineSmallVersion, title, align), renderDescription$1(description, align), renderItems(items, isDotted, version), renderAdditionalDescription(additionalDescription, align), renderImage$2(icon, isImageFullWidth, isTopPosition)] }), renderButtonsSection([button], {
|
|
2905
|
-
className: style('p-m pt-0', isButtonFullWidth ? '' : 'self-center'),
|
|
2906
|
-
isVertical: isButtonFullWidth,
|
|
2907
|
-
})] }));
|
|
2908
|
-
});
|
|
2909
|
-
const renderImage$2 = (image, isImageFullWidth, isTopPosition) => (jsxs("div", { className: style('flex gap-y-lg justify-center', isImageFullWidth ? 'min-w-full h-full' : '', isTopPosition ? 'order-first' : 'order-last'), children: [image?.src ? jsx(Img, { image: image }) : null, image?.icon ? (jsx(Img, { className: style(!isImageFullWidth ? 'w-8 h-8 min-w-8' : 'w-full h-full'), image: image })) : null] }));
|
|
2910
|
-
const renderCardTitle = (headlineSmallVersion, title, align) => title ? (jsx(Text, { align: align, size: HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title })) : null;
|
|
2911
|
-
const renderDescription$1 = (description, align) => description ? (jsx(Paragraph, { align: align, size: "text-l", children: description })) : null;
|
|
2912
|
-
const renderAdditionalDescription = (additionalDescription, align) => additionalDescription ? (jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text group-data-secondary:text-white/80", align: align, children: additionalDescription })) : null;
|
|
2913
|
-
const renderItems = (items, isDotted, version = 'primary') => items?.length ? (jsx(List, { className: style('text-s', version === 'primary' ? '!text-secondary-text' : ''), items: items.filter((item) => item?.text).map((item) => item.text), isDotted: isDotted, listItemSize: "S" })) : null;
|
|
2914
|
-
|
|
2915
2866
|
const sum = (list = []) => list.reduce((a, b) => a + b, 0);
|
|
2916
2867
|
|
|
2917
2868
|
const avg = (items = []) => (items?.length ? sum(items) / items.length : 0);
|
|
@@ -2953,6 +2904,28 @@
|
|
|
2953
2904
|
|
|
2954
2905
|
const BenefitsList = JSX(({ isTabularBenefits, ...rest }) => isTabularBenefits ? jsx(TabularBenefitsList, { ...rest }) : jsx(DefaultBenefitsList, { ...rest }));
|
|
2955
2906
|
|
|
2907
|
+
const DOT_SIZE_MAP = {
|
|
2908
|
+
L: 'w-1.5 h-1.5 mr-m',
|
|
2909
|
+
M: 'w-1.5 h-1.5 mr-s',
|
|
2910
|
+
S: 'w-1 h-1 mr-xs',
|
|
2911
|
+
XS: 'w-1 h-1 mr-xs',
|
|
2912
|
+
};
|
|
2913
|
+
const ListItem = JSX(({ className, isDotted, children, size = 'M' }) => (jsxs("div", { className: style('font-sans flex', className), role: "listitem", children: [isDotted ? (jsx("div", { className: "shrink-0", children: jsx("div", { className: style('align-middle inline-block rounded-full bg-primary-text group-data-secondary:bg-white', DOT_SIZE_MAP[size]) }) })) : null, jsx("span", { children: children })] })));
|
|
2914
|
+
|
|
2915
|
+
const TEXT_SIZE_MAP = {
|
|
2916
|
+
XS: 'text-m font-light',
|
|
2917
|
+
S: 'text-l font-light',
|
|
2918
|
+
M: 'text-h6',
|
|
2919
|
+
L: 'text-h5',
|
|
2920
|
+
};
|
|
2921
|
+
const ITEM_INDENT_MAP = {
|
|
2922
|
+
XS: 'ml-2xs',
|
|
2923
|
+
S: 'ml-xs',
|
|
2924
|
+
M: 'ml-s',
|
|
2925
|
+
L: 'ml-m',
|
|
2926
|
+
};
|
|
2927
|
+
const List = JSX(({ className, hasIndent, isDotted = true, items = [], listItemSize = 'M' }) => items?.length ? (jsx("section", { className: style('flex flex-col gap-xs text-left text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text', TEXT_SIZE_MAP[listItemSize], hasIndent ? ITEM_INDENT_MAP[listItemSize] : '', className), role: "list", children: items.map((item, i) => (jsx(ListItem, { isDotted: isDotted, size: listItemSize, children: item }, String(i)))) })) : null);
|
|
2928
|
+
|
|
2956
2929
|
const Tags = JSX(({ className, tags }) => tags?.length ? (jsx("div", { className: style('flex flex-wrap gap-xs', className), role: "list", children: tags.map(renderTag) })) : null);
|
|
2957
2930
|
const renderTag = (tag, key) => (jsx("div", { className: "p-xs border-solid border rounded-md border-gray", role: "listitem", children: jsx(Text, { size: "text-m", font: "font-light", children: tag }) }, String(key)));
|
|
2958
2931
|
|
|
@@ -2966,6 +2939,13 @@
|
|
|
2966
2939
|
const renderTags = (tags) => (tags?.length ? jsx(Tags, { tags: tags }) : null);
|
|
2967
2940
|
const renderHeadline = ({ title, description, headlineVersion, align }) => title || description ? (jsx(Headline, { title: title, description: description, headlineVersion: headlineVersion, align: align, isEmbedded: true })) : null;
|
|
2968
2941
|
|
|
2942
|
+
const LinkWrapper = JSX(({ className = '', href, target, isRemote = false, children }) => {
|
|
2943
|
+
const link = useLink({ isRemote });
|
|
2944
|
+
const linkProps = link({ href, target });
|
|
2945
|
+
const Tag = href ? 'a' : 'div';
|
|
2946
|
+
return (jsx(Tag, { className: style('block', className), ...(href ? linkProps : {}), children: children }));
|
|
2947
|
+
});
|
|
2948
|
+
|
|
2969
2949
|
const ICONS_MAP = [
|
|
2970
2950
|
{
|
|
2971
2951
|
origins: ['t.me', 'telegram.org'],
|
|
@@ -3017,12 +2997,12 @@
|
|
|
3017
2997
|
..._,
|
|
3018
2998
|
...buttonText,
|
|
3019
2999
|
icon: { ...iconCustom, iconVersion: 'color' },
|
|
3020
|
-
version,
|
|
3000
|
+
version: _?.version ?? version,
|
|
3021
3001
|
};
|
|
3022
3002
|
});
|
|
3023
3003
|
const buttonClassName = style('border border-solid hover:border-transparent group-data-primary:border-main-divider border-main-divider group-data-gray:border-green group/media', showButtonText && hasText ? '' : 'basis-auto', stretched ? 'flex-1 justify-center' : '');
|
|
3024
3004
|
return (jsxs("div", { className: style('flex flex-col gap-xs', className), children: [jsx("div", { className: "flex gap-xs", children: renderButtonsSection(buttons, {
|
|
3025
|
-
className: stretched ? '
|
|
3005
|
+
className: style(stretched || hasText ? 'basis-full' : ''),
|
|
3026
3006
|
buttonClassName,
|
|
3027
3007
|
}) }), children ? (jsx(Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: children })) : null] }));
|
|
3028
3008
|
});
|
|
@@ -3030,11 +3010,10 @@
|
|
|
3030
3010
|
const ImageAlwaysOnRight = true;
|
|
3031
3011
|
|
|
3032
3012
|
//TODO: replace SocialMedia with renderButtonSection
|
|
3033
|
-
const CarouselRecommendationCard = JSX(({ className, padding, description, href, icon, items = [], listItemSize = 'S', socialMedia = [], target, title, align = 'text-left', benefits, imageOptions: { directionRight = true, isImageAlwaysOnRight = ImageAlwaysOnRight, isImageSecondary = false, } = {}, ...rest }) => {
|
|
3034
|
-
return (jsx(BlockWrapper, { className: style('relative min-h-28 group-data-gray:bg-main-divider/50', className), defaultPadding: "p-0", ...rest, children: jsx(LinkWrapper, { href: href, target: target, className: "h-full", children: jsxs(BaseTile, { className: "h-full", defaultPadding: "p-2xl", padding: padding, insetTitle: title ? (jsx(Headline, { title: title, description: description, headlineVersion: "
|
|
3013
|
+
const CarouselRecommendationCard = JSX(({ className, padding, description, additionalDescription, href, icon, items = [], isDotted, listItemSize = 'S', socialMedia = [], target, title, align = 'text-left', benefits, imageOptions: { directionRight = true, isImageAlwaysOnRight = ImageAlwaysOnRight, isImageSecondary = false, } = {}, ...rest }) => {
|
|
3014
|
+
return (jsx(BlockWrapper, { className: style('relative min-h-28 group-data-gray:bg-main-divider/50', className), defaultPadding: "p-0", ...rest, children: jsx(LinkWrapper, { href: href, target: target, className: "h-full", children: jsxs(BaseTile, { className: "h-full", defaultPadding: "p-2xl", padding: padding, insetTitle: title ? (jsx(Headline, { title: title, description: description, headlineVersion: "XS", isEmbedded: true, align: align })) : null, ...leftOrRightImage(isIcon(icon) ? jsx(Img, { image: icon }) : null, directionRight), buttons: socialMedia.length ? (jsx(SocialMedia, { media: socialMedia, showButtonText: true, version: rest?.version })) : null, isImageAlwaysOnRight: isImageAlwaysOnRight, isImageSecondary: isImageSecondary, imageAlign: "center", children: [jsx(BenefitsList, { benefits: benefits }), jsx(List, { items: items, listItemSize: listItemSize, isDotted: isDotted }), renderAdditionalDescription(additionalDescription, align)] }) }) }));
|
|
3035
3015
|
});
|
|
3036
|
-
|
|
3037
|
-
const CarouselRichTextCard = JSX(({ className = '', __html, richVersion = 'striped', ...rest }) => (jsx(BlockWrapper, { className: className, ...rest, children: jsx(RichText, { __html: __html, richVersion: richVersion }) })));
|
|
3016
|
+
const renderAdditionalDescription = (additionalDescription, align) => additionalDescription ? (jsx(Paragraph, { size: "text-m", font: "font-light", color: "text-secondary-text group-data-secondary:text-white/80", align: align, children: additionalDescription })) : null;
|
|
3038
3017
|
|
|
3039
3018
|
const Foldable = JSX(({ className = '', isFoldButtonOnTop = false, unfoldedByDefault = false, renderFoldableSection, renderFoldButton, }) => {
|
|
3040
3019
|
const [isUnfolded, setIsUnfolded] = useState(unfoldedByDefault);
|
|
@@ -3369,11 +3348,11 @@
|
|
|
3369
3348
|
const DepositoryItem = ({ title, timestamp, publicId }) => {
|
|
3370
3349
|
const link = useLink({ basePath: '/' });
|
|
3371
3350
|
const { href } = link({ href: `/api/v1/depository/${publicId}/file` });
|
|
3372
|
-
return (jsxs("div", { className: "grid grid-cols-12 py-lg border-gray border-opacity-50 border-b", children: [jsx("div", { className: "col-span-2 text-m", children: timestamp ? jsx(Text, { children: formatDate
|
|
3351
|
+
return (jsxs("div", { className: "grid grid-cols-12 py-lg border-gray border-opacity-50 border-b", children: [jsx("div", { className: "col-span-2 text-m", children: timestamp ? jsx(Text, { children: formatDate(timestamp) }) : null }), jsx("div", { className: "col-span-10 text-h6 hover:text-primary-active", children: jsx("a", { href: href, download: true, "aria-label": "\u0421\u043A\u0430\u0447\u0430\u0442\u044C", children: title }) })] }, publicId));
|
|
3373
3352
|
};
|
|
3374
3353
|
|
|
3375
3354
|
const useDepository = ({ size, page, query, startDate, endDate }) => {
|
|
3376
|
-
const { data } = useAsyncData(`/api/v1/depository?page=${page}&size=${size}&query=${query}×tampStart=${startDate ? formatDate
|
|
3355
|
+
const { data } = useAsyncData(`/api/v1/depository?page=${page}&size=${size}&query=${query}×tampStart=${startDate ? formatDate(startDate, true) : ''}×tampEnd=${endDate ? formatDate(endDate, true) : ''}`, fetchJSONUnsafe);
|
|
3377
3356
|
return { items: data?.content, totalPages: data?.totalPages };
|
|
3378
3357
|
};
|
|
3379
3358
|
|
|
@@ -4196,9 +4175,7 @@
|
|
|
4196
4175
|
const HorizontalLayout = JSX(({ className = '', gap = 'XS', isPadding = false, version = 'transparent', isTheme = false, isCardBorder, ...rest }) => (jsx(BlockWrapper, { className: style('relative', 'grid grid-cols-12', gapStyles[gap], className), defaultPadding: isPadding ? 'p-6xl' : '', version: version, isTheme: isTheme, ...rest, children: renderChildren({
|
|
4197
4176
|
...rest,
|
|
4198
4177
|
extraProps: {
|
|
4199
|
-
className: isCardBorder
|
|
4200
|
-
? 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider'
|
|
4201
|
-
: '',
|
|
4178
|
+
className: getBorderStyle(isCardBorder),
|
|
4202
4179
|
},
|
|
4203
4180
|
}) })));
|
|
4204
4181
|
HorizontalLayout.childrenTypes = {
|
|
@@ -4333,20 +4310,12 @@
|
|
|
4333
4310
|
return `${parseFloat((bytes / Math.pow(KILO, i)).toFixed(decimals))} ${KILO_SIZES[i]}`;
|
|
4334
4311
|
};
|
|
4335
4312
|
|
|
4336
|
-
const LinkDocItem = JSX(({ icon, text, fileSize, ...linkProps }) =>
|
|
4337
|
-
|
|
4338
|
-
const
|
|
4339
|
-
const
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
};
|
|
4343
|
-
const getExtFromHref = (href) => {
|
|
4344
|
-
if (!href) {
|
|
4345
|
-
return '';
|
|
4346
|
-
}
|
|
4347
|
-
const index = href.lastIndexOf('.');
|
|
4348
|
-
return index !== -1 ? href.substring(index + 1) : '';
|
|
4349
|
-
};
|
|
4313
|
+
const LinkDocItem = JSX(({ icon, text, fileFormat, fileSize, ...linkProps }) => {
|
|
4314
|
+
const prefix = fileFormat || fileSize ? ',' : '';
|
|
4315
|
+
const size = fileSize ?? '';
|
|
4316
|
+
const format = fileFormat ? String(fileFormat) : '';
|
|
4317
|
+
return (jsxs("a", { className: "flex box-border gap-s group/item h-fit w-fit text-primary-text no-underline hover:text-primary-main", role: "link", ...linkProps, children: [icon, text ? (jsxs(Text, { size: "text-l", font: "font-light", children: [text, jsx(Text, { color: "text-secondary-text", children: linkProps?.href && `${size} ${prefix} ${format}` })] })) : null] }));
|
|
4318
|
+
});
|
|
4350
4319
|
|
|
4351
4320
|
const linkIconStyle = 'min-w-6 min-h-6';
|
|
4352
4321
|
|
|
@@ -4356,26 +4325,27 @@
|
|
|
4356
4325
|
};
|
|
4357
4326
|
const LinkDocs = JSX(({ className = '', title, description, align = 'text-center', documents, icon = { icon: 'DocIcon' }, columnsMode = 'double', ...rest }) => {
|
|
4358
4327
|
const router = useRouter();
|
|
4359
|
-
return (jsxs(BlockWrapper, { className: style('space-y-lg', className), defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: description, align: align, headlineVersion: "M", as: "h2", isEmbedded: true }), documents?.length ? (jsx("div", { className: style('grid gap-xl', columnsMode === 'double' ? '@md:grid-cols-2' : 'grid-cols-1', linkColumnsModeStyleMap[columnsMode]), role: "list", children: documents.map(renderLinkDocItem(router,
|
|
4328
|
+
return (jsxs(BlockWrapper, { className: style('space-y-lg', className), defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: description, align: align, headlineVersion: "M", as: "h2", isEmbedded: true }), documents?.length ? (jsx("div", { className: style('grid gap-xl', columnsMode === 'double' ? '@md:grid-cols-2' : 'grid-cols-1', linkColumnsModeStyleMap[columnsMode]), role: "list", children: documents.map(renderLinkDocItem(router, icon)) })) : null] }));
|
|
4360
4329
|
});
|
|
4361
|
-
const renderLinkDocItem = (router,
|
|
4330
|
+
const renderLinkDocItem = (router, icon) => (docBlockDef, i) => {
|
|
4362
4331
|
const href = docBlockDef?.docType === 'Attachment'
|
|
4363
4332
|
? adjustHref(router)(docBlockDef?.attachment?.src)
|
|
4364
4333
|
: docBlockDef?.href;
|
|
4365
4334
|
const fileSize = docBlockDef?.docType === 'Attachment'
|
|
4366
4335
|
? formatBytes(docBlockDef?.attachment?.fileSize || 0)
|
|
4367
4336
|
: docBlockDef?.fileSize;
|
|
4368
|
-
|
|
4337
|
+
const fileFormat = docBlockDef?.docType !== 'Attachment' ? docBlockDef?.fileFormat : '';
|
|
4338
|
+
return (jsx("div", { role: "listitem", children: jsx(LinkDocItem, { text: docBlockDef?.text, target: docBlockDef?.target, href: href, fileFormat: fileFormat, fileSize: fileSize, icon: icon ? jsx(Img, { className: linkIconStyle, image: icon, width: "24", height: "24" }) : null }) }, String(i)));
|
|
4369
4339
|
};
|
|
4370
4340
|
|
|
4371
|
-
const renderList$1 = (items, listItemSize) => {
|
|
4372
|
-
return items?.length ? (jsx(List, { items: items, listItemSize: listItemSize, className: "text-l font-light" })) : (jsx(
|
|
4341
|
+
const renderList$1 = (items, listItemSize, additionalDescription) => {
|
|
4342
|
+
return items?.length ? (jsx(List, { items: items, listItemSize: listItemSize, className: "text-l font-light" })) : (jsx(Text, { size: "text-m", "font-weight": "font-light", color: "text-secondary-text", children: additionalDescription }));
|
|
4373
4343
|
};
|
|
4374
4344
|
|
|
4375
|
-
const MobileAppTile = JSX(({ className, padding, align = 'text-left', buttons = [], description, headingType = 'h4', image, items, listItemSize, qr, title = 'Мобильное приложение', version = 'primary', ...rest }) => {
|
|
4345
|
+
const MobileAppTile = JSX(({ className, padding, align = 'text-left', buttons = [], description, headingType = 'h4', image, items, listItemSize, qr, additionalDescription = '', title = 'Мобильное приложение', version = 'primary', ...rest }) => {
|
|
4376
4346
|
const containerStyle = version === 'secondary' ? 'p-m min-w-32' : 'min-w-24';
|
|
4377
4347
|
const img = image?.src ? jsx(Img, { className: "hidden lg:block", image: image }) : null;
|
|
4378
|
-
return (jsx(BlockWrapper, { className: style('min-h-80', className), padding: "p-0", version: version, ...rest, children: jsxs(BaseTile, { className: "h-full", padding: padding, defaultPadding: "p-6xl", title: title ? (jsx(Heading, { headingType: headingType, title: title, className: style('whitespace-pre-wrap', align) })) : null, rightImage: img, buttons: renderButtonsSection(buttons, { className: 'flex-wrap' }), children: [description ? (jsx(Text, { size: "text-xl", "font-weight": "font-light", children: description })) : null, jsxs("div", { className: style('gap-m', 'flex flex-1 flex-col', 'flex-col items-start @xl:flex-row @xl:items-center'), children: [renderList$1(items, listItemSize), qr?.src ? (jsx("div", { className: style('flex justify-center bg-white rounded-md @xl:-order-1', containerStyle), children: jsx(Img, { className: "w-fit", image: qr }) })) : null, image?.src ? jsx(Img, { className: "lg:hidden", image: image }) : null] })] }) }));
|
|
4348
|
+
return (jsx(BlockWrapper, { className: style('min-h-80', className), padding: "p-0", version: version, ...rest, children: jsxs(BaseTile, { className: "h-full", padding: padding, defaultPadding: "p-6xl", title: title ? (jsx(Heading, { headingType: headingType, title: title, className: style('whitespace-pre-wrap', align) })) : null, rightImage: img, buttons: renderButtonsSection(buttons, { className: 'flex-wrap' }), children: [description ? (jsx(Text, { size: "text-xl", "font-weight": "font-light", children: description })) : null, jsxs("div", { className: style('gap-m', 'flex flex-1 flex-col', 'flex-col items-start @xl:flex-row @xl:items-center'), children: [renderList$1(items, listItemSize, additionalDescription), qr?.src ? (jsx("div", { className: style('flex justify-center bg-white rounded-md @xl:-order-1', containerStyle), children: jsx(Img, { className: "w-fit", image: qr }) })) : null, image?.src ? jsx(Img, { className: "lg:hidden", image: image }) : null] })] }) }));
|
|
4379
4349
|
});
|
|
4380
4350
|
|
|
4381
4351
|
const badgeBgStyleMap = {
|
|
@@ -4867,10 +4837,9 @@
|
|
|
4867
4837
|
ev?.preventDefault();
|
|
4868
4838
|
router.back();
|
|
4869
4839
|
}, []);
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
return (jsxs(BlockWrapper, { className: style('overflow-hidden flex flex-col gap-3xl box-border', borderStyle, className), defaultPadding: "p-6xl", padding: padding, ...rest, children: [backwardButton ? renderBackwardButton(rest.version || 'primary', handleClick) : null, jsx(BaseProductTile, { className: "grow h-full", ...rest })] }));
|
|
4840
|
+
return (jsxs(BlockWrapper, { className: style('overflow-hidden flex flex-col gap-3xl box-border', getBorderStyle(showBorder), className), defaultPadding: "p-6xl", padding: padding, ...rest, children: [backwardButton
|
|
4841
|
+
? renderBackwardButton(!rest.version || rest.version === 'primary' ? 'primary' : 'white', handleClick)
|
|
4842
|
+
: null, jsx(BaseProductTile, { className: "grow h-full", ...rest })] }));
|
|
4874
4843
|
});
|
|
4875
4844
|
|
|
4876
4845
|
const ProductGallery = JSX(({ className = '', padding, slides = [], ...rest }) => {
|
|
@@ -4893,17 +4862,6 @@
|
|
|
4893
4862
|
|
|
4894
4863
|
const ProductTile = JSX(({ className, padding, headlineVersion = 'S', isTabularBenefits = true, additionalDescription, imageOptions, isFullWidthTitle = true, ...rest }) => (jsx(BlockWrapper, { className: className, padding: "p-0", ...rest, children: jsx(BaseProductTile, { className: "h-full", defaultPadding: "p-4xl sm:p-xl", padding: padding, headlineVersion: headlineVersion, isTabularBenefits: isTabularBenefits, imageOptions: { isImageSecondary: true, ...imageOptions }, isFullWidthTitle: isFullWidthTitle, ...rest, children: additionalDescription ? (jsx(Paragraph, { size: "text-m", font: "font-light", color: "group-data-primary:text-secondary-text", children: additionalDescription })) : null }) })));
|
|
4895
4864
|
|
|
4896
|
-
const PromoTile = JSX(({ className, title = 'Акции и спецпредложения', description, headlineVersion = 'S', date, buttons = [], ...rest }) => (jsx(BlockWrapper, { className: style('box-border', className), ...rest, children: jsxs(BaseTile, { className: "h-full", title: title ? (jsx(Headline, { title: title, headlineVersion: headlineVersion, align: "text-left", isEmbedded: true })) : null, buttons: renderButtonsSection(buttons), children: [date ? jsx("div", { className: "text-s mb-xs", children: formatDate(date) }) : null, jsx("div", { className: "text-l", children: description })] }) })));
|
|
4897
|
-
function formatDate(date) {
|
|
4898
|
-
const dateObj = new Date(date);
|
|
4899
|
-
const dateFormat = {
|
|
4900
|
-
day: 'numeric',
|
|
4901
|
-
month: 'long',
|
|
4902
|
-
year: 'numeric',
|
|
4903
|
-
};
|
|
4904
|
-
return dateObj.toLocaleString('ru-RU', dateFormat).replace('г.', '');
|
|
4905
|
-
}
|
|
4906
|
-
|
|
4907
4865
|
const RepresentativeOfficeInfo = JSX(({ address, email, telephone, button, className = '', __html, icon, title, version = 'primary', ...rest }) => (jsxs(BlockWrapper, { className: style('box-border text-left space-y-s', className), version: version, ...rest, children: [jsxs("div", { className: "w-full flex justify-between flex-row-reverse", children: [isIcon(icon) ? (jsx("div", { className: 'w-10 h-7 sm:w-24 sm:h-16', children: jsx(Img, { image: icon }) })) : null, title ? jsx(Heading, { headingType: "h3", as: "h3", title: title }) : null] }), jsxs("div", { className: "w-full space-y-m", children: [__html ? renderDescriptionBlock(__html) : null, renderBlock({
|
|
4908
4866
|
label: 'Адрес',
|
|
4909
4867
|
data: address,
|
|
@@ -5237,8 +5195,6 @@
|
|
|
5237
5195
|
const COLS_LENGTH_FOR_SCROLL = 2;
|
|
5238
5196
|
const COLUMN_WIDTH$1 = 4 * 80 + 40; // w-80 + pl-10 = 360px
|
|
5239
5197
|
|
|
5240
|
-
const headlineAlign = 'text-center';
|
|
5241
|
-
|
|
5242
5198
|
const TableInnerButton = JSX(({ className = '', isOpen, onClick }) => (jsx(Button, { className: className, appendRight: jsx(Img, { image: { icon: isOpen ? 'ArrowUpIcon' : 'ArrowDownIcon' }, width: "20", height: "20" }), text: isOpen ? 'Скрыть' : 'Показать', version: "gray", onClick: onClick })));
|
|
5243
5199
|
|
|
5244
5200
|
const renderButtonsCellData = ({ buttons }) => renderButtonsSection(buttons, {
|
|
@@ -5401,7 +5357,7 @@
|
|
|
5401
5357
|
});
|
|
5402
5358
|
const rows = (rowData || []).map((row, i) => (jsx(TariffsTableRow, { row: row, activeIndex: activeIndex, rowIdx: i, ...rest }, String(i))));
|
|
5403
5359
|
const [visibleRows, hiddenRows] = hiddenRowsNum > 0 ? [rows.slice(0, -hiddenRowsNum), rows.slice(-hiddenRowsNum)] : [rows, []];
|
|
5404
|
-
return (jsxs(BlockWrapper, { className: style('overflow-hidden relative space-y-
|
|
5360
|
+
return (jsxs(BlockWrapper, { className: style('overflow-hidden relative space-y-6xl @4xl:space-y-xl', className), defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: description, headlineVersion: "M", isEmbedded: true, align: "text-center" }), jsx("div", { className: "space-y-m", children: hiddenRowsNum > 0 ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs(TariffsTableWrapper, { controls: controls, children: [visibleRows, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenRows })] })), renderFoldButton: renderDefaultFoldButton })) : (jsx(TariffsTableWrapper, { controls: controls, children: rows })) })] }));
|
|
5405
5361
|
});
|
|
5406
5362
|
|
|
5407
5363
|
const TextBlock = JSX(({ className = '', title, description, iconVersion, image, __html, items = [], ...rest }) => (jsxs(BlockWrapper, { className: style('flex gap-s sm:gap-m bg-white group-data-secondary:bg-primary-main/10', className), ...rest, children: [iconVersion === 'small' ? renderIcon() : null, iconVersion === 'big' ? renderImage(image) : null, jsxs("div", { className: "flex flex-col w-fit gap-2xs sm:gap-xs", children: [title ? (jsx(Text, { size: "text-l", font: "font-normal", color: "text-primary-text group-data-secondary:text-white", children: title })) : null, description ? renderDescription(description) : null, items?.length ? renderList(items, true) : null, __html ? jsx(RichText, { __html: __html }) : null] })] })));
|
|
@@ -5413,9 +5369,14 @@
|
|
|
5413
5369
|
return (jsx("ul", { className: style('text-secondary-text group-data-secondary:text-white/80', listStyle), children: items.map((_, i) => (jsx("li", { children: jsx(Text, { size: "text-s", font: "font-light", children: _ }) }, `listItem-${i}`))) }));
|
|
5414
5370
|
};
|
|
5415
5371
|
|
|
5416
|
-
const
|
|
5372
|
+
const Tile = JSX(({ className, padding, headlineVersion = 'S', listItemSize = 'M', ...rest }) => (jsx(BlockWrapper, { className: className, padding: "p-0", ...rest, children: jsx(BaseProductTile, { className: "h-full", defaultPadding: "p-xl", padding: padding, headlineVersion: headlineVersion, listItemSize: listItemSize, isFullWidthTitle: false, ...rest }) })));
|
|
5373
|
+
|
|
5374
|
+
const VerticalLayout = JSX(({ className = '', gap = '', isPadding = false, isInnerPadding = true, version = 'transparent', isTheme = false, isInnerBorder = false, ...rest }) => (jsx(BlockWrapper, { className: style('relative flex flex-col', gapStyles[gap], className), defaultPadding: isPadding ? 'p-6xl' : '', version: version, isTheme: isTheme, ...rest, children: renderChildren({
|
|
5417
5375
|
...rest,
|
|
5418
|
-
extraProps: {
|
|
5376
|
+
extraProps: {
|
|
5377
|
+
className: style('w-full', getBorderStyle(isInnerBorder)),
|
|
5378
|
+
padding: isInnerPadding ? '' : 'p-0',
|
|
5379
|
+
},
|
|
5419
5380
|
}) })));
|
|
5420
5381
|
VerticalLayout.childrenTypes = [];
|
|
5421
5382
|
|
|
@@ -5448,9 +5409,7 @@
|
|
|
5448
5409
|
CarouselCatalogCard,
|
|
5449
5410
|
CarouselInvestmentCard,
|
|
5450
5411
|
CarouselLinks,
|
|
5451
|
-
CarouselProductCard,
|
|
5452
5412
|
CarouselRecommendationCard,
|
|
5453
|
-
CarouselRichTextCard,
|
|
5454
5413
|
CarouselTariffsCard,
|
|
5455
5414
|
ComparisonTable,
|
|
5456
5415
|
ContactsBlock,
|
|
@@ -5476,7 +5435,6 @@
|
|
|
5476
5435
|
ProductBlock,
|
|
5477
5436
|
ProductGallery,
|
|
5478
5437
|
ProductTile,
|
|
5479
|
-
PromoTile,
|
|
5480
5438
|
RepresentativeOfficeInfo,
|
|
5481
5439
|
RichTextBlock,
|
|
5482
5440
|
RollupItem,
|
|
@@ -5487,6 +5445,7 @@
|
|
|
5487
5445
|
Tabs,
|
|
5488
5446
|
TariffsTable,
|
|
5489
5447
|
TextBlock,
|
|
5448
|
+
Tile,
|
|
5490
5449
|
VerticalLayout,
|
|
5491
5450
|
Video,
|
|
5492
5451
|
};
|
|
@@ -5726,7 +5685,7 @@
|
|
|
5726
5685
|
return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-3xl sticky bottom-0 pointer-events-auto" }) }));
|
|
5727
5686
|
}
|
|
5728
5687
|
|
|
5729
|
-
const packageVersion = "0.14.
|
|
5688
|
+
const packageVersion = "0.14.29";
|
|
5730
5689
|
|
|
5731
5690
|
exports.Blocks = Blocks;
|
|
5732
5691
|
exports.ContentPage = ContentPage;
|