@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
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type DescriptionProps, type HeadlineProps } from '../../model/HeadlineType';
|
|
2
|
-
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
3
|
-
import { type ButtonsSectionContent } from '../../ui-kit/Button/ButtonsSectionContent';
|
|
4
|
-
/**
|
|
5
|
-
* @title Акции
|
|
6
|
-
*/
|
|
7
|
-
export declare type PromoTileContent = UniBlockContent & HeadlineProps & DescriptionProps & ButtonsSectionContent & {
|
|
8
|
-
/** @title Дата публикации */
|
|
9
|
-
date?: string;
|
|
10
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PromoTileContent.js","sourceRoot":"","sources":["../../../src/components/PromoTile/PromoTileContent.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const headlineAlign = "text-left";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"headlineAlign.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/headlineAlign.tsx"],"names":[],"mappings":";;AAAa,QAAA,aAAa,GAAG,WAAW,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type UniBlockProps } from '../../model/JSXBlock';
|
|
2
|
-
import { type CarouselProductCardContent } from './CarouselProductCardContent';
|
|
3
|
-
export interface CarouselProductCardProps extends CarouselProductCardContent, UniBlockProps {
|
|
4
|
-
}
|
|
5
|
-
export declare const CarouselProductCard: import("@redneckz/uni-jsx").UNIComponent<CarouselProductCardProps, any, any>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { jsxs as _jsxs, jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { AlignStyles } from '../../model/AlignStyles.js';
|
|
4
|
-
import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
|
|
5
|
-
import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection.js';
|
|
6
|
-
import { Img } from '../../ui-kit/Img/Img.js';
|
|
7
|
-
import { LinkWrapper } from '../../ui-kit/LinkWrapper/LinkWrapper.js';
|
|
8
|
-
import { List } from '../../ui-kit/List/List.js';
|
|
9
|
-
import { Paragraph } from '../../ui-kit/Paragraph/Paragraph.js';
|
|
10
|
-
import { Text } from '../../ui-kit/Text/Text.js';
|
|
11
|
-
import { style } from '../../utils/style.js';
|
|
12
|
-
import { HEADLINE_SMALL_VERSION } from '../Headline/headlineVersionStyles.js';
|
|
13
|
-
export 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 }) => {
|
|
14
|
-
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(description, align), renderItems(items, isDotted, version), renderAdditionalDescription(additionalDescription, align), renderImage(icon, isImageFullWidth, isTopPosition)] }), renderButtonsSection([button], {
|
|
15
|
-
className: style('p-m pt-0', isButtonFullWidth ? '' : 'self-center'),
|
|
16
|
-
isVertical: isButtonFullWidth,
|
|
17
|
-
})] }));
|
|
18
|
-
});
|
|
19
|
-
const renderImage = (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] }));
|
|
20
|
-
const renderCardTitle = (headlineSmallVersion, title, align) => title ? (_jsx(Text, { align: align, size: HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title })) : null;
|
|
21
|
-
const renderDescription = (description, align) => description ? (_jsx(Paragraph, { align: align, size: "text-l", children: description })) : null;
|
|
22
|
-
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;
|
|
23
|
-
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;
|
|
24
|
-
//# sourceMappingURL=CarouselProductCard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselProductCard.js","sourceRoot":"","sources":["../../../src/components/CarouselProductCard/CarouselProductCard.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { type BulletsProps } from '../../model/Bullets';
|
|
2
|
-
import { type AdditionalDescriptionProps, type AlignProps, type HeadlineSmallProps } from '../../model/HeadlineType';
|
|
3
|
-
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
4
|
-
import { type LinkCommonProps } from '../../model/LinkProps';
|
|
5
|
-
import { type IconProps } from '../../model/Picture';
|
|
6
|
-
import { type ButtonContent } from '../../ui-kit/Button/ButtonContent';
|
|
7
|
-
/**
|
|
8
|
-
* @title Элемент списка
|
|
9
|
-
*/
|
|
10
|
-
export interface ListProps {
|
|
11
|
-
/** @title Текст */
|
|
12
|
-
text?: string;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* @title Карточка продуктовой карусели
|
|
16
|
-
*/
|
|
17
|
-
export declare type CarouselProductCardContent = UniBlockContent & HeadlineSmallProps & AdditionalDescriptionProps & IconProps & BulletsProps & LinkCommonProps & AlignProps & {
|
|
18
|
-
/** @title Список */
|
|
19
|
-
items?: ListProps[];
|
|
20
|
-
/** @title Изображение на всю ширину */
|
|
21
|
-
isImageFullWidth?: boolean;
|
|
22
|
-
/** @title Картинка сверху над текстом */
|
|
23
|
-
isTopPosition?: boolean;
|
|
24
|
-
/** @title Кнопка по всей ширине */
|
|
25
|
-
isButtonFullWidth?: boolean;
|
|
26
|
-
button?: ButtonContent;
|
|
27
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselProductCardContent.js","sourceRoot":"","sources":["../../../src/components/CarouselProductCard/CarouselProductCardContent.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type UniBlockProps } from '../../model/JSXBlock';
|
|
2
|
-
import { type CarouselRichTextCardContent } from './CarouselRichTextCardContent';
|
|
3
|
-
export interface CarouselRichTextCardProps extends CarouselRichTextCardContent, UniBlockProps {
|
|
4
|
-
}
|
|
5
|
-
export declare const CarouselRichTextCard: import("@redneckz/uni-jsx").UNIComponent<CarouselRichTextCardProps, any, any>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
|
|
4
|
-
import { RichText } from '../../ui-kit/RichText/RichText.js';
|
|
5
|
-
export const CarouselRichTextCard = JSX(({ className = '', __html, richVersion = 'striped', ...rest }) => (_jsx(BlockWrapper, { className: className, ...rest, children: _jsx(RichText, { __html: __html, richVersion: richVersion }) })));
|
|
6
|
-
//# sourceMappingURL=CarouselRichTextCard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselRichTextCard.js","sourceRoot":"","sources":["../../../src/components/CarouselRichTextCard/CarouselRichTextCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAK1D,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CACrC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,MAAM,EAAE,WAAW,GAAG,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CAChE,KAAC,YAAY,IAAC,SAAS,EAAE,SAAS,KAAM,IAAI,YAC1C,KAAC,QAAQ,IAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,GAAI,GACzC,CAChB,CACF,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
2
|
-
import { type RichTextProps } from '../../ui-kit/RichText/RichTextProps';
|
|
3
|
-
/**
|
|
4
|
-
* @title Карточка c форматированным вводом
|
|
5
|
-
*/
|
|
6
|
-
export declare type CarouselRichTextCardContent = UniBlockContent & RichTextProps;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselRichTextCardContent.js","sourceRoot":"","sources":["../../../src/components/CarouselRichTextCard/CarouselRichTextCardContent.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type UniBlockProps } from '../../model/JSXBlock';
|
|
2
|
-
import { type PromoTileContent } from './PromoTileContent';
|
|
3
|
-
export interface PromoTileProps extends PromoTileContent, UniBlockProps {
|
|
4
|
-
}
|
|
5
|
-
export declare const PromoTile: import("@redneckz/uni-jsx").UNIComponent<PromoTileProps, any, any>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { BaseTile } from '../../ui-kit/BaseTile/BaseTile.js';
|
|
4
|
-
import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
|
|
5
|
-
import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection.js';
|
|
6
|
-
import { style } from '../../utils/style.js';
|
|
7
|
-
import { Headline } from '../Headline/Headline.js';
|
|
8
|
-
export 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 })] }) })));
|
|
9
|
-
function formatDate(date) {
|
|
10
|
-
const dateObj = new Date(date);
|
|
11
|
-
const dateFormat = {
|
|
12
|
-
day: 'numeric',
|
|
13
|
-
month: 'long',
|
|
14
|
-
year: 'numeric',
|
|
15
|
-
};
|
|
16
|
-
return dateObj.toLocaleString('ru-RU', dateFormat).replace('г.', '');
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=PromoTile.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PromoTile.js","sourceRoot":"","sources":["../../../src/components/PromoTile/PromoTile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAKhD,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAC1B,CAAC,EACC,SAAS,EACT,KAAK,GAAG,yBAAyB,EACjC,WAAW,EACX,eAAe,GAAG,GAAG,EACrB,IAAI,EACJ,OAAO,GAAG,EAAE,EACZ,GAAG,IAAI,EACR,EAAE,EAAE,CAAC,CACJ,KAAC,YAAY,IAAC,SAAS,EAAE,KAAK,CAAC,YAAY,EAAE,SAAS,CAAC,KAAM,IAAI,YAC/D,MAAC,QAAQ,IACP,SAAS,EAAC,QAAQ,EAClB,KAAK,EACH,KAAK,CAAC,CAAC,CAAC,CACN,KAAC,QAAQ,IACP,KAAK,EAAE,KAAK,EACZ,eAAe,EAAE,eAAe,EAChC,KAAK,EAAC,WAAW,EACjB,UAAU,EAAE,IAAI,GAChB,CACH,CAAC,CAAC,CAAC,IAAI,EAEV,OAAO,EAAE,oBAAoB,CAAC,OAAO,CAAC,aAErC,IAAI,CAAC,CAAC,CAAC,cAAK,SAAS,EAAC,cAAc,YAAE,UAAU,CAAC,IAAI,CAAC,GAAO,CAAC,CAAC,CAAC,IAAI,EACrE,cAAK,SAAS,EAAC,QAAQ,YAAE,WAAW,GAAO,IAClC,GACE,CAChB,CACF,CAAC;AAEF,SAAS,UAAU,CAAC,IAAY;IAC9B,MAAM,OAAO,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/B,MAAM,UAAU,GAA+B;QAC7C,GAAG,EAAE,SAAS;QACd,KAAK,EAAE,MAAM;QACb,IAAI,EAAE,SAAS;KAChB,CAAC;IAEF,OAAO,OAAO,CAAC,cAAc,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;AACvE,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type DescriptionProps, type HeadlineProps } from '../../model/HeadlineType';
|
|
2
|
-
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
3
|
-
import { type ButtonsSectionContent } from '../../ui-kit/Button/ButtonsSectionContent';
|
|
4
|
-
/**
|
|
5
|
-
* @title Акции
|
|
6
|
-
*/
|
|
7
|
-
export declare type PromoTileContent = UniBlockContent & HeadlineProps & DescriptionProps & ButtonsSectionContent & {
|
|
8
|
-
/** @title Дата публикации */
|
|
9
|
-
date?: string;
|
|
10
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PromoTileContent.js","sourceRoot":"","sources":["../../../src/components/PromoTile/PromoTileContent.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const headlineAlign = "text-left";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"headlineAlign.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/headlineAlign.tsx"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG,WAAW,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"content": {
|
|
3
|
-
"icon": {
|
|
4
|
-
"format": "webp",
|
|
5
|
-
"size": {
|
|
6
|
-
"width": 140,
|
|
7
|
-
"height": 140
|
|
8
|
-
}
|
|
9
|
-
},
|
|
10
|
-
"title": "Заголовок 1",
|
|
11
|
-
"description": "Описание 1",
|
|
12
|
-
"version": "primary",
|
|
13
|
-
"isDotted": true,
|
|
14
|
-
"items": [
|
|
15
|
-
{ "text": "Элемент списка 1", "title": "Элемент заголовка 1" },
|
|
16
|
-
{ "text": "Элемент списка 2", "title": "Элемент заголовка 2" },
|
|
17
|
-
{ "text": "Элемент списка 3", "title": "Элемент заголовка 3" }
|
|
18
|
-
]
|
|
19
|
-
}
|
|
20
|
-
}
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { AlignStyles } from '../../model/AlignStyles';
|
|
3
|
-
import { type BlockVersion } from '../../model/BlockVersion';
|
|
4
|
-
import { type UniBlockProps } from '../../model/JSXBlock';
|
|
5
|
-
import { type Picture } from '../../model/Picture';
|
|
6
|
-
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
7
|
-
import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
|
|
8
|
-
import { Img } from '../../ui-kit/Img/Img';
|
|
9
|
-
import { LinkWrapper } from '../../ui-kit/LinkWrapper/LinkWrapper';
|
|
10
|
-
import { List } from '../../ui-kit/List/List';
|
|
11
|
-
import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
|
|
12
|
-
import { Text } from '../../ui-kit/Text/Text';
|
|
13
|
-
import { type TextAlign } from '../../ui-kit/Text/TextProps';
|
|
14
|
-
import { style } from '../../utils/style';
|
|
15
|
-
import { HEADLINE_SMALL_VERSION } from '../Headline/headlineVersionStyles';
|
|
16
|
-
import { type CarouselProductCardContent, type ListProps } from './CarouselProductCardContent';
|
|
17
|
-
|
|
18
|
-
export interface CarouselProductCardProps extends CarouselProductCardContent, UniBlockProps {}
|
|
19
|
-
|
|
20
|
-
export const CarouselProductCard = JSX<CarouselProductCardProps>(
|
|
21
|
-
({
|
|
22
|
-
additionalDescription,
|
|
23
|
-
align = AlignStyles,
|
|
24
|
-
button = {},
|
|
25
|
-
className = '',
|
|
26
|
-
description,
|
|
27
|
-
headlineSmallVersion = 'H6',
|
|
28
|
-
href,
|
|
29
|
-
icon,
|
|
30
|
-
isDotted = true,
|
|
31
|
-
isButtonFullWidth = true,
|
|
32
|
-
isImageFullWidth = false,
|
|
33
|
-
isTopPosition = false,
|
|
34
|
-
items = [],
|
|
35
|
-
target,
|
|
36
|
-
title,
|
|
37
|
-
version = 'primary',
|
|
38
|
-
...rest
|
|
39
|
-
}) => {
|
|
40
|
-
return (
|
|
41
|
-
<BlockWrapper
|
|
42
|
-
className={style('flex flex-col justify-between', className)}
|
|
43
|
-
defaultPadding="p-0"
|
|
44
|
-
version={version}
|
|
45
|
-
{...rest}
|
|
46
|
-
>
|
|
47
|
-
<LinkWrapper className="p-m flex flex-col gap-xs" href={href} target={target}>
|
|
48
|
-
{renderCardTitle(headlineSmallVersion, title, align)}
|
|
49
|
-
{renderDescription(description, align)}
|
|
50
|
-
{renderItems(items, isDotted, version)}
|
|
51
|
-
{renderAdditionalDescription(additionalDescription, align)}
|
|
52
|
-
{renderImage(icon, isImageFullWidth, isTopPosition)}
|
|
53
|
-
</LinkWrapper>
|
|
54
|
-
{renderButtonsSection([button], {
|
|
55
|
-
className: style('p-m pt-0', isButtonFullWidth ? '' : 'self-center'),
|
|
56
|
-
isVertical: isButtonFullWidth,
|
|
57
|
-
})}
|
|
58
|
-
</BlockWrapper>
|
|
59
|
-
);
|
|
60
|
-
},
|
|
61
|
-
);
|
|
62
|
-
|
|
63
|
-
const renderImage = (image?: Picture, isImageFullWidth?: boolean, isTopPosition?: boolean) => (
|
|
64
|
-
<div
|
|
65
|
-
className={style(
|
|
66
|
-
'flex gap-y-lg justify-center',
|
|
67
|
-
isImageFullWidth ? 'min-w-full h-full' : '',
|
|
68
|
-
isTopPosition ? 'order-first' : 'order-last',
|
|
69
|
-
)}
|
|
70
|
-
>
|
|
71
|
-
{image?.src ? <Img image={image} /> : null}
|
|
72
|
-
{image?.icon ? (
|
|
73
|
-
<Img
|
|
74
|
-
className={style(!isImageFullWidth ? 'w-8 h-8 min-w-8' : 'w-full h-full')}
|
|
75
|
-
image={image}
|
|
76
|
-
/>
|
|
77
|
-
) : null}
|
|
78
|
-
</div>
|
|
79
|
-
);
|
|
80
|
-
|
|
81
|
-
const renderCardTitle = (headlineSmallVersion: string, title?: string, align?: TextAlign) =>
|
|
82
|
-
title ? (
|
|
83
|
-
<Text align={align} size={HEADLINE_SMALL_VERSION[headlineSmallVersion]}>
|
|
84
|
-
{title}
|
|
85
|
-
</Text>
|
|
86
|
-
) : null;
|
|
87
|
-
|
|
88
|
-
const renderDescription = (description?: string, align?: TextAlign) =>
|
|
89
|
-
description ? (
|
|
90
|
-
<Paragraph align={align} size="text-l">
|
|
91
|
-
{description}
|
|
92
|
-
</Paragraph>
|
|
93
|
-
) : null;
|
|
94
|
-
|
|
95
|
-
const renderAdditionalDescription = (additionalDescription?: string, align?: TextAlign) =>
|
|
96
|
-
additionalDescription ? (
|
|
97
|
-
<Text
|
|
98
|
-
size="text-m"
|
|
99
|
-
font="font-light"
|
|
100
|
-
color="text-secondary-text group-data-secondary:text-white/80"
|
|
101
|
-
align={align}
|
|
102
|
-
>
|
|
103
|
-
{additionalDescription}
|
|
104
|
-
</Text>
|
|
105
|
-
) : null;
|
|
106
|
-
|
|
107
|
-
const renderItems = (items: ListProps[], isDotted: boolean, version: BlockVersion = 'primary') =>
|
|
108
|
-
items?.length ? (
|
|
109
|
-
<List
|
|
110
|
-
className={style('text-s', version === 'primary' ? '!text-secondary-text' : '')}
|
|
111
|
-
items={items.filter((item) => item?.text).map((item) => item.text as string)}
|
|
112
|
-
isDotted={isDotted}
|
|
113
|
-
listItemSize="S"
|
|
114
|
-
/>
|
|
115
|
-
) : null;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"content": {
|
|
3
|
-
"additionalDescription": {
|
|
4
|
-
"ui:field": "hidden"
|
|
5
|
-
},
|
|
6
|
-
"icon": {
|
|
7
|
-
"ui:field": "picture"
|
|
8
|
-
},
|
|
9
|
-
"button": {
|
|
10
|
-
"href": {
|
|
11
|
-
"ui:field": "attachmentHref"
|
|
12
|
-
},
|
|
13
|
-
"icon": {
|
|
14
|
-
"ui:field": "icon"
|
|
15
|
-
},
|
|
16
|
-
"iconRight": {
|
|
17
|
-
"ui:field": "icon"
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { type BulletsProps } from '../../model/Bullets';
|
|
2
|
-
import {
|
|
3
|
-
type AdditionalDescriptionProps,
|
|
4
|
-
type AlignProps,
|
|
5
|
-
type HeadlineSmallProps,
|
|
6
|
-
} from '../../model/HeadlineType';
|
|
7
|
-
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
8
|
-
import { type LinkCommonProps } from '../../model/LinkProps';
|
|
9
|
-
import { type IconProps } from '../../model/Picture';
|
|
10
|
-
import { type ButtonContent } from '../../ui-kit/Button/ButtonContent';
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @title Элемент списка
|
|
14
|
-
*/
|
|
15
|
-
export interface ListProps {
|
|
16
|
-
/** @title Текст */
|
|
17
|
-
text?: string;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* @title Карточка продуктовой карусели
|
|
22
|
-
*/
|
|
23
|
-
export type CarouselProductCardContent = UniBlockContent &
|
|
24
|
-
HeadlineSmallProps &
|
|
25
|
-
AdditionalDescriptionProps &
|
|
26
|
-
IconProps &
|
|
27
|
-
BulletsProps &
|
|
28
|
-
LinkCommonProps &
|
|
29
|
-
AlignProps & {
|
|
30
|
-
/** @title Список */
|
|
31
|
-
items?: ListProps[];
|
|
32
|
-
/** @title Изображение на всю ширину */
|
|
33
|
-
isImageFullWidth?: boolean;
|
|
34
|
-
/** @title Картинка сверху над текстом */
|
|
35
|
-
isTopPosition?: boolean;
|
|
36
|
-
/** @title Кнопка по всей ширине */
|
|
37
|
-
isButtonFullWidth?: boolean;
|
|
38
|
-
button?: ButtonContent;
|
|
39
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"content": {
|
|
3
|
-
"richVersion": "striped",
|
|
4
|
-
"__html": "<h4>Заголовок4</h4><p><br></p><table><thead><tr><th><p>Заголовок 1-1</p></th><th><p>Заголовок 1-2</p></th></tr></thead><tbody><tr><td><p>Описание 1-1</p></td><td><p>Описание 1-2</p></td></tr><tr><td><p>Описание 2-1</p></td><td><p>Описание 2-2</p></td></tr><tr><td><p>Описание 3-1<br></p></td><td><p>Описание 3-2<br></p></td></tr><tr><td><p>Описание 4-1<br></p></td><td><p>Описание 4-2<br></p></td></tr></tbody></table></li>"
|
|
5
|
-
}
|
|
6
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { type UniBlockProps } from '../../model/JSXBlock';
|
|
3
|
-
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
4
|
-
import { RichText } from '../../ui-kit/RichText/RichText';
|
|
5
|
-
import { type CarouselRichTextCardContent } from './CarouselRichTextCardContent';
|
|
6
|
-
|
|
7
|
-
export interface CarouselRichTextCardProps extends CarouselRichTextCardContent, UniBlockProps {}
|
|
8
|
-
|
|
9
|
-
export const CarouselRichTextCard = JSX<CarouselRichTextCardProps>(
|
|
10
|
-
({ className = '', __html, richVersion = 'striped', ...rest }) => (
|
|
11
|
-
<BlockWrapper className={className} {...rest}>
|
|
12
|
-
<RichText __html={__html} richVersion={richVersion} />
|
|
13
|
-
</BlockWrapper>
|
|
14
|
-
),
|
|
15
|
-
);
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
2
|
-
import { type RichTextProps } from '../../ui-kit/RichText/RichTextProps';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* @title Карточка c форматированным вводом
|
|
6
|
-
*/
|
|
7
|
-
export type CarouselRichTextCardContent = UniBlockContent & RichTextProps;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"content": {
|
|
3
|
-
"title": "Акции и спецпредложения",
|
|
4
|
-
"date": "2022-04-16",
|
|
5
|
-
"description": "Пенсионный кредит по специальной процентной ставке",
|
|
6
|
-
"headlineVersion": "M",
|
|
7
|
-
"buttons": [
|
|
8
|
-
{
|
|
9
|
-
"text": "Все акции",
|
|
10
|
-
"href": "/credits",
|
|
11
|
-
"version": "secondary"
|
|
12
|
-
}
|
|
13
|
-
],
|
|
14
|
-
"version": "secondary"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { type UniBlockProps } from '../../model/JSXBlock';
|
|
3
|
-
import { BaseTile } from '../../ui-kit/BaseTile/BaseTile';
|
|
4
|
-
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
5
|
-
import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
|
|
6
|
-
import { style } from '../../utils/style';
|
|
7
|
-
import { Headline } from '../Headline/Headline';
|
|
8
|
-
import { type PromoTileContent } from './PromoTileContent';
|
|
9
|
-
|
|
10
|
-
export interface PromoTileProps extends PromoTileContent, UniBlockProps {}
|
|
11
|
-
|
|
12
|
-
export const PromoTile = JSX<PromoTileProps>(
|
|
13
|
-
({
|
|
14
|
-
className,
|
|
15
|
-
title = 'Акции и спецпредложения',
|
|
16
|
-
description,
|
|
17
|
-
headlineVersion = 'S',
|
|
18
|
-
date,
|
|
19
|
-
buttons = [],
|
|
20
|
-
...rest
|
|
21
|
-
}) => (
|
|
22
|
-
<BlockWrapper className={style('box-border', className)} {...rest}>
|
|
23
|
-
<BaseTile
|
|
24
|
-
className="h-full"
|
|
25
|
-
title={
|
|
26
|
-
title ? (
|
|
27
|
-
<Headline
|
|
28
|
-
title={title}
|
|
29
|
-
headlineVersion={headlineVersion}
|
|
30
|
-
align="text-left"
|
|
31
|
-
isEmbedded={true}
|
|
32
|
-
/>
|
|
33
|
-
) : null
|
|
34
|
-
}
|
|
35
|
-
buttons={renderButtonsSection(buttons)}
|
|
36
|
-
>
|
|
37
|
-
{date ? <div className="text-s mb-xs">{formatDate(date)}</div> : null}
|
|
38
|
-
<div className="text-l">{description}</div>
|
|
39
|
-
</BaseTile>
|
|
40
|
-
</BlockWrapper>
|
|
41
|
-
),
|
|
42
|
-
);
|
|
43
|
-
|
|
44
|
-
function formatDate(date: string) {
|
|
45
|
-
const dateObj = new Date(date);
|
|
46
|
-
const dateFormat: Intl.DateTimeFormatOptions = {
|
|
47
|
-
day: 'numeric',
|
|
48
|
-
month: 'long',
|
|
49
|
-
year: 'numeric',
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
return dateObj.toLocaleString('ru-RU', dateFormat).replace('г.', '');
|
|
53
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { type DescriptionProps, type HeadlineProps } from '../../model/HeadlineType';
|
|
2
|
-
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
3
|
-
import { type ButtonsSectionContent } from '../../ui-kit/Button/ButtonsSectionContent';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @title Акции
|
|
7
|
-
*/
|
|
8
|
-
export type PromoTileContent = UniBlockContent &
|
|
9
|
-
HeadlineProps &
|
|
10
|
-
DescriptionProps &
|
|
11
|
-
ButtonsSectionContent & {
|
|
12
|
-
/** @title Дата публикации */
|
|
13
|
-
date?: string;
|
|
14
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const headlineAlign = 'text-left';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"content": {
|
|
3
|
-
"icon": {
|
|
4
|
-
"format": "webp",
|
|
5
|
-
"size": {
|
|
6
|
-
"width": 140,
|
|
7
|
-
"height": 140
|
|
8
|
-
}
|
|
9
|
-
},
|
|
10
|
-
"title": "Заголовок 1",
|
|
11
|
-
"description": "Описание 1",
|
|
12
|
-
"version": "primary",
|
|
13
|
-
"isDotted": true,
|
|
14
|
-
"items": [
|
|
15
|
-
{ "text": "Элемент списка 1", "title": "Элемент заголовка 1" },
|
|
16
|
-
{ "text": "Элемент списка 2", "title": "Элемент заголовка 2" },
|
|
17
|
-
{ "text": "Элемент списка 3", "title": "Элемент заголовка 3" }
|
|
18
|
-
]
|
|
19
|
-
}
|
|
20
|
-
}
|