@redneckz/wildless-cms-uni-blocks 0.14.4 → 0.14.6
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.13.5.js +36 -0
- package/bin/migration-scripts/0.14.1.js +29 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +211 -143
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Calculator/useBusinessDepositCalculatorParams.d.ts +0 -1
- package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
- package/bundle/components/Depository/Depository.d.ts +6 -0
- package/bundle/components/Depository/DepositoryContent.d.ts +2 -0
- package/bundle/components/Depository/DepositoryItem.d.ts +3 -0
- package/bundle/components/Depository/useDepository.d.ts +9 -0
- package/bundle/components/Footer/FooterContent.d.ts +1 -4
- package/bundle/components/Footer/FooterDataProps.d.ts +4 -3
- package/bundle/components/Footer/SocialMedia.d.ts +2 -2
- package/bundle/ui-kit/Pagination/Pagination.d.ts +8 -0
- package/bundle/ui-kit/Pagination/renderPages.d.ts +3 -0
- package/bundle/ui-kit/Pagination/shouldRenderPage.d.ts +1 -0
- package/bundle/utils/convertTimestampToDate.d.ts +1 -0
- package/dist/components/ApplicationForm/renderRegion.js +1 -1
- package/dist/components/ApplicationForm/renderRegionDepartment.js +1 -1
- package/dist/components/ApplicationForm/renderWedDataOrganization.js +2 -2
- package/dist/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js +7 -7
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/Blocks.js +2 -2
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Calculator/BusinessDepositCalculatorForm.js +8 -8
- package/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/constants.js +0 -1
- package/dist/components/Calculator/constants.js.map +1 -1
- package/dist/components/Calculator/useBusinessDepositCalculatorParams.d.ts +0 -1
- package/dist/components/Calculator/useBusinessDepositCalculatorParams.js +1 -2
- package/dist/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
- package/dist/components/Carousel/Carousel.js +0 -1
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +1 -1
- package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
- package/dist/components/CarouselProductCard/CarouselProductCard.js +5 -5
- package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
- package/dist/components/Depository/Depository.d.ts +6 -0
- package/dist/components/Depository/Depository.js +19 -0
- package/dist/components/Depository/Depository.js.map +1 -0
- package/dist/components/Depository/DepositoryContent.d.ts +2 -0
- package/dist/components/{CarouselEventCard/CarouselEventCardContent.js → Depository/DepositoryContent.js} +1 -1
- package/dist/components/Depository/DepositoryContent.js.map +1 -0
- package/dist/components/Depository/DepositoryItem.d.ts +3 -0
- package/dist/components/Depository/DepositoryItem.js +12 -0
- package/dist/components/Depository/DepositoryItem.js.map +1 -0
- package/dist/components/Depository/useDepository.d.ts +9 -0
- package/dist/components/Depository/useDepository.js +10 -0
- package/dist/components/Depository/useDepository.js.map +1 -0
- package/dist/components/Footer/Footer.mobile.js +1 -1
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/Footer/FooterContent.d.ts +1 -4
- package/dist/components/Footer/FooterDataProps.d.ts +4 -3
- package/dist/components/Footer/SocialMedia.d.ts +2 -2
- package/dist/components/Footer/SocialMedia.js +26 -2
- package/dist/components/Footer/SocialMedia.js.map +1 -1
- package/dist/components/Footer/iconsMap.js +0 -7
- package/dist/components/Footer/iconsMap.js.map +1 -1
- package/dist/ui-kit/Button/ButtonInner.js +1 -1
- package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/dist/ui-kit/Input/Input.js +7 -1
- package/dist/ui-kit/Input/Input.js.map +1 -1
- package/dist/ui-kit/Pagination/Pagination.d.ts +8 -0
- package/dist/ui-kit/Pagination/Pagination.js +31 -0
- package/dist/ui-kit/Pagination/Pagination.js.map +1 -0
- package/dist/ui-kit/Pagination/renderPages.d.ts +3 -0
- package/dist/ui-kit/Pagination/renderPages.js +18 -0
- package/dist/ui-kit/Pagination/renderPages.js.map +1 -0
- package/dist/ui-kit/Pagination/shouldRenderPage.d.ts +1 -0
- package/dist/ui-kit/Pagination/shouldRenderPage.js +9 -0
- package/dist/ui-kit/Pagination/shouldRenderPage.js.map +1 -0
- package/dist/ui-kit/Select/filterOptions.js +1 -10
- package/dist/ui-kit/Select/filterOptions.js.map +1 -1
- package/dist/utils/convertTimestampToDate.d.ts +1 -0
- package/dist/utils/convertTimestampToDate.js +16 -0
- package/dist/utils/convertTimestampToDate.js.map +1 -0
- package/dist/utils/fetchMultitudeJSON.js +1 -1
- package/dist/utils/fetchMultitudeJSON.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/renderRegion.js +1 -1
- package/lib/components/ApplicationForm/renderRegionDepartment.js +1 -1
- package/lib/components/ApplicationForm/renderWedDataOrganization.js +2 -2
- package/lib/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js +7 -7
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/Blocks.js +2 -2
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Calculator/BusinessDepositCalculatorForm.js +8 -8
- package/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/constants.js +0 -1
- package/lib/components/Calculator/constants.js.map +1 -1
- package/lib/components/Calculator/useBusinessDepositCalculatorParams.d.ts +0 -1
- package/lib/components/Calculator/useBusinessDepositCalculatorParams.js +1 -2
- package/lib/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
- package/lib/components/Carousel/Carousel.fixture.d.ts +0 -1
- package/lib/components/Carousel/Carousel.js +0 -1
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +1 -1
- package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
- package/lib/components/CarouselProductCard/CarouselProductCard.fixture.d.ts +2 -0
- package/lib/components/CarouselProductCard/CarouselProductCard.fixture.mobile.d.ts +13 -0
- package/lib/components/CarouselProductCard/CarouselProductCard.js +5 -5
- package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
- package/lib/components/Depository/Depository.d.ts +6 -0
- package/lib/components/Depository/Depository.fixture.d.ts +6 -0
- package/lib/components/Depository/Depository.js +17 -0
- package/lib/components/Depository/Depository.js.map +1 -0
- package/lib/components/Depository/DepositoryContent.d.ts +2 -0
- package/lib/components/Depository/DepositoryContent.js +2 -0
- package/lib/components/Depository/DepositoryContent.js.map +1 -0
- package/lib/components/Depository/DepositoryItem.d.ts +3 -0
- package/lib/components/Depository/DepositoryItem.js +9 -0
- package/lib/components/Depository/DepositoryItem.js.map +1 -0
- package/lib/components/Depository/useDepository.d.ts +9 -0
- package/lib/components/Depository/useDepository.js +7 -0
- package/lib/components/Depository/useDepository.js.map +1 -0
- package/lib/components/Footer/Footer.mobile.js +1 -1
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/Footer/FooterContent.d.ts +1 -4
- package/lib/components/Footer/FooterDataProps.d.ts +4 -3
- package/lib/components/Footer/SocialMedia.d.ts +2 -2
- package/lib/components/Footer/SocialMedia.js +26 -2
- package/lib/components/Footer/SocialMedia.js.map +1 -1
- package/lib/components/Footer/iconsMap.js +0 -7
- package/lib/components/Footer/iconsMap.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.fixture.mobile.d.ts +1 -0
- package/lib/ui-kit/Button/ButtonInner.js +1 -1
- package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/lib/ui-kit/Input/Input.js +8 -2
- package/lib/ui-kit/Input/Input.js.map +1 -1
- package/lib/ui-kit/Pagination/Pagination.d.ts +8 -0
- package/lib/ui-kit/Pagination/Pagination.js +28 -0
- package/lib/ui-kit/Pagination/Pagination.js.map +1 -0
- package/lib/ui-kit/Pagination/renderPages.d.ts +3 -0
- package/lib/ui-kit/Pagination/renderPages.js +15 -0
- package/lib/ui-kit/Pagination/renderPages.js.map +1 -0
- package/lib/ui-kit/Pagination/shouldRenderPage.d.ts +1 -0
- package/lib/ui-kit/Pagination/shouldRenderPage.js +6 -0
- package/lib/ui-kit/Pagination/shouldRenderPage.js.map +1 -0
- package/lib/ui-kit/Select/filterOptions.js +1 -10
- package/lib/ui-kit/Select/filterOptions.js.map +1 -1
- package/lib/utils/convertTimestampToDate.d.ts +1 -0
- package/lib/utils/convertTimestampToDate.js +13 -0
- package/lib/utils/convertTimestampToDate.js.map +1 -0
- package/lib/utils/fetchMultitudeJSON.js +1 -1
- package/lib/utils/fetchMultitudeJSON.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +128 -131
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Calculator/useBusinessDepositCalculatorParams.d.ts +0 -1
- package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
- package/mobile/bundle/components/Depository/Depository.d.ts +6 -0
- package/mobile/bundle/components/Depository/DepositoryContent.d.ts +2 -0
- package/mobile/bundle/components/Depository/DepositoryItem.d.ts +3 -0
- package/mobile/bundle/components/Depository/useDepository.d.ts +9 -0
- package/mobile/bundle/components/Footer/FooterContent.d.ts +1 -4
- package/mobile/bundle/components/Footer/FooterDataProps.d.ts +4 -3
- package/mobile/bundle/components/Footer/SocialMedia.d.ts +2 -2
- package/mobile/bundle/ui-kit/Pagination/Pagination.d.ts +8 -0
- package/mobile/bundle/ui-kit/Pagination/renderPages.d.ts +3 -0
- package/mobile/bundle/ui-kit/Pagination/shouldRenderPage.d.ts +1 -0
- package/mobile/bundle/utils/convertTimestampToDate.d.ts +1 -0
- package/mobile/dist/components/ApplicationForm/renderRegion.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.js +2 -2
- package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +7 -7
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js +8 -8
- package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/constants.js +0 -1
- package/mobile/dist/components/Calculator/constants.js.map +1 -1
- package/mobile/dist/components/Calculator/useBusinessDepositCalculatorParams.d.ts +0 -1
- package/mobile/dist/components/Calculator/useBusinessDepositCalculatorParams.js +1 -2
- package/mobile/dist/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
- package/mobile/dist/components/Carousel/Carousel.js +0 -1
- package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
- package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +1 -1
- package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +5 -5
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
- package/mobile/dist/components/Depository/Depository.d.ts +6 -0
- package/mobile/dist/components/Depository/Depository.js +19 -0
- package/mobile/dist/components/Depository/Depository.js.map +1 -0
- package/mobile/dist/components/Depository/DepositoryContent.d.ts +2 -0
- package/mobile/dist/components/{CarouselEventCard/CarouselEventCardContent.js → Depository/DepositoryContent.js} +1 -1
- package/mobile/dist/components/Depository/DepositoryContent.js.map +1 -0
- package/mobile/dist/components/Depository/DepositoryItem.d.ts +3 -0
- package/mobile/dist/components/Depository/DepositoryItem.js +12 -0
- package/mobile/dist/components/Depository/DepositoryItem.js.map +1 -0
- package/mobile/dist/components/Depository/useDepository.d.ts +9 -0
- package/mobile/dist/components/Depository/useDepository.js +10 -0
- package/mobile/dist/components/Depository/useDepository.js.map +1 -0
- package/mobile/dist/components/Footer/Footer.js +1 -1
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/Footer/FooterContent.d.ts +1 -4
- package/mobile/dist/components/Footer/FooterDataProps.d.ts +4 -3
- package/mobile/dist/components/Footer/SocialMedia.d.ts +2 -2
- package/mobile/dist/components/Footer/SocialMedia.js +26 -2
- package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/dist/components/Footer/iconsMap.js +0 -7
- package/mobile/dist/components/Footer/iconsMap.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/dist/ui-kit/Input/Input.js +7 -1
- package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
- package/mobile/dist/ui-kit/Pagination/Pagination.d.ts +8 -0
- package/mobile/dist/ui-kit/Pagination/Pagination.js +31 -0
- package/mobile/dist/ui-kit/Pagination/Pagination.js.map +1 -0
- package/mobile/dist/ui-kit/Pagination/renderPages.d.ts +3 -0
- package/mobile/dist/ui-kit/Pagination/renderPages.js +18 -0
- package/mobile/dist/ui-kit/Pagination/renderPages.js.map +1 -0
- package/mobile/dist/ui-kit/Pagination/shouldRenderPage.d.ts +1 -0
- package/mobile/dist/ui-kit/Pagination/shouldRenderPage.js +9 -0
- package/mobile/dist/ui-kit/Pagination/shouldRenderPage.js.map +1 -0
- package/mobile/dist/ui-kit/Select/filterOptions.js +1 -10
- package/mobile/dist/ui-kit/Select/filterOptions.js.map +1 -1
- package/mobile/dist/utils/convertTimestampToDate.d.ts +1 -0
- package/mobile/dist/utils/convertTimestampToDate.js +16 -0
- package/mobile/dist/utils/convertTimestampToDate.js.map +1 -0
- package/mobile/dist/utils/fetchMultitudeJSON.js +1 -1
- package/mobile/dist/utils/fetchMultitudeJSON.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationForm/renderRegion.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.js +2 -2
- package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +7 -7
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js +8 -8
- package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/constants.js +0 -1
- package/mobile/lib/components/Calculator/constants.js.map +1 -1
- package/mobile/lib/components/Calculator/useBusinessDepositCalculatorParams.d.ts +0 -1
- package/mobile/lib/components/Calculator/useBusinessDepositCalculatorParams.js +1 -2
- package/mobile/lib/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
- package/mobile/lib/components/Carousel/Carousel.js +0 -1
- package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
- package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +1 -1
- package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +5 -5
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
- package/mobile/lib/components/Depository/Depository.d.ts +6 -0
- package/mobile/lib/components/Depository/Depository.js +17 -0
- package/mobile/lib/components/Depository/Depository.js.map +1 -0
- package/mobile/lib/components/Depository/DepositoryContent.d.ts +2 -0
- package/mobile/lib/components/Depository/DepositoryContent.js +2 -0
- package/mobile/lib/components/Depository/DepositoryContent.js.map +1 -0
- package/mobile/lib/components/Depository/DepositoryItem.d.ts +3 -0
- package/mobile/lib/components/Depository/DepositoryItem.js +9 -0
- package/mobile/lib/components/Depository/DepositoryItem.js.map +1 -0
- package/mobile/lib/components/Depository/useDepository.d.ts +9 -0
- package/mobile/lib/components/Depository/useDepository.js +7 -0
- package/mobile/lib/components/Depository/useDepository.js.map +1 -0
- package/mobile/lib/components/Footer/Footer.js +1 -1
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/Footer/FooterContent.d.ts +1 -4
- package/mobile/lib/components/Footer/FooterDataProps.d.ts +4 -3
- package/mobile/lib/components/Footer/SocialMedia.d.ts +2 -2
- package/mobile/lib/components/Footer/SocialMedia.js +26 -2
- package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/lib/components/Footer/iconsMap.js +0 -7
- package/mobile/lib/components/Footer/iconsMap.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/lib/ui-kit/Input/Input.js +8 -2
- package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
- package/mobile/lib/ui-kit/Pagination/Pagination.d.ts +8 -0
- package/mobile/lib/ui-kit/Pagination/Pagination.js +28 -0
- package/mobile/lib/ui-kit/Pagination/Pagination.js.map +1 -0
- package/mobile/lib/ui-kit/Pagination/renderPages.d.ts +3 -0
- package/mobile/lib/ui-kit/Pagination/renderPages.js +15 -0
- package/mobile/lib/ui-kit/Pagination/renderPages.js.map +1 -0
- package/mobile/lib/ui-kit/Pagination/shouldRenderPage.d.ts +1 -0
- package/mobile/lib/ui-kit/Pagination/shouldRenderPage.js +6 -0
- package/mobile/lib/ui-kit/Pagination/shouldRenderPage.js.map +1 -0
- package/mobile/lib/ui-kit/Select/filterOptions.js +1 -10
- package/mobile/lib/ui-kit/Select/filterOptions.js.map +1 -1
- package/mobile/lib/utils/convertTimestampToDate.d.ts +1 -0
- package/mobile/lib/utils/convertTimestampToDate.js +13 -0
- package/mobile/lib/utils/convertTimestampToDate.js.map +1 -0
- package/mobile/lib/utils/fetchMultitudeJSON.js +1 -1
- package/mobile/lib/utils/fetchMultitudeJSON.js.map +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormGrantSupport.tsx +1 -1
- package/mobile/src/components/ApplicationForm/renderRegion.tsx +2 -2
- package/mobile/src/components/ApplicationForm/renderRegionDepartment.tsx +2 -2
- package/mobile/src/components/ApplicationForm/renderWedDataOrganization.tsx +5 -5
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +24 -22
- package/mobile/src/components/Calculator/BusinessDepositCalculatorForm.tsx +28 -26
- package/mobile/src/components/Calculator/constants.ts +0 -1
- package/mobile/src/components/Calculator/useBusinessDepositCalculatorParams.ts +2 -10
- package/mobile/src/components/Carousel/Carousel.tsx +0 -1
- package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.example.json +1 -1
- package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +5 -1
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.example.json +1 -3
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +23 -13
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +1 -2
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -1
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -2
- package/mobile/src/components/Depository/Depository.tsx +43 -0
- package/mobile/src/components/Depository/DepositoryContent.ts +3 -0
- package/mobile/src/components/Depository/DepositoryItem.tsx +21 -0
- package/mobile/src/components/Depository/useDepository.ts +23 -0
- package/mobile/src/components/Footer/Footer.tsx +1 -1
- package/mobile/src/components/Footer/FooterContent.ts +1 -5
- package/mobile/src/components/Footer/FooterDataProps.ts +4 -3
- package/mobile/src/components/Footer/SocialMedia.tsx +48 -16
- package/mobile/src/components/Footer/iconsMap.ts +0 -7
- package/mobile/src/components/ProductGallery/ProductGallery.example.json +10 -4
- package/mobile/src/ui-kit/Button/ButtonInner.tsx +1 -1
- package/mobile/src/ui-kit/Input/Input.tsx +9 -2
- package/mobile/src/ui-kit/Pagination/Pagination.tsx +87 -0
- package/mobile/src/ui-kit/Pagination/renderPages.tsx +33 -0
- package/mobile/src/ui-kit/Pagination/shouldRenderPage.ts +8 -0
- package/mobile/src/ui-kit/Select/filterOptions.ts +1 -11
- package/mobile/src/utils/convertTimestampToDate.ts +15 -0
- package/mobile/src/utils/fetchMultitudeJSON.ts +1 -1
- package/package.json +1 -1
- package/src/components/ApplicationForm/ApplicationFormGrantSupport.tsx +1 -1
- package/src/components/ApplicationForm/renderRegion.tsx +2 -2
- package/src/components/ApplicationForm/renderRegionDepartment.tsx +2 -2
- package/src/components/ApplicationForm/renderWedDataOrganization.tsx +5 -5
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +24 -22
- package/src/components/Blocks.ts +2 -2
- package/src/components/Calculator/BusinessDepositCalculatorForm.tsx +28 -26
- package/src/components/Calculator/constants.ts +0 -1
- package/src/components/Calculator/useBusinessDepositCalculatorParams.ts +2 -10
- package/src/components/Carousel/Carousel.fixture.tsx +0 -18
- package/src/components/Carousel/Carousel.tsx +0 -1
- package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.example.json +1 -1
- package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +5 -1
- package/src/components/CarouselProductCard/CarouselProductCard.example.json +1 -3
- package/src/components/CarouselProductCard/CarouselProductCard.fixture.mobile.tsx +92 -0
- package/src/components/CarouselProductCard/CarouselProductCard.fixture.tsx +18 -0
- package/src/components/CarouselProductCard/CarouselProductCard.tsx +23 -13
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +1 -2
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.mobile.tsx +4 -4
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +7 -7
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.tsx +1 -1
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +3 -1
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -2
- package/src/components/Depository/Depository.example.json +1 -0
- package/src/components/Depository/Depository.fixture.tsx +10 -0
- package/src/components/Depository/Depository.tsx +43 -0
- package/src/components/Depository/Depository.ui.json +1 -0
- package/src/components/Depository/DepositoryContent.ts +3 -0
- package/src/components/Depository/DepositoryItem.tsx +21 -0
- package/src/components/Depository/useDepository.ts +23 -0
- package/src/components/Footer/Footer.mobile.tsx +1 -1
- package/src/components/Footer/FooterContent.ts +1 -5
- package/src/components/Footer/FooterDataProps.ts +4 -3
- package/src/components/Footer/SocialMedia.tsx +48 -16
- package/src/components/Footer/iconsMap.ts +0 -7
- package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +23 -3
- package/src/components/ProductGallery/ProductGallery.example.json +10 -4
- package/src/ui-kit/Button/ButtonInner.tsx +1 -1
- package/src/ui-kit/Input/Input.tsx +9 -2
- package/src/ui-kit/Pagination/Pagination.tsx +87 -0
- package/src/ui-kit/Pagination/renderPages.tsx +33 -0
- package/src/ui-kit/Pagination/shouldRenderPage.ts +8 -0
- package/src/ui-kit/Select/filterOptions.ts +1 -11
- package/src/utils/convertTimestampToDate.ts +15 -0
- package/src/utils/fetchMultitudeJSON.ts +1 -1
- package/bundle/components/CarouselEventCard/CarouselEventCard.d.ts +0 -5
- package/bundle/components/CarouselEventCard/CarouselEventCardContent.d.ts +0 -8
- package/bundle/components/Footer/MediaButton.d.ts +0 -7
- package/bundle/components/Footer/buttonSizeStyle.d.ts +0 -4
- package/dist/components/CarouselEventCard/CarouselEventCard.d.ts +0 -5
- package/dist/components/CarouselEventCard/CarouselEventCard.js +0 -12
- package/dist/components/CarouselEventCard/CarouselEventCard.js.map +0 -1
- package/dist/components/CarouselEventCard/CarouselEventCardContent.d.ts +0 -8
- package/dist/components/CarouselEventCard/CarouselEventCardContent.js.map +0 -1
- package/dist/components/Footer/MediaButton.d.ts +0 -7
- package/dist/components/Footer/MediaButton.js +0 -18
- package/dist/components/Footer/MediaButton.js.map +0 -1
- package/dist/components/Footer/buttonSizeStyle.d.ts +0 -4
- package/dist/components/Footer/buttonSizeStyle.js +0 -7
- package/dist/components/Footer/buttonSizeStyle.js.map +0 -1
- package/lib/components/CarouselEventCard/CarouselEventCard.d.ts +0 -5
- package/lib/components/CarouselEventCard/CarouselEventCard.fixture.d.ts +0 -8
- package/lib/components/CarouselEventCard/CarouselEventCard.js +0 -10
- package/lib/components/CarouselEventCard/CarouselEventCard.js.map +0 -1
- package/lib/components/CarouselEventCard/CarouselEventCardContent.d.ts +0 -8
- package/lib/components/CarouselEventCard/CarouselEventCardContent.js +0 -2
- package/lib/components/CarouselEventCard/CarouselEventCardContent.js.map +0 -1
- package/lib/components/Footer/MediaButton.d.ts +0 -7
- package/lib/components/Footer/MediaButton.js +0 -16
- package/lib/components/Footer/MediaButton.js.map +0 -1
- package/lib/components/Footer/buttonSizeStyle.d.ts +0 -4
- package/lib/components/Footer/buttonSizeStyle.js +0 -5
- package/lib/components/Footer/buttonSizeStyle.js.map +0 -1
- package/mobile/bundle/components/CarouselEventCard/CarouselEventCard.d.ts +0 -5
- package/mobile/bundle/components/CarouselEventCard/CarouselEventCardContent.d.ts +0 -8
- package/mobile/bundle/components/Footer/MediaButton.d.ts +0 -7
- package/mobile/bundle/components/Footer/buttonSizeStyle.d.ts +0 -4
- package/mobile/dist/components/CarouselEventCard/CarouselEventCard.d.ts +0 -5
- package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js +0 -12
- package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js.map +0 -1
- package/mobile/dist/components/CarouselEventCard/CarouselEventCardContent.d.ts +0 -8
- package/mobile/dist/components/CarouselEventCard/CarouselEventCardContent.js.map +0 -1
- package/mobile/dist/components/Footer/MediaButton.d.ts +0 -7
- package/mobile/dist/components/Footer/MediaButton.js +0 -18
- package/mobile/dist/components/Footer/MediaButton.js.map +0 -1
- package/mobile/dist/components/Footer/buttonSizeStyle.d.ts +0 -4
- package/mobile/dist/components/Footer/buttonSizeStyle.js +0 -7
- package/mobile/dist/components/Footer/buttonSizeStyle.js.map +0 -1
- package/mobile/lib/components/CarouselEventCard/CarouselEventCard.d.ts +0 -5
- package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js +0 -10
- package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js.map +0 -1
- package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.d.ts +0 -8
- package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.js +0 -2
- package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.js.map +0 -1
- package/mobile/lib/components/Footer/MediaButton.d.ts +0 -7
- package/mobile/lib/components/Footer/MediaButton.js +0 -16
- package/mobile/lib/components/Footer/MediaButton.js.map +0 -1
- package/mobile/lib/components/Footer/buttonSizeStyle.d.ts +0 -4
- package/mobile/lib/components/Footer/buttonSizeStyle.js +0 -5
- package/mobile/lib/components/Footer/buttonSizeStyle.js.map +0 -1
- package/mobile/src/components/CarouselEventCard/CarouselEventCard.example.json +0 -12
- package/mobile/src/components/CarouselEventCard/CarouselEventCard.tsx +0 -31
- package/mobile/src/components/CarouselEventCard/CarouselEventCardContent.ts +0 -13
- package/mobile/src/components/Footer/MediaButton.tsx +0 -50
- package/mobile/src/components/Footer/buttonSizeStyle.ts +0 -6
- package/src/components/CarouselEventCard/CarouselEventCard.example.json +0 -12
- package/src/components/CarouselEventCard/CarouselEventCard.fixture.tsx +0 -25
- package/src/components/CarouselEventCard/CarouselEventCard.tsx +0 -31
- package/src/components/CarouselEventCard/CarouselEventCardContent.ts +0 -13
- package/src/components/Footer/MediaButton.tsx +0 -50
- package/src/components/Footer/buttonSizeStyle.ts +0 -6
- /package/mobile/src/components/{CarouselEventCard/CarouselEventCard.ui.json → Depository/Depository.example.json} +0 -0
- /package/{src/components/CarouselEventCard/CarouselEventCard.ui.json → mobile/src/components/Depository/Depository.ui.json} +0 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.Depository = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
6
|
+
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
7
|
+
const Pagination_1 = require("../../ui-kit/Pagination/Pagination");
|
|
8
|
+
const style_1 = require("../../utils/style");
|
|
9
|
+
const DepositoryItem_1 = require("./DepositoryItem");
|
|
10
|
+
const useDepository_1 = require("./useDepository");
|
|
11
|
+
const DEFAULT_ITEMS_COUNT = 10;
|
|
12
|
+
exports.Depository = (0, uni_jsx_1.JSX)(({ className, ...rest }) => {
|
|
13
|
+
const [currentPage, setCurrentPage] = (0, hooks_1.useState)(0);
|
|
14
|
+
const [itemCount] = (0, hooks_1.useState)(DEFAULT_ITEMS_COUNT);
|
|
15
|
+
const { totalPages = 0, items } = (0, useDepository_1.useDepository)(itemCount, currentPage);
|
|
16
|
+
const handleChangePage = (0, hooks_1.useCallback)((page) => setCurrentPage(page - 1), []);
|
|
17
|
+
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)(className, 'container p-4xl'), ...rest, children: (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col", children: [(0, jsx_runtime_1.jsxs)("div", { className: "grid grid-cols-12 pb-lg border-gray border-opacity-50 border-b", children: [(0, jsx_runtime_1.jsx)("span", { className: "col-span-2 text-gray text-m", children: "\u0414\u0430\u0442\u0430" }), (0, jsx_runtime_1.jsx)("span", { className: "col-span-10 text-gray text-m", children: "\u0422\u0435\u043C\u0430" })] }), items?.map((params) => ((0, jsx_runtime_1.jsx)(DepositoryItem_1.DepositoryItem, { ...params }, String(params.publicId)))), (0, jsx_runtime_1.jsx)(Pagination_1.Pagination, { currentPage: currentPage + 1, onPageChange: handleChangePage, totalPages: totalPages + 1 })] }) }));
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=Depository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Depository.js","sourceRoot":"","sources":["../../../src/components/Depository/Depository.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoE;AAEpE,4DAAyD;AACzD,mEAAgE;AAChE,6CAA0C;AAE1C,qDAAkD;AAClD,mDAAgD;AAEhD,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAIlB,QAAA,UAAU,GAA8B,IAAA,aAAG,EACtD,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACzB,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,IAAA,gBAAQ,EAAC,CAAC,CAAC,CAAC;IAClD,MAAM,CAAC,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAAC,mBAAmB,CAAC,CAAC;IAElD,MAAM,EAAE,UAAU,GAAG,CAAC,EAAE,KAAK,EAAE,GAAG,IAAA,6BAAa,EAAC,SAAS,EAAE,WAAW,CAAC,CAAC;IAExE,MAAM,gBAAgB,GAAG,IAAA,mBAAW,EAAC,CAAC,IAAI,EAAE,EAAE,CAAC,cAAc,CAAC,IAAI,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAE7E,OAAO,CACL,uBAAC,2BAAY,IAAC,SAAS,EAAE,IAAA,aAAK,EAAC,SAAS,EAAE,iBAAiB,CAAC,KAAM,IAAI,YACpE,iCAAK,SAAS,EAAC,eAAe,aAC5B,iCAAK,SAAS,EAAC,gEAAgE,aAC7E,iCAAM,SAAS,EAAC,6BAA6B,yCAAY,EACzD,iCAAM,SAAS,EAAC,8BAA8B,yCAAY,IACtD,EACL,KAAK,EAAE,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CACtB,uBAAC,+BAAc,OAAmC,MAAM,IAAnC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAgB,CAC7D,CAAC,EACF,uBAAC,uBAAU,IACT,WAAW,EAAE,WAAW,GAAG,CAAC,EAC5B,YAAY,EAAE,gBAAgB,EAC9B,UAAU,EAAE,UAAU,GAAG,CAAC,GAC1B,IACE,GACO,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
//# sourceMappingURL=
|
|
2
|
+
//# sourceMappingURL=DepositoryContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DepositoryContent.js","sourceRoot":"","sources":["../../../src/components/Depository/DepositoryContent.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.DepositoryItem = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const useLink_1 = require("../../hooks/useLink");
|
|
5
|
+
const convertTimestampToDate_1 = require("../../utils/convertTimestampToDate");
|
|
6
|
+
const DepositoryItem = ({ title, timestamp = 0, publicId }) => {
|
|
7
|
+
const link = (0, useLink_1.useLink)();
|
|
8
|
+
const { href } = link({ href: `/api/v1/depository/${publicId}/file` });
|
|
9
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "grid grid-cols-12 py-lg border-gray border-opacity-50 border-b", children: [(0, jsx_runtime_1.jsx)("div", { className: "col-span-2 text-m", children: (0, jsx_runtime_1.jsx)("span", { children: (0, convertTimestampToDate_1.convertTimestampToDate)(timestamp) }) }), (0, jsx_runtime_1.jsx)("div", { className: "col-span-10 text-h6 hover:text-primary-active", children: (0, jsx_runtime_1.jsx)("a", { href: href, download: true, "aria-label": "\u0421\u043A\u0430\u0447\u0430\u0442\u044C", children: title }) })] }, publicId));
|
|
10
|
+
};
|
|
11
|
+
exports.DepositoryItem = DepositoryItem;
|
|
12
|
+
//# sourceMappingURL=DepositoryItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DepositoryItem.js","sourceRoot":"","sources":["../../../src/components/Depository/DepositoryItem.tsx"],"names":[],"mappings":";;;AAAA,iDAA8C;AAC9C,+EAA4E;AAGrE,MAAM,cAAc,GAAG,CAAC,EAAE,KAAK,EAAE,SAAS,GAAG,CAAC,EAAE,QAAQ,EAAsB,EAAE,EAAE;IACvF,MAAM,IAAI,GAAG,IAAA,iBAAO,GAAE,CAAC;IACvB,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,EAAE,IAAI,EAAE,sBAAsB,QAAQ,OAAO,EAAE,CAAC,CAAC;IAEvE,OAAO,CACL,iCAAK,SAAS,EAAC,gEAAgE,aAC7E,gCAAK,SAAS,EAAC,mBAAmB,YAChC,2CAAO,IAAA,+CAAsB,EAAC,SAAS,CAAC,GAAQ,GAC5C,EACN,gCAAK,SAAS,EAAC,+CAA+C,YAC5D,8BAAG,IAAI,EAAE,IAAI,EAAE,QAAQ,sBAAY,4CAAS,YACzC,KAAK,GACJ,GACA,KAR6E,QAAQ,CASvF,CACP,CAAC;AACJ,CAAC,CAAC;AAhBW,QAAA,cAAc,kBAgBzB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.useDepository = void 0;
|
|
3
|
+
const useAsyncData_1 = require("@redneckz/uni-jsx/lib/hooks/useAsyncData");
|
|
4
|
+
const fetchJSON_1 = require("../../utils/fetchJSON");
|
|
5
|
+
const useDepository = (size, page) => {
|
|
6
|
+
const { data } = (0, useAsyncData_1.useAsyncData)(`/api/v1/depository?page=${page}&size=${size}`, fetchJSON_1.fetchJSONUnsafe);
|
|
7
|
+
return { items: data?.content, totalPages: data?.totalPages };
|
|
8
|
+
};
|
|
9
|
+
exports.useDepository = useDepository;
|
|
10
|
+
//# sourceMappingURL=useDepository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDepository.js","sourceRoot":"","sources":["../../../src/components/Depository/useDepository.ts"],"names":[],"mappings":";;AAAA,2EAAwE;AACxE,qDAAwD;AAcjD,MAAM,aAAa,GAAG,CAAC,IAAY,EAAE,IAAY,EAAE,EAAE;IAC1D,MAAM,EAAE,IAAI,EAAE,GAAG,IAAA,2BAAY,EAC3B,2BAA2B,IAAI,SAAS,IAAI,EAAE,EAC9C,2BAAe,CAChB,CAAC;IAEF,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;AAChE,CAAC,CAAC;AAPW,QAAA,aAAa,iBAOxB"}
|
|
@@ -19,7 +19,7 @@ exports.Footer = (0, uni_jsx_1.JSX)(({ className, ...rest }) => {
|
|
|
19
19
|
const fallback = rest.options?.page?.fallback;
|
|
20
20
|
const { topItems } = (0, useSitemap_1.useSitemap)(fallback);
|
|
21
21
|
const { relatedEnterprises, contacts, socialMedia, mobileApps, horizontalNavigationTitle, documents, } = (0, useSWRResource_1.useSWRResource)(ProjectSettings_1.projectSettings.FOOTER || 'footer', { fallback });
|
|
22
|
-
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { tag: "footer", className: className, defaultPadding: "p-4xl", ...rest, children: [(0, jsx_runtime_1.jsx)("div", { className: "mb-lg pb-xs border-b border-main-divider", children: topItems?.map((item, i) => ((0, jsx_runtime_1.jsx)(RollupItem_1.RollupItem, { label: item?.text, labelIcon: item?.icon, children: (0, jsx_runtime_1.jsx)(LinkList_1.LinkList, { items: item.items }) }, String(i)))) }), (0, jsx_runtime_1.jsx)(Contacts_1.Contacts, { className: "overflow-hidden", items: contacts }), (0, jsx_runtime_1.jsxs)("div", { className: "mt-xl", children: [(0, jsx_runtime_1.jsx)(SocialMedia_1.SocialMedia, { className: "mb-xl", media: socialMedia,
|
|
22
|
+
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { tag: "footer", className: className, defaultPadding: "p-4xl", ...rest, children: [(0, jsx_runtime_1.jsx)("div", { className: "mb-lg pb-xs border-b border-main-divider", children: topItems?.map((item, i) => ((0, jsx_runtime_1.jsx)(RollupItem_1.RollupItem, { label: item?.text, labelIcon: item?.icon, children: (0, jsx_runtime_1.jsx)(LinkList_1.LinkList, { items: item.items }) }, String(i)))) }), (0, jsx_runtime_1.jsx)(Contacts_1.Contacts, { className: "overflow-hidden", items: contacts }), (0, jsx_runtime_1.jsxs)("div", { className: "mt-xl", children: [(0, jsx_runtime_1.jsx)(SocialMedia_1.SocialMedia, { className: "mb-xl", media: socialMedia, stretched: true, children: "\u0421\u043E\u0446\u0441\u0435\u0442\u0438" }), (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" }), (0, jsx_runtime_1.jsx)("div", { className: "mt-xs", children: mobileApps?.map(renderButton) })] }), (0, jsx_runtime_1.jsx)(HorizontalNavigation_1.HorizontalNavigation, { className: "py-lg border-y border-main-divider", title: horizontalNavigationTitle, links: relatedEnterprises }), (0, jsx_runtime_1.jsx)(TextInformation_1.TextInformation, { links: documents })] }));
|
|
23
23
|
});
|
|
24
24
|
const renderButton = ({ href = '/', text }, i) => {
|
|
25
25
|
const { label } = (0, findIconByHref_1.findIconByHref)(href);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Footer.mobile.js","sourceRoot":"","sources":["../../../src/components/Footer/Footer.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,2DAAwD;AACxD,+DAA4D;AAE5D,kEAA+D;AAC/D,4DAAyD;AACzD,uDAAoD;AACpD,6DAA0D;AAC1D,iDAA8C;AAC9C,yDAAsD;AACtD,yCAAsC;AAGtC,iEAA8D;AAC9D,+CAA4C;AAC5C,uDAAoD;AACpD,qDAAkD;AAErC,QAAA,MAAM,GAAG,IAAA,aAAG,EAAc,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAChE,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,QAAQ,CAAC;IAC9C,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAA,uBAAU,EAAC,QAAQ,CAAC,CAAC;IAC1C,MAAM,EACJ,kBAAkB,EAClB,QAAQ,EACR,WAAW,EACX,UAAU,EACV,yBAAyB,EACzB,SAAS,GACV,GAAG,IAAA,+BAAc,EAAkB,iCAAe,CAAC,MAAM,IAAI,QAAQ,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC;IAEtF,OAAO,CACL,wBA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E,EAAE;IAClE,MAAM,EAAE,KAAK,EAAE,GAAG,IAAA,+BAAc,EAAC,IAAI,CAAC,CAAC;IAEvC,OAAO,CACL,uBAAC,eAAM,IAEL,SAAS,EAAC,cAAc,EACxB,IAAI,EAAE,IAAI,IAAI,KAAK,EACnB,OAAO,EAAC,WAAW,EACnB,IAAI,EAAE,IAAI,EACV,MAAM,EAAC,QAAQ,IALV,MAAM,CAAC,CAAC,CAAC,CAMd,CACH,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import type { DescriptionProps } from '../../model/HeadlineType';
|
|
2
2
|
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
3
3
|
import type { LinkProps } from '../../model/LinkProps';
|
|
4
|
-
import type { IconProps
|
|
5
|
-
export interface SocialMediaLink extends LinkProps {
|
|
6
|
-
icon?: Picture;
|
|
7
|
-
}
|
|
4
|
+
import type { IconProps } from '../../model/Picture';
|
|
8
5
|
/**
|
|
9
6
|
* @title Тип контакта
|
|
10
7
|
* @enumNames [
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { LinkProps } from '../../model/LinkProps';
|
|
2
2
|
import type { SitemapData } from '../../services/sitemap/SitemapData';
|
|
3
|
-
import type {
|
|
3
|
+
import type { ButtonContent } from '../../ui-kit/Button/ButtonContent';
|
|
4
|
+
import type { ContactGroup } from './FooterContent';
|
|
4
5
|
export interface FooterDataProps extends SitemapData {
|
|
5
6
|
documents?: LinkProps[];
|
|
6
7
|
relatedEnterprises?: LinkProps[];
|
|
7
8
|
contacts?: ContactGroup[];
|
|
8
|
-
socialMedia?:
|
|
9
|
-
mobileApps?:
|
|
9
|
+
socialMedia?: ButtonContent[];
|
|
10
|
+
mobileApps?: ButtonContent[];
|
|
10
11
|
horizontalNavigationTitle?: string;
|
|
11
12
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ButtonContent } from '../../ui-kit/Button/ButtonContent';
|
|
2
|
-
import type { ButtonSize } from './MediaButton';
|
|
3
2
|
export interface SocialMediaProps {
|
|
4
3
|
className?: string;
|
|
5
4
|
media?: ButtonContent[];
|
|
6
|
-
|
|
5
|
+
showButtonText?: boolean;
|
|
6
|
+
stretched?: boolean;
|
|
7
7
|
}
|
|
8
8
|
export declare const SocialMedia: import("@redneckz/uni-jsx").UNIComponent<SocialMediaProps, any, any>;
|
|
@@ -2,8 +2,32 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.SocialMedia = 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 hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
6
|
+
const renderButtonsSection_1 = require("../../ui-kit/Button/renderButtonsSection");
|
|
5
7
|
const Text_1 = require("../../ui-kit/Text/Text");
|
|
6
8
|
const style_1 = require("../../utils/style");
|
|
7
|
-
const
|
|
8
|
-
exports.SocialMedia = (0, uni_jsx_1.JSX)(({ className = '', media,
|
|
9
|
+
const findIconByHref_1 = require("./findIconByHref");
|
|
10
|
+
exports.SocialMedia = (0, uni_jsx_1.JSX)(({ className = '', media, showButtonText, stretched, children }) => {
|
|
11
|
+
const [hasText, setHasText] = (0, hooks_1.useState)();
|
|
12
|
+
const buttons = media?.map((_) => {
|
|
13
|
+
const { href, icon, text } = _;
|
|
14
|
+
const { iconMapped } = (0, findIconByHref_1.findIconByHref)(href);
|
|
15
|
+
const iconCustom = getFilteredIcon(icon) ?? iconMapped;
|
|
16
|
+
const buttonText = showButtonText ? { text } : {};
|
|
17
|
+
if (!hasText && text) {
|
|
18
|
+
setHasText(true);
|
|
19
|
+
}
|
|
20
|
+
return {
|
|
21
|
+
...buttonText,
|
|
22
|
+
icon: { ...iconCustom, iconVersion: 'color' },
|
|
23
|
+
version: 'white',
|
|
24
|
+
};
|
|
25
|
+
});
|
|
26
|
+
const buttonClassName = (0, style_1.style)('border border-solid hover:border-transparent group-data-primary:border-main-divider border-main-divider group-data-gray:border-green group/media', showButtonText && hasText ? '' : ' basis-auto', stretched ? 'flex-1 justify-center' : '');
|
|
27
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col sm:flex-col-reverse gap-xs", children: [children ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: children })) : null, (0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('flex gap-xs', className), children: (0, renderButtonsSection_1.renderButtonsSection)(buttons, {
|
|
28
|
+
className: stretched ? 'w-full' : '',
|
|
29
|
+
buttonClassName,
|
|
30
|
+
}) })] }));
|
|
31
|
+
});
|
|
32
|
+
const getFilteredIcon = (icon) => (icon?.src || icon?.icon ? icon : undefined);
|
|
9
33
|
//# sourceMappingURL=SocialMedia.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SocialMedia.js","sourceRoot":"","sources":["../../../src/components/Footer/SocialMedia.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"SocialMedia.js","sourceRoot":"","sources":["../../../src/components/Footer/SocialMedia.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAuD;AAGvD,mFAAgF;AAChF,iDAA8C;AAC9C,6CAA0C;AAC1C,qDAAkD;AASrC,QAAA,WAAW,GAAG,IAAA,aAAG,EAC5B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE;IACjE,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,IAAA,gBAAQ,GAAuB,CAAC;IAC9D,MAAM,OAAO,GAAgC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;QAC5D,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC;QAC/B,MAAM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E,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC"}
|
|
@@ -4,37 +4,30 @@ exports.ICONS_MAP = [
|
|
|
4
4
|
{
|
|
5
5
|
origins: ['t.me', 'telegram.org'],
|
|
6
6
|
iconMapped: { icon: 'TelegramIcon' },
|
|
7
|
-
label: 'Телеграм',
|
|
8
7
|
},
|
|
9
8
|
{
|
|
10
9
|
origins: ['vk.com'],
|
|
11
10
|
iconMapped: { icon: 'VKIcon' },
|
|
12
|
-
label: 'ВКонтакте',
|
|
13
11
|
},
|
|
14
12
|
{
|
|
15
13
|
origins: ['ok.ru'],
|
|
16
14
|
iconMapped: { icon: 'OkIcon' },
|
|
17
|
-
label: 'Одноклассники',
|
|
18
15
|
},
|
|
19
16
|
{
|
|
20
17
|
origins: ['apps.apple.com'],
|
|
21
18
|
iconMapped: { icon: 'AppleIcon' },
|
|
22
|
-
label: 'App Store',
|
|
23
19
|
},
|
|
24
20
|
{
|
|
25
21
|
origins: ['play.google.com'],
|
|
26
22
|
iconMapped: { icon: 'PlayMarketIcon' },
|
|
27
|
-
label: 'Google Play',
|
|
28
23
|
},
|
|
29
24
|
{
|
|
30
25
|
origins: ['youtube.com'],
|
|
31
26
|
iconMapped: { icon: 'YoutubeIcon' },
|
|
32
|
-
label: 'Youtube',
|
|
33
27
|
},
|
|
34
28
|
{
|
|
35
29
|
origins: ['rutube.ru'],
|
|
36
30
|
iconMapped: { icon: 'RutubeIcon' },
|
|
37
|
-
label: 'Rutube',
|
|
38
31
|
},
|
|
39
32
|
];
|
|
40
33
|
//# sourceMappingURL=iconsMap.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iconsMap.js","sourceRoot":"","sources":["../../../src/components/Footer/iconsMap.ts"],"names":[],"mappings":";;AAQa,QAAA,SAAS,GAAwB;IAC5C;QACE,OAAO,EAAE,CAAC,MAAM,EAAE,cAAc,CAAC;QACjC,UAAU,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE;
|
|
1
|
+
{"version":3,"file":"iconsMap.js","sourceRoot":"","sources":["../../../src/components/Footer/iconsMap.ts"],"names":[],"mappings":";;AAQa,QAAA,SAAS,GAAwB;IAC5C;QACE,OAAO,EAAE,CAAC,MAAM,EAAE,cAAc,CAAC;QACjC,UAAU,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE;KACrC;IACD;QACE,OAAO,EAAE,CAAC,QAAQ,CAAC;QACnB,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KAC/B;IACD;QACE,OAAO,EAAE,CAAC,OAAO,CAAC;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KAC/B;IACD;QACE,OAAO,EAAE,CAAC,gBAAgB,CAAC;QAC3B,UAAU,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;KAClC;IACD;QACE,OAAO,EAAE,CAAC,iBAAiB,CAAC;QAC5B,UAAU,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE;KACvC;IACD;QACE,OAAO,EAAE,CAAC,aAAa,CAAC;QACxB,UAAU,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE;KACpC;IACD;QACE,OAAO,EAAE,CAAC,WAAW,CAAC;QACtB,UAAU,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE;KACnC;CACF,CAAC"}
|
|
@@ -14,7 +14,7 @@ const getButtonStyle = (props) => {
|
|
|
14
14
|
return '';
|
|
15
15
|
}
|
|
16
16
|
const withTextStyle = `${aboveText ? 'py-2.5 px-9' : 'py-4 px-9'}`;
|
|
17
|
-
return (0, style_1.style)('group/btn items-center justify-center', isWithText(props) ? withTextStyle : 'h-12 w-12', rounded ? 'rounded-full' : '');
|
|
17
|
+
return (0, style_1.style)('group/btn items-center justify-center', isWithText(props) ? withTextStyle : 'h-12 w-12 m-auto', rounded ? 'rounded-full' : '');
|
|
18
18
|
};
|
|
19
19
|
const isWithText = ({ text, aboveText, appendLeft }) => Boolean(text || aboveText || !appendLeft);
|
|
20
20
|
//# sourceMappingURL=ButtonInner.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonInner.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/ButtonInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,6CAA0C;AAC1C,yEAA0D;AAI7C,QAAA,WAAW,GAAG,IAAA,aAAG,EAAc,CAAC,KAAK,EAAE,EAAE;IACpD,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,OAAO,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC;IAEhF,OAAO,CACL,iCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,cAAc,CAAC,KAAK,CAAC,EAAE,aAAa,CAAC,aACxD,UAAU,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAE,uCAAY,CAAC,OAAO,CAAC,YAAG,UAAU,GAAO,CAAC,CAAC,CAAC,IAAI,EAC7E,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CACnB,4CACG,SAAS,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAC,8BAA8B,YAAE,SAAS,GAAO,CAAC,CAAC,CAAC,IAAI,EACnF,gCAAK,SAAS,EAAE,aAAa,SAAS,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,QAAQ,EAAE,YAAG,IAAI,GAAO,IAChF,CACP,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAE,uCAAY,CAAC,OAAO,CAAC,YAAG,WAAW,GAAO,CAAC,CAAC,CAAC,IAAI,IAC5E,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,cAAc,GAAG,CAAC,KAAoB,EAAE,EAAE;IAC9C,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAE9C,IAAI,OAAO,KAAK,MAAM,EAAE;QACtB,OA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cAAc,GAAG,CAAC,KAAoB,EAAE,EAAE;IAC9C,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAE9C,IAAI,OAAO,KAAK,MAAM,EAAE;QACtB,OAAO,EAAE,CAAC;KACX;IAED,MAAM,aAAa,GAAG,GAAG,SAAS,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IAEnE,OAAO,IAAA,aAAK,EACV,uCAAuC,EACvC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,kBAAkB,EACtD,OAAO,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAC9B,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAe,EAAE,EAAE,CAClE,OAAO,CAAC,IAAI,IAAI,SAAS,IAAI,CAAC,UAAU,CAAC,CAAC"}
|
|
@@ -6,13 +6,19 @@ const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
|
6
6
|
const style_1 = require("../../utils/style");
|
|
7
7
|
const Text_1 = require("../Text/Text");
|
|
8
8
|
exports.Input = (0, uni_jsx_1.JSX)(({ key, className = '', inputClassName = '', id, name, type = 'text', label, placeholder, value = '', valid = true, children, onChange, onFocus, onBlur, pattern, autoFocus = false, }) => {
|
|
9
|
+
const inputRef = (0, hooks_1.useRef)(null);
|
|
9
10
|
const handleChange = (0, hooks_1.useCallback)((e) => {
|
|
10
11
|
onChange && onChange(e.target?.value || '');
|
|
11
12
|
}, [onChange]);
|
|
13
|
+
(0, hooks_1.useEffect)(() => {
|
|
14
|
+
if (autoFocus) {
|
|
15
|
+
inputRef.current?.focus();
|
|
16
|
+
}
|
|
17
|
+
}, [autoFocus, inputRef]);
|
|
12
18
|
const paddingStyle = children ? 'pr-3xl' : '';
|
|
13
19
|
const validStyle = valid
|
|
14
20
|
? 'border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text'
|
|
15
21
|
: 'border-error';
|
|
16
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('relative', className), children: [(0, jsx_runtime_1.jsxs)("label", { children: [label ? ((0, jsx_runtime_1.jsx)("div", { className: "mb-xs", children: (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", font: "font-light", children: label }) })) : null, (0, jsx_runtime_1.jsx)("input", { className: (0, style_1.style)('w-full border rounded-md text-primary-text outline-none p-m', paddingStyle, validStyle, inputClassName), id: id, name: name || id, placeholder: placeholder, type: type, value: value, onInput: handleChange, onFocus: onFocus, onBlur: onBlur, pattern: pattern
|
|
22
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('relative', className), children: [(0, jsx_runtime_1.jsxs)("label", { children: [label ? ((0, jsx_runtime_1.jsx)("div", { className: "mb-xs", children: (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", font: "font-light", children: label }) })) : null, (0, jsx_runtime_1.jsx)("input", { ref: inputRef, className: (0, style_1.style)('w-full border rounded-md text-primary-text outline-none p-m', paddingStyle, validStyle, inputClassName), id: id, name: name || id, placeholder: placeholder, type: type, value: value, onInput: handleChange, onFocus: onFocus, onBlur: onBlur, pattern: pattern }, key)] }), children] }));
|
|
17
23
|
});
|
|
18
24
|
//# sourceMappingURL=Input.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.js","sourceRoot":"","sources":["../../../src/ui-kit/Input/Input.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,
|
|
1
|
+
{"version":3,"file":"Input.js","sourceRoot":"","sources":["../../../src/ui-kit/Input/Input.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAA6E;AAC7E,6CAA0C;AAC1C,uCAAoC;AAGvB,QAAA,KAAK,GAAG,IAAA,aAAG,EACtB,CAAC,EACC,GAAG,EACH,SAAS,GAAG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AAc,CACf,EACD,EAAE,EAAE,EAAE,EACN,IAAI,EAAE,IAAI,IAAI,EAAE,EAChB,WAAW,EAAE,WAAW,EACxB,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,YAAmB,EAC5B,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,IAfX,GAAG,CAgBR,IACI,EACP,QAAQ,IACL,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const paginationBlockStyle = "py-m px-lg rounded-md cursor-pointer hover:bg-green-more-dark hover:text-white";
|
|
3
|
+
export interface PaginationProps {
|
|
4
|
+
currentPage: number;
|
|
5
|
+
onPageChange: (page: number) => void;
|
|
6
|
+
totalPages: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const Pagination: ({ currentPage, onPageChange, totalPages }: PaginationProps) => JSX.Element;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.Pagination = exports.paginationBlockStyle = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
5
|
+
const Icon_1 = require("../Icon/Icon");
|
|
6
|
+
const renderPages_1 = require("./renderPages");
|
|
7
|
+
exports.paginationBlockStyle = 'py-m px-lg rounded-md cursor-pointer hover:bg-green-more-dark hover:text-white';
|
|
8
|
+
const ICON_SIZE = { width: '24', height: '24' };
|
|
9
|
+
const Pagination = ({ currentPage, onPageChange, totalPages }) => {
|
|
10
|
+
const handlePrevPage = (0, hooks_1.useCallback)(() => {
|
|
11
|
+
if (currentPage > 1) {
|
|
12
|
+
onPageChange(currentPage - 1);
|
|
13
|
+
}
|
|
14
|
+
}, [currentPage]);
|
|
15
|
+
const handleNextPage = (0, hooks_1.useCallback)(() => {
|
|
16
|
+
if (currentPage < totalPages - 1) {
|
|
17
|
+
onPageChange(currentPage + 1);
|
|
18
|
+
}
|
|
19
|
+
}, [currentPage, totalPages]);
|
|
20
|
+
const handleFirstPage = (0, hooks_1.useCallback)(() => onPageChange(1), []);
|
|
21
|
+
const handleLastPage = (0, hooks_1.useCallback)(() => onPageChange(totalPages), [totalPages]);
|
|
22
|
+
const pages = (0, hooks_1.useMemo)(() => new Array(totalPages).fill({
|
|
23
|
+
currentPage,
|
|
24
|
+
onPageChange,
|
|
25
|
+
totalPages,
|
|
26
|
+
}), [totalPages, currentPage]);
|
|
27
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: "mt-3xl flex items-center select-none", role: "navigation", "aria-label": "\u041F\u0430\u0433\u0438\u043D\u0430\u0446\u0438\u044F", children: (0, jsx_runtime_1.jsxs)("div", { className: "flex gap-m items-center", children: [(0, jsx_runtime_1.jsx)("div", { onClick: handlePrevPage, children: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: "ArrowLeftIcon", iconVersion: "black", imageClassName: getIconStyle(currentPage === 1), ...ICON_SIZE }) }), (0, jsx_runtime_1.jsxs)("div", { className: "flex gap-xs", children: [currentPage > 1 ? ((0, jsx_runtime_1.jsx)("div", { onClick: handleFirstPage, className: exports.paginationBlockStyle, "aria-label": "\u0421\u0442\u0440\u0430\u043D\u0438\u0446\u0430 1", children: "1" })) : null, currentPage > 4 ? (0, jsx_runtime_1.jsx)("div", { className: "py-m px-s", children: "..." }) : null, pages.map(renderPages_1.renderPages), currentPage < totalPages - 3 ? (0, jsx_runtime_1.jsx)("div", { className: "py-m px-s", children: "..." }) : null, currentPage < totalPages ? ((0, jsx_runtime_1.jsx)("div", { onClick: handleLastPage, className: exports.paginationBlockStyle, "aria-label": `Страница ${totalPages}}`, children: totalPages })) : null] }), (0, jsx_runtime_1.jsx)("div", { onClick: handleNextPage, children: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { className: "rotate-180", name: "ArrowLeftIcon", iconVersion: "black", imageClassName: getIconStyle(currentPage === totalPages), ...ICON_SIZE }) })] }) }));
|
|
28
|
+
};
|
|
29
|
+
exports.Pagination = Pagination;
|
|
30
|
+
const getIconStyle = (condition) => condition ? 'opacity-20' : 'cursor-pointer hover:opacity-60';
|
|
31
|
+
//# sourceMappingURL=Pagination.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pagination.js","sourceRoot":"","sources":["../../../src/ui-kit/Pagination/Pagination.tsx"],"names":[],"mappings":";;;AAAA,uDAAmE;AACnE,uCAAoC;AACpC,+CAA4C;AAE/B,QAAA,oBAAoB,GAC/B,gFAAgF,CAAC;AAQnF,MAAM,SAAS,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;AAEzC,MAAM,UAAU,GAAG,CAAC,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAmB,EAAE,EAAE;IACvF,MAAM,cAAc,GAAG,IAAA,mBAAW,EAAC,GAAG,EAAE;QACtC,IAAI,WAAW,GAAG,CAAC,EAAE;YACnB,YAAY,CAAC,WAAW,GAAG,CAAC,CAAC,CAAC;SAC/B;IACH,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;IAElB,MAAM,cAAc,GAAG,IAAA,mBAAW,EAAC,GAAG,EAAE;QACtC,IAAI,WAAW,GAAG,UAAU,GAAG,CAAC,EAAE;YAChC,YAAY,CAAC,WAAW,GAAG,CAAC,CAAC,CAAC;SAC/B;IACH,CAAC,EAAE,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC,CAAC;IAE9B,MAAM,eAAe,GAAG,IAAA,mBAAW,EAAC,GAAG,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAC/D,MAAM,cAAc,GAAG,IAAA,mBAAW,EAAC,GAAG,EAAE,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE,CAAC,UAAU,C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AAW,EAAC,OAAO,EACnB,cAAc,EAAE,YAAY,CAAC,WAAW,KAAK,UAAU,CAAC,KACpD,SAAS,GACb,GACE,IACF,GACF,CACP,CAAC;AACJ,CAAC,CAAC;AApEW,QAAA,UAAU,cAoErB;AAEF,MAAM,YAAY,GAAG,CAAC,SAAkB,EAAE,EAAE,CAC1C,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.renderPages = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const Pagination_1 = require("./Pagination");
|
|
5
|
+
const shouldRenderPage_1 = require("./shouldRenderPage");
|
|
6
|
+
const renderPages = (pagesParams, index) => {
|
|
7
|
+
const { currentPage, onPageChange, totalPages } = pagesParams;
|
|
8
|
+
const page = index + 1;
|
|
9
|
+
if (page === currentPage) {
|
|
10
|
+
return ((0, jsx_runtime_1.jsx)("div", { "aria-current": "true", className: "py-m px-lg bg-green-light text-white rounded-md", children: page }, String(index)));
|
|
11
|
+
}
|
|
12
|
+
if (page !== 1 && page !== totalPages && (0, shouldRenderPage_1.shouldRenderPage)(page, currentPage, totalPages)) {
|
|
13
|
+
return ((0, jsx_runtime_1.jsx)("div", { onClick: () => onPageChange(page), className: Pagination_1.paginationBlockStyle, "aria-label": `Страница ${page}`, children: page }, String(index)));
|
|
14
|
+
}
|
|
15
|
+
return null;
|
|
16
|
+
};
|
|
17
|
+
exports.renderPages = renderPages;
|
|
18
|
+
//# sourceMappingURL=renderPages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderPages.js","sourceRoot":"","sources":["../../../src/ui-kit/Pagination/renderPages.tsx"],"names":[],"mappings":";;;AAAA,6CAAqE;AACrE,yDAAsD;AAE/C,MAAM,WAAW,GAAG,CAAC,WAA4B,EAAE,KAAa,EAAE,EAAE;IACzE,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,GAAG,WAAW,CAAC;IAC9D,MAAM,IAAI,GAAG,KAAK,GAAG,CAAC,CAAC;IACvB,IAAI,IAAI,KAAK,WAAW,EAAE;QACxB,OAAO,CACL,gDAEe,MAAM,EACnB,SAAS,EAAC,iDAAiD,YAE1D,IAAI,IAJA,MAAM,CAAC,KAAK,CAAC,CAKd,CACP,CAAC;KACH;IAED,IAAI,IAAI,KAAK,CAAC,IAAI,IAAI,KAAK,UAAU,IAAI,IAAA,mCAAgB,EAAC,IAAI,EAAE,WAAW,EAAE,UAAU,CAAC,EAAE;QACxF,OAAO,CACL,gCAEE,OAAO,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,EACjC,SAAS,EAAE,iCAAoB,gBACnB,YAAY,IAAI,EAAE,YAE7B,IAAI,IALA,MAAM,CAAC,KAAK,CAAC,CAMd,CACP,CAAC;KACH;IAED,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AA7BW,QAAA,WAAW,eA6BtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const shouldRenderPage: (page: number, currentPage: number, totalPages: number) => boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.shouldRenderPage = void 0;
|
|
3
|
+
const checkPageRange = (page, currentPage, totalPages) => (currentPage <= 3 && page <= currentPage + 3) ||
|
|
4
|
+
(currentPage >= totalPages - 1 && page >= totalPages - 4);
|
|
5
|
+
const shouldRenderPage = (page, currentPage, totalPages) => (page < currentPage && page >= currentPage - 2) ||
|
|
6
|
+
(page <= currentPage + 2 && page > currentPage) ||
|
|
7
|
+
checkPageRange(page, currentPage, totalPages);
|
|
8
|
+
exports.shouldRenderPage = shouldRenderPage;
|
|
9
|
+
//# sourceMappingURL=shouldRenderPage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shouldRenderPage.js","sourceRoot":"","sources":["../../../src/ui-kit/Pagination/shouldRenderPage.ts"],"names":[],"mappings":";;AAAA,MAAM,cAAc,GAAG,CAAC,IAAY,EAAE,WAAmB,EAAE,UAAkB,EAAE,EAAE,CAC/E,CAAC,WAAW,IAAI,CAAC,IAAI,IAAI,IAAI,WAAW,GAAG,CAAC,CAAC;IAC7C,CAAC,WAAW,IAAI,UAAU,GAAG,CAAC,IAAI,IAAI,IAAI,UAAU,GAAG,CAAC,CAAC,CAAC;AAErD,MAAM,gBAAgB,GAAG,CAAC,IAAY,EAAE,WAAmB,EAAE,UAAkB,EAAE,EAAE,CACxF,CAAC,IAAI,GAAG,WAAW,IAAI,IAAI,IAAI,WAAW,GAAG,CAAC,CAAC;IAC/C,CAAC,IAAI,IAAI,WAAW,GAAG,CAAC,IAAI,IAAI,GAAG,WAAW,CAAC;IAC/C,cAAc,CAAC,IAAI,EAAE,WAAW,EAAE,UAAU,CAAC,CAAC;AAHnC,QAAA,gBAAgB,oBAGmB"}
|
|
@@ -1,19 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.filterOptions = void 0;
|
|
3
|
-
const Comparator_1 = require("../../utils/Comparator");
|
|
4
|
-
const jaroWinklerDistance_1 = require("../../utils/jaroWinklerDistance");
|
|
5
|
-
const zip_1 = require("../../utils/zip");
|
|
6
3
|
const filterOptions = (options, query) => {
|
|
7
4
|
if (!options?.length || !query?.trim()) {
|
|
8
5
|
return options;
|
|
9
6
|
}
|
|
10
|
-
|
|
11
|
-
.map((_) => _.text?.toLowerCase())
|
|
12
|
-
.map((0, jaroWinklerDistance_1.jaroWinklerDistance)(query?.trim().toLowerCase()));
|
|
13
|
-
return (0, zip_1.zip)(options, ranking)
|
|
14
|
-
.filter(([, rank]) => rank >= 0.5)
|
|
15
|
-
.sort((0, Comparator_1.desc)((0, Comparator_1.compareBy)(([, rank]) => rank)))
|
|
16
|
-
.map(([option]) => option);
|
|
7
|
+
return options.filter((_) => _.text?.toLocaleLowerCase().includes(query?.trim().toLocaleLowerCase()));
|
|
17
8
|
};
|
|
18
9
|
exports.filterOptions = filterOptions;
|
|
19
10
|
//# sourceMappingURL=filterOptions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filterOptions.js","sourceRoot":"","sources":["../../../src/ui-kit/Select/filterOptions.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"filterOptions.js","sourceRoot":"","sources":["../../../src/ui-kit/Select/filterOptions.ts"],"names":[],"mappings":";;AAEO,MAAM,aAAa,GAAG,CAAC,OAAiB,EAAE,KAAyB,EAAY,EAAE;IACtF,IAAI,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE;QACtC,OAAO,OAAO,CAAC;KAChB;IAED,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,iBAAiB,EAAE,CAAC,QAAQ,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC,iBAAiB,EAAE,CAAC,CAAC,CAAA;AACvG,CAAC,CAAC;AANW,QAAA,aAAa,iBAMxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const convertTimestampToDate: (timestamp: number) => string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.convertTimestampToDate = void 0;
|
|
3
|
+
const convertTimestampToDate = (timestamp) => {
|
|
4
|
+
const date = new Date(timestamp * 1000);
|
|
5
|
+
let dd = date.getDate();
|
|
6
|
+
if (dd < 10) {
|
|
7
|
+
dd = '0' + dd;
|
|
8
|
+
}
|
|
9
|
+
let mm = date.getMonth() + 1;
|
|
10
|
+
if (mm < 10) {
|
|
11
|
+
mm = '0' + mm;
|
|
12
|
+
}
|
|
13
|
+
return dd + '.' + mm + '.' + date.getFullYear();
|
|
14
|
+
};
|
|
15
|
+
exports.convertTimestampToDate = convertTimestampToDate;
|
|
16
|
+
//# sourceMappingURL=convertTimestampToDate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"convertTimestampToDate.js","sourceRoot":"","sources":["../../src/utils/convertTimestampToDate.ts"],"names":[],"mappings":";;AAAO,MAAM,sBAAsB,GAAG,CAAC,SAAiB,EAAE,EAAE;IAC1D,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC;IAExC,IAAI,EAAE,GAAoB,IAAI,CAAC,OAAO,EAAE,CAAC;IACzC,IAAI,EAAE,GAAG,EAAE,EAAE;QACX,EAAE,GAAG,GAAG,GAAG,EAAE,CAAC;KACf;IAED,IAAI,EAAE,GAAoB,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IAC9C,IAAI,EAAE,GAAG,EAAE,EAAE;QACX,EAAE,GAAG,GAAG,GAAG,EAAE,CAAC;KACf;IAED,OAAO,EAAE,GAAG,GAAG,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;AAClD,CAAC,CAAC;AAdW,QAAA,sBAAsB,0BAcjC"}
|
|
@@ -3,7 +3,7 @@ exports.fetchMultitudeJSON = void 0;
|
|
|
3
3
|
const fetchJSON_1 = require("./fetchJSON");
|
|
4
4
|
async function fetchMultitudeJSON(...urls) {
|
|
5
5
|
const fetchPromises = urls.map((url) => (0, fetchJSON_1.fetchJSON)(url));
|
|
6
|
-
return
|
|
6
|
+
return Promise.all(fetchPromises);
|
|
7
7
|
}
|
|
8
8
|
exports.fetchMultitudeJSON = fetchMultitudeJSON;
|
|
9
9
|
//# sourceMappingURL=fetchMultitudeJSON.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchMultitudeJSON.js","sourceRoot":"","sources":["../../src/utils/fetchMultitudeJSON.ts"],"names":[],"mappings":";;AAAA,2CAAwC;AAEjC,KAAK,UAAU,kBAAkB,CACtC,GAAG,IAAc;IAEjB,MAAM,aAAa,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,qBAAS,EAAI,GAAG,CAAC,CAAC,CAAC;IAE3D,OAAO,
|
|
1
|
+
{"version":3,"file":"fetchMultitudeJSON.js","sourceRoot":"","sources":["../../src/utils/fetchMultitudeJSON.ts"],"names":[],"mappings":";;AAAA,2CAAwC;AAEjC,KAAK,UAAU,kBAAkB,CACtC,GAAG,IAAc;IAEjB,MAAM,aAAa,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,qBAAS,EAAI,GAAG,CAAC,CAAC,CAAC;IAE3D,OAAO,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;AACpC,CAAC;AAND,gDAMC"}
|