@redneckz/wildless-cms-uni-blocks 0.12.7 → 0.12.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/migration-scripts/0.12.8.js +45 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +67 -45
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -0
- package/bundle/components/BenefitsBlock/defaultIconSize.d.ts +1 -0
- package/bundle/components/BenefitsBlock/defaultIconSize.mobile.d.ts +1 -0
- package/bundle/components/BonusBenefitsBlock/renderBonusBenefits.mobile.d.ts +1 -1
- package/bundle/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +2 -1
- package/bundle/components/Footer/findIconByHref.d.ts +2 -0
- package/bundle/components/Footer/iconsMap.d.ts +7 -0
- package/bundle/components/Header/HeaderContent.d.ts +1 -13
- package/bundle/components/Header/HeaderTop.d.ts +1 -3
- package/bundle/components/LinkDocs/LinkDocItem.d.ts +6 -0
- package/bundle/components/LinkDocs/LinkDocsContent.d.ts +30 -6
- package/bundle/components/LinkDocs/linkIconStyle.d.ts +1 -0
- package/bundle/components/LinkDocs/linkIconStyle.mobile.d.ts +1 -0
- package/bundle/content-page-repository/transformDocument.d.ts +3 -0
- package/bundle/hooks/useRouter.d.ts +1 -0
- package/bundle/icons/IconName.d.ts +2 -2
- package/bundle/model/Attachment.d.ts +4 -0
- package/bundle/model/HeadlineType.d.ts +5 -4
- package/bundle/ui-kit/Icon/IconProps.d.ts +3 -2
- package/bundle/ui-kit/Icon/RoundedIcon.d.ts +1 -0
- package/dist/components/ApplicationForm/ApplicationForm.js +1 -1
- package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js +1 -1
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormCredit.js +1 -1
- package/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js +1 -1
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormWed.js +1 -1
- package/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
- package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
- package/dist/components/ApplicationForm/renderAcquiringRegion.js +1 -1
- package/dist/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
- package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js +1 -1
- package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
- package/dist/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
- package/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
- package/dist/components/ApplicationForm/renderCreditParameters.js +1 -1
- package/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/dist/components/ApplicationForm/renderQuestionsInterested.js +1 -1
- package/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/dist/components/ApplicationForm/renderRegion.js +1 -1
- package/dist/components/ApplicationForm/renderRegion.js.map +1 -1
- package/dist/components/ApplicationForm/renderRegionDepartment.js +1 -1
- package/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
- package/dist/components/ApplicationForm/renderSlideCheckboxes.js +1 -1
- package/dist/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -1
- package/dist/components/ApplicationForm/renderSubmitButton.js +1 -1
- package/dist/components/ApplicationForm/renderSubmitButton.js.map +1 -1
- package/dist/components/ApplicationForm/renderWedDataOrganization.js +1 -1
- package/dist/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js +5 -5
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -0
- package/dist/components/BenefitsBlock/defaultIconSize.d.ts +1 -0
- package/dist/components/BenefitsBlock/defaultIconSize.js +4 -0
- package/dist/components/BenefitsBlock/defaultIconSize.js.map +1 -0
- package/dist/components/BenefitsBlock/defaultIconSize.mobile.d.ts +1 -0
- package/dist/components/BenefitsBlock/defaultIconSize.mobile.js +4 -0
- package/dist/components/BenefitsBlock/defaultIconSize.mobile.js.map +1 -0
- package/dist/components/Blocks.mobile.js +3 -1
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/BonusBenefitsBlock/renderBonusBenefits.mobile.d.ts +1 -1
- package/dist/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js +1 -1
- package/dist/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js.map +1 -1
- package/dist/components/CarouselProductCard/CarouselProductCard.js +1 -1
- package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/dist/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +2 -1
- package/dist/components/CarouselTariffsCard/renderCardInfo.js +1 -2
- package/dist/components/CarouselTariffsCard/renderCardInfo.js.map +1 -1
- package/dist/components/Footer/Footer.mobile.js +7 -2
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/Footer/MediaButton.js +2 -33
- package/dist/components/Footer/MediaButton.js.map +1 -1
- package/dist/components/Footer/findIconByHref.d.ts +2 -0
- package/dist/components/Footer/findIconByHref.js +6 -0
- package/dist/components/Footer/findIconByHref.js.map +1 -0
- package/dist/components/Footer/iconsMap.d.ts +7 -0
- package/dist/components/Footer/iconsMap.js +35 -0
- package/dist/components/Footer/iconsMap.js.map +1 -0
- package/dist/components/Header/Header.mobile.js +2 -2
- package/dist/components/Header/Header.mobile.js.map +1 -1
- package/dist/components/Header/HeaderContent.d.ts +1 -13
- package/dist/components/Header/HeaderTop.d.ts +1 -3
- package/dist/components/Header/HeaderTop.js +10 -5
- package/dist/components/Header/HeaderTop.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocItem.d.ts +6 -0
- package/dist/components/LinkDocs/LinkDocItem.js +20 -0
- package/dist/components/LinkDocs/LinkDocItem.js.map +1 -0
- package/dist/components/LinkDocs/LinkDocs.js +16 -4
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsContent.d.ts +30 -6
- package/dist/components/LinkDocs/linkDocsContentExample.js +20 -8
- package/dist/components/LinkDocs/linkDocsContentExample.js.map +1 -1
- package/dist/components/LinkDocs/linkIconStyle.d.ts +1 -0
- package/dist/components/LinkDocs/linkIconStyle.js +4 -0
- package/dist/components/LinkDocs/linkIconStyle.js.map +1 -0
- package/dist/components/LinkDocs/linkIconStyle.mobile.d.ts +1 -0
- package/dist/components/LinkDocs/linkIconStyle.mobile.js +4 -0
- package/dist/components/LinkDocs/linkIconStyle.mobile.js.map +1 -0
- package/dist/components/RollupItem/RollupItem.js +1 -2
- package/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/dist/components/TextBlock/TextBlock.js +3 -3
- package/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/dist/content-page-repository/transformContentPage.js +15 -5
- package/dist/content-page-repository/transformContentPage.js.map +1 -1
- package/dist/content-page-repository/transformDocument.d.ts +3 -0
- package/{mobile/dist/content-page-repository/transformDocumentLink.js → dist/content-page-repository/transformDocument.js} +11 -11
- package/dist/content-page-repository/transformDocument.js.map +1 -0
- package/dist/hooks/useRouter.d.ts +1 -0
- package/dist/hooks/useRouter.js +3 -0
- package/dist/hooks/useRouter.js.map +1 -1
- package/dist/icons/IconName.d.ts +2 -2
- package/dist/icons/IconName.js +1 -1
- package/dist/icons/IconName.js.map +1 -1
- package/dist/model/Attachment.d.ts +4 -0
- package/dist/model/Attachment.js +2 -0
- package/dist/model/Attachment.js.map +1 -0
- package/dist/model/HeadlineType.d.ts +5 -4
- package/dist/setup-fixture.js +4 -1
- package/dist/setup-fixture.js.map +1 -1
- package/dist/ui-kit/CookiePopup/CookiePopup.js +1 -1
- package/dist/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
- package/dist/ui-kit/Icon/IconProps.d.ts +3 -2
- package/dist/ui-kit/Icon/RoundedIcon.d.ts +1 -0
- package/dist/ui-kit/Icon/RoundedIcon.js +9 -6
- package/dist/ui-kit/Icon/RoundedIcon.js.map +1 -1
- package/dist/ui-kit/Logo/Logo.js +2 -3
- package/dist/ui-kit/Logo/Logo.js.map +1 -1
- package/dist/ui-kit/Select/Select.js +1 -1
- package/dist/ui-kit/Select/Select.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.fixture.mobile.d.ts +10 -0
- package/lib/components/ApplicationForm/ApplicationForm.js +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js +1 -1
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormCredit.js +1 -1
- package/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js +1 -1
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormWed.js +1 -1
- package/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/lib/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +0 -1
- package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
- package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
- package/lib/components/ApplicationForm/renderAcquiringRegion.d.ts +0 -1
- package/lib/components/ApplicationForm/renderAcquiringRegion.js +1 -1
- package/lib/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
- package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +0 -1
- package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js +1 -1
- package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
- package/lib/components/ApplicationForm/renderContacts.d.ts +0 -1
- package/lib/components/ApplicationForm/renderCreditDataOrganization.d.ts +0 -1
- package/lib/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
- package/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
- package/lib/components/ApplicationForm/renderCreditParameters.d.ts +0 -1
- package/lib/components/ApplicationForm/renderCreditParameters.js +1 -1
- package/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/lib/components/ApplicationForm/renderQuestionsInterested.d.ts +0 -1
- package/lib/components/ApplicationForm/renderQuestionsInterested.js +1 -1
- package/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/lib/components/ApplicationForm/renderRegion.d.ts +0 -1
- package/lib/components/ApplicationForm/renderRegion.js +1 -1
- package/lib/components/ApplicationForm/renderRegion.js.map +1 -1
- package/lib/components/ApplicationForm/renderRegionDepartment.d.ts +0 -1
- package/lib/components/ApplicationForm/renderRegionDepartment.js +1 -1
- package/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
- package/lib/components/ApplicationForm/renderSlideCheckboxes.d.ts +0 -1
- package/lib/components/ApplicationForm/renderSlideCheckboxes.js +1 -1
- package/lib/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -1
- package/lib/components/ApplicationForm/renderSubmitButton.d.ts +0 -1
- package/lib/components/ApplicationForm/renderSubmitButton.js +1 -1
- package/lib/components/ApplicationForm/renderSubmitButton.js.map +1 -1
- package/lib/components/ApplicationForm/renderWedDataOrganization.d.ts +0 -1
- package/lib/components/ApplicationForm/renderWedDataOrganization.js +1 -1
- package/lib/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.fixture.mobile.d.ts +1 -0
- package/lib/components/BenefitsBlock/BenefitsBlock.js +5 -5
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -0
- package/lib/components/BenefitsBlock/defaultIconSize.d.ts +1 -0
- package/lib/components/BenefitsBlock/defaultIconSize.js +2 -0
- package/lib/components/BenefitsBlock/defaultIconSize.js.map +1 -0
- package/lib/components/BenefitsBlock/defaultIconSize.mobile.d.ts +1 -0
- package/lib/components/BenefitsBlock/defaultIconSize.mobile.js +2 -0
- package/lib/components/BenefitsBlock/defaultIconSize.mobile.js.map +1 -0
- package/lib/components/Blocks.mobile.js +3 -1
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/BonusBenefitsBlock/renderBonusBenefits.mobile.d.ts +1 -1
- package/lib/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js +1 -1
- package/lib/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js.map +1 -1
- package/lib/components/CarouselProductCard/CarouselProductCard.js +1 -1
- package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/lib/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +2 -1
- package/lib/components/CarouselTariffsCard/renderCardInfo.js +1 -2
- package/lib/components/CarouselTariffsCard/renderCardInfo.js.map +1 -1
- package/lib/components/Footer/Footer.mobile.js +7 -2
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/Footer/MediaButton.js +2 -33
- package/lib/components/Footer/MediaButton.js.map +1 -1
- package/lib/components/Footer/findIconByHref.d.ts +2 -0
- package/lib/components/Footer/findIconByHref.js +3 -0
- package/lib/components/Footer/findIconByHref.js.map +1 -0
- package/lib/components/Footer/iconsMap.d.ts +7 -0
- package/lib/components/Footer/iconsMap.js +33 -0
- package/lib/components/Footer/iconsMap.js.map +1 -0
- package/lib/components/Header/Header.fixture.mobile.d.ts +0 -2
- package/lib/components/Header/Header.mobile.js +2 -2
- package/lib/components/Header/Header.mobile.js.map +1 -1
- package/lib/components/Header/HeaderContent.d.ts +1 -13
- package/lib/components/Header/HeaderTop.d.ts +1 -3
- package/lib/components/Header/HeaderTop.js +10 -5
- package/lib/components/Header/HeaderTop.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocItem.d.ts +6 -0
- package/{mobile/lib/components/LinkDocs/LinkDocsListItem.js → lib/components/LinkDocs/LinkDocItem.js} +2 -5
- package/lib/components/LinkDocs/LinkDocItem.js.map +1 -0
- package/lib/components/LinkDocs/LinkDocs.js +16 -4
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsContent.d.ts +30 -6
- package/lib/components/LinkDocs/linkDocsContentExample.js +20 -8
- package/lib/components/LinkDocs/linkDocsContentExample.js.map +1 -1
- package/lib/components/LinkDocs/linkIconStyle.d.ts +1 -0
- package/lib/components/LinkDocs/linkIconStyle.js +2 -0
- package/lib/components/LinkDocs/linkIconStyle.js.map +1 -0
- package/lib/components/LinkDocs/linkIconStyle.mobile.d.ts +1 -0
- package/lib/components/LinkDocs/linkIconStyle.mobile.js +2 -0
- package/lib/components/LinkDocs/linkIconStyle.mobile.js.map +1 -0
- package/lib/components/RollupItem/RollupItem.fixture.mobile.d.ts +0 -1
- package/lib/components/RollupItem/RollupItem.js +1 -2
- package/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/lib/components/TextBlock/TextBlock.js +3 -3
- package/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/lib/content-page-repository/transformContentPage.js +15 -5
- package/lib/content-page-repository/transformContentPage.js.map +1 -1
- package/lib/content-page-repository/transformDocument.d.ts +3 -0
- package/{mobile/lib/content-page-repository/transformDocumentLink.js → lib/content-page-repository/transformDocument.js} +9 -9
- package/lib/content-page-repository/transformDocument.js.map +1 -0
- package/lib/hooks/useRouter.d.ts +1 -0
- package/lib/hooks/useRouter.js +3 -0
- package/lib/hooks/useRouter.js.map +1 -1
- package/lib/icons/IconName.d.ts +2 -2
- package/lib/icons/IconName.js +1 -1
- package/lib/icons/IconName.js.map +1 -1
- package/lib/model/Attachment.d.ts +4 -0
- package/lib/model/Attachment.js +2 -0
- package/lib/model/Attachment.js.map +1 -0
- package/lib/model/HeadlineType.d.ts +5 -4
- package/lib/setup-fixture.js +4 -1
- package/lib/setup-fixture.js.map +1 -1
- package/lib/ui-kit/CookiePopup/CookiePopup.js +1 -1
- package/lib/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
- package/lib/ui-kit/Icon/IconProps.d.ts +3 -2
- package/lib/ui-kit/Icon/RoundedIcon.d.ts +1 -0
- package/lib/ui-kit/Icon/RoundedIcon.js +9 -6
- package/lib/ui-kit/Icon/RoundedIcon.js.map +1 -1
- package/lib/ui-kit/Logo/Logo.js +2 -3
- package/lib/ui-kit/Logo/Logo.js.map +1 -1
- package/lib/ui-kit/Select/Select.js +1 -1
- package/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +969 -493
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/mobile/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -0
- package/mobile/bundle/components/BenefitsBlock/defaultIconSize.d.ts +1 -0
- package/mobile/bundle/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +1 -1
- package/mobile/bundle/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +2 -1
- package/mobile/bundle/components/Footer/findIconByHref.d.ts +2 -0
- package/mobile/bundle/components/Footer/iconsMap.d.ts +7 -0
- package/mobile/bundle/components/Header/HeaderContent.d.ts +1 -13
- package/mobile/bundle/components/Header/HeaderTop.d.ts +1 -3
- package/mobile/bundle/components/LinkDocs/LinkDocItem.d.ts +6 -0
- package/mobile/bundle/components/LinkDocs/LinkDocsContent.d.ts +30 -6
- package/mobile/bundle/components/LinkDocs/linkIconStyle.d.ts +1 -0
- package/mobile/bundle/content-page-repository/transformDocument.d.ts +3 -0
- package/mobile/bundle/hooks/useRouter.d.ts +1 -0
- package/mobile/bundle/icons/IconName.d.ts +2 -2
- package/mobile/bundle/model/Attachment.d.ts +4 -0
- package/mobile/bundle/model/HeadlineType.d.ts +5 -4
- package/mobile/bundle/ui-kit/Icon/IconProps.d.ts +3 -2
- package/mobile/bundle/ui-kit/Icon/RoundedIcon.d.ts +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderRegion.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderRegion.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderSlideCheckboxes.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderSubmitButton.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderSubmitButton.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +5 -5
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -0
- package/mobile/dist/components/BenefitsBlock/defaultIconSize.d.ts +1 -0
- package/mobile/dist/components/BenefitsBlock/defaultIconSize.js +4 -0
- package/mobile/dist/components/BenefitsBlock/defaultIconSize.js.map +1 -0
- package/mobile/dist/components/Blocks.js +3 -1
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefits.js +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefits.js.map +1 -1
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +1 -1
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +2 -1
- package/mobile/dist/components/CarouselTariffsCard/renderCardInfo.js +1 -2
- package/mobile/dist/components/CarouselTariffsCard/renderCardInfo.js.map +1 -1
- package/mobile/dist/components/Footer/Footer.js +7 -2
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/Footer/MediaButton.js +2 -33
- package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
- package/mobile/dist/components/Footer/findIconByHref.d.ts +2 -0
- package/mobile/dist/components/Footer/findIconByHref.js +6 -0
- package/mobile/dist/components/Footer/findIconByHref.js.map +1 -0
- package/mobile/dist/components/Footer/iconsMap.d.ts +7 -0
- package/mobile/dist/components/Footer/iconsMap.js +35 -0
- package/mobile/dist/components/Footer/iconsMap.js.map +1 -0
- package/mobile/dist/components/Header/Header.js +2 -2
- package/mobile/dist/components/Header/Header.js.map +1 -1
- package/mobile/dist/components/Header/HeaderContent.d.ts +1 -13
- package/mobile/dist/components/Header/HeaderTop.d.ts +1 -3
- package/mobile/dist/components/Header/HeaderTop.js +10 -5
- package/mobile/dist/components/Header/HeaderTop.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocItem.d.ts +6 -0
- package/mobile/dist/components/LinkDocs/LinkDocItem.js +20 -0
- package/mobile/dist/components/LinkDocs/LinkDocItem.js.map +1 -0
- package/mobile/dist/components/LinkDocs/LinkDocs.js +19 -2
- package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +30 -6
- package/mobile/dist/components/LinkDocs/linkDocsContentExample.js +20 -8
- package/mobile/dist/components/LinkDocs/linkDocsContentExample.js.map +1 -1
- package/mobile/dist/components/LinkDocs/linkIconStyle.d.ts +1 -0
- package/mobile/dist/components/LinkDocs/linkIconStyle.js +4 -0
- package/mobile/dist/components/LinkDocs/linkIconStyle.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/TextBlock/TextBlock.js +3 -3
- package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/dist/content-page-repository/transformContentPage.js +15 -5
- package/mobile/dist/content-page-repository/transformContentPage.js.map +1 -1
- package/mobile/dist/content-page-repository/transformDocument.d.ts +3 -0
- package/{dist/content-page-repository/transformDocumentLink.js → mobile/dist/content-page-repository/transformDocument.js} +11 -11
- package/mobile/dist/content-page-repository/transformDocument.js.map +1 -0
- package/mobile/dist/hooks/useRouter.d.ts +1 -0
- package/mobile/dist/hooks/useRouter.js +3 -0
- package/mobile/dist/hooks/useRouter.js.map +1 -1
- package/mobile/dist/icons/IconName.d.ts +2 -2
- package/mobile/dist/icons/IconName.js +1 -1
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/model/Attachment.d.ts +4 -0
- package/mobile/dist/model/Attachment.js +2 -0
- package/mobile/dist/model/Attachment.js.map +1 -0
- package/mobile/dist/model/HeadlineType.d.ts +5 -4
- package/mobile/dist/setup-fixture.js +4 -1
- package/mobile/dist/setup-fixture.js.map +1 -1
- package/mobile/dist/ui-kit/CookiePopup/CookiePopup.js +1 -1
- package/mobile/dist/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
- package/mobile/dist/ui-kit/Icon/IconProps.d.ts +3 -2
- package/mobile/dist/ui-kit/Icon/RoundedIcon.d.ts +1 -0
- package/mobile/dist/ui-kit/Icon/RoundedIcon.js +9 -6
- package/mobile/dist/ui-kit/Icon/RoundedIcon.js.map +1 -1
- package/mobile/dist/ui-kit/Select/Select.js +1 -1
- package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderRegion.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderRegion.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderSlideCheckboxes.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderSubmitButton.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderSubmitButton.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +5 -5
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -0
- package/mobile/lib/components/BenefitsBlock/defaultIconSize.d.ts +1 -0
- package/mobile/lib/components/BenefitsBlock/defaultIconSize.js +2 -0
- package/mobile/lib/components/BenefitsBlock/defaultIconSize.js.map +1 -0
- package/mobile/lib/components/Blocks.js +3 -1
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefits.js +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefits.js.map +1 -1
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +1 -1
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +2 -1
- package/mobile/lib/components/CarouselTariffsCard/renderCardInfo.js +1 -2
- package/mobile/lib/components/CarouselTariffsCard/renderCardInfo.js.map +1 -1
- package/mobile/lib/components/Footer/Footer.js +7 -2
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/Footer/MediaButton.js +2 -33
- package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
- package/mobile/lib/components/Footer/findIconByHref.d.ts +2 -0
- package/mobile/lib/components/Footer/findIconByHref.js +3 -0
- package/mobile/lib/components/Footer/findIconByHref.js.map +1 -0
- package/mobile/lib/components/Footer/iconsMap.d.ts +7 -0
- package/mobile/lib/components/Footer/iconsMap.js +33 -0
- package/mobile/lib/components/Footer/iconsMap.js.map +1 -0
- package/mobile/lib/components/Header/Header.js +2 -2
- package/mobile/lib/components/Header/Header.js.map +1 -1
- package/mobile/lib/components/Header/HeaderContent.d.ts +1 -13
- package/mobile/lib/components/Header/HeaderTop.d.ts +1 -3
- package/mobile/lib/components/Header/HeaderTop.js +10 -5
- package/mobile/lib/components/Header/HeaderTop.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocItem.d.ts +6 -0
- package/{lib/components/LinkDocs/LinkDocsListItem.js → mobile/lib/components/LinkDocs/LinkDocItem.js} +2 -5
- package/mobile/lib/components/LinkDocs/LinkDocItem.js.map +1 -0
- package/mobile/lib/components/LinkDocs/LinkDocs.js +19 -2
- package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +30 -6
- package/mobile/lib/components/LinkDocs/linkDocsContentExample.js +20 -8
- package/mobile/lib/components/LinkDocs/linkDocsContentExample.js.map +1 -1
- package/mobile/lib/components/LinkDocs/linkIconStyle.d.ts +1 -0
- package/mobile/lib/components/LinkDocs/linkIconStyle.js +2 -0
- package/mobile/lib/components/LinkDocs/linkIconStyle.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/TextBlock/TextBlock.js +3 -3
- package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/lib/content-page-repository/transformContentPage.js +15 -5
- package/mobile/lib/content-page-repository/transformContentPage.js.map +1 -1
- package/mobile/lib/content-page-repository/transformDocument.d.ts +3 -0
- package/{lib/content-page-repository/transformDocumentLink.js → mobile/lib/content-page-repository/transformDocument.js} +9 -9
- package/mobile/lib/content-page-repository/transformDocument.js.map +1 -0
- package/mobile/lib/hooks/useRouter.d.ts +1 -0
- package/mobile/lib/hooks/useRouter.js +3 -0
- package/mobile/lib/hooks/useRouter.js.map +1 -1
- package/mobile/lib/icons/IconName.d.ts +2 -2
- package/mobile/lib/icons/IconName.js +1 -1
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/model/Attachment.d.ts +4 -0
- package/mobile/lib/model/Attachment.js +2 -0
- package/mobile/lib/model/Attachment.js.map +1 -0
- package/mobile/lib/model/HeadlineType.d.ts +5 -4
- package/mobile/lib/setup-fixture.js +4 -1
- package/mobile/lib/setup-fixture.js.map +1 -1
- package/mobile/lib/ui-kit/CookiePopup/CookiePopup.js +1 -1
- package/mobile/lib/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
- package/mobile/lib/ui-kit/Icon/IconProps.d.ts +3 -2
- package/mobile/lib/ui-kit/Icon/RoundedIcon.d.ts +1 -0
- package/mobile/lib/ui-kit/Icon/RoundedIcon.js +9 -6
- package/mobile/lib/ui-kit/Icon/RoundedIcon.js.map +1 -1
- package/mobile/lib/ui-kit/Select/Select.js +1 -1
- package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +3 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +2 -2
- package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +3 -3
- package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +3 -3
- package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +5 -5
- package/mobile/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +3 -3
- package/mobile/src/components/ApplicationForm/renderAcquiringRegion.tsx +3 -3
- package/mobile/src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx +3 -3
- package/mobile/src/components/ApplicationForm/renderCreditDataOrganization.tsx +3 -3
- package/mobile/src/components/ApplicationForm/renderCreditParameters.tsx +3 -3
- package/mobile/src/components/ApplicationForm/renderQuestionsInterested.tsx +13 -5
- package/mobile/src/components/ApplicationForm/renderRegion.tsx +7 -9
- package/mobile/src/components/ApplicationForm/renderRegionDepartment.tsx +3 -3
- package/mobile/src/components/ApplicationForm/renderSlideCheckboxes.tsx +1 -1
- package/mobile/src/components/ApplicationForm/renderSubmitButton.tsx +4 -1
- package/mobile/src/components/ApplicationForm/renderWedDataOrganization.tsx +6 -6
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.example.json +6 -6
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +15 -19
- package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +2 -0
- package/mobile/src/components/BenefitsBlock/defaultIconSize.tsx +1 -0
- package/mobile/src/components/Blocks.ts +3 -1
- package/mobile/src/components/BonusBenefitsBlock/renderBonusBenefits.tsx +2 -2
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +2 -4
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.example.json +2 -1
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +13 -2
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCardContent.ts +3 -1
- package/mobile/src/components/CarouselTariffsCard/renderCardInfo.tsx +1 -2
- package/mobile/src/components/Footer/Footer.tsx +19 -8
- package/mobile/src/components/Footer/MediaButton.tsx +2 -39
- package/mobile/src/components/Footer/findIconByHref.ts +4 -0
- package/mobile/src/components/Footer/iconsMap.ts +40 -0
- package/mobile/src/components/Header/Header.tsx +1 -7
- package/mobile/src/components/Header/HeaderContent.ts +1 -15
- package/mobile/src/components/Header/HeaderTop.tsx +41 -50
- package/mobile/src/components/LinkDocs/LinkDocItem.tsx +44 -0
- package/mobile/src/components/LinkDocs/LinkDocs.example.json +4 -0
- package/mobile/src/components/LinkDocs/LinkDocs.tsx +65 -36
- package/mobile/src/components/LinkDocs/LinkDocs.ui.json +8 -1
- package/mobile/src/components/LinkDocs/LinkDocsContent.ts +34 -6
- package/mobile/src/components/LinkDocs/linkDocsContentExample.ts +20 -8
- package/mobile/src/components/LinkDocs/linkIconStyle.ts +1 -0
- package/mobile/src/components/RollupItem/RollupItem.tsx +2 -3
- package/mobile/src/components/TextBlock/TextBlock.tsx +12 -5
- package/mobile/src/content-page-repository/transformContentPage.ts +17 -7
- package/{src/content-page-repository/transformDocumentLink.ts → mobile/src/content-page-repository/transformDocument.ts} +11 -11
- package/mobile/src/hooks/useRouter.ts +4 -0
- package/mobile/src/icons/ChevronLeft.svg +1 -1
- package/mobile/src/icons/IconName.ts +2 -2
- package/mobile/src/model/Attachment.ts +4 -0
- package/mobile/src/model/HeadlineType.ts +6 -5
- package/mobile/src/setup-fixture.ts +4 -1
- package/mobile/src/ui-kit/CookiePopup/CookiePopup.tsx +3 -3
- package/mobile/src/ui-kit/Icon/IconProps.ts +3 -2
- package/mobile/src/ui-kit/Icon/RoundedIcon.tsx +18 -7
- package/mobile/src/ui-kit/Select/Select.tsx +1 -1
- package/package.json +1 -1
- package/src/components/ApplicationForm/ApplicationForm.fixture.mobile.tsx +44 -0
- package/src/components/ApplicationForm/ApplicationForm.tsx +3 -1
- package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +2 -2
- package/src/components/ApplicationForm/ApplicationFormCredit.tsx +3 -3
- package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +3 -3
- package/src/components/ApplicationForm/ApplicationFormWed.tsx +5 -5
- package/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +3 -3
- package/src/components/ApplicationForm/renderAcquiringRegion.tsx +3 -3
- package/src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx +3 -3
- package/src/components/ApplicationForm/renderCreditDataOrganization.tsx +3 -3
- package/src/components/ApplicationForm/renderCreditParameters.tsx +3 -3
- package/src/components/ApplicationForm/renderQuestionsInterested.tsx +13 -5
- package/src/components/ApplicationForm/renderRegion.tsx +7 -9
- package/src/components/ApplicationForm/renderRegionDepartment.tsx +3 -3
- package/src/components/ApplicationForm/renderSlideCheckboxes.tsx +1 -1
- package/src/components/ApplicationForm/renderSubmitButton.tsx +4 -1
- package/src/components/ApplicationForm/renderWedDataOrganization.tsx +6 -6
- package/src/components/BenefitsBlock/BenefitsBlock.example.json +6 -6
- package/src/components/BenefitsBlock/BenefitsBlock.fixture.mobile.tsx +27 -20
- package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +43 -127
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +15 -19
- package/src/components/BenefitsBlock/BenefitsBlockContent.ts +2 -0
- package/src/components/BenefitsBlock/defaultIconSize.mobile.tsx +1 -0
- package/src/components/BenefitsBlock/defaultIconSize.tsx +1 -0
- package/src/components/Blocks.mobile.ts +3 -1
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.fixture.mobile.tsx +1 -1
- package/src/components/BonusBenefitsBlock/renderBonusBenefits.mobile.tsx +2 -2
- package/src/components/CarouselProductCard/CarouselProductCard.tsx +2 -4
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.example.json +2 -1
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +13 -2
- package/src/components/CarouselTariffsCard/CarouselTariffsCardContent.ts +3 -1
- package/src/components/CarouselTariffsCard/renderCardInfo.tsx +1 -2
- package/src/components/Footer/Footer.mobile.tsx +19 -8
- package/src/components/Footer/MediaButton.tsx +2 -39
- package/src/components/Footer/findIconByHref.ts +4 -0
- package/src/components/Footer/iconsMap.ts +40 -0
- package/src/components/Header/Header.fixture.mobile.tsx +0 -5
- package/src/components/Header/Header.mobile.tsx +1 -7
- package/src/components/Header/HeaderContent.ts +1 -15
- package/src/components/Header/HeaderTop.tsx +41 -50
- package/src/components/HorizontalLayout/HorizontalLayout.fixture.tsx +3 -3
- package/src/components/LinkDocs/LinkDocItem.tsx +44 -0
- package/src/components/LinkDocs/LinkDocs.example.json +4 -0
- package/src/components/LinkDocs/LinkDocs.tsx +58 -36
- package/src/components/LinkDocs/LinkDocs.ui.json +8 -1
- package/src/components/LinkDocs/LinkDocsContent.ts +34 -6
- package/src/components/LinkDocs/linkDocsContentExample.ts +20 -8
- package/src/components/LinkDocs/linkIconStyle.mobile.ts +1 -0
- package/src/components/LinkDocs/linkIconStyle.ts +1 -0
- package/src/components/RollupItem/RollupItem.fixture.mobile.tsx +0 -14
- package/src/components/RollupItem/RollupItem.tsx +2 -3
- package/src/components/TextBlock/TextBlock.tsx +12 -5
- package/src/components/VerticalLayout/VerticalLayout.fixture.mobile.tsx +4 -4
- package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +3 -3
- package/src/content-page-repository/transformContentPage.ts +17 -7
- package/{mobile/src/content-page-repository/transformDocumentLink.ts → src/content-page-repository/transformDocument.ts} +11 -11
- package/src/hooks/useRouter.ts +4 -0
- package/src/icons/ChevronLeft.svg +1 -1
- package/src/icons/IconName.ts +386 -6
- package/src/model/Attachment.ts +4 -0
- package/src/model/HeadlineType.ts +6 -5
- package/src/setup-fixture.ts +4 -1
- package/src/ui-kit/CookiePopup/CookiePopup.tsx +3 -3
- package/src/ui-kit/Icon/IconProps.ts +3 -2
- package/src/ui-kit/Icon/RoundedIcon.tsx +18 -7
- package/src/ui-kit/Logo/Logo.tsx +13 -14
- package/src/ui-kit/Select/Select.tsx +1 -1
- package/tailwind.config.cjs +1 -17
- package/bundle/components/BenefitsBlock/benefitImageStyles.d.ts +0 -1
- package/bundle/components/BenefitsBlock/benefitImageStyles.mobile.d.ts +0 -1
- package/bundle/components/CarouselTariffsCard/descriptionSize.d.ts +0 -1
- package/bundle/components/CarouselTariffsCard/descriptionSize.mobile.d.ts +0 -1
- package/bundle/components/LinkDocs/LinkDocs.mobile.d.ts +0 -5
- package/bundle/components/LinkDocs/LinkDocsListItem.d.ts +0 -7
- package/bundle/components/RollupItem/labelSize.d.ts +0 -1
- package/bundle/components/RollupItem/labelSize.mobile.d.ts +0 -1
- package/bundle/content-page-repository/transformDocumentLink.d.ts +0 -3
- package/dist/components/BenefitsBlock/benefitImageStyles.d.ts +0 -1
- package/dist/components/BenefitsBlock/benefitImageStyles.js +0 -4
- package/dist/components/BenefitsBlock/benefitImageStyles.js.map +0 -1
- package/dist/components/BenefitsBlock/benefitImageStyles.mobile.d.ts +0 -1
- package/dist/components/BenefitsBlock/benefitImageStyles.mobile.js +0 -4
- package/dist/components/BenefitsBlock/benefitImageStyles.mobile.js.map +0 -1
- package/dist/components/CarouselTariffsCard/descriptionSize.d.ts +0 -1
- package/dist/components/CarouselTariffsCard/descriptionSize.js +0 -4
- package/dist/components/CarouselTariffsCard/descriptionSize.js.map +0 -1
- package/dist/components/CarouselTariffsCard/descriptionSize.mobile.d.ts +0 -1
- package/dist/components/CarouselTariffsCard/descriptionSize.mobile.js +0 -4
- package/dist/components/CarouselTariffsCard/descriptionSize.mobile.js.map +0 -1
- package/dist/components/LinkDocs/LinkDocs.mobile.d.ts +0 -5
- package/dist/components/LinkDocs/LinkDocs.mobile.js +0 -10
- package/dist/components/LinkDocs/LinkDocs.mobile.js.map +0 -1
- package/dist/components/LinkDocs/LinkDocsListItem.d.ts +0 -7
- package/dist/components/LinkDocs/LinkDocsListItem.js +0 -23
- package/dist/components/LinkDocs/LinkDocsListItem.js.map +0 -1
- package/dist/components/RollupItem/labelSize.d.ts +0 -1
- package/dist/components/RollupItem/labelSize.js +0 -4
- package/dist/components/RollupItem/labelSize.js.map +0 -1
- package/dist/components/RollupItem/labelSize.mobile.d.ts +0 -1
- package/dist/components/RollupItem/labelSize.mobile.js +0 -4
- package/dist/components/RollupItem/labelSize.mobile.js.map +0 -1
- package/dist/content-page-repository/transformDocumentLink.d.ts +0 -3
- package/dist/content-page-repository/transformDocumentLink.js.map +0 -1
- package/lib/components/BenefitsBlock/benefitImageStyles.d.ts +0 -1
- package/lib/components/BenefitsBlock/benefitImageStyles.js +0 -2
- package/lib/components/BenefitsBlock/benefitImageStyles.js.map +0 -1
- package/lib/components/BenefitsBlock/benefitImageStyles.mobile.d.ts +0 -1
- package/lib/components/BenefitsBlock/benefitImageStyles.mobile.js +0 -2
- package/lib/components/BenefitsBlock/benefitImageStyles.mobile.js.map +0 -1
- package/lib/components/CarouselTariffsCard/descriptionSize.d.ts +0 -1
- package/lib/components/CarouselTariffsCard/descriptionSize.js +0 -2
- package/lib/components/CarouselTariffsCard/descriptionSize.js.map +0 -1
- package/lib/components/CarouselTariffsCard/descriptionSize.mobile.d.ts +0 -1
- package/lib/components/CarouselTariffsCard/descriptionSize.mobile.js +0 -2
- package/lib/components/CarouselTariffsCard/descriptionSize.mobile.js.map +0 -1
- package/lib/components/LinkDocs/LinkDocs.mobile.d.ts +0 -5
- package/lib/components/LinkDocs/LinkDocs.mobile.js +0 -8
- package/lib/components/LinkDocs/LinkDocs.mobile.js.map +0 -1
- package/lib/components/LinkDocs/LinkDocsListItem.d.ts +0 -7
- package/lib/components/LinkDocs/LinkDocsListItem.js.map +0 -1
- package/lib/components/RollupItem/labelSize.d.ts +0 -1
- package/lib/components/RollupItem/labelSize.js +0 -2
- package/lib/components/RollupItem/labelSize.js.map +0 -1
- package/lib/components/RollupItem/labelSize.mobile.d.ts +0 -1
- package/lib/components/RollupItem/labelSize.mobile.js +0 -2
- package/lib/components/RollupItem/labelSize.mobile.js.map +0 -1
- package/lib/content-page-repository/transformDocumentLink.d.ts +0 -3
- package/lib/content-page-repository/transformDocumentLink.js.map +0 -1
- package/mobile/bundle/components/BenefitsBlock/benefitImageStyles.d.ts +0 -1
- package/mobile/bundle/components/CarouselTariffsCard/descriptionSize.d.ts +0 -1
- package/mobile/bundle/components/LinkDocs/LinkDocsListItem.d.ts +0 -7
- package/mobile/bundle/components/RollupItem/labelSize.d.ts +0 -1
- package/mobile/bundle/content-page-repository/transformDocumentLink.d.ts +0 -3
- package/mobile/dist/components/BenefitsBlock/benefitImageStyles.d.ts +0 -1
- package/mobile/dist/components/BenefitsBlock/benefitImageStyles.js +0 -4
- package/mobile/dist/components/BenefitsBlock/benefitImageStyles.js.map +0 -1
- package/mobile/dist/components/CarouselTariffsCard/descriptionSize.d.ts +0 -1
- package/mobile/dist/components/CarouselTariffsCard/descriptionSize.js +0 -4
- package/mobile/dist/components/CarouselTariffsCard/descriptionSize.js.map +0 -1
- package/mobile/dist/components/LinkDocs/LinkDocsListItem.d.ts +0 -7
- package/mobile/dist/components/LinkDocs/LinkDocsListItem.js +0 -23
- package/mobile/dist/components/LinkDocs/LinkDocsListItem.js.map +0 -1
- package/mobile/dist/components/RollupItem/labelSize.d.ts +0 -1
- package/mobile/dist/components/RollupItem/labelSize.js +0 -4
- package/mobile/dist/components/RollupItem/labelSize.js.map +0 -1
- package/mobile/dist/content-page-repository/transformDocumentLink.d.ts +0 -3
- package/mobile/dist/content-page-repository/transformDocumentLink.js.map +0 -1
- package/mobile/lib/components/BenefitsBlock/benefitImageStyles.d.ts +0 -1
- package/mobile/lib/components/BenefitsBlock/benefitImageStyles.js +0 -2
- package/mobile/lib/components/BenefitsBlock/benefitImageStyles.js.map +0 -1
- package/mobile/lib/components/CarouselTariffsCard/descriptionSize.d.ts +0 -1
- package/mobile/lib/components/CarouselTariffsCard/descriptionSize.js +0 -2
- package/mobile/lib/components/CarouselTariffsCard/descriptionSize.js.map +0 -1
- package/mobile/lib/components/LinkDocs/LinkDocsListItem.d.ts +0 -7
- package/mobile/lib/components/LinkDocs/LinkDocsListItem.js.map +0 -1
- package/mobile/lib/components/RollupItem/labelSize.d.ts +0 -1
- package/mobile/lib/components/RollupItem/labelSize.js +0 -2
- package/mobile/lib/components/RollupItem/labelSize.js.map +0 -1
- package/mobile/lib/content-page-repository/transformDocumentLink.d.ts +0 -3
- package/mobile/lib/content-page-repository/transformDocumentLink.js.map +0 -1
- package/mobile/src/components/BenefitsBlock/benefitImageStyles.tsx +0 -1
- package/mobile/src/components/CarouselTariffsCard/descriptionSize.tsx +0 -1
- package/mobile/src/components/LinkDocs/LinkDocsListItem.tsx +0 -49
- package/mobile/src/components/RollupItem/labelSize.tsx +0 -1
- package/src/components/BenefitsBlock/benefitImageStyles.mobile.tsx +0 -1
- package/src/components/BenefitsBlock/benefitImageStyles.tsx +0 -1
- package/src/components/CarouselTariffsCard/descriptionSize.mobile.tsx +0 -1
- package/src/components/CarouselTariffsCard/descriptionSize.tsx +0 -1
- package/src/components/LinkDocs/LinkDocs.mobile.tsx +0 -52
- package/src/components/LinkDocs/LinkDocsListItem.tsx +0 -49
- package/src/components/RollupItem/labelSize.mobile.tsx +0 -1
- package/src/components/RollupItem/labelSize.tsx +0 -1
|
@@ -4,41 +4,10 @@ import { Button } from '../../ui-kit/Button/Button.js';
|
|
|
4
4
|
import { Img } from '../../ui-kit/Img/Img.js';
|
|
5
5
|
import { style } from '../../utils/style.js';
|
|
6
6
|
import { buttonStylesWithText } from './buttonStylesWithText.js';
|
|
7
|
-
|
|
8
|
-
{
|
|
9
|
-
origins: ['t.me', 'telegram.org'],
|
|
10
|
-
iconMapped: { icon: 'TelegramIcon' },
|
|
11
|
-
label: 'Телеграм',
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
origins: ['vk.com'],
|
|
15
|
-
iconMapped: { icon: 'VKIcon' },
|
|
16
|
-
label: 'ВКонтакте',
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
origins: ['ok.ru'],
|
|
20
|
-
iconMapped: { icon: 'OkIcon' },
|
|
21
|
-
label: 'Одноклассники',
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
origins: ['apps.apple.com'],
|
|
25
|
-
iconMapped: { icon: 'AppleIcon' },
|
|
26
|
-
label: 'App Store',
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
origins: ['play.google.com'],
|
|
30
|
-
iconMapped: { icon: 'PlayMarketIcon' },
|
|
31
|
-
label: 'Google Play',
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
origins: ['youtube.com'],
|
|
35
|
-
iconMapped: { icon: 'YoutubeIcon' },
|
|
36
|
-
label: 'Youtube',
|
|
37
|
-
},
|
|
38
|
-
];
|
|
7
|
+
import { findIconByHref } from './findIconByHref.js';
|
|
39
8
|
export const MediaButton = JSX(({ buttonSize = 'default', rounded = false, icon, ...rest }) => {
|
|
40
9
|
const { href, version, text = '' } = rest;
|
|
41
|
-
const { iconMapped, label } =
|
|
10
|
+
const { iconMapped, label } = findIconByHref(href);
|
|
42
11
|
const iconCustom = getFilteredIcon(icon) ?? iconMapped;
|
|
43
12
|
return (_jsx(Button, { className: style(rounded ? 'rounded-full' : 'rounded-md', 'border border-solid hover:border-transparent', 'group-data-primary:border-main-divider', 'hover:bg-primary-main hover:text-black', 'group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover', 'group-data-gray:border-green', buttonStylesWithText(text, buttonSize)), "aria-label": label, rel: "noopener noreferrer", target: "_blank", text: text, version: version, ...rest, children: iconCustom && !text ? (_jsx(Img, { image: iconCustom, imageClassName: "group-hover/media:text-white", width: "24", height: "24" })) : null }));
|
|
44
13
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MediaButton.js","sourceRoot":"","sources":["../../../src/components/Footer/MediaButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAEpD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"MediaButton.js","sourceRoot":"","sources":["../../../src/components/Footer/MediaButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CA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AE,EAAE,CAAC,CAAC,IAAI,EAAE,GAAG,IAAI,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"findIconByHref.js","sourceRoot":"","sources":["../../../src/components/Footer/findIconByHref.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,YAAY,CAAC;AAErD,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,IAAa,EAAgB,EAAE,CAC5D,SAAS,CAAC,IAAI,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export const ICONS_MAP = [
|
|
2
|
+
{
|
|
3
|
+
origins: ['t.me', 'telegram.org'],
|
|
4
|
+
iconMapped: { icon: 'TelegramIcon' },
|
|
5
|
+
label: 'Телеграм',
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
origins: ['vk.com'],
|
|
9
|
+
iconMapped: { icon: 'VKIcon' },
|
|
10
|
+
label: 'ВКонтакте',
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
origins: ['ok.ru'],
|
|
14
|
+
iconMapped: { icon: 'OkIcon' },
|
|
15
|
+
label: 'Одноклассники',
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
origins: ['apps.apple.com'],
|
|
19
|
+
iconMapped: { icon: 'AppleIcon' },
|
|
20
|
+
label: 'App Store',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
origins: ['play.google.com'],
|
|
24
|
+
iconMapped: { icon: 'PlayMarketIcon' },
|
|
25
|
+
label: 'Google Play',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
origins: ['youtube.com'],
|
|
29
|
+
iconMapped: { icon: 'YoutubeIcon' },
|
|
30
|
+
label: 'Youtube',
|
|
31
|
+
},
|
|
32
|
+
];
|
|
33
|
+
//# sourceMappingURL=iconsMap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iconsMap.js","sourceRoot":"","sources":["../../../src/components/Footer/iconsMap.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,MAAM,SAAS,GAAwB;IAC5C;QACE,OAAO,EAAE,CAAC,MAAM,EAAE,cAAc,CAAC;QACjC,UAAU,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE;QACpC,KAAK,EAAE,UAAU;KAClB;IACD;QACE,OAAO,EAAE,CAAC,QAAQ,CAAC;QACnB,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC9B,KAAK,EAAE,WAAW;KACnB;IACD;QACE,OAAO,EAAE,CAAC,OAAO,CAAC;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC9B,KAAK,EAAE,eAAe;KACvB;IACD;QACE,OAAO,EAAE,CAAC,gBAAgB,CAAC;QAC3B,UAAU,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;QACjC,KAAK,EAAE,WAAW;KACnB;IACD;QACE,OAAO,EAAE,CAAC,iBAAiB,CAAC;QAC5B,UAAU,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE;QACtC,KAAK,EAAE,aAAa;KACrB;IACD;QACE,OAAO,EAAE,CAAC,aAAa,CAAC;QACxB,UAAU,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE;QACnC,KAAK,EAAE,SAAS;KACjB;CACF,CAAC"}
|
|
@@ -8,9 +8,9 @@ const BG_COLOR_TO_BLOCK_VERSION = {
|
|
|
8
8
|
'bg-white': 'primary',
|
|
9
9
|
transparent: 'transparent',
|
|
10
10
|
};
|
|
11
|
-
export const Header = JSX(({ bgColor = 'bg-white', version = BG_COLOR_TO_BLOCK_VERSION[bgColor],
|
|
11
|
+
export const Header = JSX(({ bgColor = 'bg-white', version = BG_COLOR_TO_BLOCK_VERSION[bgColor], ...rest }) => {
|
|
12
12
|
const fallback = rest.options?.page?.fallback;
|
|
13
13
|
const { logo, internetBankUrl } = useSWRResource(projectSettings.SITEMAP || 'sitemap', fallback);
|
|
14
|
-
return (_jsx(BlockWrapper, { tag: "header", defaultPadding: "", version: version, ...rest, children: _jsx("div", { className: "container px-4 py-1 box-border", children: _jsx(HeaderTop, { bgColor: bgColor, logo: logo, internetBankUrl: internetBankUrl, version: version,
|
|
14
|
+
return (_jsx(BlockWrapper, { tag: "header", defaultPadding: "", version: version, ...rest, children: _jsx("div", { className: "container px-4 py-1 box-border", children: _jsx(HeaderTop, { bgColor: bgColor, logo: logo, internetBankUrl: internetBankUrl, version: version, ...rest }) }) }));
|
|
15
15
|
});
|
|
16
16
|
//# sourceMappingURL=Header.mobile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.mobile.js","sourceRoot":"","sources":["../../../src/components/Header/Header.mobile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAK5D,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEzD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAIxC,MAAM,yBAAyB,GAAyC;IACtE,UAAU,EAAE,SAAS;IACrB,WAAW,EAAE,aAAa;CAC3B,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CACvB,CAAC,
|
|
1
|
+
{"version":3,"file":"Header.mobile.js","sourceRoot":"","sources":["../../../src/components/Header/Header.mobile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAK5D,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEzD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAIxC,MAAM,yBAAyB,GAAyC;IACtE,UAAU,EAAE,SAAS;IACrB,WAAW,EAAE,aAAa;CAC3B,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CACvB,CAAC,EAAE,OAAO,GAAG,UAAU,EAAE,OAAO,GAAG,yBAAyB,CAAC,OAAO,CAAC,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAClF,MAAM,QAAQ,GAAyB,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,QAAQ,CAAC;IACpE,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,cAAc,CAC9C,eAAe,CAAC,OAAO,IAAI,SAAS,EACpC,QAAQ,CACT,CAAC;IAEF,OAAO,CACL,KAAC,YAAY,IAAC,GAAG,EAAC,QAAQ,EAAC,cAAc,EAAC,EAAE,EAAC,OAAO,EAAE,OAAO,KAAM,IAAI,YACrE,cAAK,SAAS,EAAC,gCAAgC,YAC7C,KAAC,SAAS,IACR,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,IAAI,EACV,eAAe,EAAE,eAAe,EAChC,OAAO,EAAE,OAAO,KACZ,IAAI,GACR,GACE,GACO,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -21,22 +21,10 @@ export declare type Logo = ImageContent & {
|
|
|
21
21
|
/** @title Текст логотипа */
|
|
22
22
|
title?: string;
|
|
23
23
|
};
|
|
24
|
-
/**
|
|
25
|
-
* @title Мобильный тип шапки
|
|
26
|
-
* @enumNames ["Не выбрано", "Название", "Кнопка возврата"]
|
|
27
|
-
*/
|
|
28
|
-
export declare type MobileHeaderType = 'none' | 'withTitle' | 'backwardButton';
|
|
29
|
-
export interface MobileHeaderProps {
|
|
30
|
-
mobileHeaderType?: MobileHeaderType;
|
|
31
|
-
/** @title Название (мобильная версия) */
|
|
32
|
-
mobileTitle?: string;
|
|
33
|
-
/** @title Кнопка возврата (мобильная версия) */
|
|
34
|
-
mobileBackwardButtonTitle?: string;
|
|
35
|
-
}
|
|
36
24
|
/**
|
|
37
25
|
* @title Шапка (для мобильных горизонтальная прокрутка shift+mouseScroll)
|
|
38
26
|
*/
|
|
39
|
-
export interface HeaderContent
|
|
27
|
+
export interface HeaderContent {
|
|
40
28
|
/** @hidden */
|
|
41
29
|
showSubMenu?: boolean;
|
|
42
30
|
/** @hidden */
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import type { BgColorVersion } from '../../model/BgColorVersion';
|
|
2
2
|
import type { LogoType } from '../../model/LogoType';
|
|
3
3
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
4
|
-
|
|
5
|
-
export interface HeaderTopProps extends MobileHeaderProps {
|
|
4
|
+
export interface HeaderTopProps {
|
|
6
5
|
bgColor?: BgColorVersion;
|
|
7
6
|
logo?: LogoType;
|
|
8
7
|
internetBankUrl?: string;
|
|
9
8
|
version?: BlockVersion;
|
|
10
|
-
mobileHeaderType?: MobileHeaderType;
|
|
11
9
|
}
|
|
12
10
|
export declare const HeaderTop: import("@redneckz/uni-jsx").UNIComponent<HeaderTopProps, any, any>;
|
|
@@ -4,16 +4,21 @@ import { Logo } from '../../ui-kit/Logo/Logo.js';
|
|
|
4
4
|
import { Button } from '../../ui-kit/Button/Button.js';
|
|
5
5
|
import { style } from '../../utils/style.js';
|
|
6
6
|
import { Img } from '../../ui-kit/Img/Img.js';
|
|
7
|
+
import { useRouter } from '../../hooks/useRouter.js';
|
|
8
|
+
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
7
9
|
const BUTTON_STYLE = {
|
|
8
10
|
default: 'px-5 bg-main-divider rounded hover:text-primary-main',
|
|
9
11
|
transparent: 'text-white hover:text-primary-hover',
|
|
10
12
|
};
|
|
11
|
-
export const HeaderTop = JSX(({ bgColor, logo, internetBankUrl, version
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
|
|
13
|
+
export const HeaderTop = JSX(({ bgColor, logo, internetBankUrl, version }) => {
|
|
14
|
+
const router = useRouter();
|
|
15
|
+
const isRootLocation = router.pathname === '/';
|
|
16
|
+
const onClick = useCallback(() => {
|
|
17
|
+
router.back();
|
|
18
|
+
}, []);
|
|
19
|
+
return (_jsxs("div", { className: "flex items-center justify-between w-full", children: [isRootLocation ? (_jsx(Logo, { bgColor: bgColor, logo: logo })) : (_jsxs(Button, { className: "flex items-center text-l", ariaLabel: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430\u0437\u0430\u0434", onClick: onClick, children: [_jsx(Img, { className: "w-6 h-6", image: {
|
|
15
20
|
icon: 'ChevronLeft',
|
|
16
21
|
iconVersion: 'black',
|
|
17
|
-
} }),
|
|
22
|
+
} }), "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430\u0437\u0430\u0434"] })), internetBankUrl ? (_jsx(Button, { href: internetBankUrl, ariaLabel: "\u0412\u043E\u0439\u0442\u0438", target: "_blank", className: style('p-3 my-1 text-s whitespace-nowrap text-primary-main hover:text-primary-hover', BUTTON_STYLE[version === 'transparent' ? 'transparent' : 'default']), children: "\u0412\u043E\u0439\u0442\u0438" })) : null] }));
|
|
18
23
|
});
|
|
19
24
|
//# sourceMappingURL=HeaderTop.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderTop.js","sourceRoot":"","sources":["../../../src/components/Header/HeaderTop.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,E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,EACnB,KAAK,EAAE;4BACL,IAAI,EAAE,aAAa;4BACnB,WAAW,EAAE,OAAO;yBACrB,GACD,6FAEK,CACV,EACA,eAAe,CAAC,CAAC,CAAC,CACjB,KAAC,MAAM,IACL,IAAI,EAAE,eAAe,EACrB,SAAS,EAAC,gCAAO,EACjB,MAAM,EAAC,QAAQ,EACf,SAAS,EAAE,KAAK,CACd,8EAA8E,EAC9E,YAAY,CAAC,OAAO,KAAK,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,CACpE,+CAGM,CACV,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { VNode } from '../../model/VNode';
|
|
2
|
+
import type { LinkDoc } from './LinkDocsContent';
|
|
3
|
+
export interface LinkDocItemProps extends LinkDoc {
|
|
4
|
+
icon?: VNode;
|
|
5
|
+
}
|
|
6
|
+
export declare const LinkDocItem: import("@redneckz/uni-jsx").UNIComponent<LinkDocItemProps, any, any>;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
import { Text } from '../../ui-kit/Text/Text.js';
|
|
4
|
-
export const
|
|
5
|
-
const { text, fileSize, ...linkProps } = doc;
|
|
6
|
-
return (_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 ? (_jsxs(Text, { size: "text-l", font: "font-light", children: [text, _jsx(Text, { color: "text-secondary-text", children: linkProps?.href && formatSuffix(getExtFromHref(linkProps.href), fileSize) })] })) : null] }));
|
|
7
|
-
});
|
|
4
|
+
export const LinkDocItem = JSX(({ icon, text, fileSize, ...linkProps }) => (_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 ? (_jsxs(Text, { size: "text-l", font: "font-light", children: [text, _jsx(Text, { color: "text-secondary-text", children: linkProps?.href && formatSuffix(getExtFromHref(linkProps.href), fileSize) })] })) : null] })));
|
|
8
5
|
const formatSuffix = (ext, fileSize) => {
|
|
9
6
|
const prefix = ext || fileSize ? ',' : '';
|
|
10
7
|
const extension = ext ? ` ${ext}` : '';
|
|
@@ -18,4 +15,4 @@ const getExtFromHref = (href) => {
|
|
|
18
15
|
const index = href.lastIndexOf('.');
|
|
19
16
|
return index !== -1 ? href.substring(index + 1) : '';
|
|
20
17
|
};
|
|
21
|
-
//# sourceMappingURL=
|
|
18
|
+
//# sourceMappingURL=LinkDocItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LinkDocItem.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAO9C,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAmB,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,SAAS,EAAE,EAAE,EAAE,CAAC,CAC3F,aACE,SAAS,EAAC,qGAAqG,EAC/G,IAAI,EAAC,MAAM,KACP,SAAS,aAEZ,IAAI,EACJ,IAAI,CAAC,CAAC,CAAC,CACN,MAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,aAClC,IAAI,EACL,KAAC,IAAI,IAAC,KAAK,EAAC,qBAAqB,YAC9B,SAAS,EAAE,IAAI,IAAI,YAAY,CAAC,cAAc,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,GACrE,IACF,CACR,CAAC,CAAC,CAAC,IAAI,IACN,CACL,CAAC,CAAC;AAEH,MAAM,YAAY,GAAG,CAAC,GAAY,EAAE,QAAiB,EAAE,EAAE;IACvD,MAAM,MAAM,GAAG,GAAG,IAAI,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1C,MAAM,SAAS,GAAG,GAAG,CAAC,CAAC,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACvC,MAAM,IAAI,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,QAAQ,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IAE9C,OAAO,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;AACnC,CAAC,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,IAAY,EAAE,EAAE;IACtC,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,EAAE,CAAC;KACX;IAED,MAAM,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAEpC,OAAO,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACvD,CAAC,CAAC"}
|
|
@@ -1,13 +1,25 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
+
import { useRouter } from '../../hooks/useRouter.js';
|
|
3
4
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
|
|
4
5
|
import { Img } from '../../ui-kit/Img/Img.js';
|
|
6
|
+
import { adjustHref } from '../../utils/adjustHref.js';
|
|
5
7
|
import { style } from '../../utils/style.js';
|
|
6
8
|
import { Headline } from '../Headline/Headline.js';
|
|
7
|
-
import {
|
|
9
|
+
import { LinkDocItem } from './LinkDocItem.js';
|
|
10
|
+
import { linkIconStyle } from './linkIconStyle.js';
|
|
8
11
|
const linkColumnsModeStyleMap = {
|
|
9
|
-
double: 'flex-wrap',
|
|
10
|
-
single: 'flex-col',
|
|
12
|
+
double: 'sm:flex-wrap sm:flex-row',
|
|
13
|
+
single: 'sm:flex-col',
|
|
14
|
+
};
|
|
15
|
+
export const LinkDocs = JSX(({ className = '', title, description, align = 'text-center', documents, icon = { icon: 'DocIcon' }, columnsMode = 'double', ...rest }) => {
|
|
16
|
+
const router = useRouter();
|
|
17
|
+
return (_jsxs(BlockWrapper, { className: className, defaultPadding: "p-default", ...rest, children: [_jsx(Headline, { className: "!p-0", title: title, description: description, align: align, headlineVersion: "M", as: "h2" }), documents?.length ? (_jsx("div", { className: style('mt-5 sm:mt-8 flex flex-col gap-6', linkColumnsModeStyleMap[columnsMode]), role: "list", children: documents.map(renderLinkDocItem(router, columnsMode, icon)) })) : null] }));
|
|
18
|
+
});
|
|
19
|
+
const renderLinkDocItem = (router, columnsMode, icon) => (docBlockDef, i) => {
|
|
20
|
+
const href = docBlockDef?.docType === 'Attachment'
|
|
21
|
+
? adjustHref(router)(docBlockDef?.attachment?.src)
|
|
22
|
+
: docBlockDef?.href;
|
|
23
|
+
return (_jsx("div", { className: columnsMode === 'double' ? 'basis-[calc(50%-20px)]' : '', role: "listitem", children: _jsx(LinkDocItem, { ...docBlockDef, href: href, icon: icon ? _jsx(Img, { className: linkIconStyle, image: icon, width: "24", height: "24" }) : null }) }, String(i)));
|
|
11
24
|
};
|
|
12
|
-
export const LinkDocs = JSX(({ className = '', title, description, align = 'text-center', documents, icon = { icon: 'DocIcon' }, columnsMode = 'double', ...rest }) => (_jsxs(BlockWrapper, { className: className, defaultPadding: "p-default", ...rest, children: [_jsx(Headline, { className: "!p-0", title: title, description: description, align: align, headlineVersion: "M", as: "h2" }), documents?.length ? (_jsx("div", { className: style('mt-8 flex gap-6', linkColumnsModeStyleMap[columnsMode]), role: "list", children: documents.map((doc, i) => (_jsx("div", { className: columnsMode === 'double' ? 'basis-[calc(50%-20px)]' : '', role: "listitem", children: _jsx(LinkDocsListItem, { doc: doc, icon: icon ? (_jsx(Img, { className: "min-w-6 min-h-6", image: icon, width: "24", height: "24" })) : null }) }, String(i)))) })) : null] })));
|
|
13
25
|
//# sourceMappingURL=LinkDocs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkDocs.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocs.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"LinkDocs.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocs.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAU,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAG1D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,uBAAuB,GAAoC;IAC/D,MAAM,EAAE,0BAA0B;IAClC,MAAM,EAAE,aAAa;CACtB,CAAC;AAIF,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CACzB,CAAC,EACC,SAAS,GAAG,EAAE,EACd,KAAK,EACL,WAAW,EACX,KAAK,GAAG,aAAa,EACrB,SAAS,EACT,IAAI,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,EAC1B,WAAW,GAAG,QAAQ,EACtB,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IA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AM,CAAC,CAAC,CAAC,CASV,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { Attachment } from '../../model/Attachment';
|
|
2
|
+
import { EmptyOption } from '../../model/EmptyOptionType';
|
|
1
3
|
import type { HeadlineCommonProps } from '../../model/HeadlineType';
|
|
2
4
|
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
3
|
-
import type { LinkProps } from '../../model/LinkProps';
|
|
5
|
+
import type { LinkProps, Target } from '../../model/LinkProps';
|
|
4
6
|
import type { IconProps } from '../../model/Picture';
|
|
5
7
|
import type { TextAlign } from '../../ui-kit/Text/TextProps';
|
|
6
8
|
/**
|
|
@@ -11,19 +13,41 @@ import type { TextAlign } from '../../ui-kit/Text/TextProps';
|
|
|
11
13
|
* ]
|
|
12
14
|
*/
|
|
13
15
|
export declare type LinkColumnsMode = 'single' | 'double';
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
export interface LinkDoc extends LinkProps {
|
|
17
|
+
/** @title размер файла */
|
|
18
|
+
fileSize?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface AttachmentDoc {
|
|
21
|
+
/** @title Текст */
|
|
22
|
+
text?: string;
|
|
23
|
+
/** @title */
|
|
24
|
+
attachment?: Attachment;
|
|
18
25
|
/** @title размер файла */
|
|
19
26
|
fileSize?: string;
|
|
27
|
+
/** @default "" */
|
|
28
|
+
target?: Target;
|
|
20
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* @title Ссылка на документ
|
|
32
|
+
* @default {"docType": "Link"}
|
|
33
|
+
*/
|
|
34
|
+
export declare type LinkDocDef = LinkDoc & {
|
|
35
|
+
docType: 'Link';
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* @title Файл
|
|
39
|
+
* @default {"docType": "Attachment"}
|
|
40
|
+
*/
|
|
41
|
+
export declare type AttachmentDocDef = AttachmentDoc & {
|
|
42
|
+
docType: 'Attachment';
|
|
43
|
+
};
|
|
44
|
+
export declare type DocBlockDef = EmptyOption | LinkDocDef | AttachmentDocDef;
|
|
21
45
|
/**
|
|
22
46
|
* @title Список документов
|
|
23
47
|
*/
|
|
24
48
|
export declare type LinkDocsContent = UniBlockContent & HeadlineCommonProps & IconProps & {
|
|
25
49
|
/** @title Список */
|
|
26
|
-
documents?:
|
|
50
|
+
documents?: DocBlockDef[];
|
|
27
51
|
columnsMode?: LinkColumnsMode;
|
|
28
52
|
/** @title Выравнивание */
|
|
29
53
|
align?: TextAlign;
|
|
@@ -2,20 +2,32 @@ export const linkDocsContentExample = {
|
|
|
2
2
|
title: 'Дополнительные документы',
|
|
3
3
|
description: 'Ответы на часто задаваемые вопросы',
|
|
4
4
|
documents: [
|
|
5
|
-
{ text: 'target self', href: '/abc1/cooldoc.doc', target: '_self' },
|
|
6
|
-
{ text: 'target blank', href: '/abc2/wtf.rtf', target: '_blank' },
|
|
7
|
-
{ text: 'GlassIcon', href: '/abc3/map.jpeg' },
|
|
8
|
-
{ text: 'no icon', href: '/abc4' },
|
|
9
|
-
{ text: 'документ 5', href: '/abc5' },
|
|
10
|
-
{ text: 'документ 6', href: '/abc6/abc.pdf' },
|
|
11
|
-
{ text: 'Text text text', href: '/abc7/yolo.png' },
|
|
12
5
|
{
|
|
6
|
+
docType: 'Attachment',
|
|
7
|
+
text: 'target self',
|
|
8
|
+
attachment: { src: '/abc1/cooldoc.doc' },
|
|
9
|
+
target: '_self',
|
|
10
|
+
},
|
|
11
|
+
{ docType: 'Link', text: 'target blank', href: '/abc2/wtf.rtf', target: '_blank' },
|
|
12
|
+
{ docType: 'Link', text: 'GlassIcon', href: '/abc3/map.jpeg' },
|
|
13
|
+
{ docType: 'Link', text: 'no icon', href: '/abc4' },
|
|
14
|
+
{ docType: 'Link', text: 'документ 5', href: '/abc5' },
|
|
15
|
+
{ docType: 'Link', text: 'документ 6', href: '/abc6/abc.pdf' },
|
|
16
|
+
{ docType: 'Link', text: 'Text text text', href: '/abc7/yolo.png' },
|
|
17
|
+
{
|
|
18
|
+
docType: 'Link',
|
|
13
19
|
text: 'Some more generic text to stretch item, and even more, more text, and more generic text, and even more, more text, and even more',
|
|
14
20
|
href: '/abc8/archive.zip',
|
|
15
21
|
fileSize: '2.3МБ',
|
|
16
22
|
},
|
|
17
|
-
{ text: 'И ещё немного текста', href: '/abc9/rarniw.rar', fileSize: '666МБ' },
|
|
18
23
|
{
|
|
24
|
+
docType: 'Link',
|
|
25
|
+
text: 'И ещё немного текста',
|
|
26
|
+
href: '/abc9/rarniw.rar',
|
|
27
|
+
fileSize: '666МБ',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
docType: 'Link',
|
|
19
31
|
text: 'Форматируем, сортируем, смотрим как отображается...',
|
|
20
32
|
href: '/abc10/',
|
|
21
33
|
fileSize: '65ГБ',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linkDocsContentExample.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/linkDocsContentExample.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,sBAAsB,GAAoB;IACrD,KAAK,EAAE,0BAA0B;IACjC,WAAW,EAAE,oCAAoC;IACjD,SAAS,EAAE;QACT,EAAE,IAAI,EAAE,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"linkDocsContentExample.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/linkDocsContentExample.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,sBAAsB,GAAoB;IACrD,KAAK,EAAE,0BAA0B;IACjC,WAAW,EAAE,oCAAoC;IACjD,SAAS,EAAE;QACT;YACE,OAAO,EAAE,YAAY;YACrB,IAAI,EAAE,aAAa;YACnB,UAAU,EAAE,EAAE,GAAG,EAAE,mBAAmB,EAAE;YACxC,MAAM,EAAE,OAAO;SAChB;QACD,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE;QAClF,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,gBAAgB,EAAE;QAC9D,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE;QACnD,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,OAAO,EAAE;QACtD,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,eAAe,EAAE;QAC9D,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,gBAAgB,EAAE;QACnE;YACE,OAAO,EAAE,MAAM;YACf,IAAI,EAAE,kIAAkI;YACxI,IAAI,EAAE,mBAAmB;YACzB,QAAQ,EAAE,OAAO;SAClB;QACD;YACE,OAAO,EAAE,MAAM;YACf,IAAI,EAAE,sBAAsB;YAC5B,IAAI,EAAE,kBAAkB;YACxB,QAAQ,EAAE,OAAO;SAClB;QACD;YACE,OAAO,EAAE,MAAM;YACf,IAAI,EAAE,qDAAqD;YAC3D,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,MAAM;SACjB;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const linkIconStyle = "min-w-6 min-h-6";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linkIconStyle.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/linkIconStyle.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const linkIconStyle = "min-w-11 min-h-11 h-fit p-2.5 bg-main-divider rounded-md";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linkIconStyle.mobile.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/linkIconStyle.mobile.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG,0DAA0D,CAAC"}
|
|
@@ -10,7 +10,6 @@ import { Text } from '../../ui-kit/Text/Text.js';
|
|
|
10
10
|
import { style } from '../../utils/style.js';
|
|
11
11
|
import { foldableSectionStyles } from './foldableSectionStyles.js';
|
|
12
12
|
import { getIconName } from './getIconName.js';
|
|
13
|
-
import { labelSize } from './labelSize.js';
|
|
14
13
|
import { renderRoundedIcon } from './renderRoundedIcon.js';
|
|
15
14
|
import { rollupIconVersion } from './rollupIconVersion.js';
|
|
16
15
|
import { rollupItemStyles } from './rollupItemStyles.js';
|
|
@@ -38,6 +37,6 @@ const renderFoldButton = ({ version, label: defaultLabel, labelIcon, labelIconBg
|
|
|
38
37
|
})) : (_jsx(DefaultFoldButton, { label: label, icon: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', onClick: onToggle }));
|
|
39
38
|
};
|
|
40
39
|
const renderPrimaryFoldButton = ({ label, labelIconBgVersion, icon, onToggle, labelIcon, }) => {
|
|
41
|
-
return (_jsxs("button", { className: style('border-none bg-transparent px-0 flex justify-between items-center w-full group/button', labelIcon?.icon ? 'py-2' : 'py-5'), onClick: onToggle, children: [_jsxs("div", { className: "flex items-center group-hover/button:text-primary-main", children: [renderRoundedIcon(labelIcon, labelIconBgVersion), label ? (_jsx(Text, { size:
|
|
40
|
+
return (_jsxs("button", { className: style('border-none bg-transparent px-0 flex justify-between items-center w-full group/button', labelIcon?.icon ? 'py-2' : 'py-5'), onClick: onToggle, children: [_jsxs("div", { className: "flex items-center group-hover/button:text-primary-main gap-3", children: [renderRoundedIcon(labelIcon, labelIconBgVersion), label ? (_jsx(Text, { size: "text-h6", font: "font-normal", children: label })) : null] }), icon ? _jsx(Icon, { name: icon, iconVersion: rollupIconVersion, width: "24", height: "24" }) : null] }));
|
|
42
41
|
};
|
|
43
42
|
//# sourceMappingURL=RollupItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RollupItem.js","sourceRoot":"","sources":["../../../src/components/RollupItem/RollupItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAIpE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAE1D,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"RollupItem.js","sourceRoot":"","sources":["../../../src/components/RollupItem/RollupItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAIpE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAE1D,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC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,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,CAAC,CAAC,CAAC,IAAI,IACnF,CACV,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -6,10 +6,10 @@ import { Paragraph } from '../../ui-kit/Paragraph/Paragraph.js';
|
|
|
6
6
|
import { RichText } from '../../ui-kit/RichText/RichText.js';
|
|
7
7
|
import { Text } from '../../ui-kit/Text/Text.js';
|
|
8
8
|
import { style } from '../../utils/style.js';
|
|
9
|
-
export const TextBlock = JSX(({ className = '', title, description, iconVersion, image, __html, items = [], ...rest }) => (_jsxs(BlockWrapper, { className: style('flex gap-3 bg-white group-data-secondary:bg-primary-main/10', className), ...rest, children: [iconVersion === 'small' ? _jsx("div", { className: "mt-1", children: renderIcon() }) : null, iconVersion === 'big' ? renderImage(image) : null, _jsxs("div", { className: "flex flex-col w-fit gap-
|
|
9
|
+
export const TextBlock = JSX(({ className = '', title, description, iconVersion, image, __html, items = [], ...rest }) => (_jsxs(BlockWrapper, { className: style('flex gap-3 sm:gap-4 bg-white group-data-secondary:bg-primary-main/10', className), ...rest, children: [iconVersion === 'small' ? _jsx("div", { className: "mt-1", children: renderIcon() }) : null, iconVersion === 'big' ? renderImage(image) : null, _jsxs("div", { className: "flex flex-col w-fit gap-1 sm:gap-2", children: [title ? (_jsx(Text, { size: "text-l", font: "font-normal", color: "text-primary-text group-data-secondary:text-white", children: title })) : null, description ? renderDescription(description) : null, items?.length ? renderList(items, true) : null, __html ? _jsx(RichText, { __html: __html }) : null] })] })));
|
|
10
10
|
const renderIcon = () => (_jsx("div", { className: `rounded-full h-4 w-4 text-center text-xs font-light bg-primary-main text-white group-data-secondary:bg-white group-data-secondary:text-primary-main`, children: "i" }));
|
|
11
|
-
const renderImage = (image) => image?.src ? _jsx(Img, { className: "h-fit", image: image }) : null;
|
|
12
|
-
const renderDescription = (description) => (_jsx(Paragraph, { size: "text-s", color: "text-secondary-text group-data-secondary:text-white", children: description }));
|
|
11
|
+
const renderImage = (image) => image?.src ? _jsx(Img, { className: "h-fit flex-shrink-0", image: image }) : null;
|
|
12
|
+
const renderDescription = (description) => (_jsx(Paragraph, { size: "text-s", font: "font-light", color: "text-secondary-text group-data-secondary:text-white", children: description }));
|
|
13
13
|
const renderList = (items, bullets) => {
|
|
14
14
|
const listStyle = bullets ? 'list-disc pl-6' : '';
|
|
15
15
|
return (_jsx("ul", { className: style('text-secondary-text group-data-secondary:text-white/80', listStyle), children: items.map((_, i) => (_jsx("li", { children: _jsx(Text, { size: "text-s", font: "font-light", children: _ }) }, `listItem-${i}`))) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextBlock.js","sourceRoot":"","sources":["../../../src/components/TextBlock/TextBlock.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAK1C,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAC1B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,GAAG,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CAC3F,MAAC,YAAY,IACX,SAAS,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"TextBlock.js","sourceRoot":"","sources":["../../../src/components/TextBlock/TextBlock.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,Y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M,GAAI,CAAC,CAAC,CAAC,IAAI,IACzC,IACO,CAChB,CACF,CAAC;AAEF,MAAM,UAAU,GAAG,GAAG,EAAE,CAAC,CACvB,cACE,SAAS,EAAE,qJAAqJ,kBAG5J,CACP,CAAC;AAEF,MAAM,WAAW,GAAG,CAAC,KAAe,EAAE,EAAE,CACtC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,KAAC,GAAG,IAAC,SAAS,EAAC,qBAAqB,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,CAAC;AAE5E,MAAM,iBAAiB,GAAG,CAAC,WAAmB,EAAE,EAAE,CAAC,CACjD,KAAC,SAAS,IACR,IAAI,EAAC,QAAQ,EACb,IAAI,EAAC,YAAY,EACjB,KAAK,EAAC,qDAAqD,YAE1D,WAAW,GACF,CACb,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,KAAe,EAAE,OAAgB,EAAE,EAAE;IACvD,MAAM,SAAS,GAAG,OAAO,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC;IAElD,OAAO,CACL,aAAI,SAAS,EAAE,KAAK,CAAC,wDAAwD,EAAE,SAAS,CAAC,YACtF,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACnB,uBACE,KAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,YAClC,CAAC,GACG,IAHA,YAAY,CAAC,EAAE,CAInB,CACN,CAAC,GACC,CACN,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -2,14 +2,24 @@ import fs from 'fs';
|
|
|
2
2
|
import path from 'path';
|
|
3
3
|
import util from 'util';
|
|
4
4
|
import { mapJSON } from './mapJSON.js';
|
|
5
|
-
import {
|
|
5
|
+
import { transformDocument } from './transformDocument.js';
|
|
6
6
|
import { transformHTML } from './transformHTML.js';
|
|
7
7
|
import { transformMarkdown } from './transformMarkdown.js';
|
|
8
8
|
import { transformPicture } from './transformPicture.js';
|
|
9
9
|
const readFile = util.promisify(fs.readFile);
|
|
10
10
|
const writeFile = util.promisify(fs.writeFile);
|
|
11
11
|
const OUTPUT_SUFFIX = '.static';
|
|
12
|
-
const DOCUMENT_EXT_LIST = [
|
|
12
|
+
const DOCUMENT_EXT_LIST = [
|
|
13
|
+
'.txt',
|
|
14
|
+
'.doc',
|
|
15
|
+
'.docx',
|
|
16
|
+
'.xls',
|
|
17
|
+
'.xlsx',
|
|
18
|
+
'.xlsb',
|
|
19
|
+
'.ppt',
|
|
20
|
+
'.pptx',
|
|
21
|
+
'.pdf',
|
|
22
|
+
];
|
|
13
23
|
export async function transformContentPage(pagePath, options) {
|
|
14
24
|
const content = await readFile(pagePath, 'utf8');
|
|
15
25
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
@@ -21,8 +31,8 @@ export async function transformContentPage(pagePath, options) {
|
|
|
21
31
|
else if (isHTML(key, value)) {
|
|
22
32
|
return await transformHTML(value);
|
|
23
33
|
}
|
|
24
|
-
else if (
|
|
25
|
-
return await
|
|
34
|
+
else if (isDocument(value)) {
|
|
35
|
+
return await transformDocument(value, pagePath, options);
|
|
26
36
|
}
|
|
27
37
|
else if (isPicture(value)) {
|
|
28
38
|
return await transformPicture(value, pagePath, options);
|
|
@@ -40,7 +50,7 @@ export async function transformContentPage(pagePath, options) {
|
|
|
40
50
|
export const generatedPagePath = (pagePath) => `${pagePath}${OUTPUT_SUFFIX}`;
|
|
41
51
|
const isMarkdown = (key, value) => isString(value) && key?.endsWith('__md');
|
|
42
52
|
const isHTML = (key, value) => isString(value) && key?.endsWith('__html');
|
|
43
|
-
const
|
|
53
|
+
const isDocument = (_) => Boolean(_ && isLocalPath(_?.src) && isDocumentExt(path.extname(_?.src)));
|
|
44
54
|
const isDocumentExt = (input) => DOCUMENT_EXT_LIST.some((ext) => input.toLowerCase().endsWith(ext));
|
|
45
55
|
const isPicture = (_) => Boolean(_ && isLocalPath(_?.src));
|
|
46
56
|
const isLocalPath = (_) => isString(_) && _.length < 1024 && !isURL(_);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformContentPage.js","sourceRoot":"","sources":["../../src/content-page-repository/transformContentPage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,IAAI,MAAM,MAAM,CAAC;AAIxB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"transformContentPage.js","sourceRoot":"","sources":["../../src/content-page-repository/transformContentPage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,IAAI,MAAM,MAAM,CAAC;AAIxB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC;AAC7C,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC;AAE/C,MAAM,aAAa,GAAG,SAAS,CAAC;AAEhC,MAAM,iBAAiB,GAAG;IACxB,MAAM;IACN,MAAM;IACN,OAAO;IACP,MAAM;IACN,OAAO;IACP,OAAO;IACP,MAAM;IACN,OAAO;IACP,MAAM;CACP,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,oBAAoB,CACxC,QAAgB,EAChB,OAA8B;IAE9B,MAAM,OAAO,GAAG,MA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