@redneckz/wildless-cms-uni-blocks 0.10.1 → 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/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +29 -37
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +9 -2
- package/bundle/components/LinkDocs/LinkDocsContent.d.ts +0 -4
- package/bundle/components/LinkDocs/LinkDocsListItem.d.ts +6 -1
- package/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +1 -1
- package/bundle/components/StepsBlock/StepsBlock.d.ts +1 -1
- package/bundle/components/StepsBlock/checkCanRenderIcon.d.ts +3 -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/MediaButton.js +1 -3
- package/dist/components/Footer/MediaButton.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/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +1 -1
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +2 -3
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- 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/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/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/MediaButton.js +1 -3
- package/lib/components/Footer/MediaButton.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/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +1 -1
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +2 -3
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- 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/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 +16 -33
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +9 -2
- package/mobile/bundle/components/LinkDocs/LinkDocsContent.d.ts +0 -4
- package/mobile/bundle/components/LinkDocs/LinkDocsListItem.d.ts +6 -1
- package/mobile/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +1 -1
- package/mobile/bundle/components/StepsBlock/checkCanRenderIcon.d.ts +3 -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/MediaButton.js +1 -3
- package/mobile/dist/components/Footer/MediaButton.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/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +1 -1
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +2 -3
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- 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/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/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/MediaButton.js +1 -3
- package/mobile/lib/components/Footer/MediaButton.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/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +1 -1
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +2 -3
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- 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/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/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/MediaButton.tsx +2 -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/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +5 -6
- 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/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 +1 -1
- 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/MediaButton.tsx +2 -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/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +5 -6
- 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/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
|
@@ -5,7 +5,6 @@ import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
|
5
5
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
6
6
|
import { Img } from '../../ui-kit/Img/Img';
|
|
7
7
|
import { LinkWrapper } from '../../ui-kit/LinkWrapper/LinkWrapper';
|
|
8
|
-
import { getIconWithVersion } from '../../utils/getIconWithVersion';
|
|
9
8
|
import { style } from '../../utils/style';
|
|
10
9
|
import type { CarouselProgramsCardContent } from './CarouselProgramsCardContent';
|
|
11
10
|
|
|
@@ -17,7 +16,7 @@ export const CarouselProgramsCard = JSX<CarouselTariffsCardProps>(
|
|
|
17
16
|
<BlockWrapper className={style('border border-gray', className)} {...rest}>
|
|
18
17
|
<LinkWrapper className="flex" href={href} target={target}>
|
|
19
18
|
<div className="w-[200px] min-w-[200px] self-center">
|
|
20
|
-
{icon?.icon ? <Img image={
|
|
19
|
+
{icon?.icon ? <Img image={icon} asSVG /> : null}
|
|
21
20
|
{icon?.src ? <Img image={icon} /> : null}
|
|
22
21
|
</div>
|
|
23
22
|
<div className="p-8 pl-3 w-full">
|
|
@@ -5,7 +5,6 @@ import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
|
5
5
|
import { Img } from '../../ui-kit/Img/Img';
|
|
6
6
|
import { LinkWrapper } from '../../ui-kit/LinkWrapper/LinkWrapper';
|
|
7
7
|
import { List } from '../../ui-kit/List/List';
|
|
8
|
-
import { getIconWithVersion } from '../../utils/getIconWithVersion';
|
|
9
8
|
import { style } from '../../utils/style';
|
|
10
9
|
import { SocialMedia } from '../Footer/SocialMedia';
|
|
11
10
|
import { Headline } from '../Headline/Headline';
|
|
@@ -64,7 +63,7 @@ export const CarouselRecommendationCard = JSX<RecommendationCardProps>(
|
|
|
64
63
|
|
|
65
64
|
const renderIconBlock = (icon: Picture | undefined) => (
|
|
66
65
|
<div className="absolute bottom-0 right-0">
|
|
67
|
-
{icon?.icon ? <Img image={
|
|
66
|
+
{icon?.icon ? <Img image={icon} asSVG /> : null}
|
|
68
67
|
{icon?.src ? <Img image={icon} /> : null}
|
|
69
68
|
</div>
|
|
70
69
|
);
|
|
@@ -24,8 +24,16 @@
|
|
|
24
24
|
"description": "Описание 1-2"
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
|
-
"
|
|
28
|
-
|
|
27
|
+
"buttons": [
|
|
28
|
+
{
|
|
29
|
+
"icon": {
|
|
30
|
+
"iconVersion": "color",
|
|
31
|
+
"icon": "DocIconMonoColor"
|
|
32
|
+
},
|
|
33
|
+
"version": "link",
|
|
34
|
+
"text": "Скачать файл"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
29
37
|
}
|
|
30
38
|
]
|
|
31
39
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type { HeadlineCommonProps } from '../../model/HeadlineType';
|
|
3
2
|
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
4
3
|
import type { Picture } from '../../model/Picture';
|
|
5
4
|
import type { VNode } from '../../model/VNode';
|
|
6
5
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
7
6
|
import { Button } from '../../ui-kit/Button/Button';
|
|
7
|
+
import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
|
|
8
8
|
import { Foldable } from '../../ui-kit/Foldable/Foldable';
|
|
9
9
|
import type { FoldablePartProps } from '../../ui-kit/Foldable/FoldablePartProps';
|
|
10
10
|
import { FoldableSection } from '../../ui-kit/Foldable/FoldableSection';
|
|
@@ -12,9 +12,11 @@ import { Heading } from '../../ui-kit/Heading/Heading';
|
|
|
12
12
|
import { Icon } from '../../ui-kit/Icon/Icon';
|
|
13
13
|
import { Img } from '../../ui-kit/Img/Img';
|
|
14
14
|
import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
|
|
15
|
-
import { getIconWithVersion } from '../../utils/getIconWithVersion';
|
|
16
15
|
import { style } from '../../utils/style';
|
|
17
|
-
import type {
|
|
16
|
+
import type {
|
|
17
|
+
CarouselTariffsCardContent,
|
|
18
|
+
TariffsCardCellProps,
|
|
19
|
+
} from './CarouselTariffsCardContent';
|
|
18
20
|
|
|
19
21
|
export interface CarouselTariffsCardProps extends CarouselTariffsCardContent, UniBlockProps {}
|
|
20
22
|
|
|
@@ -58,7 +60,7 @@ export const CarouselTariffsCard = JSX<CarouselTariffsCardProps>(
|
|
|
58
60
|
const renderIconBlock = (icon?: Picture) => (
|
|
59
61
|
<div className="w-[267px] min-w-[267px] self-center">
|
|
60
62
|
{icon?.src ? <Img image={icon} /> : null}
|
|
61
|
-
{icon?.icon ? <Img image={
|
|
63
|
+
{icon?.icon ? <Img image={icon} asSVG /> : null}
|
|
62
64
|
</div>
|
|
63
65
|
);
|
|
64
66
|
|
|
@@ -81,16 +83,23 @@ const renderFoldButton = ({ isUnfolded, onToggle }: FoldablePartProps): VNode =>
|
|
|
81
83
|
</button>
|
|
82
84
|
);
|
|
83
85
|
|
|
84
|
-
const renderCardInfo = (cell:
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
)
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
86
|
+
const renderCardInfo = (cell: TariffsCardCellProps, i: number): VNode => {
|
|
87
|
+
const { title, description, buttons } = cell;
|
|
88
|
+
|
|
89
|
+
return (
|
|
90
|
+
<div key={String(i)} className="py-5 border-b border-main-divider">
|
|
91
|
+
{title ? (
|
|
92
|
+
<div className="text-secondary-text text-m-light opacity-80">{cell.title}</div>
|
|
93
|
+
) : null}
|
|
94
|
+
{description ? (
|
|
95
|
+
<div className="text-primary-text text-h6 mt-1">{cell.description}</div>
|
|
96
|
+
) : null}
|
|
97
|
+
{buttons?.length ? (
|
|
98
|
+
<div className="text-primary-main">{renderButtonsSection(buttons)}</div>
|
|
99
|
+
) : null}
|
|
100
|
+
</div>
|
|
101
|
+
);
|
|
102
|
+
};
|
|
94
103
|
|
|
95
104
|
const renderHitIcon = (): VNode => (
|
|
96
105
|
<div className="absolute -top-7 -right-4 h-[60px] w-[60px] bg-white flex flex-col items-center justify-center rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]">
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import type { HeadlineCommonProps, TitleProps } from '../../model/HeadlineType';
|
|
2
2
|
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
3
3
|
import type { IconProps } from '../../model/Picture';
|
|
4
|
-
import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
|
|
4
|
+
import type { ButtonProps, ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
|
|
5
|
+
|
|
6
|
+
export type TariffsCardCellProps = HeadlineCommonProps & {
|
|
7
|
+
/**
|
|
8
|
+
* @title Кнопка
|
|
9
|
+
* @maxItems 1
|
|
10
|
+
*/
|
|
11
|
+
buttons?: ButtonWithIconProps[];
|
|
12
|
+
};
|
|
5
13
|
|
|
6
14
|
/**
|
|
7
15
|
* @title Карточка тарифной карусели
|
|
@@ -14,5 +22,5 @@ export type CarouselTariffsCardContent = UniBlockContent &
|
|
|
14
22
|
/** @title Кнопка */
|
|
15
23
|
button?: ButtonProps;
|
|
16
24
|
/** @title Ячейка */
|
|
17
|
-
cardCells?:
|
|
25
|
+
cardCells?: TariffsCardCellProps[];
|
|
18
26
|
};
|
|
@@ -7,7 +7,6 @@ import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
|
7
7
|
import { Button } from '../../ui-kit/Button/Button';
|
|
8
8
|
import { Img } from '../../ui-kit/Img/Img';
|
|
9
9
|
import { SearchBar } from '../../ui-kit/SearchBar/SearchBar';
|
|
10
|
-
import { getIconWithVersion } from '../../utils/getIconWithVersion';
|
|
11
10
|
import { LinkList } from '../LinkList/LinkList';
|
|
12
11
|
import { MobileAppTile } from '../MobileAppTile/MobileAppTile';
|
|
13
12
|
import { RollupItem } from '../RollupItem/RollupItem';
|
|
@@ -56,9 +55,7 @@ const renderSubMenuItem = (menu: SubMenuItem, i: number) => {
|
|
|
56
55
|
|
|
57
56
|
return (
|
|
58
57
|
<Button version="link" key={`footer-${i}`} href={href} className="flex text-s mb-4 w-6">
|
|
59
|
-
{icon ?
|
|
60
|
-
<Img className="pr-1" image={getIconWithVersion(icon)} width="24" height="24" asSVG />
|
|
61
|
-
) : null}
|
|
58
|
+
{icon ? <Img className="pr-1" image={icon} width="24" height="24" asSVG /> : null}
|
|
62
59
|
<span className="pl-2.5 font-medium text-primary-text">{text}</span>
|
|
63
60
|
</Button>
|
|
64
61
|
);
|
|
@@ -3,7 +3,6 @@ import type { IconProps, Picture } from '../../model/Picture';
|
|
|
3
3
|
import { Button } from '../../ui-kit/Button/Button';
|
|
4
4
|
import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
|
|
5
5
|
import { Img } from '../../ui-kit/Img/Img';
|
|
6
|
-
import { getIconWithVersion } from '../../utils/getIconWithVersion';
|
|
7
6
|
import { style } from '../../utils/style';
|
|
8
7
|
|
|
9
8
|
const ICONS_MAP: Array<{
|
|
@@ -68,8 +67,6 @@ export const MediaButton = JSX<MediaButtonProps>(
|
|
|
68
67
|
|
|
69
68
|
const iconCustom = getFilteredIcon(icon) ?? iconMapped;
|
|
70
69
|
|
|
71
|
-
const iconWithVersion = iconCustom ? getIconWithVersion(iconCustom) : undefined;
|
|
72
|
-
|
|
73
70
|
return (
|
|
74
71
|
<Button
|
|
75
72
|
className={style(
|
|
@@ -88,9 +85,9 @@ export const MediaButton = JSX<MediaButtonProps>(
|
|
|
88
85
|
version={version}
|
|
89
86
|
{...rest}
|
|
90
87
|
>
|
|
91
|
-
{
|
|
88
|
+
{iconCustom && !text ? (
|
|
92
89
|
<Img
|
|
93
|
-
image={
|
|
90
|
+
image={iconCustom}
|
|
94
91
|
imageClassName="group-hover/media:text-white"
|
|
95
92
|
width="24"
|
|
96
93
|
height="24"
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
3
3
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
4
|
+
import { Img } from '../../ui-kit/Img/Img';
|
|
4
5
|
import { style } from '../../utils/style';
|
|
5
6
|
import { Headline } from '../Headline/Headline';
|
|
6
7
|
import type { LinkDocsContent } from './LinkDocsContent';
|
|
7
|
-
import {
|
|
8
|
-
import { LinkDocsVerticalList } from './LinkDocsVerticalList';
|
|
8
|
+
import { LinkDocsListItem } from './LinkDocsListItem';
|
|
9
9
|
|
|
10
10
|
export interface LinkDocsProps extends LinkDocsContent, UniBlockProps {}
|
|
11
11
|
|
|
@@ -14,27 +14,42 @@ export const LinkDocs = JSX<LinkDocsProps>(
|
|
|
14
14
|
className = '',
|
|
15
15
|
title,
|
|
16
16
|
description,
|
|
17
|
-
icon = { icon: '
|
|
17
|
+
icon = { icon: 'DocDownloadIcon', iconVersion: 'black' },
|
|
18
18
|
documents,
|
|
19
|
-
orientation = 'vertical',
|
|
20
|
-
hasBorder = true,
|
|
21
19
|
align,
|
|
22
20
|
...rest
|
|
23
21
|
}) => (
|
|
24
|
-
<BlockWrapper className={style('py-6 px-4
|
|
22
|
+
<BlockWrapper className={style('py-6 px-4', className)} {...rest}>
|
|
25
23
|
<Headline
|
|
26
|
-
|
|
24
|
+
isPadding={false}
|
|
27
25
|
title={title}
|
|
28
26
|
description={description}
|
|
29
27
|
align={align}
|
|
30
28
|
headlineVersion="M"
|
|
31
29
|
as="h2"
|
|
32
30
|
/>
|
|
33
|
-
{
|
|
34
|
-
<
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
31
|
+
{documents?.length ? (
|
|
32
|
+
<div className="mt-5 flex flex-col gap-6" role="list">
|
|
33
|
+
{documents.map((doc, i) => (
|
|
34
|
+
<div key={String(i)} role="listitem">
|
|
35
|
+
<LinkDocsListItem
|
|
36
|
+
doc={doc}
|
|
37
|
+
icon={
|
|
38
|
+
icon ? (
|
|
39
|
+
<Img
|
|
40
|
+
className="min-w-11 min-h-11 h-fit p-2.5 bg-main-divider rounded-md"
|
|
41
|
+
image={icon}
|
|
42
|
+
width="24"
|
|
43
|
+
height="24"
|
|
44
|
+
asSVG
|
|
45
|
+
/>
|
|
46
|
+
) : null
|
|
47
|
+
}
|
|
48
|
+
/>
|
|
49
|
+
</div>
|
|
50
|
+
))}
|
|
51
|
+
</div>
|
|
52
|
+
) : null}
|
|
38
53
|
</BlockWrapper>
|
|
39
54
|
),
|
|
40
55
|
);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { HeadlineCommonProps } from '../../model/HeadlineType';
|
|
2
2
|
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
3
3
|
import type { LinkProps } from '../../model/LinkProps';
|
|
4
|
-
import type { ListOrientation } from '../../model/ListOrientation';
|
|
5
4
|
import type { IconProps } from '../../model/Picture';
|
|
6
5
|
import type { TextAlign } from '../../ui-kit/Text/TextProps';
|
|
7
6
|
|
|
@@ -31,10 +30,6 @@ export type LinkDocsContent = UniBlockContent &
|
|
|
31
30
|
/** @title Список */
|
|
32
31
|
documents?: LinkDocsItem[];
|
|
33
32
|
columnsMode?: LinkColumnsMode;
|
|
34
|
-
/** @title Отображать элементы в моб. версии (прокрутка shift+mouseScroll) */
|
|
35
|
-
orientation?: ListOrientation; // TODO: мобильный проп
|
|
36
|
-
/** @title Рамка элементов (моб.) */ // TODO: мобильный проп
|
|
37
|
-
hasBorder?: boolean;
|
|
38
33
|
/** @title Выравнивание */
|
|
39
34
|
align?: TextAlign;
|
|
40
35
|
};
|
|
@@ -1,12 +1,49 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
import type { VNode } from '../../model/VNode';
|
|
3
|
+
import { Text } from '../../ui-kit/Text/Text';
|
|
4
|
+
import type { LinkDocsItem } from './LinkDocsContent';
|
|
5
|
+
|
|
6
|
+
export interface LinkDocsListItemProps {
|
|
7
|
+
doc: LinkDocsItem;
|
|
8
|
+
icon?: VNode;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const LinkDocsListItem = JSX<LinkDocsListItemProps>(({ doc, icon }) => {
|
|
12
|
+
const { text, fileSize, ...linkProps } = doc;
|
|
13
|
+
|
|
14
|
+
return (
|
|
15
|
+
<a
|
|
16
|
+
className="flex box-border gap-3 group/item h-fit w-fit text-primary-text no-underline hover:text-primary-main"
|
|
17
|
+
role="link"
|
|
18
|
+
{...linkProps}
|
|
19
|
+
>
|
|
20
|
+
{icon}
|
|
21
|
+
{text ? (
|
|
22
|
+
<Text size="text-l" font="font-light">
|
|
23
|
+
{text}
|
|
24
|
+
<Text color="text-secondary-text">
|
|
25
|
+
{linkProps?.href && formatSuffix(getExtFromHref(linkProps.href), fileSize)}
|
|
26
|
+
</Text>
|
|
27
|
+
</Text>
|
|
28
|
+
) : null}
|
|
29
|
+
</a>
|
|
30
|
+
);
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
const formatSuffix = (ext?: string, fileSize?: string) => {
|
|
34
|
+
const prefix = ext || fileSize ? ',' : '';
|
|
35
|
+
const extension = ext ? ` ${ext}` : '';
|
|
36
|
+
const size = fileSize ? ` (${fileSize})` : '';
|
|
37
|
+
|
|
38
|
+
return prefix + extension + size;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
const getExtFromHref = (href: string) => {
|
|
42
|
+
if (!href) {
|
|
43
|
+
return '';
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
const index = href.lastIndexOf('.');
|
|
47
|
+
|
|
48
|
+
return index !== -1 ? href.substring(index + 1) : '';
|
|
49
|
+
};
|
|
@@ -3,7 +3,6 @@ import type { UniBlockProps } from '../../model/JSXBlock';
|
|
|
3
3
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
4
4
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
5
5
|
import { Img } from '../../ui-kit/Img/Img';
|
|
6
|
-
import { getIconWithVersion } from '../../utils/getIconWithVersion';
|
|
7
6
|
import type {
|
|
8
7
|
OfficeServicesBlockContent,
|
|
9
8
|
OfficeServicesBlockList,
|
|
@@ -30,7 +29,7 @@ const renderListItems = (itemList: OfficeServicesBlockList, i: number) => (
|
|
|
30
29
|
width="24"
|
|
31
30
|
height="24"
|
|
32
31
|
asSVG
|
|
33
|
-
image={
|
|
32
|
+
image={itemList.icon}
|
|
34
33
|
/>
|
|
35
34
|
) : null}
|
|
36
35
|
{itemList.label ? <span className="text-l-light">{itemList.label}</span> : null}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type { RepresentativeOfficeInfoContent } from './RepresentativeOfficeInfoContent';
|
|
3
|
-
import type { Picture } from '../../model/Picture';
|
|
4
|
-
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
5
2
|
import type { IconName } from '../../icons/IconName';
|
|
3
|
+
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
4
|
+
import type { Picture } from '../../model/Picture';
|
|
6
5
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
7
|
-
import {
|
|
6
|
+
import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
|
|
8
7
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
9
8
|
import { Icon } from '../../ui-kit/Icon/Icon';
|
|
10
9
|
import { Img } from '../../ui-kit/Img/Img';
|
|
11
10
|
import { RichText } from '../../ui-kit/RichText/RichText';
|
|
12
11
|
import { Text } from '../../ui-kit/Text/Text';
|
|
13
|
-
import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
|
|
14
12
|
import { style } from '../../utils/style';
|
|
13
|
+
import type { RepresentativeOfficeInfoContent } from './RepresentativeOfficeInfoContent';
|
|
15
14
|
|
|
16
15
|
export interface RepresentativeOfficeInfoProps
|
|
17
16
|
extends RepresentativeOfficeInfoContent,
|
|
@@ -57,7 +56,7 @@ export const RepresentativeOfficeInfo = JSX<RepresentativeOfficeInfoProps>(
|
|
|
57
56
|
const renderIconBlock = (icon?: Picture) => (
|
|
58
57
|
<div className="self-end">
|
|
59
58
|
{icon?.src ? <Img image={icon} /> : null}
|
|
60
|
-
{icon?.icon ? <Img image={
|
|
59
|
+
{icon?.icon ? <Img image={icon} asSVG /> : null}
|
|
61
60
|
</div>
|
|
62
61
|
);
|
|
63
62
|
|
|
@@ -11,7 +11,6 @@ import type { FoldablePartProps } from '../../ui-kit/Foldable/FoldablePartProps'
|
|
|
11
11
|
import { FoldableSection } from '../../ui-kit/Foldable/FoldableSection';
|
|
12
12
|
import { Img } from '../../ui-kit/Img/Img';
|
|
13
13
|
import { Text } from '../../ui-kit/Text/Text';
|
|
14
|
-
import { getIconWithVersion } from '../../utils/getIconWithVersion';
|
|
15
14
|
import { style } from '../../utils/style';
|
|
16
15
|
import type { RollupItemContent } from './RollupItemContent';
|
|
17
16
|
|
|
@@ -112,24 +111,12 @@ const renderPrimaryFoldButton = ({
|
|
|
112
111
|
>
|
|
113
112
|
<div className="flex group-hover:text-primary-main">
|
|
114
113
|
{primaryIcon ? (
|
|
115
|
-
<Img
|
|
116
|
-
image={{ ...getIconWithVersion({ ...primaryIcon } as Picture) }}
|
|
117
|
-
className="mr-3 flex-shrink-0"
|
|
118
|
-
width="24"
|
|
119
|
-
height="24"
|
|
120
|
-
asSVG
|
|
121
|
-
/>
|
|
114
|
+
<Img image={primaryIcon} className="mr-3 flex-shrink-0" width="24" height="24" asSVG />
|
|
122
115
|
) : null}
|
|
123
116
|
<Text size="text-m-title-xs" font="font-medium">
|
|
124
117
|
{label}
|
|
125
118
|
</Text>
|
|
126
119
|
</div>
|
|
127
|
-
<Img
|
|
128
|
-
className="flex-shrink-0"
|
|
129
|
-
image={{ ...getIconWithVersion({ icon: icon }) }}
|
|
130
|
-
width="24"
|
|
131
|
-
height="24"
|
|
132
|
-
asSVG
|
|
133
|
-
/>
|
|
120
|
+
<Img className="flex-shrink-0" image={{ icon }} width="24" height="24" asSVG />
|
|
134
121
|
</button>
|
|
135
122
|
);
|
|
@@ -7,7 +7,6 @@ import { Heading } from '../../ui-kit/Heading/Heading';
|
|
|
7
7
|
import { Img } from '../../ui-kit/Img/Img';
|
|
8
8
|
import { RichText } from '../../ui-kit/RichText/RichText';
|
|
9
9
|
import { assertUnreachable } from '../../utils/assertUnreachable';
|
|
10
|
-
import { getIconWithVersion } from '../../utils/getIconWithVersion';
|
|
11
10
|
import { checkCanRenderIcon } from './checkCanRenderIcon';
|
|
12
11
|
import type { DefaultStep, Step, StepsBlockContent } from './StepsBlockContent';
|
|
13
12
|
import { STEPS_BLOCK_STYLE } from './StepsBlockStyleMaps';
|
|
@@ -121,6 +120,8 @@ const renderIconArea = (size: SizeVersion, version: BlockVersion) => (step: Step
|
|
|
121
120
|
const iconSize = size === 'normal' ? '38' : '27';
|
|
122
121
|
const iconTextSize = size === 'normal' ? 'text-m-title' : 'text-m-title-xs';
|
|
123
122
|
|
|
123
|
+
const iconVersion = version === 'secondary' ? 'white' : 'color';
|
|
124
|
+
|
|
124
125
|
return (
|
|
125
126
|
<div
|
|
126
127
|
className={`${iconAreaSize} ${styleMap.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`}
|
|
@@ -128,7 +129,7 @@ const renderIconArea = (size: SizeVersion, version: BlockVersion) => (step: Step
|
|
|
128
129
|
<span className={`font-medium flex self-center ${iconTextSize}`}>
|
|
129
130
|
{checkCanRenderIcon(step?.icon) ? (
|
|
130
131
|
<Img
|
|
131
|
-
image={
|
|
132
|
+
image={{ ...step.icon, iconVersion: step.icon?.iconVersion || iconVersion }}
|
|
132
133
|
width={iconSize}
|
|
133
134
|
height={iconSize}
|
|
134
135
|
asSVG
|
|
@@ -3,7 +3,6 @@ import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
|
3
3
|
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
4
4
|
import { Img } from '../../ui-kit/Img/Img';
|
|
5
5
|
import type { TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTableProps';
|
|
6
|
-
import { getIconWithVersion } from '../../utils/getIconWithVersion';
|
|
7
6
|
import { TableCarouselContainer } from '../ComparisonTable/TableCarouselContainer';
|
|
8
7
|
import { COLUMN_WIDTH, DIVIDER_CLASSES, FIRST_CELL_CLASSES } from './constants';
|
|
9
8
|
import { TariffsTableCell } from './TariffsTableCell';
|
|
@@ -39,13 +38,7 @@ export const TariffsTableRow = JSX<TariffsTableRowProps>(
|
|
|
39
38
|
<div className={`text-s py-5 ${FIRST_CELL_CLASSES} ${DIVIDER_CLASSES}`}>
|
|
40
39
|
<div className="flex items-center text-primary-text" role="cell">
|
|
41
40
|
{header?.icon ? (
|
|
42
|
-
<Img
|
|
43
|
-
className="mr-3.5 max-w-6"
|
|
44
|
-
image={getIconWithVersion(header.icon)}
|
|
45
|
-
width="24"
|
|
46
|
-
height="24"
|
|
47
|
-
asSVG
|
|
48
|
-
/>
|
|
41
|
+
<Img className="mr-3.5 max-w-6" image={header.icon} width="24" height="24" asSVG />
|
|
49
42
|
) : null}
|
|
50
43
|
{header?.title ? <div className="text-m-light">{header?.title}</div> : null}
|
|
51
44
|
</div>
|
|
@@ -11,6 +11,7 @@ import { resizeImg } from './resizeImg';
|
|
|
11
11
|
import type { TransformationOptions } from './TransformationOptions';
|
|
12
12
|
|
|
13
13
|
const mkdir = util.promisify(fs.mkdir);
|
|
14
|
+
const copyFile = util.promisify(fs.copyFile);
|
|
14
15
|
|
|
15
16
|
type ImgOutputPath = string;
|
|
16
17
|
type TransformationTaskKey = ImgOutputPath;
|
|
@@ -21,13 +22,19 @@ type TransformImgOptions = TransformationOptions &
|
|
|
21
22
|
|
|
22
23
|
const defaultTransformationCache: TransformationTasksCache = new Map();
|
|
23
24
|
|
|
25
|
+
const isNilTransform = ({ size, containerSize, alignment, format }: TransformImgOptions) =>
|
|
26
|
+
isPictureSizeEmpty(size) && isPictureSizeEmpty(containerSize) && !alignment && !format;
|
|
27
|
+
|
|
28
|
+
const isVectorInput = (input: string) =>
|
|
29
|
+
['.svg', '.eps', '.epsf', '.epsi', '.pdf'].some((ext) => input.toLowerCase().endsWith(ext));
|
|
30
|
+
|
|
24
31
|
export function transformImg(
|
|
25
32
|
src: string,
|
|
26
33
|
pagePath: string,
|
|
27
34
|
options: TransformImgOptions,
|
|
28
35
|
): ImgOutputPath | Promise<ImgOutputPath> {
|
|
29
36
|
if (!src) {
|
|
30
|
-
return '';
|
|
37
|
+
return src || '';
|
|
31
38
|
}
|
|
32
39
|
|
|
33
40
|
const input = path.join(path.dirname(pagePath), src);
|
|
@@ -43,9 +50,12 @@ export function transformImg(
|
|
|
43
50
|
const result = (async () => {
|
|
44
51
|
try {
|
|
45
52
|
await mkdir(path.dirname(output), { recursive: true });
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
53
|
+
if (isNilTransform(options) || isVectorInput(src)) {
|
|
54
|
+
await copyFile(input, output);
|
|
55
|
+
} else {
|
|
56
|
+
const chain = await computeTransformationChain(options)(sharp(input));
|
|
57
|
+
await chain.toFile(output);
|
|
58
|
+
}
|
|
49
59
|
} catch (e) {
|
|
50
60
|
console.error(e);
|
|
51
61
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
3
|
import type { IconVersion } from '../../model/IconVersion';
|
|
4
|
-
import { getIconWithVersion } from '../../utils/getIconWithVersion';
|
|
5
4
|
import { Img } from '../Img/Img';
|
|
6
5
|
import type { BenefitItemCommonProps, BenefitItemProps } from './BenefitItemProps';
|
|
7
6
|
|
|
@@ -17,13 +16,16 @@ export const BenefitItem = JSX<BenefitGeneralProps>((props) => {
|
|
|
17
16
|
benefitsVersion = 'normal',
|
|
18
17
|
} = props;
|
|
19
18
|
const listItemAlign = description ? 'items-start' : 'items-center';
|
|
20
|
-
const calcVersion = benefitsVersion === 'white' ? 'secondary' : 'primary';
|
|
21
19
|
|
|
22
20
|
return (
|
|
23
21
|
<div className={`flex gap-5 ${listItemAlign} ${className}`}>
|
|
24
22
|
{icon ? (
|
|
25
23
|
<div className={getBenefitIconBgStyle(version, benefitsVersion)}>
|
|
26
|
-
<Img
|
|
24
|
+
<Img
|
|
25
|
+
className="w-6 h-6"
|
|
26
|
+
image={{ ...icon, iconVersion: icon.iconVersion || benefitsVersion }}
|
|
27
|
+
asSVG
|
|
28
|
+
/>
|
|
27
29
|
</div>
|
|
28
30
|
) : null}
|
|
29
31
|
<div className="gap-0.5">
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import type { ButtonVersion } from '../../model/ButtonVersion';
|
|
3
|
+
import { style } from '../../utils/style';
|
|
3
4
|
import { iconStyleMap } from './buttonClassNameConstants';
|
|
4
5
|
import type { ButtonWithIconProps } from './ButtonProps';
|
|
5
6
|
|
|
@@ -11,7 +12,7 @@ export const ButtonInner = JSX<ButtonInnerProps>((props) => {
|
|
|
11
12
|
const { text, aboveText, appendLeft, appendRight, version = 'primary' } = props;
|
|
12
13
|
|
|
13
14
|
return (
|
|
14
|
-
<div className={getButtonStyle(props)}>
|
|
15
|
+
<div className={style(getButtonStyle(props), 'flex gap-2')}>
|
|
15
16
|
{appendLeft ? <div className={iconStyleMap[version]}>{appendLeft}</div> : null}
|
|
16
17
|
{isWithText(props) ? (
|
|
17
18
|
<div>
|
|
@@ -31,10 +32,10 @@ const getButtonStyle = (props: ButtonInnerProps) => {
|
|
|
31
32
|
return '';
|
|
32
33
|
}
|
|
33
34
|
|
|
34
|
-
const withTextStyle =
|
|
35
|
+
const withTextStyle = `${aboveText ? 'py-2.5 px-7' : 'py-4 px-4'}`;
|
|
35
36
|
|
|
36
37
|
return [
|
|
37
|
-
'group/btn
|
|
38
|
+
'group/btn items-center justify-center',
|
|
38
39
|
isWithText(props) ? withTextStyle : 'h-12 w-12',
|
|
39
40
|
rounded ? 'rounded-full' : '',
|
|
40
41
|
].join(' ');
|
|
@@ -24,7 +24,8 @@ const renderButton =
|
|
|
24
24
|
(buttonClassName = '') =>
|
|
25
25
|
(button?: ButtonWithIconProps, index?: number) => {
|
|
26
26
|
const { text, icon, iconRight, version, ...rest } = button || {};
|
|
27
|
-
const
|
|
27
|
+
const iconVersionDefault = version === 'secondary' ? 'color' : 'white';
|
|
28
|
+
const iconVersion = icon?.iconVersion ? icon?.iconVersion : iconVersionDefault;
|
|
28
29
|
|
|
29
30
|
return text || icon?.icon ? (
|
|
30
31
|
<Button
|