@redneckz/wildless-cms-uni-blocks 0.8.16 → 0.8.18
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.8.8.js +9 -6
- package/bundle/ProjectSettings.d.ts +2 -0
- package/bundle/api/CorporateLeadAPI.d.ts +1 -1
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +157 -81
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +15 -4
- package/bundle/components/ApplicationForm/ApplicationFormCredit.d.ts +0 -6
- package/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
- package/bundle/components/ApplicationForm/CreditParameters.d.ts +6 -0
- package/bundle/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
- package/bundle/components/ApplicationForm/renderInputRange.d.ts +11 -0
- package/bundle/components/ApplicationForm/renderQuestionsInterested.d.ts +2 -2
- package/bundle/components/ApplicationForm/renderSubmitButton.d.ts +1 -1
- package/bundle/components/ApplicationForm/useFormHandlers.d.ts +1 -5
- package/bundle/components/CarouselCard/CarouselCardContent.d.ts +2 -2
- package/bundle/components/CarouselCard/constants.d.ts +3 -3
- package/bundle/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
- package/bundle/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
- package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
- package/bundle/components/Header/HeaderChatBotButton.d.ts +1 -3
- package/bundle/components/Header/HeaderContent.d.ts +0 -6
- package/bundle/components/Header/HeaderSecondaryMenu.d.ts +0 -2
- package/bundle/components/Header/useChatBot.d.ts +1 -2
- package/bundle/components/TariffsTable/TariffsTableContent.d.ts +1 -0
- package/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
- package/bundle/components/Video/VideoContent.d.ts +19 -4
- package/bundle/hooks/useLink.d.ts +1 -3
- package/bundle/model/AlignType.d.ts +10 -0
- package/bundle/model/PreventableEvent.d.ts +3 -0
- package/bundle/services/sitemap/isTopItemActive.d.ts +3 -2
- package/dist/ProjectSettings.d.ts +2 -0
- package/dist/ProjectSettings.js +3 -0
- package/dist/ProjectSettings.js.map +1 -1
- package/dist/api/CorporateLeadAPI.d.ts +1 -1
- package/dist/api/CorporateLeadAPI.js +1 -1
- package/dist/api/CorporateLeadAPI.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationForm.js +6 -3
- package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js +16 -5
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +16 -7
- package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +15 -4
- package/dist/components/ApplicationForm/ApplicationFormCredit.d.ts +0 -6
- package/dist/components/ApplicationForm/ApplicationFormCredit.js +21 -13
- package/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js +11 -4
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormWed.js +14 -4
- package/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
- package/dist/components/ApplicationForm/CreditParameters.d.ts +6 -0
- package/dist/components/ApplicationForm/CreditParameters.js +9 -0
- package/dist/components/ApplicationForm/CreditParameters.js.map +1 -0
- package/dist/components/ApplicationForm/acquiringTypes.js +0 -5
- package/dist/components/ApplicationForm/acquiringTypes.js.map +1 -1
- package/dist/components/ApplicationForm/renderBankOffices.js +1 -1
- package/dist/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
- package/dist/components/ApplicationForm/renderCreditParameters.js +10 -12
- package/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/dist/components/ApplicationForm/renderInputRange.d.ts +11 -0
- package/dist/components/ApplicationForm/renderInputRange.js +8 -0
- package/dist/components/ApplicationForm/renderInputRange.js.map +1 -0
- package/dist/components/ApplicationForm/renderQuestionsInterested.d.ts +2 -2
- package/dist/components/ApplicationForm/renderQuestionsInterested.js +1 -1
- package/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/dist/components/ApplicationForm/renderSelects.js +1 -1
- package/dist/components/ApplicationForm/renderSubmitButton.d.ts +1 -1
- package/dist/components/ApplicationForm/renderSubmitButton.js.map +1 -1
- package/dist/components/ApplicationForm/useFormHandlers.d.ts +1 -5
- package/dist/components/ApplicationForm/useFormHandlers.js +1 -6
- package/dist/components/ApplicationForm/useFormHandlers.js.map +1 -1
- package/dist/components/Blocks.js +2 -0
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Carousel/Carousel.js +1 -0
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/CarouselCard/CarouselCard.js +1 -1
- package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- package/dist/components/CarouselCard/CarouselCardContent.d.ts +2 -2
- package/dist/components/CarouselCard/constants.d.ts +3 -3
- package/dist/components/CarouselCard/constants.js +2 -2
- package/dist/components/CarouselCard/constants.js.map +1 -1
- package/dist/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
- package/dist/components/CarouselEventCard/CarouselEventCard.js +12 -0
- package/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -0
- package/dist/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
- package/dist/components/CarouselEventCard/CarouselEventCardContent.js +2 -0
- package/dist/components/CarouselEventCard/CarouselEventCardContent.js.map +1 -0
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +3 -4
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
- package/dist/components/Footer/MediaButton.js +13 -10
- package/dist/components/Footer/MediaButton.js.map +1 -1
- package/dist/components/Header/Header.js +2 -2
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/Header/HeaderChatBotButton.d.ts +1 -3
- package/dist/components/Header/HeaderChatBotButton.js.map +1 -1
- package/dist/components/Header/HeaderContent.d.ts +0 -6
- package/dist/components/Header/HeaderSecondaryMenu.d.ts +0 -2
- package/dist/components/Header/HeaderSecondaryMenu.js +3 -2
- package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/dist/components/Header/useChatBot.d.ts +1 -2
- package/dist/components/Header/useChatBot.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.js +3 -3
- package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.js +1 -1
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableContent.d.ts +1 -0
- package/dist/components/VerticalLayout/VerticalLayout.js +2 -1
- package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
- package/dist/components/Video/Video.js +6 -1
- package/dist/components/Video/Video.js.map +1 -1
- package/dist/components/Video/VideoContent.d.ts +19 -4
- package/dist/hooks/useLink.d.ts +1 -3
- package/dist/hooks/useLink.js +1 -1
- package/dist/hooks/useLink.js.map +1 -1
- package/dist/model/AlignType.d.ts +10 -0
- package/dist/model/PreventableEvent.d.ts +3 -0
- package/{mobile/dist/model/CarouselCardVersion.js → dist/model/PreventableEvent.js} +1 -1
- package/dist/model/PreventableEvent.js.map +1 -0
- package/dist/services/sitemap/isTopItemActive.d.ts +3 -2
- package/dist/services/sitemap/isTopItemActive.js +1 -3
- package/dist/services/sitemap/isTopItemActive.js.map +1 -1
- package/dist/wlc.json +3 -1
- package/lib/ProjectSettings.d.ts +2 -0
- package/lib/ProjectSettings.js +3 -0
- package/lib/ProjectSettings.js.map +1 -1
- package/lib/api/CorporateLeadAPI.d.ts +1 -1
- package/lib/api/CorporateLeadAPI.js +1 -1
- package/lib/api/CorporateLeadAPI.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +0 -2
- package/lib/components/ApplicationForm/ApplicationForm.js +6 -3
- package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js +16 -5
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +16 -7
- package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +15 -4
- package/lib/components/ApplicationForm/ApplicationFormCredit.d.ts +0 -6
- package/lib/components/ApplicationForm/ApplicationFormCredit.js +18 -10
- package/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js +11 -4
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormWed.js +14 -4
- package/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
- package/lib/components/ApplicationForm/CreditParameters.d.ts +6 -0
- package/lib/components/ApplicationForm/CreditParameters.js +7 -0
- package/lib/components/ApplicationForm/CreditParameters.js.map +1 -0
- package/lib/components/ApplicationForm/acquiringTypes.js +0 -5
- package/lib/components/ApplicationForm/acquiringTypes.js.map +1 -1
- package/lib/components/ApplicationForm/renderBankOffices.js +1 -1
- package/lib/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
- package/lib/components/ApplicationForm/renderCreditParameters.js +3 -5
- package/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/lib/components/ApplicationForm/renderInputRange.d.ts +11 -0
- package/lib/components/ApplicationForm/renderInputRange.js +5 -0
- package/lib/components/ApplicationForm/renderInputRange.js.map +1 -0
- package/lib/components/ApplicationForm/renderQuestionsInterested.d.ts +2 -2
- package/lib/components/ApplicationForm/renderQuestionsInterested.js +1 -1
- package/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/lib/components/ApplicationForm/renderSelects.js +1 -1
- package/lib/components/ApplicationForm/renderSubmitButton.d.ts +1 -1
- package/lib/components/ApplicationForm/renderSubmitButton.js.map +1 -1
- package/lib/components/ApplicationForm/useFormHandlers.d.ts +1 -5
- package/lib/components/ApplicationForm/useFormHandlers.js +1 -6
- package/lib/components/ApplicationForm/useFormHandlers.js.map +1 -1
- package/lib/components/Blocks.js +2 -0
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Carousel/Carousel.fixture.d.ts +1 -0
- package/lib/components/Carousel/Carousel.js +1 -0
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/CarouselCard/CarouselCard.js +1 -1
- package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- package/lib/components/CarouselCard/CarouselCardContent.d.ts +2 -2
- package/lib/components/CarouselCard/constants.d.ts +3 -3
- package/lib/components/CarouselCard/constants.js +2 -2
- package/lib/components/CarouselCard/constants.js.map +1 -1
- package/lib/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
- package/lib/components/CarouselEventCard/CarouselEventCard.fixture.d.ts +7 -0
- package/lib/components/CarouselEventCard/CarouselEventCard.js +10 -0
- package/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -0
- package/lib/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
- package/lib/components/CarouselEventCard/CarouselEventCardContent.js +2 -0
- package/lib/components/CarouselEventCard/CarouselEventCardContent.js.map +1 -0
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +3 -4
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
- package/lib/components/Footer/MediaButton.js +13 -10
- package/lib/components/Footer/MediaButton.js.map +1 -1
- package/lib/components/Header/Header.js +2 -2
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/HeaderChatBotButton.d.ts +1 -3
- package/lib/components/Header/HeaderChatBotButton.js.map +1 -1
- package/lib/components/Header/HeaderContent.d.ts +0 -6
- package/lib/components/Header/HeaderSecondaryMenu.d.ts +0 -2
- package/lib/components/Header/HeaderSecondaryMenu.js +3 -2
- package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/lib/components/Header/useChatBot.d.ts +1 -2
- package/lib/components/Header/useChatBot.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.js +3 -3
- package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.js +1 -1
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableContent.d.ts +1 -0
- package/lib/components/VerticalLayout/VerticalLayout.js +2 -1
- package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
- package/lib/components/Video/Video.js +6 -1
- package/lib/components/Video/Video.js.map +1 -1
- package/lib/components/Video/VideoContent.d.ts +19 -4
- package/lib/hooks/useLink.d.ts +1 -3
- package/lib/hooks/useLink.js +1 -1
- package/lib/hooks/useLink.js.map +1 -1
- package/lib/model/AlignType.d.ts +10 -0
- package/lib/model/PreventableEvent.d.ts +3 -0
- package/lib/model/PreventableEvent.js +2 -0
- package/lib/model/PreventableEvent.js.map +1 -0
- package/lib/services/sitemap/isTopItemActive.d.ts +3 -2
- package/lib/services/sitemap/isTopItemActive.js +1 -3
- package/lib/services/sitemap/isTopItemActive.js.map +1 -1
- package/lib/wlc.json +3 -1
- package/mobile/bundle/ProjectSettings.d.ts +2 -0
- package/mobile/bundle/api/CorporateLeadAPI.d.ts +1 -1
- package/mobile/bundle/bundle.umd.js +18 -14
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +15 -4
- package/mobile/bundle/components/ApplicationForm/ApplicationFormCredit.d.ts +0 -6
- package/mobile/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
- package/mobile/bundle/components/ApplicationForm/CreditParameters.d.ts +6 -0
- package/mobile/bundle/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
- package/mobile/bundle/components/ApplicationForm/renderInputRange.d.ts +11 -0
- package/mobile/bundle/components/ApplicationForm/renderQuestionsInterested.d.ts +2 -2
- package/mobile/bundle/components/ApplicationForm/renderSubmitButton.d.ts +1 -1
- package/mobile/bundle/components/ApplicationForm/useFormHandlers.d.ts +1 -5
- package/mobile/bundle/components/CarouselCard/CarouselCardContent.d.ts +2 -2
- package/mobile/bundle/components/CarouselCard/constants.d.ts +3 -3
- package/mobile/bundle/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
- package/mobile/bundle/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
- package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
- package/mobile/bundle/components/Header/HeaderChatBotButton.d.ts +1 -3
- package/mobile/bundle/components/Header/HeaderContent.d.ts +0 -6
- package/mobile/bundle/components/Header/HeaderSecondaryMenu.d.ts +0 -2
- package/mobile/bundle/components/Header/useChatBot.d.ts +1 -2
- package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +1 -0
- package/mobile/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
- package/mobile/bundle/components/Video/VideoContent.d.ts +19 -4
- package/mobile/bundle/hooks/useLink.d.ts +1 -3
- package/mobile/bundle/model/AlignType.d.ts +10 -0
- package/mobile/bundle/model/PreventableEvent.d.ts +3 -0
- package/mobile/bundle/services/sitemap/isTopItemActive.d.ts +3 -2
- package/mobile/dist/ProjectSettings.d.ts +2 -0
- package/mobile/dist/ProjectSettings.js +3 -0
- package/mobile/dist/ProjectSettings.js.map +1 -1
- package/mobile/dist/api/CorporateLeadAPI.d.ts +1 -1
- package/mobile/dist/api/CorporateLeadAPI.js +1 -1
- package/mobile/dist/api/CorporateLeadAPI.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js +6 -3
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js +16 -5
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +16 -7
- package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +15 -4
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.d.ts +0 -6
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +21 -13
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js +11 -4
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js +14 -4
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
- package/mobile/dist/components/ApplicationForm/CreditParameters.d.ts +6 -0
- package/mobile/dist/components/ApplicationForm/CreditParameters.js +9 -0
- package/mobile/dist/components/ApplicationForm/CreditParameters.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/acquiringTypes.js +0 -5
- package/mobile/dist/components/ApplicationForm/acquiringTypes.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderBankOffices.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.js +10 -12
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderInputRange.d.ts +11 -0
- package/mobile/dist/components/ApplicationForm/renderInputRange.js +8 -0
- package/mobile/dist/components/ApplicationForm/renderInputRange.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.d.ts +2 -2
- package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderSelects.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderSubmitButton.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/renderSubmitButton.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/useFormHandlers.d.ts +1 -5
- package/mobile/dist/components/ApplicationForm/useFormHandlers.js +1 -6
- package/mobile/dist/components/ApplicationForm/useFormHandlers.js.map +1 -1
- package/mobile/dist/components/Carousel/Carousel.js +1 -0
- package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
- package/mobile/dist/components/CarouselCard/CarouselCard.js +1 -1
- package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- package/mobile/dist/components/CarouselCard/CarouselCardContent.d.ts +2 -2
- package/mobile/dist/components/CarouselCard/constants.d.ts +3 -3
- package/mobile/dist/components/CarouselCard/constants.js +2 -2
- package/mobile/dist/components/CarouselCard/constants.js.map +1 -1
- package/mobile/dist/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
- package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js +12 -0
- package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -0
- package/mobile/dist/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
- package/mobile/dist/components/CarouselEventCard/CarouselEventCardContent.js +2 -0
- package/mobile/dist/components/CarouselEventCard/CarouselEventCardContent.js.map +1 -0
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +3 -4
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
- package/mobile/dist/components/Footer/MediaButton.js +13 -10
- package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
- package/mobile/dist/components/Header/HeaderChatBotButton.d.ts +1 -3
- package/mobile/dist/components/Header/HeaderChatBotButton.js.map +1 -1
- package/mobile/dist/components/Header/HeaderContent.d.ts +0 -6
- package/mobile/dist/components/Header/HeaderSecondaryMenu.d.ts +0 -2
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js +3 -2
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/dist/components/Header/useChatBot.d.ts +1 -2
- package/mobile/dist/components/Header/useChatBot.js.map +1 -1
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js +3 -3
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/dist/components/ProductGallery/ProductGallery.js +1 -1
- package/mobile/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +1 -0
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js +2 -1
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
- package/mobile/dist/components/Video/Video.js +6 -1
- package/mobile/dist/components/Video/Video.js.map +1 -1
- package/mobile/dist/components/Video/VideoContent.d.ts +19 -4
- package/mobile/dist/hooks/useLink.d.ts +1 -3
- package/mobile/dist/hooks/useLink.js +1 -1
- package/mobile/dist/hooks/useLink.js.map +1 -1
- package/mobile/dist/model/AlignType.d.ts +10 -0
- package/mobile/dist/model/PreventableEvent.d.ts +3 -0
- package/{dist/model/CarouselCardVersion.js → mobile/dist/model/PreventableEvent.js} +1 -1
- package/mobile/dist/model/PreventableEvent.js.map +1 -0
- package/mobile/dist/services/sitemap/isTopItemActive.d.ts +3 -2
- package/mobile/dist/services/sitemap/isTopItemActive.js +1 -3
- package/mobile/dist/services/sitemap/isTopItemActive.js.map +1 -1
- package/mobile/dist/wlc.json +3 -1
- package/mobile/lib/ProjectSettings.d.ts +2 -0
- package/mobile/lib/ProjectSettings.js +3 -0
- package/mobile/lib/ProjectSettings.js.map +1 -1
- package/mobile/lib/api/CorporateLeadAPI.d.ts +1 -1
- package/mobile/lib/api/CorporateLeadAPI.js +1 -1
- package/mobile/lib/api/CorporateLeadAPI.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js +6 -3
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js +16 -5
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +16 -7
- package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +15 -4
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.d.ts +0 -6
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +18 -10
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js +11 -4
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js +14 -4
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
- package/mobile/lib/components/ApplicationForm/CreditParameters.d.ts +6 -0
- package/mobile/lib/components/ApplicationForm/CreditParameters.js +7 -0
- package/mobile/lib/components/ApplicationForm/CreditParameters.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/acquiringTypes.js +0 -5
- package/mobile/lib/components/ApplicationForm/acquiringTypes.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderBankOffices.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.js +3 -5
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderInputRange.d.ts +11 -0
- package/mobile/lib/components/ApplicationForm/renderInputRange.js +5 -0
- package/mobile/lib/components/ApplicationForm/renderInputRange.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.d.ts +2 -2
- package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderSelects.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderSubmitButton.d.ts +1 -1
- package/mobile/lib/components/ApplicationForm/renderSubmitButton.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/useFormHandlers.d.ts +1 -5
- package/mobile/lib/components/ApplicationForm/useFormHandlers.js +1 -6
- package/mobile/lib/components/ApplicationForm/useFormHandlers.js.map +1 -1
- package/mobile/lib/components/Carousel/Carousel.js +1 -0
- package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
- package/mobile/lib/components/CarouselCard/CarouselCard.js +1 -1
- package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- package/mobile/lib/components/CarouselCard/CarouselCardContent.d.ts +2 -2
- package/mobile/lib/components/CarouselCard/constants.d.ts +3 -3
- package/mobile/lib/components/CarouselCard/constants.js +2 -2
- package/mobile/lib/components/CarouselCard/constants.js.map +1 -1
- package/mobile/lib/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
- package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js +10 -0
- package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -0
- package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
- package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.js +2 -0
- package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.js.map +1 -0
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +3 -4
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
- package/mobile/lib/components/Footer/MediaButton.js +13 -10
- package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
- package/mobile/lib/components/Header/HeaderChatBotButton.d.ts +1 -3
- package/mobile/lib/components/Header/HeaderChatBotButton.js.map +1 -1
- package/mobile/lib/components/Header/HeaderContent.d.ts +0 -6
- package/mobile/lib/components/Header/HeaderSecondaryMenu.d.ts +0 -2
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js +3 -2
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/lib/components/Header/useChatBot.d.ts +1 -2
- package/mobile/lib/components/Header/useChatBot.js.map +1 -1
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js +3 -3
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/lib/components/ProductGallery/ProductGallery.js +1 -1
- package/mobile/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +1 -0
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js +2 -1
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
- package/mobile/lib/components/Video/Video.js +6 -1
- package/mobile/lib/components/Video/Video.js.map +1 -1
- package/mobile/lib/components/Video/VideoContent.d.ts +19 -4
- package/mobile/lib/hooks/useLink.d.ts +1 -3
- package/mobile/lib/hooks/useLink.js +1 -1
- package/mobile/lib/hooks/useLink.js.map +1 -1
- package/mobile/lib/model/AlignType.d.ts +10 -0
- package/mobile/lib/model/PreventableEvent.d.ts +3 -0
- package/mobile/lib/model/PreventableEvent.js +2 -0
- package/mobile/lib/model/PreventableEvent.js.map +1 -0
- package/mobile/lib/services/sitemap/isTopItemActive.d.ts +3 -2
- package/mobile/lib/services/sitemap/isTopItemActive.js +1 -3
- package/mobile/lib/services/sitemap/isTopItemActive.js.map +1 -1
- package/mobile/lib/wlc.json +3 -1
- package/mobile/src/ProjectSettings.ts +4 -0
- package/mobile/src/api/CorporateLeadAPI.ts +2 -2
- package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +8 -4
- package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +20 -5
- package/mobile/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +20 -7
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +16 -4
- package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +23 -12
- package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +15 -4
- package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +18 -4
- package/mobile/src/components/ApplicationForm/ApplicationFormsProps.ts +2 -2
- package/mobile/src/components/ApplicationForm/CreditParameters.ts +7 -0
- package/mobile/src/components/ApplicationForm/WrapperSelect.tsx +1 -1
- package/mobile/src/components/ApplicationForm/acquiringTypes.ts +0 -5
- package/mobile/src/components/ApplicationForm/renderBankOffices.tsx +1 -1
- package/mobile/src/components/ApplicationForm/renderCreditParameters.tsx +3 -22
- package/mobile/src/components/ApplicationForm/renderInputRange.tsx +20 -0
- package/mobile/src/components/ApplicationForm/renderQuestionsInterested.tsx +3 -3
- package/mobile/src/components/ApplicationForm/renderSelects.tsx +2 -2
- package/mobile/src/components/ApplicationForm/renderSubmitButton.tsx +1 -1
- package/mobile/src/components/ApplicationForm/useFormHandlers.ts +1 -15
- package/mobile/src/components/Carousel/Carousel.tsx +1 -0
- package/mobile/src/components/CarouselCard/CarouselCard.tsx +4 -4
- package/mobile/src/components/CarouselCard/CarouselCardContent.ts +2 -2
- package/mobile/src/components/CarouselCard/constants.ts +5 -5
- package/mobile/src/components/CarouselEventCard/CarouselEventCard.example.json +14 -0
- package/mobile/src/components/CarouselEventCard/CarouselEventCard.tsx +32 -0
- package/mobile/src/components/CarouselEventCard/CarouselEventCard.ui.json +1 -0
- package/mobile/src/components/CarouselEventCard/CarouselEventCardContent.ts +12 -0
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +18 -18
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -4
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.ui.json +1 -4
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +9 -9
- package/mobile/src/components/Footer/MediaButton.tsx +19 -14
- package/mobile/src/components/Header/HeaderChatBotButton.tsx +1 -4
- package/mobile/src/components/Header/HeaderContent.ts +0 -7
- package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +8 -5
- package/mobile/src/components/Header/useChatBot.ts +2 -3
- package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +6 -4
- package/mobile/src/components/ProductGallery/ProductGallery.example.json +2 -3
- package/mobile/src/components/ProductGallery/ProductGallery.tsx +1 -1
- package/mobile/src/components/TariffsTable/TariffsTable.example.json +3 -0
- package/mobile/src/components/TariffsTable/TariffsTableContent.ts +1 -0
- package/mobile/src/components/VerticalLayout/VerticalLayout.example.json +1 -1
- package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +4 -3
- package/mobile/src/components/VerticalLayout/VerticalLayoutContent.ts +2 -2
- package/mobile/src/components/Video/Video.example.json +5 -0
- package/mobile/src/components/Video/Video.tsx +23 -17
- package/mobile/src/components/Video/Video.ui.json +1 -1
- package/mobile/src/components/Video/VideoContent.ts +19 -4
- package/mobile/src/hooks/useLink.ts +2 -5
- package/mobile/src/model/AlignType.ts +11 -0
- package/mobile/src/model/PreventableEvent.ts +3 -0
- package/mobile/src/services/sitemap/isTopItemActive.ts +2 -7
- package/mobile/src/wlc.json +3 -1
- package/package.json +1 -1
- package/src/ProjectSettings.ts +4 -0
- package/src/api/CorporateLeadAPI.ts +2 -2
- package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +1 -1
- package/src/components/ApplicationForm/ApplicationForm.tsx +8 -4
- package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +20 -5
- package/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +20 -7
- package/src/components/ApplicationForm/ApplicationFormContent.ts +16 -4
- package/src/components/ApplicationForm/ApplicationFormCredit.tsx +23 -12
- package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +15 -4
- package/src/components/ApplicationForm/ApplicationFormWed.tsx +18 -4
- package/src/components/ApplicationForm/ApplicationFormsProps.ts +2 -2
- package/src/components/ApplicationForm/CreditParameters.ts +7 -0
- package/src/components/ApplicationForm/WrapperSelect.tsx +1 -1
- package/src/components/ApplicationForm/acquiringTypes.ts +0 -5
- package/src/components/ApplicationForm/renderBankOffices.tsx +1 -1
- package/src/components/ApplicationForm/renderCreditParameters.tsx +3 -22
- package/src/components/ApplicationForm/renderInputRange.tsx +20 -0
- package/src/components/ApplicationForm/renderQuestionsInterested.tsx +3 -3
- package/src/components/ApplicationForm/renderSelects.tsx +2 -2
- package/src/components/ApplicationForm/renderSubmitButton.tsx +1 -1
- package/src/components/ApplicationForm/useFormHandlers.ts +1 -15
- package/src/components/Blocks.ts +2 -0
- package/src/components/Carousel/Carousel.fixture.tsx +19 -0
- package/src/components/Carousel/Carousel.tsx +1 -0
- package/src/components/CarouselCard/CarouselCard.fixture.tsx +1 -1
- package/src/components/CarouselCard/CarouselCard.tsx +4 -4
- package/src/components/CarouselCard/CarouselCardContent.ts +2 -2
- package/src/components/CarouselCard/constants.ts +5 -5
- package/src/components/CarouselEventCard/CarouselEventCard.example.json +14 -0
- package/src/components/CarouselEventCard/CarouselEventCard.fixture.tsx +21 -0
- package/src/components/CarouselEventCard/CarouselEventCard.tsx +32 -0
- package/src/components/CarouselEventCard/CarouselEventCard.ui.json +1 -0
- package/src/components/CarouselEventCard/CarouselEventCardContent.ts +12 -0
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +18 -18
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +8 -3
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -4
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.ui.json +1 -4
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +9 -9
- package/src/components/Footer/MediaButton.tsx +19 -14
- package/src/components/Header/Header.fixture.tsx +3 -3
- package/src/components/Header/Header.tsx +0 -2
- package/src/components/Header/HeaderChatBotButton.tsx +1 -4
- package/src/components/Header/HeaderContent.ts +0 -7
- package/src/components/Header/HeaderSecondaryMenu.tsx +8 -5
- package/src/components/Header/useChatBot.ts +2 -3
- package/src/components/ProductBlock/ProductBlockInner.tsx +1 -1
- package/src/components/ProductBlock/renderBackwardButton.tsx +6 -4
- package/src/components/ProductGallery/ProductGallery.example.json +2 -3
- package/src/components/ProductGallery/ProductGallery.tsx +1 -1
- package/src/components/TariffsTable/TariffsTable.example.json +3 -0
- package/src/components/TariffsTable/TariffsTableContent.ts +1 -0
- package/src/components/VerticalLayout/VerticalLayout.example.json +1 -1
- package/src/components/VerticalLayout/VerticalLayout.tsx +4 -3
- package/src/components/VerticalLayout/VerticalLayoutContent.ts +2 -2
- package/src/components/Video/Video.example.json +5 -0
- package/src/components/Video/Video.fixture.tsx +1 -1
- package/src/components/Video/Video.tsx +23 -17
- package/src/components/Video/Video.ui.json +1 -1
- package/src/components/Video/VideoContent.ts +19 -4
- package/src/hooks/useLink.ts +2 -5
- package/src/model/AlignType.ts +11 -0
- package/src/model/PreventableEvent.ts +3 -0
- package/src/services/sitemap/isTopItemActive.ts +2 -7
- package/src/wlc.json +3 -1
- package/bundle/model/CarouselCardVersion.d.ts +0 -1
- package/dist/model/CarouselCardVersion.d.ts +0 -1
- package/dist/model/CarouselCardVersion.js.map +0 -1
- package/lib/model/CarouselCardVersion.d.ts +0 -1
- package/lib/model/CarouselCardVersion.js +0 -2
- package/lib/model/CarouselCardVersion.js.map +0 -1
- package/mobile/bundle/model/CarouselCardVersion.d.ts +0 -1
- package/mobile/dist/model/CarouselCardVersion.d.ts +0 -1
- package/mobile/dist/model/CarouselCardVersion.js.map +0 -1
- package/mobile/lib/model/CarouselCardVersion.d.ts +0 -1
- package/mobile/lib/model/CarouselCardVersion.js +0 -2
- package/mobile/lib/model/CarouselCardVersion.js.map +0 -1
- package/mobile/src/model/CarouselCardVersion.ts +0 -1
- package/src/model/CarouselCardVersion.ts +0 -1
|
@@ -3,17 +3,16 @@ exports.CarouselRecommendationCard = void 0;
|
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
6
|
-
const renderButtonsSection_1 = require("../../ui-kit/Button/renderButtonsSection");
|
|
7
6
|
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
8
7
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
9
8
|
const List_1 = require("../../ui-kit/List/List");
|
|
9
|
+
const style_1 = require("../../utils/style");
|
|
10
10
|
const BaseTile_1 = require("../BaseTile/BaseTile");
|
|
11
11
|
const SocialMedia_1 = require("../Footer/SocialMedia");
|
|
12
|
-
|
|
13
|
-
exports.CarouselRecommendationCard = (0, uni_jsx_1.JSX)(({ button, className = '', description, image, items = [], socialMedia = [], title, version = 'primary', ...rest }) => {
|
|
12
|
+
exports.CarouselRecommendationCard = (0, uni_jsx_1.JSX)(({ className = '', description, image, items = [], socialMedia = [], title, version = 'primary', ...rest }) => {
|
|
14
13
|
const tileTitle = title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h5", as: "h3", className: "mb-3.5 z-10", title: title })) : null;
|
|
15
14
|
const tileImage = image?.src ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: "absolute bottom-0 right-0 m-0", image: image })) : null;
|
|
16
15
|
const BORDER_STYLE = 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider';
|
|
17
|
-
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('relative p-7 min-w-[524px] h-full text-left box-border group-data-gray:bg-main-divider/50', BORDER_STYLE, className), version: version, ...rest, children: (0, jsx_runtime_1.jsx)(BaseTile_1.BaseTile, { className: "flex justify-between", title: tileTitle, image: tileImage, children: (0, jsx_runtime_1.jsxs)("div", { className: "h-full flex flex-col justify-between", children: [description ? ((0, jsx_runtime_1.jsx)("span", { className: "mb-2 group-data-gray:text-secondary-text group-data-gray:max-w-[265px]", children: description })) : null, items.length ? ((0, jsx_runtime_1.jsx)(List_1.List, { className: "text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]", items: items })) : null, socialMedia.length ? (0, jsx_runtime_1.jsx)(SocialMedia_1.SocialMedia, { className: "pt-10 pb-0", media: socialMedia }) : null
|
|
16
|
+
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('relative p-7 min-w-[524px] h-full text-left box-border group-data-gray:bg-main-divider/50', BORDER_STYLE, className), version: version, ...rest, children: (0, jsx_runtime_1.jsx)(BaseTile_1.BaseTile, { className: "flex justify-between", title: tileTitle, image: tileImage, children: (0, jsx_runtime_1.jsxs)("div", { className: "h-full flex flex-col justify-between", children: [description ? ((0, jsx_runtime_1.jsx)("span", { className: "mb-2 group-data-gray:text-secondary-text group-data-gray:max-w-[265px]", children: description })) : null, items.length ? ((0, jsx_runtime_1.jsx)(List_1.List, { className: "text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]", items: items })) : null, socialMedia.length ? (0, jsx_runtime_1.jsx)(SocialMedia_1.SocialMedia, { className: "pt-10 pb-0", media: socialMedia }) : null] }) }) }));
|
|
18
17
|
});
|
|
19
18
|
//# sourceMappingURL=CarouselRecommendationCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselRecommendationCard.js","sourceRoot":"","sources":["../../../src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,
|
|
1
|
+
{"version":3,"file":"CarouselRecommendationCard.js","sourceRoot":"","sources":["../../../src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,0DAAuD;AACvD,8CAA2C;AAC3C,iDAA8C;AAC9C,6CAA0C;AAC1C,mDAAgD;AAChD,uDAAoD;AAKvC,QAAA,0BAA0B,GAAG,IAAA,aAAG,EAC3C,CAAC,EACC,SAAS,GAAG,EAAE,EACd,WAAW,EACX,KAAK,EACL,KAAK,GAAG,EAAE,EACV,WAAW,GAAG,EAAE,EAChB,KAAK,EACL,OAAO,GAAG,SAAS,EACnB,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CACxB,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,SAAS,EAAC,aAAa,EAAC,KAAK,EAAE,KAAK,GAAI,CAC3E,CAAC,CAAC,CAAC,IAAI,CAAC;IACT,MAAM,SAAS,GAAG,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,CAC7B,uBAAC,SAAG,IAAC,SAAS,EAAC,+BAA+B,EAAC,KAAK,EAAE,KAAK,GAAI,CAChE,CAAC,CAAC,CAAC,IAAI,CAAC;IACT,MAAM,YAAY,GAChB,0GAA0G,CAAC;IAE7G,OAAO,CACL,uBAAC,2BAAY,IACX,SAAS,EAAE,IAAA,aAAK,EACd,2FAA2F,EAC3F,YAAY,EACZ,SAAS,CACV,EACD,OAAO,EAAE,OAAO,KACZ,IAAI,YAER,uBAAC,mBAAQ,IAAC,SAAS,EAAC,sBAAsB,EAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,YAC3E,iCAAK,SAAS,EAAC,sCAAsC,aAClD,WAAW,CAAC,CAAC,CAAC,CACb,iCAAM,SAAS,EAAC,wEAAwE,YACrF,WAAW,GACP,CACR,CAAC,CAAC,CAAC,IAAI,EACP,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CACd,uBAAC,WAAI,IACH,SAAS,EAAC,wDAAwD,EAClE,KAAK,EAAE,KAAK,GACZ,CACH,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,uBAAC,yBAAW,IAAC,SAAS,EAAC,YAAY,EAAC,KAAK,EAAE,WAAW,GAAI,CAAC,CAAC,CAAC,IAAI,IACnF,GACG,GACE,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
2
|
+
import type { ButtonVersion } from '../../model/ButtonVersion';
|
|
2
3
|
import type { HeadlineCommonProps } from '../../model/HeadlineType';
|
|
4
|
+
import type { LinkCommonProps } from '../../model/LinkProps';
|
|
3
5
|
import type { Picture } from '../../model/Picture';
|
|
4
|
-
import type { ButtonWithIconProps, ButtonProps } from '../../ui-kit/Button/ButtonProps';
|
|
5
6
|
import type { ListContent } from '../../ui-kit/List/ListContent';
|
|
7
|
+
export declare type RecommendationSocialMedia = LinkCommonProps & {
|
|
8
|
+
version: ButtonVersion;
|
|
9
|
+
icon?: Picture;
|
|
10
|
+
rounded?: boolean;
|
|
11
|
+
};
|
|
6
12
|
/**
|
|
7
13
|
* @title Карточка рекомендаций
|
|
8
14
|
*/
|
|
@@ -10,7 +16,7 @@ export interface CarouselRecommendationCardContent extends HeadlineCommonProps,
|
|
|
10
16
|
/**
|
|
11
17
|
* @title Соц сети
|
|
12
18
|
*/
|
|
13
|
-
socialMedia?:
|
|
19
|
+
socialMedia?: RecommendationSocialMedia[];
|
|
14
20
|
/**
|
|
15
21
|
* @default {
|
|
16
22
|
* "format": "webp",
|
|
@@ -26,12 +32,5 @@ export interface CarouselRecommendationCardContent extends HeadlineCommonProps,
|
|
|
26
32
|
* }
|
|
27
33
|
*/
|
|
28
34
|
image?: Picture;
|
|
29
|
-
/**
|
|
30
|
-
* @default {
|
|
31
|
-
* "text": "",
|
|
32
|
-
* "version": "secondary"
|
|
33
|
-
* }
|
|
34
|
-
*/
|
|
35
|
-
button?: ButtonProps;
|
|
36
35
|
version?: BlockVersion;
|
|
37
36
|
}
|
|
@@ -2,39 +2,39 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.MediaButton = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const Button_1 = require("../../ui-kit/Button/Button");
|
|
5
6
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
6
7
|
const getIconWithVersion_1 = require("../../utils/getIconWithVersion");
|
|
7
8
|
const style_1 = require("../../utils/style");
|
|
8
|
-
const Button_1 = require("../../ui-kit/Button/Button");
|
|
9
9
|
const ICONS_MAP = [
|
|
10
10
|
{
|
|
11
11
|
origins: ['t.me', 'telegram.org'],
|
|
12
|
-
|
|
12
|
+
iconMapped: { icon: 'TelegramIcon' },
|
|
13
13
|
label: 'Телеграм',
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
origins: ['vk.com'],
|
|
17
|
-
|
|
17
|
+
iconMapped: { icon: 'VKIcon' },
|
|
18
18
|
label: 'ВКонтакте',
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
origins: ['ok.ru'],
|
|
22
|
-
|
|
22
|
+
iconMapped: { icon: 'OkIcon' },
|
|
23
23
|
label: 'Одноклассники',
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
origins: ['apps.apple.com'],
|
|
27
|
-
|
|
27
|
+
iconMapped: { icon: 'AppleIcon' },
|
|
28
28
|
label: 'App Store',
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
origins: ['play.google.com'],
|
|
32
|
-
|
|
32
|
+
iconMapped: { icon: 'PlayMarketIcon' },
|
|
33
33
|
label: 'Google Play',
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
origins: ['youtube.com'],
|
|
37
|
-
|
|
37
|
+
iconMapped: { icon: 'YoutubeIcon' },
|
|
38
38
|
label: 'Youtube',
|
|
39
39
|
},
|
|
40
40
|
];
|
|
@@ -42,10 +42,13 @@ const buttonSizeStyles = {
|
|
|
42
42
|
default: 'w-14 h-14',
|
|
43
43
|
small: 'w-12 h-12',
|
|
44
44
|
};
|
|
45
|
-
exports.MediaButton = (0, uni_jsx_1.JSX)(({ iconVersion = 'color', buttonSize = 'default', rounded = false, ...rest }) => {
|
|
45
|
+
exports.MediaButton = (0, uni_jsx_1.JSX)(({ iconVersion = 'color', buttonSize = 'default', rounded = false, icon, ...rest }) => {
|
|
46
46
|
const { href, version } = rest;
|
|
47
|
-
const {
|
|
48
|
-
const
|
|
47
|
+
const { iconMapped, label } = ICONS_MAP.find(({ origins }) => origins.some((_) => href?.includes(_))) || {};
|
|
48
|
+
const iconCustom = icon ?? iconMapped;
|
|
49
|
+
const iconWithVersion = iconCustom
|
|
50
|
+
? { ...(0, getIconWithVersion_1.getIconWithVersion)(iconCustom), iconVersion }
|
|
51
|
+
: undefined;
|
|
49
52
|
return ((0, jsx_runtime_1.jsx)(Button_1.Button, { className: (0, style_1.style)('group/media flex items-center justify-center box-border', buttonSizeStyles[buttonSize], 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', buttonSizeStyles[buttonSize]), "aria-label": label, target: "_blank", rel: "noopener noreferrer", version: version, ...rest, children: iconWithVersion ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { image: iconWithVersion, imageClassName: "group-hover/media:text-white", width: "24", height: "24", asSVG: true })) : null }));
|
|
50
53
|
});
|
|
51
54
|
//# sourceMappingURL=MediaButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MediaButton.js","sourceRoot":"","sources":["../../../src/components/Footer/MediaButton.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"MediaButton.js","sourceRoot":"","sources":["../../../src/components/Footer/MediaButton.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,uDAAoD;AAEpD,8CAA2C;AAC3C,uEAAoE;AACpE,6CAA0C;AAE1C,MAAM,SAAS,GAIV;IACH;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,IA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AAC,QAAQ,EACf,GAAG,EAAC,qBAAqB,EACzB,OAAO,EAAE,OAAO,KACZ,IAAI,YAEP,eAAe,CAAC,CAAC,CAAC,CACjB,uBAAC,SAAG,IACF,KAAK,EAAE,eAAe,EACtB,cAAc,EAAC,8BAA8B,EAC7C,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,CACH,CAAC,CAAC,CAAC,IAAI,GACD,CACV,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -16,10 +16,10 @@ const BG_COLOR_TO_BLOCK_VERSION = {
|
|
|
16
16
|
'bg-white': 'primary',
|
|
17
17
|
transparent: 'transparent',
|
|
18
18
|
};
|
|
19
|
-
exports.Header = (0, uni_jsx_1.JSX)(({ bgColor = 'bg-white', className, showSubMenu = true, version = BG_COLOR_TO_BLOCK_VERSION[bgColor],
|
|
19
|
+
exports.Header = (0, uni_jsx_1.JSX)(({ bgColor = 'bg-white', className, showSubMenu = true, version = BG_COLOR_TO_BLOCK_VERSION[bgColor], ...rest }) => {
|
|
20
20
|
const router = (0, useRouter_1.useRouter)();
|
|
21
21
|
const { topItems, logo, defaultLocation, foreignOffices, officesLink } = (0, useSWRResource_1.useSWRResource)(ProjectSettings_1.projectSettings.SITEMAP || 'sitemap', rest.options?.page?.fallback);
|
|
22
22
|
const activeTopItem = topItems?.find((0, isTopItemActive_1.isTopItemActive)(router));
|
|
23
|
-
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { tag: "header", className: (0, style_1.style)('pt-6 px-20', showSubMenu && activeTopItem?.items?.length ? 'pb-4' : 'pb-5', className), version: version, ...rest, children: (0, jsx_runtime_1.jsxs)("div", { className: "container", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center", children: [(0, jsx_runtime_1.jsx)(Logo_1.Logo, { className: "mr-8", bgColor: bgColor, logo: logo }), topItems?.map((_, i) => ((0, jsx_runtime_1.jsx)(TopItem_1.TopItem, { active: _ === activeTopItem, ..._ }, String(i)))), (0, jsx_runtime_1.jsx)(HeaderSecondaryMenu_1.HeaderSecondaryMenu, { version: version, className: "ml-auto", foreignOffices: foreignOffices, defaultLocation: defaultLocation, officesLink: officesLink
|
|
23
|
+
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { tag: "header", className: (0, style_1.style)('pt-6 px-20', showSubMenu && activeTopItem?.items?.length ? 'pb-4' : 'pb-5', className), version: version, ...rest, children: (0, jsx_runtime_1.jsxs)("div", { className: "container", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center", children: [(0, jsx_runtime_1.jsx)(Logo_1.Logo, { className: "mr-8", bgColor: bgColor, logo: logo }), topItems?.map((_, i) => ((0, jsx_runtime_1.jsx)(TopItem_1.TopItem, { active: _ === activeTopItem, ..._ }, String(i)))), (0, jsx_runtime_1.jsx)(HeaderSecondaryMenu_1.HeaderSecondaryMenu, { version: version, className: "ml-auto", foreignOffices: foreignOffices, defaultLocation: defaultLocation, officesLink: officesLink })] }), (0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('mt-6 h-px bg-main-divider', version === 'transparent' ? 'opacity-30' : '') }), showSubMenu && activeTopItem?.items?.length ? ((0, jsx_runtime_1.jsx)(HeaderSubMenu_1.HeaderSubMenu, { subItems: activeTopItem.items })) : null] }) }));
|
|
24
24
|
});
|
|
25
25
|
//# sourceMappingURL=Header.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../src/components/Header/Header.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,qDAAkD;AAIlD,2DAAwD;AACxD,4EAAyE;AAEzE,0EAAuE;AACvE,4DAAyD;AACzD,iDAA8C;AAC9C,0DAAuD;AACvD,6CAA0C;AAE1C,+DAA4D;AAC5D,mDAAgD;AAIhD,MAAM,yBAAyB,GAAyC;IACtE,UAAU,EAAE,SAAS;IACrB,WAAW,EAAE,aAAa;CAC3B,CAAC;AAEW,QAAA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AAO,EAAE,OAAO,KACZ,IAAI,YAER,iCAAK,SAAS,EAAC,WAAW,aACxB,iCAAK,SAAS,EAAC,mBAAmB,aAChC,uBAAC,WAAI,IAAC,SAAS,EAAC,MAAM,EAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,GAAI,EACtD,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACvB,uBAAC,iBAAO,IAAiB,MAAM,EAAE,CAAC,KAAK,aAAa,KAAM,CAAC,IAA7C,MAAM,CAAC,CAAC,CAAC,CAAwC,CAChE,CAAC,EACF,uBAAC,yCAAmB,IAClB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAC,SAAS,EACnB,cAAc,EAAE,cAAc,EAC9B,eAAe,EAAE,eAAe,EAChC,WAAW,EAAE,WAAW,GACxB,IACE,EACN,gCACE,SAAS,EAAE,IAAA,aAAK,EACd,2BAA2B,EAC3B,OAAO,KAAK,aAAa,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,CAC9C,GACD,EACD,WAAW,IAAI,aAAa,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAC7C,uBAAC,6BAAa,IAAC,QAAQ,EAAE,aAAa,CAAC,KAAK,GAAI,CACjD,CAAC,CAAC,CAAC,IAAI,IACJ,GACO,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import type { IconVersion } from '../../model/IconVersion';
|
|
2
|
-
import type { ChatBot as ChatBotWithEmptyOption } from './HeaderContent';
|
|
3
|
-
export declare type ChatBot = Exclude<ChatBotWithEmptyOption, ''>;
|
|
4
2
|
interface HeaderChatBotButtonProps {
|
|
5
3
|
className?: string;
|
|
6
4
|
iconVersion?: IconVersion;
|
|
7
|
-
chat?:
|
|
5
|
+
chat?: string;
|
|
8
6
|
onClick?: () => void;
|
|
9
7
|
}
|
|
10
8
|
export declare const HeaderChatBotButton: import("@redneckz/uni-jsx").UNIComponent<HeaderChatBotButtonProps, any, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderChatBotButton.js","sourceRoot":"","sources":["../../../src/components/Header/HeaderChatBotButton.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAE9C,6CAA0C;
|
|
1
|
+
{"version":3,"file":"HeaderChatBotButton.js","sourceRoot":"","sources":["../../../src/components/Header/HeaderChatBotButton.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAE9C,6CAA0C;AAC1C,2EAAwE;AACxE,6CAA0C;AAS1C,MAAM,yBAAyB,GAAG,qBAAqB,CAAC;AAE3C,QAAA,mBAAmB,GAAG,IAAA,aAAG,EAA2B,CAAC,KAAK,EAAE,EAAE;IACzE,MAAM,CAAC,aAAa,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,GAAG,IAAA,iBAAO,GAAE,CAAC;IAErD,OAAO,aAAa,CAAC,CAAC,CAAC,CACrB,uBAAC,6BAA6B,OAAK,KAAK,GAAI,CAC7C,CAAC,CAAC,CAAC,CACF,mBAAmB,CAAC,EAAE,GAAG,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CACjD,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,6BAA6B,GAAG,IAAA,aAAG,EACvC,CAAC,EAAE,IAAI,GAAG,UAAU,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACjC,IAAA,uBAAU,EAAC,IAAI,CAAC,CAAC;IAEjB,OAAO,mBAAmB,CAAC,IAAI,CAAC,CAAC;AACnC,CAAC,CACF,CAAC;AAEF,MAAM,mBAAmB,GAAG,CAAC,EAAE,SAAS,EAAE,WAAW,EAAE,OAAO,EAA4B,EAAE,EAAE,CAAC,CAC7F,uBAAC,qDAAyB,IACxB,SAAS,EAAE,IAAA,aAAK,EAAC,yBAAyB,EAAE,SAAS,CAAC,EACtD,KAAK,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,WAAW,EAAE,EAC9C,SAAS,EAAC,oBAAK,EACf,OAAO,EAAE,OAAO,GAChB,CACH,CAAC"}
|
|
@@ -5,11 +5,6 @@ import type { IconProps, Picture } from '../../model/Picture';
|
|
|
5
5
|
* @title Пункт подменю
|
|
6
6
|
*/
|
|
7
7
|
export declare type SubMenuItem = LinkProps & IconProps;
|
|
8
|
-
/**
|
|
9
|
-
* @title Чат-бот
|
|
10
|
-
* @enumNames ["", "Для физических лиц", "Для юридических лиц"]
|
|
11
|
-
*/
|
|
12
|
-
export declare type ChatBot = '' | 'personal' | 'business';
|
|
13
8
|
/**
|
|
14
9
|
* @title Ссылка дополнительного меню
|
|
15
10
|
* @required ["text", "href"]
|
|
@@ -35,5 +30,4 @@ export interface HeaderContent {
|
|
|
35
30
|
showSubMenu?: boolean;
|
|
36
31
|
/** @hidden */
|
|
37
32
|
bgColor?: BgColorVersion;
|
|
38
|
-
chat?: ChatBot;
|
|
39
33
|
}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
2
2
|
import type { ForeignOffice } from '../../services/sitemap/SitemapProps';
|
|
3
|
-
import type { ChatBot } from './HeaderContent';
|
|
4
3
|
interface HeaderSecondaryMenuContent {
|
|
5
4
|
version?: BlockVersion;
|
|
6
5
|
defaultLocation?: string;
|
|
7
6
|
officesLink?: string;
|
|
8
7
|
foreignOffices?: ForeignOffice[];
|
|
9
|
-
chat?: ChatBot;
|
|
10
8
|
}
|
|
11
9
|
export interface HeaderSecondaryMenuProps extends HeaderSecondaryMenuContent {
|
|
12
10
|
className?: string;
|
|
@@ -8,10 +8,11 @@ const Location_1 = require("../../ui-kit/Location/Location");
|
|
|
8
8
|
const TopItem_1 = require("../../ui-kit/TopItem/TopItem");
|
|
9
9
|
const style_1 = require("../../utils/style");
|
|
10
10
|
const HeaderChatBotButton_1 = require("./HeaderChatBotButton");
|
|
11
|
-
|
|
11
|
+
const ProjectSettings_1 = require("../../ProjectSettings");
|
|
12
|
+
exports.HeaderSecondaryMenu = (0, uni_jsx_1.JSX)(({ version, className, officesLink, defaultLocation = 'Москва', foreignOffices }) => {
|
|
12
13
|
const [isShowLocationModal, { setTrue: showLocationModal, setFalse: hideLocationModal }] = (0, useBool_1.useBool)();
|
|
13
14
|
const [location, onChangeLocation] = (0, useLocation_1.useLocation)(defaultLocation);
|
|
14
15
|
const iconVersion = version === 'transparent' ? 'white' : 'black';
|
|
15
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex items-center', className), children: [(0, jsx_runtime_1.jsx)(TopItem_1.TopItem, { className: "mr-5", flat: true, href: "#", text: location.name, onClick: showLocationModal }), officesLink ? ((0, jsx_runtime_1.jsx)(TopItem_1.TopItem, { className: "mr-7", flat: true, href: officesLink, text: "\u041E\u0444\u0438\u0441\u044B \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u044B" })) : null,
|
|
16
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex items-center', className), children: [(0, jsx_runtime_1.jsx)(TopItem_1.TopItem, { className: "mr-5", flat: true, href: "#", text: location.name, onClick: showLocationModal }), officesLink ? ((0, jsx_runtime_1.jsx)(TopItem_1.TopItem, { className: "mr-7", flat: true, href: officesLink, text: "\u041E\u0444\u0438\u0441\u044B \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u044B" })) : null, ProjectSettings_1.projectSettings.CHAT_BOT ? ((0, jsx_runtime_1.jsx)(HeaderChatBotButton_1.HeaderChatBotButton, { className: "mr-5", iconVersion: iconVersion, chat: ProjectSettings_1.projectSettings.CHAT_BOT })) : null, isShowLocationModal ? ((0, jsx_runtime_1.jsx)(Location_1.Location, { currentLocation: location, foreignOffices: foreignOffices, onChangeLocation: onChangeLocation, close: hideLocationModal })) : null] }));
|
|
16
17
|
});
|
|
17
18
|
//# sourceMappingURL=HeaderSecondaryMenu.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderSecondaryMenu.js","sourceRoot":"","sources":["../../../src/components/Header/HeaderSecondaryMenu.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAC9C,yDAAsD;AAItD,6DAA0D;AAC1D,0DAAuD;AACvD,6CAA0C;AAC1C,+DAA4D;
|
|
1
|
+
{"version":3,"file":"HeaderSecondaryMenu.js","sourceRoot":"","sources":["../../../src/components/Header/HeaderSecondaryMenu.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAC9C,yDAAsD;AAItD,6DAA0D;AAC1D,0DAAuD;AACvD,6CAA0C;AAC1C,+DAA4D;AAC5D,2DAAwD;AAa3C,QAAA,mBAAmB,GAAG,IAAA,aAAG,EACpC,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,eAAe,GAAG,QAAQ,EAAE,cAAc,EAAE,EAAE,EAAE;IAClF,MAAM,CAAC,mBAAmB,EAAE,EAAE,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,iBAAiB,EAAE,CAAC,GACtF,IAAA,iBAAO,GAAE,CAAC;IAEZ,MAAM,CAAC,QAAQ,EAAE,gBAAgB,CAAC,GAAG,IAAA,yBAAW,EAAC,eAAe,CAAC,CAAC;IAElE,MAAM,WAAW,GAAgB,OAAO,KAAK,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;IAE/E,OAAO,CACL,iCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,mBAAmB,EAAE,SAAS,CAAC,aACnD,uBAAC,iBAAO,IACN,SAAS,EAAC,MAAM,EAChB,IAAI,EAAE,IAAI,EACV,IAAI,EAAC,GAAG,EACR,IAAI,EAAE,QAAQ,CAAC,IAAI,EACnB,OAAO,EAAE,iBAAiB,GAC1B,EACD,WAAW,CAAC,CAAC,CAAC,CACb,uBAAC,iBAAO,IAAC,SAAS,EAAC,MAAM,EAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAC,8FAAmB,GAAG,CACrF,CAAC,CAAC,CAAC,IAAI,EACP,iCAAe,CAAC,QAAQ,CAAC,CAAC,CAAC,CAC1B,uBAAC,yCAAmB,IAClB,SAAS,EAAC,MAAM,EAChB,WAAW,EAAE,WAAW,EACxB,IAAI,EAAE,iCAAe,CAAC,QAAQ,GAC9B,CACH,CAAC,CAAC,CAAC,IAAI,EACP,mBAAmB,CAAC,CAAC,CAAC,CACrB,uBAAC,mBAAQ,IACP,eAAe,EAAE,QAAQ,EACzB,cAAc,EAAE,cAAc,EAC9B,gBAAgB,EAAE,gBAAgB,EAClC,KAAK,EAAE,iBAAiB,GACxB,CACH,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const useChatBot: (chat: ChatBot) => unknown;
|
|
1
|
+
export declare const useChatBot: (chat: string) => unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useChatBot.js","sourceRoot":"","sources":["../../../src/components/Header/useChatBot.ts"],"names":[],"mappings":";;AAAA,uDAAwD;AACxD,6DAA0D;
|
|
1
|
+
{"version":3,"file":"useChatBot.js","sourceRoot":"","sources":["../../../src/components/Header/useChatBot.ts"],"names":[],"mappings":";;AAAA,uDAAwD;AACxD,6DAA0D;AAE1D,MAAM,iBAAiB,GAAG,SAAS,CAAC;AAEpC,MAAM,WAAW,GAA2B;IAC1C,QAAQ,EAAE,2CAA2C;IACrD,QAAQ,EAAE,EAAE,EAAE,6BAA6B;CAC5C,CAAC;AAEK,MAAM,UAAU,GAAG,CAAC,IAAY,EAAE,EAAE;IACzC,IAAA,iBAAS,EAAC,GAAG,EAAE,CAAC,UAAU,CAAC,YAAY,EAAE,OAAO,CAAC,mBAAmB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAE/F,OAAO,IAAA,6BAAa,EAAC,iBAAiB,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC;AAC7D,CAAC,CAAC;AAJW,QAAA,UAAU,cAIrB"}
|
|
@@ -13,7 +13,7 @@ const renderBenefit_1 = require("./renderBenefit");
|
|
|
13
13
|
exports.ProductBlockInner = (0, uni_jsx_1.JSX)(({ className = '', title, headlineVersion = 'L', description, benefitsCountOfRow = 3, benefits, benefitsVersion, buttons, footnote, image, __html, items, version = 'primary', isDotted = true, textBlockClassName = '', }) => {
|
|
14
14
|
const benefitsCount = benefits?.filter((_) => _.label)?.length;
|
|
15
15
|
const benefitsContainerStyles = getBenefitsContainerStyles(benefitsCountOfRow);
|
|
16
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex grow justify-between items-stretch h-full', className), children: [(0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex flex-col', textBlockClassName), children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { className: "!p-0 max-w-[600px]", title: title, description: description, headlineVersion: headlineVersion, align: "text-left" }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col justify-between h-full", children: [(0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { buttons: (0, renderButtonsSection_1.renderButtonsSection)(buttons), children: [benefitsCount ? ((0, jsx_runtime_1.jsx)("div", { className: benefitsContainerStyles, children: benefits
|
|
16
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex grow justify-between items-stretch h-full', className), children: [(0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex flex-col', textBlockClassName), children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { className: "!p-0 max-w-[600px]", title: title, description: description, headlineVersion: headlineVersion, align: "text-left" }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col justify-between h-full", children: [(0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { buttons: (0, renderButtonsSection_1.renderButtonsSection)(buttons), children: [benefitsCount ? ((0, jsx_runtime_1.jsx)("div", { className: benefitsContainerStyles, children: benefits?.map((0, renderBenefit_1.renderBenefit)(version, benefitsVersion)) })) : null, __html ? ((0, jsx_runtime_1.jsx)("div", { className: "mt-5", children: (0, jsx_runtime_1.jsx)(RichText_1.RichText, { __html: __html }) })) : null, items?.length ? ((0, jsx_runtime_1.jsx)(List_1.List, { className: "mt-5 text-h6", items: items, itemClassName: "mb-[7px]", isDotted: isDotted })) : null] }), footnote ? (0, jsx_runtime_1.jsx)("p", { className: "text-m-light pt-12", children: footnote }) : null] })] }), image?.src && (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mt-[-50px]", image: image })] }));
|
|
17
17
|
});
|
|
18
18
|
const getBenefitsContainerStyles = (benefitsCountOfRow = 2) => `gap-6 mt-6 ${benefitsCountOfRow > 2
|
|
19
19
|
? 'inline-grid grid-cols-[auto_auto_auto]'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductBlockInner.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlockInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,mFAAgF;AAChF,8CAA2C;AAC3C,iDAA8C;AAC9C,6DAA0D;AAC1D,6CAA0C;AAC1C,mDAAgD;AAChD,mDAAgD;AAEhD,mDAAgD;AAInC,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAClC,CAAC,EACC,SAAS,GAAG,EAAE,EACd,KAAK,EACL,eAAe,GAAG,GAAG,EACrB,WAAW,EACX,kBAAkB,GAAG,CAAC,EACtB,QAAQ,EACR,eAAe,EACf,OAAO,EACP,QAAQ,EACR,KAAK,EACL,MAAM,EACN,KAAK,EACL,OAAO,GAAG,SAAS,EACnB,QAAQ,GAAG,IAAI,EACf,kBAAkB,GAAG,EAAE,GACxB,EAAE,EAAE;IACH,MAAM,aAAa,GAAG,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAC/D,MAAM,uBAAuB,GAAG,0BAA0B,CAAC,kBAAkB,CAAC,CAAC;IAE/E,OAAO,CACL,iCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,gDAAgD,EAAE,SAAS,CAAC,aAChF,iCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,eAAe,EAAE,kBAAkB,CAAC,aACxD,uBAAC,mBAAQ,IACP,SAAS,EAAC,oBAAoB,EAC9B,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,eAAe,EAAE,eAAe,EAChC,KAAK,EAAC,WAAW,GACjB,EACF,iCAAK,SAAS,EAAC,sCAAsC,aACnD,wBAAC,mBAAQ,IAAC,OAAO,EAAE,IAAA,2CAAoB,EAAC,OAAO,CAAC,aAC7C,aAAa,CAAC,CAAC,CAAC,CACf,gCAAK,SAAS,EAAE,uBAAuB,YACpC,QAAQ,
|
|
1
|
+
{"version":3,"file":"ProductBlockInner.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlockInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,mFAAgF;AAChF,8CAA2C;AAC3C,iDAA8C;AAC9C,6DAA0D;AAC1D,6CAA0C;AAC1C,mDAAgD;AAChD,mDAAgD;AAEhD,mDAAgD;AAInC,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAClC,CAAC,EACC,SAAS,GAAG,EAAE,EACd,KAAK,EACL,eAAe,GAAG,GAAG,EACrB,WAAW,EACX,kBAAkB,GAAG,CAAC,EACtB,QAAQ,EACR,eAAe,EACf,OAAO,EACP,QAAQ,EACR,KAAK,EACL,MAAM,EACN,KAAK,EACL,OAAO,GAAG,SAAS,EACnB,QAAQ,GAAG,IAAI,EACf,kBAAkB,GAAG,EAAE,GACxB,EAAE,EAAE;IACH,MAAM,aAAa,GAAG,QAAQ,EAAE,MAAM,CAA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EAAC,YAAY,EAAC,KAAK,EAAE,KAAK,GAAI,IACvD,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,0BAA0B,GAAG,CAAC,kBAAkB,GAAG,CAAC,EAAE,EAAE,CAC5D,cACE,kBAAkB,GAAG,CAAC;IACpB,CAAC,CAAC,wCAAwC;IAC1C,CAAC,CAAC,mCACN,EAAE,CAAC"}
|
|
@@ -3,12 +3,12 @@ exports.renderBackwardButton = void 0;
|
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const Button_1 = require("../../ui-kit/Button/Button");
|
|
5
5
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
6
|
+
const style_1 = require("../../utils/style");
|
|
6
7
|
function renderBackwardButton(button, version, className) {
|
|
7
|
-
const { text, href, target
|
|
8
|
+
const { text, href, target } = button;
|
|
8
9
|
const iconVersion = version === 'primary' ? 'white' : 'black';
|
|
9
10
|
const backwardIcon = button?.icon || { icon: 'ArrowLeftIcon' };
|
|
10
|
-
|
|
11
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: `flex items-center cursor-pointer ${className}`, onClick: onClick, children: [(0, jsx_runtime_1.jsx)(Button_1.Button, { version: version, rounded: true, className: "w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3", ariaLabel: text, href: href, target: target, children: (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "w-4 h-4", image: { ...backwardIcon, iconVersion: backwardIcon.iconVersion || iconVersion }, asSVG: true }) }), text ? (0, jsx_runtime_1.jsx)("span", { className: "text-m", children: text }) : null] }));
|
|
11
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex items-center', className), children: [(0, jsx_runtime_1.jsx)(Button_1.Button, { version: version, rounded: true, className: "w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3", ariaLabel: text, href: href, target: target, children: (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "w-4 h-4", image: { ...backwardIcon, iconVersion: backwardIcon.iconVersion || iconVersion }, asSVG: true }) }), text ? ((0, jsx_runtime_1.jsx)(Button_1.Button, { version: "link", text: text, href: href, target: target, ariaLabel: text })) : null] }));
|
|
12
12
|
}
|
|
13
13
|
exports.renderBackwardButton = renderBackwardButton;
|
|
14
14
|
//# sourceMappingURL=renderBackwardButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderBackwardButton.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/renderBackwardButton.tsx"],"names":[],"mappings":";;;AACA,uDAAoD;AAEpD,8CAA2C;
|
|
1
|
+
{"version":3,"file":"renderBackwardButton.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/renderBackwardButton.tsx"],"names":[],"mappings":";;;AACA,uDAAoD;AAEpD,8CAA2C;AAC3C,6CAA0C;AAE1C,SAAgB,oBAAoB,CAClC,MAA2B,EAC3B,OAAsB,EACtB,SAAiB;IAEjB,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IACtC,MAAM,WAAW,GAAG,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;IAC9D,MAAM,YAAY,GAAG,MAAM,EAAE,IAAI,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;IAE/D,OAAO,CACL,iCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,mBAAmB,EAAE,SAAS,CAAC,aACnD,uBAAC,eAAM,IACL,OAAO,EAAE,OAAO,EAChB,OAAO,QACP,SAAS,EAAC,mEAAmE,EAC7E,SAAS,EAAE,IAAI,EACf,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,YAEd,uBAAC,SAAG,IACF,SAAS,EAAC,SAAS,EACnB,KAAK,EAAE,EAAE,GAAG,YAAY,EAAE,WAAW,EAAE,YAAY,CAAC,WAAW,IAAI,WAAW,EAAE,EAChF,KAAK,SACL,GACK,EACR,IAAI,CAAC,CAAC,CAAC,CACN,uBAAC,eAAM,IAAC,OAAO,EAAC,MAAM,EAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,GAAI,CACnF,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC;AA9BD,oDA8BC"}
|
|
@@ -18,7 +18,7 @@ exports.ProductGallery = (0, uni_jsx_1.JSX)(({ className = '', slides = [], vers
|
|
|
18
18
|
})) })] }));
|
|
19
19
|
});
|
|
20
20
|
function renderProductBlock(block, i) {
|
|
21
|
-
return ((0, jsx_runtime_1.jsx)("section", { className: "box-border relative flex grow-0 shrink-0 basis-full", role: "listitem", children: (0, jsx_runtime_1.jsx)("div", { className: "flex grow", children: (0, jsx_runtime_1.jsx)(ProductBlockInner_1.ProductBlockInner, { className: "pl-12 z-10
|
|
21
|
+
return ((0, jsx_runtime_1.jsx)("section", { className: "box-border relative flex grow-0 shrink-0 basis-full", role: "listitem", children: (0, jsx_runtime_1.jsx)("div", { className: "flex grow", children: (0, jsx_runtime_1.jsx)(ProductBlockInner_1.ProductBlockInner, { className: "pl-12 z-10 group-data-secondary:text-white", textBlockClassName: "mb-[154px]", headlineVersion: "XXL", ...block }) }) }, String(i)));
|
|
22
22
|
}
|
|
23
23
|
function renderNavButton({ slide, i, isActive, onClick }) {
|
|
24
24
|
const btnClassName = isActive
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductGallery.js","sourceRoot":"","sources":["../../../src/components/ProductGallery/ProductGallery.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoE;AAGpE,4DAAyD;AAEzD,yEAAsE;AAYzD,QAAA,cAAc,GAAG,IAAA,aAAG,EAC/B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,MAAM,GAAG,EAAE,EAAE,OAAO,GAAG,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;I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AAS,EAAE,aAAa,iBAAiB,EAAE,YAAG,KAAK,EAAE,KAAK,GAAO,EACtE,gCAAK,SAAS,EAAE,uBAAuB,gBAAgB,EAAE,YAAG,KAAK,EAAE,WAAW,GAAO,IACjF,IARD,MAAM,CAAC,CAAC,CAAC,CASP,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -7,11 +7,12 @@ const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
|
7
7
|
const style_1 = require("../../utils/style");
|
|
8
8
|
const gapStyles_1 = require("../HorizontalLayout/gapStyles");
|
|
9
9
|
const alignStyle = {
|
|
10
|
+
stretch: 'items-stretch',
|
|
10
11
|
left: 'items-start',
|
|
11
12
|
center: 'items-center',
|
|
12
13
|
right: 'items-end',
|
|
13
14
|
};
|
|
14
|
-
exports.VerticalLayout = (0, uni_jsx_1.JSX)(({ className = '', gap = '', align, isPadding = false, isInnerPadding = true, version = 'transparent', options, ...rest }) => {
|
|
15
|
+
exports.VerticalLayout = (0, uni_jsx_1.JSX)(({ className = '', gap = '', align = 'stretch', isPadding = false, isInnerPadding = true, version = 'transparent', options, ...rest }) => {
|
|
15
16
|
const innerPaddingStyle = isInnerPadding ? '' : '!p-0';
|
|
16
17
|
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('flex flex-col [&>*]:max-w-full', isPadding ? 'p-12' : '', gapStyles_1.gapStyles[gap], align && alignStyle[align], className), version: version, ...rest, children: (0, renderChildren_1.renderChildren)({ ...rest, options: { ...options, className: innerPaddingStyle } }) }));
|
|
17
18
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VerticalLayout.js","sourceRoot":"","sources":["../../../src/components/VerticalLayout/VerticalLayout.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uEAAoE;AAGpE,4DAAyD;AACzD,6CAA0C;AAC1C,6DAA0D;AAK1D,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"VerticalLayout.js","sourceRoot":"","sources":["../../../src/components/VerticalLayout/VerticalLayout.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uEAAoE;AAGpE,4DAAyD;AACzD,6CAA0C;AAC1C,6DAA0D;AAK1D,MAAM,UAAU,GAAyC;IACvD,OAAO,EAAE,eAAe;IACxB,IAAI,EAAE,aAAa;IACnB,MAAM,EAAE,cAAc;IACtB,KAAK,EAAE,WAAW;CACnB,CAAC;AAEW,QAAA,cAAc,GAAkC,IAAA,aAAG,EAC9D,CAAC,EACC,SAAS,GAAG,EAAE,EACd,GAAG,GAAG,EAAE,EACR,KAAK,GAAG,SAAS,EACjB,SAAS,GAAG,KAAK,EACjB,cAAc,GAAG,IAAI,EACrB,OAAO,GAAG,aAAa,EACvB,OAAO,EACP,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,iBAAiB,GAAG,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC;IAEvD,OAAO,CACL,uBAAC,2BAAY,IACX,SAAS,EAAE,IAAA,aAAK,EACd,gCAAgC,EAChC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EACvB,qBAAS,CAAC,GAAG,CAAC,EACd,KAAK,IAAI,UAAU,CAAC,KAAK,CAAC,EAC1B,SAAS,CACV,EACD,OAAO,EAAE,OAAO,KACZ,IAAI,YAEP,IAAA,+BAAc,EAAC,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,EAAE,GAAG,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,EAAE,CAAC,GACtE,CAChB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,sBAAc,CAAC,aAAa,GAAG,EAAE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AlignTypeWithStretch } from '../../model/AlignType';
|
|
2
2
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
3
|
import type { ColorPalette } from '../../model/ContentPageDef';
|
|
4
4
|
import type { GapVersion } from '../HorizontalLayout/HorizontalLayoutContent';
|
|
@@ -8,7 +8,7 @@ import type { GapVersion } from '../HorizontalLayout/HorizontalLayoutContent';
|
|
|
8
8
|
export interface VerticalLayoutContent {
|
|
9
9
|
colorPalette?: ColorPalette;
|
|
10
10
|
version?: BlockVersion;
|
|
11
|
-
align?:
|
|
11
|
+
align?: AlignTypeWithStretch;
|
|
12
12
|
gap?: GapVersion;
|
|
13
13
|
/** @title Внутренний отступ компоновщика */
|
|
14
14
|
isPadding?: boolean;
|
|
@@ -2,9 +2,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.Video = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const useRouter_1 = require("../../hooks/useRouter");
|
|
5
6
|
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
7
|
+
const adjustHref_1 = require("../../utils/adjustHref");
|
|
6
8
|
const style_1 = require("../../utils/style");
|
|
7
9
|
const Headline_1 = require("../Headline/Headline");
|
|
8
10
|
const getPaddings_1 = require("./getPaddings");
|
|
9
|
-
exports.Video = (0, uni_jsx_1.JSX)(({ className, title,
|
|
11
|
+
exports.Video = (0, uni_jsx_1.JSX)(({ className, title, url, previewImg, ...rest }) => {
|
|
12
|
+
const router = (0, useRouter_1.useRouter)();
|
|
13
|
+
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)((0, getPaddings_1.getPaddings)(className), className), ...rest, children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { title: title, headlineVersion: "M" }), url ? ((0, jsx_runtime_1.jsx)("video", { className: "m-auto w-full object-fill", preload: "metadata", poster: (0, adjustHref_1.adjustHref)(router)(previewImg?.src), style: { maxHeight: 524 }, controls: true, children: (0, jsx_runtime_1.jsx)("source", { src: (0, adjustHref_1.adjustHref)(router)(url) }) })) : null] }));
|
|
14
|
+
});
|
|
10
15
|
//# sourceMappingURL=Video.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Video.js","sourceRoot":"","sources":["../../../src/components/Video/Video.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"Video.js","sourceRoot":"","sources":["../../../src/components/Video/Video.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,qDAAkD;AAClD,4DAAyD;AACzD,uDAAoD;AACpD,6CAA0C;AAC1C,mDAAgD;AAChD,+CAA4C;AAM/B,QAAA,KAAK,GAAG,IAAA,aAAG,EAAa,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACtF,MAAM,MAAM,GAAG,IAAA,qBAAS,GAAE,CAAC;IAE3B,OAAO,CACL,wBAAC,2BAAY,IAAC,SAAS,EAAE,IAAA,aAAK,EAAC,IAAA,yBAAW,EAAC,SAAS,CAAC,EAAE,SAAS,CAAC,KAAM,IAAI,aACzE,uBAAC,mBAAQ,IAAC,KAAK,EAAE,KAAK,EAAE,eAAe,EAAC,GAAG,GAAG,EAC7C,GAAG,CAAC,CAAC,CAAC,CACL,kCACE,SAAS,EAAC,2BAA2B,EACrC,OAAO,EAAC,UAAU,EAClB,MAAM,EAAE,IAAA,uBAAU,EAAC,MAAM,CAAC,CAAC,UAAU,EAAE,GAAG,CAAC,EAC3C,KAAK,EAAE,EAAE,SAAS,EAAE,GAAG,EAAE,EACzB,QAAQ,kBAER,mCAAQ,GAAG,EAAE,IAAA,uBAAU,EAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAI,GAClC,CACT,CAAC,CAAC,CAAC,IAAI,IACK,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
import type { TitleProps } from '../../model/HeadlineType';
|
|
2
2
|
import type { Picture } from '../../model/Picture';
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* @title Блок Видео
|
|
5
|
+
* @default {
|
|
6
|
+
* "title": "Заголовок блока"
|
|
7
|
+
* }
|
|
8
|
+
*/
|
|
4
9
|
export interface VideoContent extends TitleProps {
|
|
5
|
-
/**
|
|
6
|
-
|
|
7
|
-
|
|
10
|
+
/**
|
|
11
|
+
* @title Ссылка на видео
|
|
12
|
+
*/
|
|
13
|
+
url?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @title Заставка в блоке
|
|
16
|
+
* @default {
|
|
17
|
+
* "format": "webp",
|
|
18
|
+
* "size": {
|
|
19
|
+
* "width": 1004
|
|
20
|
+
* },
|
|
21
|
+
* }
|
|
22
|
+
*/
|
|
8
23
|
previewImg?: Picture;
|
|
9
24
|
}
|
package/dist/hooks/useLink.d.ts
CHANGED
package/dist/hooks/useLink.js
CHANGED
|
@@ -4,7 +4,7 @@ const adjustHref_1 = require("../utils/adjustHref");
|
|
|
4
4
|
const url_1 = require("../utils/url");
|
|
5
5
|
const handlerDecorator_1 = require("./handlerDecorator");
|
|
6
6
|
const useRouter_1 = require("./useRouter");
|
|
7
|
-
function useLink(isRemote) {
|
|
7
|
+
function useLink(isRemote = false) {
|
|
8
8
|
const router = (0, useRouter_1.useRouter)();
|
|
9
9
|
return (props) => ({
|
|
10
10
|
...props,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLink.js","sourceRoot":"","sources":["../../src/hooks/useLink.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"useLink.js","sourceRoot":"","sources":["../../src/hooks/useLink.ts"],"names":[],"mappings":";;AAEA,oDAAiD;AACjD,sCAA0C;AAC1C,yDAAsD;AACtD,2CAAwC;AAMxC,SAAgB,OAAO,CAAC,QAAQ,GAAG,KAAK;IACtC,MAAM,MAAM,GAAG,IAAA,qBAAS,GAAE,CAAC;IAE3B,OAAO,CAA2C,KAAQ,EAAiB,EAAE,CAAC,CAAC;QAC7E,GAAG,KAAK;QACR,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,IAAA,uBAAU,EAAC,MAAM,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC;QAC5D,YAAY,EAAE,KAAK,CAAC,IAAI;QACxB,OAAO,EAAE,IAAA,mCAAgB,EAAC,UAAU,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC;KACpD,CAAC,CAAC;IAEH,SAAS,UAAU,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAkC;QAC3E,OAAO,CAAC,EAAqB,EAAE,EAAE;YAC/B,OAAO,IAAI,OAAO,CAAC,EAAE,CAAC,CAAC;YAEvB,IAAI,CAAC,IAAI,IAAI,QAAQ,IAAI,CAAC,IAAA,gBAAU,EAAC,IAAI,EAAE,MAAM,CAAC,EAAE;gBAClD,kBAAkB;gBAClB,OAAO;aACR;YAED,iBAAiB;YACjB,EAAE,EAAE,cAAc,EAAE,CAAC;YACrB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACpB,CAAC,CAAC;IACJ,CAAC;AACH,CAAC;AAxBD,0BAwBC"}
|
|
@@ -7,3 +7,13 @@
|
|
|
7
7
|
* ]
|
|
8
8
|
*/
|
|
9
9
|
export declare type AlignType = 'left' | 'center' | 'right';
|
|
10
|
+
/**
|
|
11
|
+
* @title Выравнивание
|
|
12
|
+
* @enumNames [
|
|
13
|
+
* "Во всю ширину",
|
|
14
|
+
* "По левому краю",
|
|
15
|
+
* "По центру",
|
|
16
|
+
* "По правому краю"
|
|
17
|
+
* ]
|
|
18
|
+
*/
|
|
19
|
+
export declare type AlignTypeWithStretch = 'stretch' | 'left' | 'center' | 'right';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
//# sourceMappingURL=
|
|
2
|
+
//# sourceMappingURL=PreventableEvent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreventableEvent.js","sourceRoot":"","sources":["../../src/model/PreventableEvent.ts"],"names":[],"mappings":""}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { Router } from '../../hooks/useRouter';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
export declare const isTopItemActive: (router: Router) => ({ href }: {
|
|
3
|
+
href?: string | undefined;
|
|
4
|
+
}) => boolean;
|
|
@@ -2,8 +2,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.isTopItemActive = void 0;
|
|
3
3
|
const ProjectSettings_1 = require("../../ProjectSettings");
|
|
4
4
|
const isHrefActive_1 = require("./isHrefActive");
|
|
5
|
-
const isTopItemActive = (router) => (
|
|
6
|
-
? (0, isHrefActive_1.isHrefActive)({ pathname: ProjectSettings_1.projectSettings.BASE_PATH })(topItem)
|
|
7
|
-
: topItem.items?.some((0, isHrefActive_1.isHrefActive)(router)) || (0, isHrefActive_1.isHrefActive)(router)(topItem);
|
|
5
|
+
const isTopItemActive = (router) => (0, isHrefActive_1.isHrefActive)(ProjectSettings_1.projectSettings.BASE_PATH ? { pathname: ProjectSettings_1.projectSettings.BASE_PATH } : router);
|
|
8
6
|
exports.isTopItemActive = isTopItemActive;
|
|
9
7
|
//# sourceMappingURL=isTopItemActive.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isTopItemActive.js","sourceRoot":"","sources":["../../../src/services/sitemap/isTopItemActive.ts"],"names":[],"mappings":";;AACA,2DAAwD;AACxD,iDAA8C;
|
|
1
|
+
{"version":3,"file":"isTopItemActive.js","sourceRoot":"","sources":["../../../src/services/sitemap/isTopItemActive.ts"],"names":[],"mappings":";;AACA,2DAAwD;AACxD,iDAA8C;AAEvC,MAAM,eAAe,GAAG,CAAC,MAAc,EAAE,EAAE,CAChD,IAAA,2BAAY,EAAC,iCAAe,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,iCAAe,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;AADhF,QAAA,eAAe,mBACiE"}
|
package/dist/wlc.json
CHANGED
package/lib/ProjectSettings.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export interface ProjectSettings {
|
|
|
6
6
|
ASSIST_PROJECT_ID?: string;
|
|
7
7
|
SITEMAP?: string;
|
|
8
8
|
FOOTER?: string;
|
|
9
|
+
CHAT_BOT?: string;
|
|
9
10
|
CDN?: string;
|
|
10
11
|
BASE_PATH?: string;
|
|
11
12
|
YANDEX_MAP_API_KEY?: string;
|
|
@@ -21,6 +22,7 @@ export declare const projectSettings: {
|
|
|
21
22
|
readonly ASSIST_PROJECT_ID: string | undefined;
|
|
22
23
|
readonly SITEMAP: string | undefined;
|
|
23
24
|
readonly FOOTER: string | undefined;
|
|
25
|
+
readonly CHAT_BOT: string | undefined;
|
|
24
26
|
readonly CDN: string | undefined;
|
|
25
27
|
readonly BASE_PATH: string | undefined;
|
|
26
28
|
readonly YANDEX_MAP_API_KEY: string | undefined;
|