@redneckz/wildless-cms-uni-blocks 0.10.0 → 0.10.2
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.10.2.js +31 -0
- package/bin/migration-scripts/0.9.10.js +30 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +60 -58
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +9 -2
- package/bundle/components/Footer/FooterContent.d.ts +1 -1
- package/bundle/components/LinkDocs/LinkDocsContent.d.ts +0 -4
- package/bundle/components/LinkDocs/LinkDocsListItem.d.ts +6 -1
- package/bundle/components/ProductBlock/ProductBlockContent.d.ts +1 -2
- package/bundle/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/bundle/components/ProductTile/ProductTileContent.d.ts +1 -1
- package/bundle/components/ProductTile/renderImage.d.ts +1 -1
- package/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +5 -0
- package/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +18 -0
- package/bundle/components/StepsBlock/StepsBlock.d.ts +1 -1
- package/bundle/components/StepsBlock/checkCanRenderIcon.d.ts +3 -1
- package/bundle/components/Tile/TileContent.d.ts +2 -0
- package/dist/components/Blocks.js +2 -0
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
- package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/dist/components/CarouselEventCard/CarouselEventCard.js +1 -2
- package/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
- package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -2
- package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -2
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +6 -3
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/dist/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +9 -2
- package/dist/components/ComparisonTable/HeaderCell.js +1 -2
- package/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/dist/components/Footer/Footer.mobile.js +1 -2
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/Footer/FooterContent.d.ts +1 -1
- package/dist/components/Footer/MediaButton.js +1 -3
- package/dist/components/Footer/MediaButton.js.map +1 -1
- package/dist/components/Headline/Headline.js +1 -1
- package/dist/components/Headline/Headline.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.js +5 -4
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.mobile.js +3 -3
- package/dist/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsContent.d.ts +0 -4
- package/dist/components/LinkDocs/LinkDocsListItem.d.ts +6 -1
- package/dist/components/LinkDocs/LinkDocsListItem.js +18 -2
- package/dist/components/LinkDocs/LinkDocsListItem.js.map +1 -1
- package/dist/components/OfficeServicesBlock/OfficeServicesBlock.js +1 -2
- package/dist/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlock.js +2 -3
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -2
- package/dist/components/ProductBlock/ProductBlockInner.js +2 -2
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/dist/components/ProductTile/ProductTile.js +4 -2
- package/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/dist/components/ProductTile/ProductTileContent.d.ts +1 -1
- package/dist/components/ProductTile/renderImage.d.ts +1 -1
- package/dist/components/ProductTile/renderImage.js +3 -2
- package/dist/components/ProductTile/renderImage.js.map +1 -1
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +5 -0
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +21 -0
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -0
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +18 -0
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js +2 -0
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js.map +1 -0
- package/dist/components/RollupItem/RollupItem.js +1 -2
- package/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/dist/components/RollupItem/RollupItem.mobile.js +1 -2
- package/dist/components/RollupItem/RollupItem.mobile.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.d.ts +1 -1
- package/dist/components/StepsBlock/StepsBlock.js +5 -5
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js +2 -2
- package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/dist/components/StepsBlock/checkCanRenderIcon.d.ts +3 -1
- package/dist/components/StepsBlock/checkCanRenderIcon.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableRow.js +1 -2
- package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/dist/components/Tile/Tile.js +5 -4
- package/dist/components/Tile/Tile.js.map +1 -1
- package/dist/components/Tile/TileContent.d.ts +2 -0
- package/dist/content-page-repository/transformImg.js +11 -3
- package/dist/content-page-repository/transformImg.js.map +1 -1
- package/dist/ui-kit/BenefitItem/BenefitItem.js +1 -3
- package/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/dist/ui-kit/Button/ButtonInner.js +4 -3
- package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/dist/ui-kit/Button/renderButtonsSection.js +2 -1
- package/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/dist/ui-kit/Img/ImgInner.js +1 -1
- package/dist/ui-kit/Img/ImgInner.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Blocks.js +2 -0
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/lib/components/CarouselEventCard/CarouselEventCard.js +1 -2
- package/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -2
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -2
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +6 -3
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/lib/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +9 -2
- package/lib/components/ComparisonTable/HeaderCell.js +1 -2
- package/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/lib/components/Footer/Footer.mobile.js +1 -2
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/Footer/FooterContent.d.ts +1 -1
- package/lib/components/Footer/MediaButton.js +1 -3
- package/lib/components/Footer/MediaButton.js.map +1 -1
- package/lib/components/Headline/Headline.js +1 -1
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.fixture.mobile.d.ts +1 -3
- package/lib/components/LinkDocs/LinkDocs.js +5 -4
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.mobile.js +3 -3
- package/lib/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsContent.d.ts +0 -4
- package/lib/components/LinkDocs/LinkDocsListItem.d.ts +6 -1
- package/lib/components/LinkDocs/LinkDocsListItem.js +19 -3
- package/lib/components/LinkDocs/LinkDocsListItem.js.map +1 -1
- package/lib/components/OfficeServicesBlock/OfficeServicesBlock.js +1 -2
- package/lib/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.fixture.d.ts +0 -1
- package/lib/components/ProductBlock/ProductBlock.js +2 -3
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -2
- package/lib/components/ProductBlock/ProductBlockInner.js +2 -2
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/lib/components/ProductTile/ProductTile.js +4 -2
- package/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/lib/components/ProductTile/ProductTileContent.d.ts +1 -1
- package/lib/components/ProductTile/renderImage.d.ts +1 -1
- package/lib/components/ProductTile/renderImage.js +3 -2
- package/lib/components/ProductTile/renderImage.js.map +1 -1
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +5 -0
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.d.ts +6 -0
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +19 -0
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -0
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +18 -0
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js +2 -0
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js.map +1 -0
- package/lib/components/RollupItem/RollupItem.js +1 -2
- package/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/lib/components/RollupItem/RollupItem.mobile.js +1 -2
- package/lib/components/RollupItem/RollupItem.mobile.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.d.ts +1 -1
- package/lib/components/StepsBlock/StepsBlock.js +5 -5
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js +2 -2
- package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/lib/components/StepsBlock/checkCanRenderIcon.d.ts +3 -1
- package/lib/components/StepsBlock/checkCanRenderIcon.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableRow.js +1 -2
- package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/lib/components/Tile/Tile.fixture.d.ts +1 -0
- package/lib/components/Tile/Tile.js +5 -4
- package/lib/components/Tile/Tile.js.map +1 -1
- package/lib/components/Tile/TileContent.d.ts +2 -0
- package/lib/content-page-repository/transformImg.js +11 -3
- package/lib/content-page-repository/transformImg.js.map +1 -1
- package/lib/ui-kit/BenefitItem/BenefitItem.js +1 -3
- package/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/lib/ui-kit/Button/ButtonInner.js +4 -3
- package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/lib/ui-kit/Button/renderButtonsSection.js +2 -1
- package/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/lib/ui-kit/Img/ImgInner.js +1 -1
- package/lib/ui-kit/Img/ImgInner.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +17 -34
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +9 -2
- package/mobile/bundle/components/Footer/FooterContent.d.ts +1 -1
- package/mobile/bundle/components/LinkDocs/LinkDocsContent.d.ts +0 -4
- package/mobile/bundle/components/LinkDocs/LinkDocsListItem.d.ts +6 -1
- package/mobile/bundle/components/ProductBlock/ProductBlockContent.d.ts +1 -2
- package/mobile/bundle/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/mobile/bundle/components/ProductTile/ProductTileContent.d.ts +1 -1
- package/mobile/bundle/components/ProductTile/renderImage.d.ts +1 -1
- package/mobile/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +5 -0
- package/mobile/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +18 -0
- package/mobile/bundle/components/StepsBlock/checkCanRenderIcon.d.ts +3 -1
- package/mobile/bundle/components/Tile/TileContent.d.ts +2 -0
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js +1 -2
- package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -2
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -2
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +6 -3
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +9 -2
- package/mobile/dist/components/Footer/Footer.js +1 -2
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/Footer/FooterContent.d.ts +1 -1
- package/mobile/dist/components/Footer/MediaButton.js +1 -3
- package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
- package/mobile/dist/components/Headline/Headline.js +1 -1
- package/mobile/dist/components/Headline/Headline.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocs.js +3 -3
- package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +0 -4
- package/mobile/dist/components/LinkDocs/LinkDocsListItem.d.ts +6 -1
- package/mobile/dist/components/LinkDocs/LinkDocsListItem.js +18 -2
- package/mobile/dist/components/LinkDocs/LinkDocsListItem.js.map +1 -1
- package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.js +1 -2
- package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -2
- package/mobile/dist/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTile.js +4 -2
- package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +1 -1
- package/mobile/dist/components/ProductTile/renderImage.d.ts +1 -1
- package/mobile/dist/components/ProductTile/renderImage.js +3 -2
- package/mobile/dist/components/ProductTile/renderImage.js.map +1 -1
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +5 -0
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +21 -0
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -0
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +18 -0
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js +2 -0
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js.map +1 -0
- package/mobile/dist/components/RollupItem/RollupItem.js +1 -2
- package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js +2 -2
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/components/StepsBlock/checkCanRenderIcon.d.ts +3 -1
- package/mobile/dist/components/StepsBlock/checkCanRenderIcon.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js +1 -2
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/dist/components/Tile/Tile.js +5 -4
- package/mobile/dist/components/Tile/Tile.js.map +1 -1
- package/mobile/dist/components/Tile/TileContent.d.ts +2 -0
- package/mobile/dist/content-page-repository/transformImg.js +11 -3
- package/mobile/dist/content-page-repository/transformImg.js.map +1 -1
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js +1 -3
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js +4 -3
- package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/dist/ui-kit/Button/renderButtonsSection.js +2 -1
- package/mobile/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/mobile/dist/ui-kit/Img/ImgInner.js +1 -1
- package/mobile/dist/ui-kit/Img/ImgInner.js.map +1 -1
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js +1 -2
- package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -2
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -2
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +6 -3
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +9 -2
- package/mobile/lib/components/Footer/Footer.js +1 -2
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/Footer/FooterContent.d.ts +1 -1
- package/mobile/lib/components/Footer/MediaButton.js +1 -3
- package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
- package/mobile/lib/components/Headline/Headline.js +1 -1
- package/mobile/lib/components/Headline/Headline.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocs.js +3 -3
- package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +0 -4
- package/mobile/lib/components/LinkDocs/LinkDocsListItem.d.ts +6 -1
- package/mobile/lib/components/LinkDocs/LinkDocsListItem.js +19 -3
- package/mobile/lib/components/LinkDocs/LinkDocsListItem.js.map +1 -1
- package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.js +1 -2
- package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -2
- package/mobile/lib/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTile.js +4 -2
- package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +1 -1
- package/mobile/lib/components/ProductTile/renderImage.d.ts +1 -1
- package/mobile/lib/components/ProductTile/renderImage.js +3 -2
- package/mobile/lib/components/ProductTile/renderImage.js.map +1 -1
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +5 -0
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +19 -0
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -0
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +18 -0
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js +2 -0
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js.map +1 -0
- package/mobile/lib/components/RollupItem/RollupItem.js +1 -2
- package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js +2 -2
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/components/StepsBlock/checkCanRenderIcon.d.ts +3 -1
- package/mobile/lib/components/StepsBlock/checkCanRenderIcon.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js +1 -2
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/lib/components/Tile/Tile.js +5 -4
- package/mobile/lib/components/Tile/Tile.js.map +1 -1
- package/mobile/lib/components/Tile/TileContent.d.ts +2 -0
- package/mobile/lib/content-page-repository/transformImg.js +11 -3
- package/mobile/lib/content-page-repository/transformImg.js.map +1 -1
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js +1 -3
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js +4 -3
- package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/lib/ui-kit/Button/renderButtonsSection.js +2 -1
- package/mobile/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/mobile/lib/ui-kit/Img/ImgInner.js +1 -1
- package/mobile/lib/ui-kit/Img/ImgInner.js.map +1 -1
- package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +4 -2
- package/mobile/src/components/CarouselEventCard/CarouselEventCard.tsx +1 -2
- package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +1 -2
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -2
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.example.json +10 -2
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +23 -14
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.ui.json +18 -1
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCardContent.ts +10 -2
- package/mobile/src/components/Footer/Footer.tsx +1 -4
- package/mobile/src/components/Footer/FooterContent.ts +1 -1
- package/mobile/src/components/Footer/MediaButton.tsx +2 -5
- package/mobile/src/components/Headline/Headline.tsx +1 -5
- package/mobile/src/components/LinkDocs/LinkDocs.example.json +0 -2
- package/mobile/src/components/LinkDocs/LinkDocs.tsx +27 -12
- package/mobile/src/components/LinkDocs/LinkDocsContent.ts +0 -5
- package/mobile/src/components/LinkDocs/LinkDocsListItem.tsx +48 -11
- package/mobile/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +1 -2
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +0 -2
- package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +1 -1
- package/mobile/src/components/ProductTile/ProductTile.tsx +11 -6
- package/mobile/src/components/ProductTile/ProductTileContent.ts +1 -1
- package/mobile/src/components/ProductTile/renderImage.tsx +3 -2
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json +10 -0
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +81 -0
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.ui.json +20 -0
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.ts +22 -0
- package/mobile/src/components/RollupItem/RollupItem.tsx +2 -15
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +3 -2
- package/mobile/src/components/StepsBlock/checkCanRenderIcon.ts +2 -1
- package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +1 -8
- package/mobile/src/components/Tile/Tile.example.json +2 -1
- package/mobile/src/components/Tile/Tile.tsx +26 -17
- package/mobile/src/components/Tile/TileContent.ts +2 -0
- package/mobile/src/content-page-repository/transformImg.ts +14 -4
- package/mobile/src/ui-kit/BenefitItem/BenefitItem.tsx +5 -3
- package/mobile/src/ui-kit/Button/ButtonInner.tsx +4 -3
- package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +2 -1
- package/mobile/src/ui-kit/Img/ImgInner.tsx +1 -1
- package/package.json +2 -2
- package/src/components/Blocks.ts +2 -0
- package/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +4 -2
- package/src/components/CarouselEventCard/CarouselEventCard.tsx +1 -2
- package/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +1 -2
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -2
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.example.json +10 -2
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.fixture.tsx +9 -1
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +23 -14
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.ui.json +18 -1
- package/src/components/CarouselTariffsCard/CarouselTariffsCardContent.ts +10 -2
- package/src/components/ComparisonTable/HeaderCell.tsx +1 -2
- package/src/components/Footer/Footer.mobile.tsx +1 -4
- package/src/components/Footer/FooterContent.ts +1 -1
- package/src/components/Footer/MediaButton.tsx +2 -5
- package/src/components/Headline/Headline.tsx +1 -5
- package/src/components/LinkDocs/LinkDocs.example.json +0 -2
- package/src/components/LinkDocs/LinkDocs.fixture.mobile.tsx +1 -11
- package/src/components/LinkDocs/LinkDocs.mobile.tsx +27 -12
- package/src/components/LinkDocs/LinkDocs.tsx +24 -9
- package/src/components/LinkDocs/LinkDocsContent.ts +0 -5
- package/src/components/LinkDocs/LinkDocsListItem.tsx +48 -13
- package/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +1 -2
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +14 -22
- package/src/components/ProductBlock/ProductBlock.tsx +5 -6
- package/src/components/ProductBlock/ProductBlockContent.ts +0 -2
- package/src/components/ProductBlock/ProductBlockInner.tsx +21 -25
- package/src/components/ProductBlock/renderBackwardButton.tsx +1 -1
- package/src/components/ProductTile/ProductTile.fixture.tsx +6 -2
- package/src/components/ProductTile/ProductTile.tsx +11 -6
- package/src/components/ProductTile/ProductTileContent.ts +1 -1
- package/src/components/ProductTile/renderImage.tsx +3 -2
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json +10 -0
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.tsx +37 -0
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +81 -0
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.ui.json +20 -0
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.ts +22 -0
- package/src/components/RollupItem/RollupItem.mobile.tsx +2 -15
- package/src/components/RollupItem/RollupItem.tsx +1 -2
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +3 -2
- package/src/components/StepsBlock/StepsBlock.tsx +14 -8
- package/src/components/StepsBlock/checkCanRenderIcon.ts +2 -1
- package/src/components/TariffsTable/TariffsTableRow.tsx +1 -8
- package/src/components/Tile/Tile.example.json +2 -1
- package/src/components/Tile/Tile.fixture.tsx +5 -0
- package/src/components/Tile/Tile.tsx +26 -17
- package/src/components/Tile/TileContent.ts +2 -0
- package/src/content-page-repository/transformImg.ts +14 -4
- package/src/ui-kit/BenefitItem/BenefitItem.tsx +5 -3
- package/src/ui-kit/Button/ButtonInner.tsx +4 -3
- package/src/ui-kit/Button/renderButtonsSection.tsx +2 -1
- package/src/ui-kit/Img/ImgInner.tsx +1 -1
- package/bundle/components/LinkDocs/LinkDocsHorizontalList.d.ts +0 -2
- package/bundle/components/LinkDocs/LinkDocsList.d.ts +0 -9
- package/bundle/components/LinkDocs/LinkDocsListItem.mobile.d.ts +0 -2
- package/bundle/components/LinkDocs/LinkDocsListItemBase.d.ts +0 -13
- package/bundle/components/LinkDocs/LinkDocsVerticalList.d.ts +0 -8
- package/bundle/utils/getIconWithVersion.d.ts +0 -3
- package/dist/components/LinkDocs/LinkDocsHorizontalList.d.ts +0 -2
- package/dist/components/LinkDocs/LinkDocsHorizontalList.js +0 -10
- package/dist/components/LinkDocs/LinkDocsHorizontalList.js.map +0 -1
- package/dist/components/LinkDocs/LinkDocsList.d.ts +0 -9
- package/dist/components/LinkDocs/LinkDocsList.js +0 -9
- package/dist/components/LinkDocs/LinkDocsList.js.map +0 -1
- package/dist/components/LinkDocs/LinkDocsListItem.mobile.d.ts +0 -2
- package/dist/components/LinkDocs/LinkDocsListItem.mobile.js +0 -7
- package/dist/components/LinkDocs/LinkDocsListItem.mobile.js.map +0 -1
- package/dist/components/LinkDocs/LinkDocsListItemBase.d.ts +0 -13
- package/dist/components/LinkDocs/LinkDocsListItemBase.js +0 -24
- package/dist/components/LinkDocs/LinkDocsListItemBase.js.map +0 -1
- package/dist/components/LinkDocs/LinkDocsVerticalList.d.ts +0 -8
- package/dist/components/LinkDocs/LinkDocsVerticalList.js +0 -11
- package/dist/components/LinkDocs/LinkDocsVerticalList.js.map +0 -1
- package/dist/utils/getIconWithVersion.d.ts +0 -3
- package/dist/utils/getIconWithVersion.js +0 -8
- package/dist/utils/getIconWithVersion.js.map +0 -1
- package/lib/components/LinkDocs/LinkDocsHorizontalList.d.ts +0 -2
- package/lib/components/LinkDocs/LinkDocsHorizontalList.js +0 -8
- package/lib/components/LinkDocs/LinkDocsHorizontalList.js.map +0 -1
- package/lib/components/LinkDocs/LinkDocsList.d.ts +0 -9
- package/lib/components/LinkDocs/LinkDocsList.js +0 -7
- package/lib/components/LinkDocs/LinkDocsList.js.map +0 -1
- package/lib/components/LinkDocs/LinkDocsListItem.mobile.d.ts +0 -2
- package/lib/components/LinkDocs/LinkDocsListItem.mobile.js +0 -5
- package/lib/components/LinkDocs/LinkDocsListItem.mobile.js.map +0 -1
- package/lib/components/LinkDocs/LinkDocsListItemBase.d.ts +0 -13
- package/lib/components/LinkDocs/LinkDocsListItemBase.js +0 -22
- package/lib/components/LinkDocs/LinkDocsListItemBase.js.map +0 -1
- package/lib/components/LinkDocs/LinkDocsVerticalList.d.ts +0 -8
- package/lib/components/LinkDocs/LinkDocsVerticalList.js +0 -9
- package/lib/components/LinkDocs/LinkDocsVerticalList.js.map +0 -1
- package/lib/utils/getIconWithVersion.d.ts +0 -3
- package/lib/utils/getIconWithVersion.js +0 -5
- package/lib/utils/getIconWithVersion.js.map +0 -1
- package/mobile/bundle/components/LinkDocs/LinkDocsHorizontalList.d.ts +0 -2
- package/mobile/bundle/components/LinkDocs/LinkDocsList.d.ts +0 -9
- package/mobile/bundle/components/LinkDocs/LinkDocsListItemBase.d.ts +0 -13
- package/mobile/bundle/components/LinkDocs/LinkDocsVerticalList.d.ts +0 -8
- package/mobile/bundle/utils/getIconWithVersion.d.ts +0 -3
- package/mobile/dist/components/LinkDocs/LinkDocsHorizontalList.d.ts +0 -2
- package/mobile/dist/components/LinkDocs/LinkDocsHorizontalList.js +0 -10
- package/mobile/dist/components/LinkDocs/LinkDocsHorizontalList.js.map +0 -1
- package/mobile/dist/components/LinkDocs/LinkDocsList.d.ts +0 -9
- package/mobile/dist/components/LinkDocs/LinkDocsList.js +0 -9
- package/mobile/dist/components/LinkDocs/LinkDocsList.js.map +0 -1
- package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.d.ts +0 -13
- package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.js +0 -24
- package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.js.map +0 -1
- package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.d.ts +0 -8
- package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.js +0 -11
- package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.js.map +0 -1
- package/mobile/dist/utils/getIconWithVersion.d.ts +0 -3
- package/mobile/dist/utils/getIconWithVersion.js +0 -8
- package/mobile/dist/utils/getIconWithVersion.js.map +0 -1
- package/mobile/lib/components/LinkDocs/LinkDocsHorizontalList.d.ts +0 -2
- package/mobile/lib/components/LinkDocs/LinkDocsHorizontalList.js +0 -8
- package/mobile/lib/components/LinkDocs/LinkDocsHorizontalList.js.map +0 -1
- package/mobile/lib/components/LinkDocs/LinkDocsList.d.ts +0 -9
- package/mobile/lib/components/LinkDocs/LinkDocsList.js +0 -7
- package/mobile/lib/components/LinkDocs/LinkDocsList.js.map +0 -1
- package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.d.ts +0 -13
- package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.js +0 -22
- package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.js.map +0 -1
- package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.d.ts +0 -8
- package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.js +0 -9
- package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.js.map +0 -1
- package/mobile/lib/utils/getIconWithVersion.d.ts +0 -3
- package/mobile/lib/utils/getIconWithVersion.js +0 -5
- package/mobile/lib/utils/getIconWithVersion.js.map +0 -1
- package/mobile/src/components/LinkDocs/LinkDocsHorizontalList.tsx +0 -21
- package/mobile/src/components/LinkDocs/LinkDocsList.tsx +0 -33
- package/mobile/src/components/LinkDocs/LinkDocsListItemBase.tsx +0 -63
- package/mobile/src/components/LinkDocs/LinkDocsVerticalList.tsx +0 -33
- package/mobile/src/utils/getIconWithVersion.ts +0 -7
- package/src/components/LinkDocs/LinkDocsHorizontalList.tsx +0 -21
- package/src/components/LinkDocs/LinkDocsList.tsx +0 -33
- package/src/components/LinkDocs/LinkDocsListItem.mobile.tsx +0 -12
- package/src/components/LinkDocs/LinkDocsListItemBase.tsx +0 -63
- package/src/components/LinkDocs/LinkDocsVerticalList.tsx +0 -33
- package/src/utils/getIconWithVersion.ts +0 -7
|
@@ -2,6 +2,22 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.LinkDocsListItem = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const
|
|
6
|
-
exports.LinkDocsListItem = (0, uni_jsx_1.JSX)(({
|
|
5
|
+
const Text_1 = require("../../ui-kit/Text/Text");
|
|
6
|
+
exports.LinkDocsListItem = (0, uni_jsx_1.JSX)(({ doc, icon }) => {
|
|
7
|
+
const { text, fileSize, ...linkProps } = doc;
|
|
8
|
+
return ((0, jsx_runtime_1.jsxs)("a", { className: "flex box-border gap-3 group/item h-fit w-fit text-primary-text no-underline hover:text-primary-main", role: "link", ...linkProps, children: [icon, text ? ((0, jsx_runtime_1.jsxs)(Text_1.Text, { size: "text-l", font: "font-light", children: [text, (0, jsx_runtime_1.jsx)(Text_1.Text, { color: "text-secondary-text", children: linkProps?.href && formatSuffix(getExtFromHref(linkProps.href), fileSize) })] })) : null] }));
|
|
9
|
+
});
|
|
10
|
+
const formatSuffix = (ext, fileSize) => {
|
|
11
|
+
const prefix = ext || fileSize ? ',' : '';
|
|
12
|
+
const extension = ext ? ` ${ext}` : '';
|
|
13
|
+
const size = fileSize ? ` (${fileSize})` : '';
|
|
14
|
+
return prefix + extension + size;
|
|
15
|
+
};
|
|
16
|
+
const getExtFromHref = (href) => {
|
|
17
|
+
if (!href) {
|
|
18
|
+
return '';
|
|
19
|
+
}
|
|
20
|
+
const index = href.lastIndexOf('.');
|
|
21
|
+
return index !== -1 ? href.substring(index + 1) : '';
|
|
22
|
+
};
|
|
7
23
|
//# sourceMappingURL=LinkDocsListItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkDocsListItem.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocsListItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,
|
|
1
|
+
{"version":3,"file":"LinkDocsListItem.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocsListItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,iDAA8C;AAQjC,QAAA,gBAAgB,GAAG,IAAA,aAAG,EAAwB,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE;IAC3E,MAAM,EAAE,IAAI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|
@@ -5,7 +5,6 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
|
5
5
|
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
6
6
|
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
7
7
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
8
|
-
const getIconWithVersion_1 = require("../../utils/getIconWithVersion");
|
|
9
8
|
exports.OfficeServicesBlock = (0, uni_jsx_1.JSX)(({ className = '', title, servicesList, ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: `p-8 flex flex-col ${className}`, ...rest, children: [title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h5", className: "mb-5", title: title }) : null, servicesList?.length ? ((0, jsx_runtime_1.jsx)("ul", { className: "list-none m-0 p-0", children: servicesList.map(renderListItems) })) : null] })));
|
|
10
|
-
const renderListItems = (itemList, i) => ((0, jsx_runtime_1.jsxs)("li", { className: "flex mb-5 last:mb-0 list-none", children: [itemList.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mr-3 min-w-6 min-h-6 w-6 h-6", width: "24", height: "24", asSVG: true, image:
|
|
9
|
+
const renderListItems = (itemList, i) => ((0, jsx_runtime_1.jsxs)("li", { className: "flex mb-5 last:mb-0 list-none", children: [itemList.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mr-3 min-w-6 min-h-6 w-6 h-6", width: "24", height: "24", asSVG: true, image: itemList.icon })) : null, itemList.label ? (0, jsx_runtime_1.jsx)("span", { className: "text-l-light", children: itemList.label }) : null] }, `list_item_${String(i)}`));
|
|
11
10
|
//# sourceMappingURL=OfficeServicesBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OfficeServicesBlock.js","sourceRoot":"","sources":["../../../src/components/OfficeServicesBlock/OfficeServicesBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,0DAAuD;AACv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@ -7,12 +7,11 @@ const Breadcrumb_1 = require("../../ui-kit/Breadcrumb");
|
|
|
7
7
|
const joinList_1 = require("../../utils/joinList");
|
|
8
8
|
const ProductBlockInner_1 = require("./ProductBlockInner");
|
|
9
9
|
const renderBackwardButton_1 = require("./renderBackwardButton");
|
|
10
|
+
const style_1 = require("../../utils/style");
|
|
10
11
|
const breadcrumbStyle = 'text-secondary-text group-data-secondary:text-white/80';
|
|
11
12
|
exports.ProductBlock = (0, uni_jsx_1.JSX)((props) => {
|
|
12
13
|
const { className = '', breadcrumbs, backwardButton, version = 'primary', ...rest } = props;
|
|
13
14
|
const buttonVersion = version === 'primary' ? version : 'white';
|
|
14
|
-
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className:
|
|
15
|
-
? (0, renderBackwardButton_1.renderBackwardButton)(backwardButton, buttonVersion, 'mb-10 -mt-2.5')
|
|
16
|
-
: null, breadcrumbs?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "text-xs-light mb-6", children: (0, joinList_1.joinList)((0, jsx_runtime_1.jsx)("span", { className: `mx-2 ${breadcrumbStyle}`, children: "/" }))(breadcrumbs.map((breadcrumb, i) => ((0, jsx_runtime_1.jsx)(Breadcrumb_1.Breadcrumb, { className: breadcrumbStyle, ...breadcrumb }, String(i))))) })) : null, (0, jsx_runtime_1.jsx)(ProductBlockInner_1.ProductBlockInner, { version: version, ...rest })] }));
|
|
15
|
+
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('overflow-hidden p-12 flex flex-col box-border min-h-[454px]', className), version: version, ...rest, children: [backwardButton?.text ? (0, renderBackwardButton_1.renderBackwardButton)(backwardButton, buttonVersion) : null, breadcrumbs?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "text-xs-light mb-6", children: (0, joinList_1.joinList)((0, jsx_runtime_1.jsx)("span", { className: (0, style_1.style)('mx-2', breadcrumbStyle), children: "/" }))(breadcrumbs.map((breadcrumb, i) => ((0, jsx_runtime_1.jsx)(Breadcrumb_1.Breadcrumb, { className: breadcrumbStyle, ...breadcrumb }, String(i))))) })) : null, (0, jsx_runtime_1.jsx)(ProductBlockInner_1.ProductBlockInner, { className: "mt-10", version: version, ...rest })] }));
|
|
17
16
|
});
|
|
18
17
|
//# sourceMappingURL=ProductBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductBlock.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,wDAAqD;AACrD,mDAAgD;AAEhD,2DAAwD;AACxD,iEAA8D;
|
|
1
|
+
{"version":3,"file":"ProductBlock.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,wDAAqD;AACrD,mDAAgD;AAEhD,2DAAwD;AACxD,iEAA8D;AAC9D,6CAA0C;AAI1C,MAAM,eAAe,GAAG,wDAAwD,CAAC;AAEpE,QAAA,YAAY,GAAG,IAAA,aAAG,EAAoB,CAAC,KAAK,EAAE,EAAE;IAC3D,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,OAAO,GAAG,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAC5F,MAAM,aAAa,GAAG,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;IAEhE,OAAO,CACL,wBAAC,2BAAY,IACX,SAAS,EAAE,IAAA,aAAK,EAAC,6DAA6D,EAAE,SAAS,CAAC,EAC1F,OAAO,EAAE,OAAO,KACZ,IAAI,aAEP,cAAc,EAAE,IAAI,CAAC,CAAC,CAAC,IAAA,2CAAoB,EAAC,cAAc,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,IAAI,EACjF,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC,CACrB,gCAAK,SAAS,EAAC,oBAAoB,YAChC,IAAA,mBAAQ,EAAC,iCAAM,SAAS,EAAE,IAAA,aAAK,EAAC,MAAM,EAAE,eAAe,CAAC,kBAAU,CAAC,CAClE,WAAW,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,CAAC,EAAE,EAAE,CAAC,CACjC,uBAAC,uBAAU,IAAiB,SAAS,EAAE,eAAe,KAAM,UAAU,IAArD,MAAM,CAAC,CAAC,CAAC,CAAgD,CAC3E,CAAC,CACH,GACG,CACP,CAAC,CAAC,CAAC,IAAI,EACR,uBAAC,qCAAiB,IAAC,SAAS,EAAC,OAAO,EAAC,OAAO,EAAE,OAAO,KAAM,IAAI,GAAI,IACtD,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { BulletsProps } from '../../model/Bullets';
|
|
2
|
-
import type { Footnote } from '../../model/Footnote';
|
|
3
2
|
import type { HeadlineProps } from '../../model/HeadlineType';
|
|
4
3
|
import type { IconVersion } from '../../model/IconVersion';
|
|
5
4
|
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
@@ -9,7 +8,7 @@ import type { BackwardButtonProps, ButtonContent } from '../../ui-kit/Button/But
|
|
|
9
8
|
import type { ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
10
9
|
import type { ListContent } from '../../ui-kit/List/ListContent';
|
|
11
10
|
import type { RichTextProps } from '../../ui-kit/RichText/RichTextProps';
|
|
12
|
-
export declare type ProductBlockInnerContent = HeadlineProps & RichTextProps & ListContent & ButtonContent &
|
|
11
|
+
export declare type ProductBlockInnerContent = HeadlineProps & RichTextProps & ListContent & ButtonContent & ImageContent & BulletsProps & {
|
|
13
12
|
/**
|
|
14
13
|
* @title Количество преимуществ в строке
|
|
15
14
|
* @enumNames ["2", "3"]
|
|
@@ -10,10 +10,10 @@ const style_1 = require("../../utils/style");
|
|
|
10
10
|
const BaseTile_1 = require("../BaseTile/BaseTile");
|
|
11
11
|
const Headline_1 = require("../Headline/Headline");
|
|
12
12
|
const renderBenefit_1 = require("./renderBenefit");
|
|
13
|
-
exports.ProductBlockInner = (0, uni_jsx_1.JSX)(({ className = '', title, headlineVersion = 'L', description, benefitsCountOfRow = 3, benefits, benefitsVersion, buttons,
|
|
13
|
+
exports.ProductBlockInner = (0, uni_jsx_1.JSX)(({ className = '', title, headlineVersion = 'L', description, benefitsCountOfRow = 3, benefits, benefitsVersion, buttons, image, __html, items, version = 'primary', isDotted = true, textBlockClassName = '', directionRight = true, }) => {
|
|
14
14
|
const benefitsCount = benefits?.filter((_) => _.label)?.length;
|
|
15
15
|
const benefitsContainerStyles = getBenefitsContainerStyles(benefitsCountOfRow);
|
|
16
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex grow justify-between items-stretch h-full', className), children: [image?.src ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className:
|
|
16
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex grow justify-between items-stretch h-full', className), children: [image?.src ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: (0, style_1.style)('mt-[-50px]', directionRight ? 'order-2' : ''), image: image })) : null, (0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex flex-col', textBlockClassName), children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { className: "!p-0 max-w-[600px]", title: title, description: description, headlineVersion: headlineVersion, align: "text-left" }), (0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { buttons: (0, renderButtonsSection_1.renderButtonsSection)(buttons), children: [benefitsCount ? ((0, jsx_runtime_1.jsx)("div", { className: benefitsContainerStyles, children: benefits?.map((0, renderBenefit_1.renderBenefit)(version, benefitsVersion)) })) : null, __html ? ((0, jsx_runtime_1.jsx)("div", { className: "mt-5", children: (0, jsx_runtime_1.jsx)(RichText_1.RichText, { __html: __html }) })) : null, items?.length ? ((0, jsx_runtime_1.jsx)(List_1.List, { className: "mt-5 text-h6", items: items, itemClassName: "mb-[7px]", isDotted: isDotted })) : null] })] })] }));
|
|
17
17
|
});
|
|
18
18
|
const getBenefitsContainerStyles = (benefitsCountOfRow = 2) => `gap-6 mt-6 ${benefitsCountOfRow > 2
|
|
19
19
|
? 'inline-grid grid-cols-[auto_auto_auto]'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductBlockInner.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlockInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,mFAAgF;AAChF,8CAA2C;AAC3C,iDAA8C;AAC9C,6DAA0D;AAC1D,6CAA0C;AAC1C,mDAAgD;AAChD,mDAAgD;AAEhD,mDAAgD;AAInC,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAClC,CAAC,EACC,SAAS,GAAG,EAAE,EACd,KAAK,EACL,eAAe,GAAG,GAAG,EACrB,WAAW,EACX,kBAAkB,GAAG,CAAC,EACtB,QAAQ,EACR,eAAe,EACf,OAAO,EACP,
|
|
1
|
+
{"version":3,"file":"ProductBlockInner.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlockInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,mFAAgF;AAChF,8CAA2C;AAC3C,iDAA8C;AAC9C,6DAA0D;AAC1D,6CAA0C;AAC1C,mDAAgD;AAChD,mDAAgD;AAEhD,mDAAgD;AAInC,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAClC,CAAC,EACC,SAAS,GAAG,EAAE,EACd,KAAK,EACL,eAAe,GAAG,GAAG,EACrB,WAAW,EACX,kBAAkB,GAAG,CAAC,EACtB,QAAQ,EACR,eAAe,EACf,OAAO,EACP,KAAK,EACL,MAAM,EACN,KAAK,EACL,OAAO,GAAG,SAAS,EACnB,QAAQ,GAAG,IAAI,EACf,kBAAkB,GAAG,EAAE,EACvB,cAAc,GAAG,IAAI,GACtB,EAAE,EAAE;IACH,MAAM,aAAa,GAAG,QA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E,QAAQ,GAClB,CACH,CAAC,CAAC,CAAC,IAAI,IACC,IACP,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,0BAA0B,GAAG,CAAC,kBAAkB,GAAG,CAAC,EAAE,EAAE,CAC5D,cACE,kBAAkB,GAAG,CAAC;IACpB,CAAC,CAAC,wCAAwC;IAC1C,CAAC,CAAC,mCACN,EAAE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ButtonVersion } from '../../model/ButtonVersion';
|
|
3
3
|
import type { BackwardButtonProps } from '../../ui-kit/Button/ButtonProps';
|
|
4
|
-
export declare function renderBackwardButton(button: BackwardButtonProps, version: ButtonVersion, className
|
|
4
|
+
export declare function renderBackwardButton(button: BackwardButtonProps, version: ButtonVersion, className?: string): JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderBackwardButton.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/renderBackwardButton.tsx"],"names":[],"mappings":";;;AACA,uDAAoD;AAEpD,8CAA2C;AAC3C,6CAA0C;AAE1C,SAAgB,oBAAoB,CAClC,MAA2B,EAC3B,OAAsB,EACtB,
|
|
1
|
+
{"version":3,"file":"renderBackwardButton.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/renderBackwardButton.tsx"],"names":[],"mappings":";;;AACA,uDAAoD;AAEpD,8CAA2C;AAC3C,6CAA0C;AAE1C,SAAgB,oBAAoB,CAClC,MAA2B,EAC3B,OAAsB,EACtB,SAAkB;IAElB,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IACtC,MAAM,WAAW,GAAG,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;IAC9D,MAAM,YAAY,GAAG,MAAM,EAAE,IAAI,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;IAE/D,OAAO,CACL,iCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,mBAAmB,EAAE,SAAS,CAAC,aACnD,uBAAC,eAAM,IACL,OAAO,EAAE,OAAO,EAChB,OAAO,QACP,SAAS,EAAC,mEAAmE,EAC7E,SAAS,EAAE,IAAI,EACf,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,YAEd,uBAAC,SAAG,IACF,SAAS,EAAC,SAAS,EACnB,KAAK,EAAE,EAAE,GAAG,YAAY,EAAE,WAAW,EAAE,YAAY,CAAC,WAAW,IAAI,WAAW,EAAE,EAChF,KAAK,SACL,GACK,EACR,IAAI,CAAC,CAAC,CAAC,CACN,uBAAC,eAAM,IAAC,OAAO,EAAC,MAAM,EAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,GAAI,CACnF,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC;AA9BD,oDA8BC"}
|
|
@@ -10,13 +10,15 @@ const Headline_1 = require("../Headline/Headline");
|
|
|
10
10
|
const renderAdditionalDescription_1 = require("./renderAdditionalDescription");
|
|
11
11
|
const renderBenefit_1 = require("./renderBenefit");
|
|
12
12
|
const renderImage_1 = require("./renderImage");
|
|
13
|
-
exports.ProductTile = (0, uni_jsx_1.JSX)(({ className = '', title, headlineVersion = 'S', description, additionalDescription, benefits = [], buttons, image,
|
|
13
|
+
exports.ProductTile = (0, uni_jsx_1.JSX)(({ className = '', title, headlineVersion = 'S', description, additionalDescription, benefits = [], buttons, image, directionRight = true, ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('overflow-hidden p-9 box-border relative min-h-[364px] flex flex-col justify-between', (0, getTileRightPadding_1.getTileRightPadding)(className), className), ...rest, children: [(0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex flex-col', directionRight ? '' : 'items-end'), children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { className: (0, style_1.style)('!p-0 !bg-transparent z-10', title || description ? 'mb-3.5' : ''), title: title, description: description, headlineVersion: headlineVersion, as: "h2", align: "text-left" }), renderBenefits(benefits, image), (0, renderAdditionalDescription_1.renderAdditionalDescription)(additionalDescription, image)] }), (0, renderButtonsSection_1.renderButtonsSection)(buttons, {
|
|
14
|
+
className: (0, style_1.style)('mt-5 text-l', directionRight ? '' : 'justify-end'),
|
|
15
|
+
}), (0, renderImage_1.renderImage)(image, directionRight)] })));
|
|
14
16
|
function renderBenefits(benefits, image) {
|
|
15
17
|
if (!benefits.length) {
|
|
16
18
|
return null;
|
|
17
19
|
}
|
|
18
20
|
// picture width = 242px. Text can overlay picture 20px deep. Outer paddings_x = 36px. 242-36-20 = 186px
|
|
19
21
|
const benefitsWidth = image?.src ? 'max-w-[calc(100%-186px)]' : '100%';
|
|
20
|
-
return ((0, jsx_runtime_1.jsx)("div", { className:
|
|
22
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('z-10 grid grid-cols-[max-content_1fr] auto-rows-auto gap-x-6 gap-y-2.5 items-baseline', benefitsWidth), children: benefits.length ? benefits.map(renderBenefit_1.renderBenefit) : null }));
|
|
21
23
|
}
|
|
22
24
|
//# sourceMappingURL=ProductTile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductTile.js","sourceRoot":"","sources":["../../../src/components/ProductTile/ProductTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,4DAAyD;AACzD,mFAAgF;AAChF,6CAA0C;AAC1C,yEAAsE;AACtE,mDAAgD;AAEhD,+EAA4E;AAC5E,mDAAgD;AAChD,+CAA4C;AAI/B,QAAA,WAAW,GAAG,IAAA,aAAG,EAC5B,CAAC,EACC,SAAS,GAAG,EAAE,EACd,KAAK,EACL,eAAe,GAAG,GAAG,EACrB,WAAW,EACX,qBAAqB,EACrB,QAAQ,GAAG,EAAE,EACb,OAAO,EACP,KAAK,EACL,
|
|
1
|
+
{"version":3,"file":"ProductTile.js","sourceRoot":"","sources":["../../../src/components/ProductTile/ProductTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,4DAAyD;AACzD,mFAAgF;AAChF,6CAA0C;AAC1C,yEAAsE;AACtE,mDAAgD;AAEhD,+EAA4E;AAC5E,mDAAgD;AAChD,+CAA4C;AAI/B,QAAA,WAAW,GAAG,IAAA,aAAG,EAC5B,CAAC,EACC,SAAS,GAAG,EAAE,EACd,KAAK,EACL,eAAe,GAAG,GAAG,EACrB,WAAW,EACX,qBAAqB,EACrB,QAAQ,GAAG,EAAE,EACb,OAAO,EACP,KAAK,EACL,cAAc,GAAG,IAAI,EACrB,GAAG,IAAI,EACR,EAAE,EAAE,CAAC,CACJ,wBAAC,2BAAY,IACX,SAAS,EAAE,IAAA,aAAK,EACd,qFAAqF,EACrF,IAAA,yCAAmB,EAAC,SAAS,CAAC,EAC9B,SAAS,CACV,KACG,IAAI,aAER,iCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,eAAe,EAAE,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,aACvE,uBAAC,mBAAQ,IACP,SAAS,EAAE,IAAA,aAAK,EAAC,2BAA2B,EAAE,KAAK,IAAI,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,EACnF,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,eAAe,EAAE,eAAe,EAChC,EAAE,EAAC,IAAI,EACP,KAAK,EAAC,WAAW,GACjB,EACD,cAAc,CAAC,QAAQ,EAAE,KAAK,CAAC,EAC/B,IAAA,yDAA2B,EAAC,qBAAqB,EAAE,KAAK,CAAC,IACtD,EACL,IAAA,2CAAoB,EAAC,OAAO,EAAE;YAC7B,SAAS,EAAE,IAAA,aAAK,EAAC,aAAa,EAAE,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC;SACrE,CAAC,EACD,IAAA,yBAAW,EAAC,KAAK,EAAE,cAAc,CAAC,IACtB,CAChB,CACF,CAAC;AAEF,SAAS,cAAc,CAAC,QAAmB,EAAE,KAAe;IAC1D,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE;QACpB,OAAO,IAAI,CAAC;KACb;IAED,wGAAwG;IACxG,MAAM,aAAa,GAAG,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,0BAA0B,CAAC,CAAC,CAAC,MAAM,CAAC;IAEvE,OAAO,CACL,gCACE,SAAS,EAAE,IAAA,aAAK,EACd,uFAAuF,EACvF,aAAa,CACd,YAEA,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,6BAAa,CAAC,CAAC,CAAC,CAAC,IAAI,GACjD,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { Picture } from '../../model/Picture';
|
|
3
|
-
export declare function renderImage(image?: Picture,
|
|
3
|
+
export declare function renderImage(image?: Picture, directionRight?: boolean): JSX.Element | null;
|
|
@@ -2,11 +2,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.renderImage = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
5
|
-
|
|
5
|
+
const style_1 = require("../../utils/style");
|
|
6
|
+
function renderImage(image, directionRight) {
|
|
6
7
|
if (!image?.src) {
|
|
7
8
|
return null;
|
|
8
9
|
}
|
|
9
|
-
return ((0, jsx_runtime_1.jsx)(Img_1.Img, { className:
|
|
10
|
+
return ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: (0, style_1.style)('absolute', directionRight ? 'right-0' : 'left-0', 'bottom-0'), image: image }));
|
|
10
11
|
}
|
|
11
12
|
exports.renderImage = renderImage;
|
|
12
13
|
//# sourceMappingURL=renderImage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderImage.js","sourceRoot":"","sources":["../../../src/components/ProductTile/renderImage.tsx"],"names":[],"mappings":";;;AACA,8CAA2C;
|
|
1
|
+
{"version":3,"file":"renderImage.js","sourceRoot":"","sources":["../../../src/components/ProductTile/renderImage.tsx"],"names":[],"mappings":";;;AACA,8CAA2C;AAC3C,6CAA0C;AAE1C,SAAgB,WAAW,CAAC,KAAe,EAAE,cAAwB;IACnE,IAAI,CAAC,KAAK,EAAE,GAAG,EAAE;QACf,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,uBAAC,SAAG,IACF,SAAS,EAAE,IAAA,aAAK,EAAC,UAAU,EAAE,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,EAAE,UAAU,CAAC,EAC/E,KAAK,EAAE,KAAK,GACZ,CACH,CAAC;AACJ,CAAC;AAXD,kCAWC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
2
|
+
import type { RepresentativeOfficeInfoContent } from './RepresentativeOfficeInfoContent';
|
|
3
|
+
export interface RepresentativeOfficeInfoProps extends RepresentativeOfficeInfoContent, UniBlockProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const RepresentativeOfficeInfo: import("@redneckz/uni-jsx").UNIComponent<RepresentativeOfficeInfoProps, any, any>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.RepresentativeOfficeInfo = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
6
|
+
const renderButtonsSection_1 = require("../../ui-kit/Button/renderButtonsSection");
|
|
7
|
+
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
8
|
+
const Icon_1 = require("../../ui-kit/Icon/Icon");
|
|
9
|
+
const Img_1 = require("../../ui-kit/Img/Img");
|
|
10
|
+
const RichText_1 = require("../../ui-kit/RichText/RichText");
|
|
11
|
+
const Text_1 = require("../../ui-kit/Text/Text");
|
|
12
|
+
const style_1 = require("../../utils/style");
|
|
13
|
+
exports.RepresentativeOfficeInfo = (0, uni_jsx_1.JSX)(({ address, email, telephone, button, className = '', __html, icon, title, version = 'primary', ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('box-border text-left p-9', className), version: version, ...rest, children: [(0, jsx_runtime_1.jsxs)("div", { className: "w-full flex justify-between", children: [title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h4", as: "h3", className: "mb-6", title: title }) : null, renderIconBlock(icon)] }), (0, jsx_runtime_1.jsxs)("div", { className: "w-full", children: [__html ? renderDescriptionBlock(__html) : null, renderBlock('Адрес', address, 'GeolocationIcon'), renderBlock('Телефон', telephone, 'PhoneIcon'), renderBlock('E-mail', email, 'MailIcon'), button?.text
|
|
14
|
+
? (0, renderButtonsSection_1.renderButtonsSection)([button], {
|
|
15
|
+
className: 'mb-6',
|
|
16
|
+
})
|
|
17
|
+
: null] })] })));
|
|
18
|
+
const renderIconBlock = (icon) => ((0, jsx_runtime_1.jsxs)("div", { className: "self-end", children: [icon?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: icon }) : null, icon?.icon ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: icon, asSVG: true }) : null] }));
|
|
19
|
+
const renderDescriptionBlock = (__html) => ((0, jsx_runtime_1.jsx)("div", { className: "border-b border-main-divider pb-5 my-5", children: (0, jsx_runtime_1.jsx)(RichText_1.RichText, { __html: __html }) }));
|
|
20
|
+
const renderBlock = (blockName, data, iconName) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex mb-4", children: [(0, jsx_runtime_1.jsx)(Icon_1.Icon, { className: "pr-4", iconVersion: "black", name: iconName, width: "24", height: "24", asSVG: true }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col first:pb-1", children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m-light", children: blockName }), data ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-h6", color: "text-green", children: data })) : null] })] }));
|
|
21
|
+
//# sourceMappingURL=RepresentativeOfficeInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RepresentativeOfficeInfo.js","sourceRoot":"","sources":["../../../src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAIxC,4DAAyD;AACzD,mFAAgF;AAChF,0DAAuD;AACvD,iDAA8C;AAC9C,8CAA2C;AAC3C,6DAA0D;AAC1D,iDAA8C;AAC9C,6CAA0C;AAO7B,QAAA,wBAAwB,GAAG,IAAA,aAAG,EACzC,CAAC,EACC,OAAO,EACP,KAAK,EACL,SAAS,EACT,MAAM,EACN,SAAS,GAAG,EAAE,EACd,MAAM,EACN,IAAI,EACJ,KAAK,EACL,OAAO,GAAG,SAAS,EACnB,GAAG,IAAI,EACR,EAAE,EAAE,CAAC,CACJ,wBAAC,2BAAY,IACX,SAAS,EAAE,IAAA,aAAK,EAAC,0BAA0B,EAAE,SAAS,CAAC,EACvD,OAAO,EAAE,OAAO,KACZ,IAAI,aAER,iCAAK,SAAS,EAAC,6BAA6B,aACzC,KAAK,CAAC,CAAC,CAAC,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,SAAS,EAAC,MAAM,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EAClF,eAAe,CAAC,IAAI,CAAC,IAClB,EACN,iCAAK,SAAS,EAAC,QAAQ,aACpB,MAAM,CAAC,CAAC,CAAC,sBAAsB,CAAC,MAAM,CAAC,CAAC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C3C,IAAI,CAAC,CAAC,CAAC,CACN,uBAAC,WAAI,IAAC,IAAI,EAAC,SAAS,EAAC,KAAK,EAAC,YAAY,YACpC,IAAI,GACA,CACR,CAAC,CAAC,CAAC,IAAI,IACJ,IACF,CACP,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
|
|
2
|
+
import type { IconProps } from '../../model/Picture';
|
|
3
|
+
import type { RichTextProps } from '../../ui-kit/RichText/RichTextProps';
|
|
4
|
+
import type { TitleProps } from '../../model/HeadlineType';
|
|
5
|
+
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
6
|
+
/**
|
|
7
|
+
* @title Блок с информацией о представительстве
|
|
8
|
+
*/
|
|
9
|
+
export declare type RepresentativeOfficeInfoContent = UniBlockContent & TitleProps & RichTextProps & IconProps & {
|
|
10
|
+
/** @title Адрес */
|
|
11
|
+
address?: string;
|
|
12
|
+
/** @title Телефон (факс) */
|
|
13
|
+
telephone?: string;
|
|
14
|
+
/** @title E-mail */
|
|
15
|
+
email?: string;
|
|
16
|
+
/** @title Кнопка */
|
|
17
|
+
button?: ButtonWithIconProps;
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RepresentativeOfficeInfoContent.js","sourceRoot":"","sources":["../../../src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.ts"],"names":[],"mappings":""}
|
|
@@ -9,7 +9,6 @@ const Foldable_1 = require("../../ui-kit/Foldable/Foldable");
|
|
|
9
9
|
const FoldableSection_1 = require("../../ui-kit/Foldable/FoldableSection");
|
|
10
10
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
11
11
|
const Text_1 = require("../../ui-kit/Text/Text");
|
|
12
|
-
const getIconWithVersion_1 = require("../../utils/getIconWithVersion");
|
|
13
12
|
exports.RollupItem = (0, uni_jsx_1.JSX)(({ className = '', label = 'Развернуть', isExpanded, isFoldButtonOnTop = true, version = 'primary', ...rest }) => ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: `w-full border-0 border-b border-solid border-main-divider last:border-b-0 ${className}`, tag: "div", version: "transparent", ...rest, children: (0, jsx_runtime_1.jsx)(Foldable_1.Foldable, { isFoldButtonOnTop: isFoldButtonOnTop, unfoldedByDefault: isExpanded, renderFoldableSection: ({ isUnfolded }) => ((0, jsx_runtime_1.jsx)(FoldableSection_1.FoldableSection, { className: `grid grid-cols-12 gap-5 [&>*]:p-0`, isUnfolded: isUnfolded, children: (0, renderChildren_1.renderChildren)(rest) })), renderFoldButton: ({ isUnfolded, onToggle }) => renderFoldButton({ version, label, isUnfolded, onToggle }) }) })));
|
|
14
13
|
exports.RollupItem.childrenTypes = {
|
|
15
14
|
exclude: ['RollupItem'],
|
|
@@ -22,5 +21,5 @@ const renderFoldButton = ({ version, label: defaultLabel, isUnfolded, onToggle,
|
|
|
22
21
|
onToggle,
|
|
23
22
|
})) : ((0, jsx_runtime_1.jsx)(DefaultFoldButton_1.DefaultFoldButton, { label: label, icon: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', onClick: onToggle }));
|
|
24
23
|
};
|
|
25
|
-
const renderPrimaryFoldButton = ({ label, icon, onToggle }) => ((0, jsx_runtime_1.jsxs)("button", { className: `border-none bg-transparent px-0 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 cursor-pointer`, onClick: onToggle, children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-xl", font: "font-medium", children: label }), icon ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image:
|
|
24
|
+
const renderPrimaryFoldButton = ({ label, icon, onToggle }) => ((0, jsx_runtime_1.jsxs)("button", { className: `border-none bg-transparent px-0 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 cursor-pointer`, onClick: onToggle, children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-xl", font: "font-medium", children: label }), icon ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: { icon }, width: "24", height: "24", asSVG: true }) : null] }));
|
|
26
25
|
//# sourceMappingURL=RollupItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RollupItem.js","sourceRoot":"","sources":["../../../src/components/RollupItem/RollupItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uEAAoE;AAGpE,4DAAyD;AACzD,+EAA4E;AAC5E,6DAA0D;AAE1D,2EAAwE;AAExE,8CAA2C;AAC3C,iDAA8C;
|
|
1
|
+
{"version":3,"file":"RollupItem.js","sourceRoot":"","sources":["../../../src/components/RollupItem/RollupItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uEAAoE;AAGpE,4DAAyD;AACzD,+EAA4E;AAC5E,6DAA0D;AAE1D,2EAAwE;AAExE,8CAA2C;AAC3C,iDAA8C;AAKjC,QAAA,UAAU,GAA8B,IAAA,aAAG,EACtD,CAAC,EACC,SAAS,GAAG,EAAE,EACd,KAAK,GAAG,YAAY,EACpB,UAAU,EACV,iBAAiB,GAAG,IAAI,EACxB,OAAO,GAAG,SAAS,EACnB,GAAG,IAAI,EACR,EAAE,EAAE,CAAC,CACJ,uBAAC,2BAAY,IACX,SAAS,EAAE,6EAA6E,SAAS,EAAE,EACnG,GAAG,EAAC,KAAK,EACT,OAAO,EAAC,aAAa,KACjB,IAAI,YAER,uBAAC,mBAAQ,IACP,iBAAiB,EAAE,iBAAiB,EACpC,iBAAiB,EAAE,UAAU,EAC7B,qBAAqB,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CACzC,uBAAC,iCAAe,IAAC,SAAS,EAAE,mCAAmC,EAAE,UAAU,EAAE,UAAU,YACpF,IAAA,+BAAc,EAAC,IAAI,CAAC,GACL,CACnB,EACD,gBAAgB,EAAE,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,EAAE,CAC7C,gBAAgB,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,UAA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
|
const FoldableSection_1 = require("../../ui-kit/Foldable/FoldableSection");
|
|
10
10
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
11
11
|
const Text_1 = require("../../ui-kit/Text/Text");
|
|
12
|
-
const getIconWithVersion_1 = require("../../utils/getIconWithVersion");
|
|
13
12
|
const style_1 = require("../../utils/style");
|
|
14
13
|
exports.RollupItem = (0, uni_jsx_1.JSX)(({ className = '', label = 'Развернуть', isExpanded, isFoldButtonOnTop = true, version = 'primary', ...rest }) => {
|
|
15
14
|
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('border-b border-solid border-main-divider w-full', className), tag: "div", version: "transparent", ...rest, children: (0, jsx_runtime_1.jsx)(Foldable_1.Foldable, { isFoldButtonOnTop: isFoldButtonOnTop, unfoldedByDefault: isExpanded, renderFoldableSection: ({ isUnfolded }) => ((0, jsx_runtime_1.jsx)(FoldableSection_1.FoldableSection, { className: "flex flex-wrap group-last:last:pb-0 gap-5 [&>*]:p-0", isUnfolded: isUnfolded, children: (0, renderChildren_1.renderChildren)(rest) })), renderFoldButton: ({ isUnfolded, onToggle }) => renderFoldButton({ version, label, isUnfolded, onToggle }) }) }));
|
|
@@ -27,5 +26,5 @@ const renderFoldButton = ({ version, label: defaultLabel, isUnfolded, onToggle,
|
|
|
27
26
|
primaryIcon,
|
|
28
27
|
})) : ((0, jsx_runtime_1.jsx)(DefaultFoldButton_1.DefaultFoldButton, { label: label, icon: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', onClick: onToggle }));
|
|
29
28
|
};
|
|
30
|
-
const renderPrimaryFoldButton = ({ label, icon, primaryIcon, onToggle, }) => ((0, jsx_runtime_1.jsxs)("button", { className: `border-none bg-transparent flex justify-between text-left w-full text-primary-text group cursor-pointer py-3.5 px-0`, onClick: onToggle, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex group-hover:text-primary-main", children: [primaryIcon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { image:
|
|
29
|
+
const renderPrimaryFoldButton = ({ label, icon, primaryIcon, onToggle, }) => ((0, jsx_runtime_1.jsxs)("button", { className: `border-none bg-transparent flex justify-between text-left w-full text-primary-text group cursor-pointer py-3.5 px-0`, onClick: onToggle, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex group-hover:text-primary-main", children: [primaryIcon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { image: primaryIcon, className: "mr-3 flex-shrink-0", width: "24", height: "24", asSVG: true })) : null, (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m-title-xs", font: "font-medium", children: label })] }), (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "flex-shrink-0", image: { icon }, width: "24", height: "24", asSVG: true })] }));
|
|
31
30
|
//# sourceMappingURL=RollupItem.mobile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RollupItem.mobile.js","sourceRoot":"","sources":["../../../src/components/RollupItem/RollupItem.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uEAAoE;AAKpE,4DAAyD;AACzD,+EAA4E;AAC5E,6DAA0D;AAE1D,2EAAwE;AACxE,8CAA2C;AAC3C,iDAA8C;AAC9C,
|
|
1
|
+
{"version":3,"file":"RollupItem.mobile.js","sourceRoot":"","sources":["../../../src/components/RollupItem/RollupItem.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uEAAoE;AAKpE,4DAAyD;AACzD,+EAA4E;AAC5E,6DAA0D;AAE1D,2EAAwE;AACxE,8CAA2C;AAC3C,iDAA8C;AAC9C,6CAA0C;AAK7B,QAAA,UAAU,GAA8B,IAAA,aAAG,EACtD,CAAC,EACC,SAAS,GAAG,EAAE,EACd,KAAK,GAAG,YAAY,EACpB,UAAU,EACV,iBAAiB,GAAG,IAAI,EACxB,OAAO,GAAG,SAAS,EACnB,GAAG,IAAI,EACR,EAAE,EAAE;IACH,OAAO,CACL,uBAAC,2BAAY,IACX,SAAS,EAAE,IA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D,OAAO,EAAE,QAAQ,GACjB,CACH,CAAC;AACJ,CAAC,CAAC;AAWF,MAAM,uBAAuB,GAAG,CAAC,EAC/B,KAAK,EACL,IAAI,EACJ,WAAW,EACX,QAAQ,GACe,EAAE,EAAE,CAAC,CAC5B,oCACE,SAAS,EAAE,qHAAqH,EAChI,OAAO,EAAE,QAAQ,aAEjB,iCAAK,SAAS,EAAC,oCAAoC,aAChD,WAAW,CAAC,CAAC,CAAC,CACb,uBAAC,SAAG,IAAC,KAAK,EAAE,WAAW,EAAE,SAAS,EAAC,oBAAoB,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,CACxF,CAAC,CAAC,CAAC,IAAI,EACR,uBAAC,WAAI,IAAC,IAAI,EAAC,iBAAiB,EAAC,IAAI,EAAC,aAAa,YAC5C,KAAK,GACD,IACH,EACN,uBAAC,SAAG,IAAC,SAAS,EAAC,eAAe,EAAC,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,IACxE,CACV,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { StepsBlockContent } from './StepsBlockContent';
|
|
2
1
|
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
2
|
+
import type { StepsBlockContent } from './StepsBlockContent';
|
|
3
3
|
export interface StepsBlockProps extends StepsBlockContent, UniBlockProps {
|
|
4
4
|
}
|
|
5
5
|
export declare const StepsBlock: import("@redneckz/uni-jsx").UNIComponent<StepsBlockProps, any, any>;
|
|
@@ -3,15 +3,14 @@ exports.StepsBlock = void 0;
|
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
6
|
-
const
|
|
7
|
-
const getIconWithVersion_1 = require("../../utils/getIconWithVersion");
|
|
6
|
+
const renderButtonsSection_1 = require("../../ui-kit/Button/renderButtonsSection");
|
|
8
7
|
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
9
8
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
10
9
|
const joinList_1 = require("../../utils/joinList");
|
|
11
|
-
const
|
|
10
|
+
const style_1 = require("../../utils/style");
|
|
11
|
+
const checkCanRenderIcon_1 = require("./checkCanRenderIcon");
|
|
12
12
|
const renderStep_1 = require("./renderStep");
|
|
13
13
|
const StepsBlockStyleMaps_1 = require("./StepsBlockStyleMaps");
|
|
14
|
-
const style_1 = require("../../utils/style");
|
|
15
14
|
const getLineOpacity = (showLines) => (showLines ? '' : 'opacity-0');
|
|
16
15
|
const getPaddingX = (steps) => (steps < 5 ? 'px-[88px]' : 'px-[55px]');
|
|
17
16
|
exports.StepsBlock = (0, uni_jsx_1.JSX)(({ className = '', showLines = true, steps = [], buttons, size = 'normal', version = 'primary', stepVersion = 'gray', title, ...rest }) => {
|
|
@@ -25,6 +24,7 @@ exports.StepsBlock = (0, uni_jsx_1.JSX)(({ className = '', showLines = true, ste
|
|
|
25
24
|
const renderStepIcon = (styleMap, size, stepVersion) => ({ icon }, i) => {
|
|
26
25
|
const styleStepIconSize = size === 'normal' ? 'h-[100px] w-[100px]' : 'h-[63px] w-[63px]';
|
|
27
26
|
const stepVersionIconTextStyles = stepVersion === 'secondary' ? 'group-data-primary:text-white' : 'text-secondary-text';
|
|
28
|
-
|
|
27
|
+
const iconVersion = stepVersion === 'secondary' ? 'white' : 'color';
|
|
28
|
+
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: `${styleStepIconSize} flex justify-center items-center text-center rounded-full p-[26px] box-border z-10`, version: stepVersion, children: (0, checkCanRenderIcon_1.checkCanRenderIcon)(icon) ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { image: { ...icon, iconVersion: icon.iconVersion || iconVersion }, width: "48", height: "48", asSVG: true })) : ((0, jsx_runtime_1.jsx)("span", { className: (0, style_1.style)('text-h4', stepVersion === 'transparent' ? styleMap.iconText : stepVersionIconTextStyles), children: i + 1 })) }, String(i)));
|
|
29
29
|
};
|
|
30
30
|
//# sourceMappingURL=StepsBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepsBlock.js","sourceRoot":"","sources":["../../../src/components/StepsBlock/StepsBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"StepsBlock.js","sourceRoot":"","sources":["../../../src/components/StepsBlock/StepsBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,4DAAyD;AACzD,mFAAgF;AAChF,0DAAuD;AACvD,8CAA2C;AAC3C,mDAAgD;AAChD,6CAA0C;AAC1C,6DAA0D;AAC1D,6CAA0C;AAG1C,+DAA0D;AAI1D,MAAM,cAAc,GAAG,CAAC,SAAkB,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC;AAE9E,MAAM,WAAW,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC;AAElE,QAAA,UAAU,GAAG,IAAA,aAAG,EAC3B,CAAC,EACC,SAAS,GAAG,EAAE,EACd,SAAS,GAAG,IAAI,EAChB,KAAK,GAAG,EAAE,EACV,OAAO,EACP,IAAI,GAAG,QAAQ,EACf,OAAO,GAAG,SAAS,EACnB,WAAW,GAAG,MAAM,EACpB,KAAK,EACL,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,SAAS,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;IAEnC,MAAM,QAAQ,GAAG,uCAAiB,CAAC;IAEnC,MAAM,WAAW,GAAG,cAAc,CAAC,SAAS,CAAC,CAAC;IAC9C,MAAM,QAAQ,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J,CAAC,CACF,CAAC;AAEF,MAAM,cAAc,GAClB,CAAC,QAAmB,EAAE,IAAY,EAAE,WAAyB,EAAE,EAAE,CACjE,CAAC,EAAE,IAAI,EAAQ,EAAE,CAAS,EAAE,EAAE;IAC5B,MAAM,iBAAiB,GAAG,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,mBAAmB,CAAC;IAC1F,MAAM,yBAAyB,GAC7B,WAAW,KAAK,WAAW,CAAC,CAAC,CAAC,+BAA+B,CAAC,CAAC,CAAC,qBAAqB,CAAC;IAExF,MAAM,WAAW,GAAG,WAAW,KAAK,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;IAEpE,OAAO,CACL,uBAAC,2BAAY,IAEX,SAAS,EAAE,GAAG,iBAAiB,qFAAqF,EACpH,OAAO,EAAE,WAAW,YAEnB,IAAA,uCAAkB,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAC1B,uBAAC,SAAG,IACF,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,IAAI,WAAW,EAAE,EAChE,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,CACH,CAAC,CAAC,CAAC,CACF,iCACE,SAAS,EAAE,IAAA,aAAK,EACd,SAAS,EACT,WAAW,KAAK,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,yBAAyB,CAC9E,YAEA,CAAC,GAAG,CAAC,GACD,CACR,IApBI,MAAM,CAAC,CAAC,CAAC,CAqBD,CAChB,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -7,7 +7,6 @@ const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
|
7
7
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
8
8
|
const RichText_1 = require("../../ui-kit/RichText/RichText");
|
|
9
9
|
const assertUnreachable_1 = require("../../utils/assertUnreachable");
|
|
10
|
-
const getIconWithVersion_1 = require("../../utils/getIconWithVersion");
|
|
11
10
|
const checkCanRenderIcon_1 = require("./checkCanRenderIcon");
|
|
12
11
|
const StepsBlockStyleMaps_1 = require("./StepsBlockStyleMaps");
|
|
13
12
|
const STEPS_SIZE_MAP = {
|
|
@@ -47,6 +46,7 @@ const renderIconArea = (size, version) => (step, i) => {
|
|
|
47
46
|
const iconAreaSize = STEPS_SIZE_MAP[size];
|
|
48
47
|
const iconSize = size === 'normal' ? '38' : '27';
|
|
49
48
|
const iconTextSize = size === 'normal' ? 'text-m-title' : 'text-m-title-xs';
|
|
50
|
-
|
|
49
|
+
const iconVersion = version === 'secondary' ? 'white' : 'color';
|
|
50
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: `${iconAreaSize} ${styleMap.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`, children: (0, jsx_runtime_1.jsx)("span", { className: `font-medium flex self-center ${iconTextSize}`, children: (0, checkCanRenderIcon_1.checkCanRenderIcon)(step?.icon) ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { image: { ...step.icon, iconVersion: step.icon?.iconVersion || iconVersion }, width: iconSize, height: iconSize, asSVG: true })) : ((0, jsx_runtime_1.jsx)("span", { children: i + 1 })) }) }));
|
|
51
51
|
};
|
|
52
52
|
//# sourceMappingURL=StepsBlock.mobile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepsBlock.mobile.js","sourceRoot":"","sources":["../../../src/components/StepsBlock/StepsBlock.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAIxC,4DAAyD;AACzD,0DAAuD;AACvD,8CAA2C;AAC3C,6DAA0D;AAC1D,qEAAkE;AAClE,
|
|
1
|
+
{"version":3,"file":"StepsBlock.mobile.js","sourceRoot":"","sources":["../../../src/components/StepsBlock/StepsBlock.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAIxC,4DAAyD;AACzD,0DAAuD;AACvD,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AAE,WAAW,IAAI,WAAW,EAAE,EAC3E,KAAK,EAAE,QAAQ,EACf,MAAM,EAAE,QAAQ,EAChB,KAAK,SACL,CACH,CAAC,CAAC,CAAC,CACF,2CAAO,CAAC,GAAG,CAAC,GAAQ,CACrB,GACI,GACH,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkCanRenderIcon.js","sourceRoot":"","sources":["../../../src/components/StepsBlock/checkCanRenderIcon.ts"],"names":[],"mappings":";;AAEO,MAAM,kBAAkB,GAAG,CAAC,IAAc,
|
|
1
|
+
{"version":3,"file":"checkCanRenderIcon.js","sourceRoot":"","sources":["../../../src/components/StepsBlock/checkCanRenderIcon.ts"],"names":[],"mappings":";;AAEO,MAAM,kBAAkB,GAAG,CAAC,IAAc,EAAqC,EAAE,CACtF,OAAO,CAAC,IAAI,EAAE,IAAI,IAAI,IAAI,EAAE,GAAG,CAAC,CAAC;AADtB,QAAA,kBAAkB,sBACI"}
|
|
@@ -4,7 +4,6 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
6
6
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
7
|
-
const getIconWithVersion_1 = require("../../utils/getIconWithVersion");
|
|
8
7
|
const TableCarouselContainer_1 = require("../ComparisonTable/TableCarouselContainer");
|
|
9
8
|
const constants_1 = require("./constants");
|
|
10
9
|
const TariffsTableCell_1 = require("./TariffsTableCell");
|
|
@@ -15,6 +14,6 @@ exports.TariffsTableRow = (0, uni_jsx_1.JSX)(({ row: { header, data }, activeInd
|
|
|
15
14
|
const [openTableInnerIdx, setOpenTableInnerIdx] = (0, hooks_1.useState)(undefined);
|
|
16
15
|
const handleOpenTableInnerIdx = (0, hooks_1.useCallback)((_) => setOpenTableInnerIdx(_), []);
|
|
17
16
|
const onHideContentClick = () => setTableInner(undefined);
|
|
18
|
-
return ((0, jsx_runtime_1.jsxs)(TariffsTableRowContainer_1.TariffsTableRowContainer, { onHideContentClick: onHideContentClick, tableInner: tableInner, ...rest, children: [(0, jsx_runtime_1.jsx)("div", { className: `text-s py-5 ${constants_1.FIRST_CELL_CLASSES} ${constants_1.DIVIDER_CLASSES}`, children: (0, jsx_runtime_1.jsxs)("div", { className: "flex items-center text-primary-text", role: "cell", children: [header?.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mr-3.5 max-w-6", image:
|
|
17
|
+
return ((0, jsx_runtime_1.jsxs)(TariffsTableRowContainer_1.TariffsTableRowContainer, { onHideContentClick: onHideContentClick, tableInner: tableInner, ...rest, children: [(0, jsx_runtime_1.jsx)("div", { className: `text-s py-5 ${constants_1.FIRST_CELL_CLASSES} ${constants_1.DIVIDER_CLASSES}`, children: (0, jsx_runtime_1.jsxs)("div", { className: "flex items-center text-primary-text", role: "cell", children: [header?.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mr-3.5 max-w-6", image: header.icon, width: "24", height: "24", asSVG: true })) : null, header?.title ? (0, jsx_runtime_1.jsx)("div", { className: "text-m-light", children: header?.title }) : null] }) }), data?.length ? ((0, jsx_runtime_1.jsx)(TableCarouselContainer_1.TableCarouselContainer, { activeIndex: activeIndex, columnWidth: constants_1.COLUMN_WIDTH, version: "tariff", children: data.map((cells, i) => ((0, jsx_runtime_1.jsx)(TariffsTableCell_1.TariffsTableCell, { cells: cells, rowIdx: rowIdx, cellIdx: i, setTableInner: handleSetTableInner, tableInner: tableInner, openTableInnerIdx: openTableInnerIdx, setOpenTableInnerIdx: handleOpenTableInnerIdx, ...rest }, String(i)))) })) : null] }));
|
|
19
18
|
});
|
|
20
19
|
//# sourceMappingURL=TariffsTableRow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTableRow.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableRow.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoE;AAEpE,8CAA2C;AAE3C,
|
|
1
|
+
{"version":3,"file":"TariffsTableRow.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableRow.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoE;AAEpE,8CAA2C;AAE3C,sFAAmF;AACnF,2CAAgF;AAChF,yDAAsD;AAEtD,yEAAsE;AAQzD,QAAA,eAAe,GAAG,IAAA,aAAG,EAChC,CAAC,EAAE,GAAG,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC1D,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,IAAA,gBAAQ,EAAuC,SAAS,CAAC,CAAC;IAC9F,MAAM,mBAAmB,GAAG,IAAA,mBAAW,EACrC,CAAC,CAAuC,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,EAC7D,EAAE,CACH,CAAC;IACF,MAAM,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,GAAG,IAAA,gBAAQ,EAAqB,SAAS,CAAC,CAAC;IAC1F,MAAM,uBAAuB,GAAG,IAAA,mBAAW,EACzC,CAAC,CAAqB,EAAE,EAAE,CAAC,oBAAoB,CAAC,CAAC,CAAC,EAClD,EAAE,CACH,CAAC;IACF,MAAM,kBAAkB,GAAG,GAAG,EAAE,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IAE1D,OAAO,CACL,wBAAC,mDAAwB,IACvB,kBAAkB,EAAE,kBAAkB,EACtC,UAAU,EAAE,UAAU,KAClB,IAAI,aAER,gCAAK,SAAS,EAAE,eAAe,8BAAkB,IAAI,2BAAe,EAAE,YACpE,iCAAK,SAAS,EAAC,qCAAqC,EAAC,IAAI,EAAC,MAAM,aAC7D,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,CACd,uBAAC,SAAG,IAAC,SAAS,EAAC,gBAAgB,EAAC,KAAK,EAAE,MAAM,CAAC,IAAI,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,CACpF,CAAC,CAAC,CAAC,IAAI,EACP,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAC,cAAc,YAAE,MAAM,EAAE,KAAK,GAAO,CAAC,CAAC,CAAC,IAAI,IACvE,GACF,EACL,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CACd,uBAAC,+CAAsB,IACrB,WAAW,EAAE,WAAW,EACxB,WAAW,EAAE,wBAAY,EACzB,OAAO,EAAC,QAAQ,YAEf,IAAI,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,uBAAC,mCAAgB,IAEf,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,CAAC,EACV,aAAa,EAAE,mBAAmB,EAClC,UAAU,EAAE,UAAU,EACtB,iBAAiB,EAAE,iBAAiB,EACpC,oBAAoB,EAAE,uBAAuB,KACzC,IAAI,IARH,MAAM,CAAC,CAAC,CAAC,CASd,CACH,CAAC,GACqB,CAC1B,CAAC,CAAC,CAAC,IAAI,IACiB,CAC5B,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -12,8 +12,9 @@ const Tags_1 = require("../../ui-kit/Tags/Tags");
|
|
|
12
12
|
const BaseTile_1 = require("../BaseTile/BaseTile");
|
|
13
13
|
const getTileMinHeight_1 = require("../BaseTile/getTileMinHeight");
|
|
14
14
|
const getTileRightPadding_1 = require("../BaseTile/getTileRightPadding");
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
const style_1 = require("../../utils/style");
|
|
16
|
+
exports.Tile = (0, uni_jsx_1.JSX)(({ title, headingType = 'h3', __html, items, buttons, image, isDotted = true, listItemSize = 'M', className = '', tags, children, directionRight = true, ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('flex grow justify-between items-stretch h-full p-9 pr-3 box-border', (0, getTileRightPadding_1.getTileRightPadding)(className), (0, getTileMinHeight_1.getTileMinHeight)(className), className), ...rest, children: [image?.src ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: (0, style_1.style)('mt-auto ml-7', directionRight ? 'order-2' : ''), image: image })) : null, (0, jsx_runtime_1.jsx)(BaseTile_1.BaseTile, { title: title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: headingType, as: "h2", title: title, className: `whitespace-pre-wrap max-w-[600px]` })) : null, buttons: (0, renderButtonsSection_1.renderButtonsSection)(buttons, {
|
|
17
|
+
className: 'mt-8',
|
|
18
|
+
buttonClassName: 'min-w-[158px]',
|
|
19
|
+
}), children: (0, jsx_runtime_1.jsxs)("div", { children: [__html ? ((0, jsx_runtime_1.jsx)("div", { className: "max-w-[600px] mt-2.5", children: (0, jsx_runtime_1.jsx)(RichText_1.RichText, { __html: __html }) })) : null, children, (0, jsx_runtime_1.jsx)(List_1.List, { className: "mt-2.5", itemClassName: "mb-1.5", items: items, isDotted: isDotted, listItemSize: listItemSize }), tags?.length ? (0, jsx_runtime_1.jsx)(Tags_1.Tags, { tags: tags, className: "mt-5" }) : null] }) })] })));
|
|
19
20
|
//# sourceMappingURL=Tile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tile.js","sourceRoot":"","sources":["../../../src/components/Tile/Tile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,mFAAgF;AAChF,0DAAuD;AACvD,8CAA2C;AAC3C,iDAA8C;AAC9C,6DAA0D;AAC1D,iDAA8C;AAC9C,mDAAgD;AAChD,mEAAgE;AAChE,yEAAsE;
|
|
1
|
+
{"version":3,"file":"Tile.js","sourceRoot":"","sources":["../../../src/components/Tile/Tile.tsx"],"names":[],"mappings":";;;AAAA,+CA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S,EAAC,sBAAsB,YACnC,uBAAC,mBAAQ,IAAC,MAAM,EAAE,MAAM,GAAI,GACxB,CACP,CAAC,CAAC,CAAC,IAAI,EACP,QAAQ,EACT,uBAAC,WAAI,IACH,SAAS,EAAC,QAAQ,EAClB,aAAa,EAAC,QAAQ,EACtB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,YAAY,GAC1B,EACD,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,uBAAC,WAAI,IAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAC,MAAM,GAAG,CAAC,CAAC,CAAC,IAAI,IACxD,GACG,IACE,CAChB,CACF,CAAC"}
|
|
@@ -12,4 +12,6 @@ import type { TagsContent } from '../../ui-kit/Tags/TagsContent';
|
|
|
12
12
|
*/
|
|
13
13
|
export declare type TileContent = UniBlockContent & HeadingCommonProps & RichTextProps & ListContent & ButtonContent & TagsContent & ImageContent & BulletsProps & {
|
|
14
14
|
listItemSize?: ListItemSize;
|
|
15
|
+
/** @title Картинка справа/текст слева */
|
|
16
|
+
directionRight?: boolean;
|
|
15
17
|
};
|
|
@@ -12,10 +12,13 @@ const alignImg_1 = require("./alignImg");
|
|
|
12
12
|
const computeImgOutputPath_1 = require("./computeImgOutputPath");
|
|
13
13
|
const resizeImg_1 = require("./resizeImg");
|
|
14
14
|
const mkdir = util_1.default.promisify(fs_1.default.mkdir);
|
|
15
|
+
const copyFile = util_1.default.promisify(fs_1.default.copyFile);
|
|
15
16
|
const defaultTransformationCache = new Map();
|
|
17
|
+
const isNilTransform = ({ size, containerSize, alignment, format }) => (0, isPictureSizeEmpty_1.isPictureSizeEmpty)(size) && (0, isPictureSizeEmpty_1.isPictureSizeEmpty)(containerSize) && !alignment && !format;
|
|
18
|
+
const isVectorInput = (input) => ['.svg', '.eps', '.epsf', '.epsi', '.pdf'].some((ext) => input.toLowerCase().endsWith(ext));
|
|
16
19
|
function transformImg(src, pagePath, options) {
|
|
17
20
|
if (!src) {
|
|
18
|
-
return '';
|
|
21
|
+
return src || '';
|
|
19
22
|
}
|
|
20
23
|
const input = path_1.default.join(path_1.default.dirname(pagePath), src);
|
|
21
24
|
const output = (0, computeImgOutputPath_1.computeImgOutputPath)(input, options);
|
|
@@ -27,8 +30,13 @@ function transformImg(src, pagePath, options) {
|
|
|
27
30
|
const result = (async () => {
|
|
28
31
|
try {
|
|
29
32
|
await mkdir(path_1.default.dirname(output), { recursive: true });
|
|
30
|
-
|
|
31
|
-
|
|
33
|
+
if (isNilTransform(options) || isVectorInput(src)) {
|
|
34
|
+
await copyFile(input, output);
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
const chain = await computeTransformationChain(options)((0, sharp_1.default)(input));
|
|
38
|
+
await chain.toFile(output);
|
|
39
|
+
}
|
|
32
40
|
}
|
|
33
41
|
catch (e) {
|
|
34
42
|
console.error(e);
|