@redneckz/wildless-cms-uni-blocks 0.14.841 → 0.14.843
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/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +30 -148
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/ui-kit/Loader/Loader.d.ts +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/Blocks.js +0 -4
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Blocks.mobile.js +0 -4
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/CalculatorRefinancing/CalculatorRefinancing.js +1 -1
- package/dist/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
- package/dist/components/CardTransfer/CardTransfer.js +1 -8
- package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/dist/components/CardTransfer/SubmitFailedDialog.js +1 -1
- package/dist/components/CardTransfer/SubmitFailedDialog.js.map +1 -1
- package/dist/components/Carousel/renderCarouselCards.js +2 -2
- package/dist/components/Carousel/renderCarouselCards.js.map +1 -1
- package/dist/components/Footer/HorizontalNavigation.js +1 -1
- package/dist/components/Footer/HorizontalNavigation.js.map +1 -1
- package/dist/components/Footer/TextInformationLink.js +1 -1
- package/dist/components/Footer/TextInformationLink.js.map +1 -1
- package/dist/components/Header/HeaderTopMenu.js +1 -1
- package/dist/components/Header/HeaderTopMenu.js.map +1 -1
- package/dist/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
- package/dist/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/dist/retail/components/DraftDialog/DraftDialog.js +1 -1
- package/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +1 -1
- package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/dist/ui-kit/Calculator/CalculatorStyle.js +1 -1
- package/dist/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
- package/dist/ui-kit/InputRange/InputRange.js +1 -1
- package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/dist/ui-kit/LinkButton/ButtonInner.js +1 -1
- package/dist/ui-kit/LinkButton/ButtonInner.js.map +1 -1
- package/dist/ui-kit/Loader/Loader.d.ts +1 -1
- package/dist/ui-kit/Loader/Loader.js.map +1 -1
- package/dist/ui-kit/ProgressBar/ProgressBar.js +1 -1
- package/lib/common.css +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/Blocks.js +0 -4
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Blocks.mobile.js +0 -4
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/CalculatorRefinancing/CalculatorRefinancing.js +1 -1
- package/lib/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
- package/lib/components/CardTransfer/CardTransfer.js +1 -8
- package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/lib/components/CardTransfer/SubmitFailedDialog.js +1 -1
- package/lib/components/CardTransfer/SubmitFailedDialog.js.map +1 -1
- package/lib/components/Carousel/Carousel.fixture.d.ts +0 -2
- package/lib/components/Carousel/Carousel.fixture.mobile.d.ts +0 -1
- package/lib/components/Carousel/renderCarouselCards.js +2 -2
- package/lib/components/Carousel/renderCarouselCards.js.map +1 -1
- package/lib/components/Footer/HorizontalNavigation.js +1 -1
- package/lib/components/Footer/HorizontalNavigation.js.map +1 -1
- package/lib/components/Footer/TextInformationLink.js +1 -1
- package/lib/components/Footer/TextInformationLink.js.map +1 -1
- package/lib/components/Header/HeaderTopMenu.js +1 -1
- package/lib/components/Header/HeaderTopMenu.js.map +1 -1
- package/lib/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
- package/lib/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/lib/retail/components/DraftDialog/DraftDialog.js +1 -1
- package/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +1 -1
- package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/lib/ui-kit/Calculator/CalculatorStyle.js +1 -1
- package/lib/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
- package/lib/ui-kit/InputRange/InputRange.js +1 -1
- package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/lib/ui-kit/LinkButton/ButtonInner.js +1 -1
- package/lib/ui-kit/LinkButton/ButtonInner.js.map +1 -1
- package/lib/ui-kit/Loader/Loader.d.ts +1 -1
- package/lib/ui-kit/Loader/Loader.js.map +1 -1
- package/lib/ui-kit/ProgressBar/ProgressBar.fixture.d.ts +4 -1
- package/lib/ui-kit/ProgressBar/ProgressBar.js +1 -1
- package/mobile/bundle/bundle.umd.js +22 -147
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/ui-kit/Loader/Loader.d.ts +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/components/Blocks.js +0 -4
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/CalculatorRefinancing/CalculatorRefinancing.js +1 -1
- package/mobile/dist/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
- package/mobile/dist/components/CardTransfer/CardTransfer.js +1 -8
- package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/dist/components/CardTransfer/SubmitFailedDialog.js +1 -1
- package/mobile/dist/components/CardTransfer/SubmitFailedDialog.js.map +1 -1
- package/mobile/dist/components/Carousel/renderCarouselCards.js +2 -2
- package/mobile/dist/components/Carousel/renderCarouselCards.js.map +1 -1
- package/mobile/dist/components/Footer/HorizontalNavigation.js +1 -1
- package/mobile/dist/components/Footer/HorizontalNavigation.js.map +1 -1
- package/mobile/dist/components/Footer/TextInformationLink.js +1 -1
- package/mobile/dist/components/Footer/TextInformationLink.js.map +1 -1
- package/mobile/dist/components/Header/HeaderTopMenu.js +1 -1
- package/mobile/dist/components/Header/HeaderTopMenu.js.map +1 -1
- package/mobile/dist/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
- package/mobile/dist/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/mobile/dist/retail/components/DraftDialog/DraftDialog.js +1 -1
- package/mobile/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +1 -1
- package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/dist/ui-kit/Calculator/CalculatorStyle.js +1 -1
- package/mobile/dist/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
- package/mobile/dist/ui-kit/InputRange/InputRange.js +1 -1
- package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/dist/ui-kit/LinkButton/ButtonInner.js +1 -1
- package/mobile/dist/ui-kit/LinkButton/ButtonInner.js.map +1 -1
- package/mobile/dist/ui-kit/Loader/Loader.d.ts +1 -1
- package/mobile/dist/ui-kit/Loader/Loader.js.map +1 -1
- package/mobile/dist/ui-kit/ProgressBar/ProgressBar.js +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/components/Blocks.js +0 -4
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/CalculatorRefinancing/CalculatorRefinancing.js +1 -1
- package/mobile/lib/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
- package/mobile/lib/components/CardTransfer/CardTransfer.js +1 -8
- package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/lib/components/CardTransfer/SubmitFailedDialog.js +1 -1
- package/mobile/lib/components/CardTransfer/SubmitFailedDialog.js.map +1 -1
- package/mobile/lib/components/Carousel/renderCarouselCards.js +2 -2
- package/mobile/lib/components/Carousel/renderCarouselCards.js.map +1 -1
- package/mobile/lib/components/Footer/HorizontalNavigation.js +1 -1
- package/mobile/lib/components/Footer/HorizontalNavigation.js.map +1 -1
- package/mobile/lib/components/Footer/TextInformationLink.js +1 -1
- package/mobile/lib/components/Footer/TextInformationLink.js.map +1 -1
- package/mobile/lib/components/Header/HeaderTopMenu.js +1 -1
- package/mobile/lib/components/Header/HeaderTopMenu.js.map +1 -1
- package/mobile/lib/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
- package/mobile/lib/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/mobile/lib/retail/components/DraftDialog/DraftDialog.js +1 -1
- package/mobile/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +1 -1
- package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/lib/ui-kit/Calculator/CalculatorStyle.js +1 -1
- package/mobile/lib/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
- package/mobile/lib/ui-kit/InputRange/InputRange.js +1 -1
- package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/lib/ui-kit/LinkButton/ButtonInner.js +1 -1
- package/mobile/lib/ui-kit/LinkButton/ButtonInner.js.map +1 -1
- package/mobile/lib/ui-kit/Loader/Loader.d.ts +1 -1
- package/mobile/lib/ui-kit/Loader/Loader.js.map +1 -1
- package/mobile/lib/ui-kit/ProgressBar/ProgressBar.js +1 -1
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
- package/mobile/src/components/Blocks.ts +0 -4
- package/mobile/src/components/CalculatorRefinancing/CalculatorRefinancing.tsx +1 -3
- package/mobile/src/components/CardTransfer/CardTransfer.tsx +5 -18
- package/mobile/src/components/CardTransfer/SubmitFailedDialog.tsx +2 -2
- package/mobile/src/components/Carousel/renderCarouselCards.tsx +2 -6
- package/mobile/src/components/Footer/HorizontalNavigation.tsx +1 -1
- package/mobile/src/components/Footer/TextInformationLink.tsx +1 -1
- package/mobile/src/components/Header/HeaderTopMenu.tsx +1 -5
- package/mobile/src/retail/components/CaptchaDialog/CaptchaDialog.tsx +4 -4
- package/mobile/src/retail/components/DraftDialog/DraftDialog.tsx +1 -1
- package/mobile/src/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx +1 -1
- package/mobile/src/ui-kit/Calculator/CalculatorStyle.tsx +1 -1
- package/mobile/src/ui-kit/InputRange/InputRange.tsx +1 -1
- package/mobile/src/ui-kit/LinkButton/ButtonInner.tsx +1 -1
- package/mobile/src/ui-kit/Loader/Loader.tsx +1 -1
- package/mobile/src/ui-kit/ProgressBar/ProgressBar.tsx +1 -1
- package/package.json +2 -2
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
- package/src/components/Blocks.mobile.ts +0 -4
- package/src/components/Blocks.ts +0 -4
- package/src/components/CalculatorRefinancing/CalculatorRefinancing.tsx +1 -3
- package/src/components/CardTransfer/CardTransfer.tsx +5 -18
- package/src/components/CardTransfer/SubmitFailedDialog.tsx +2 -2
- package/src/components/Carousel/Carousel.fixture.mobile.tsx +0 -16
- package/src/components/Carousel/Carousel.fixture.tsx +0 -35
- package/src/components/Carousel/renderCarouselCards.tsx +2 -6
- package/src/components/Footer/HorizontalNavigation.tsx +1 -1
- package/src/components/Footer/TextInformationLink.tsx +1 -1
- package/src/components/Header/HeaderTopMenu.tsx +1 -5
- package/src/icons/IconName.ts +4 -4
- package/src/retail/components/CaptchaDialog/CaptchaDialog.tsx +4 -4
- package/src/retail/components/DraftDialog/DraftDialog.tsx +1 -1
- package/src/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx +1 -1
- package/src/ui-kit/Calculator/CalculatorStyle.tsx +1 -1
- package/src/ui-kit/InputRange/InputRange.tsx +1 -1
- package/src/ui-kit/LinkButton/ButtonInner.tsx +1 -1
- package/src/ui-kit/Loader/Loader.tsx +1 -1
- package/src/ui-kit/ProgressBar/ProgressBar.fixture.tsx +4 -1
- package/src/ui-kit/ProgressBar/ProgressBar.tsx +1 -1
- package/bundle/components/CarouselCard/CarouselCard.d.ts +0 -5
- package/bundle/components/CarouselCard/CarouselCardContent.d.ts +0 -11
- package/bundle/components/CarouselCard/constants.d.ts +0 -2
- package/bundle/components/CarouselCard/titleSize.d.ts +0 -1
- package/bundle/components/CarouselCard/titleSize.mobile.d.ts +0 -1
- package/bundle/components/Depository/Depository.d.ts +0 -11
- package/bundle/components/Depository/DepositoryContent.d.ts +0 -5
- package/bundle/components/Depository/DepositoryFilter.d.ts +0 -9
- package/bundle/components/Depository/DepositoryItem.d.ts +0 -2
- package/bundle/components/Depository/useDepository.d.ts +0 -15
- package/bundle/ui-kit/Unit/Unit.d.ts +0 -2
- package/bundle/ui-kit/Unit/UnitProps.d.ts +0 -8
- package/dist/components/CarouselCard/CarouselCard.d.ts +0 -5
- package/dist/components/CarouselCard/CarouselCard.js +0 -16
- package/dist/components/CarouselCard/CarouselCard.js.map +0 -1
- package/dist/components/CarouselCard/CarouselCardContent.d.ts +0 -11
- package/dist/components/CarouselCard/CarouselCardContent.js +0 -2
- package/dist/components/CarouselCard/CarouselCardContent.js.map +0 -1
- package/dist/components/CarouselCard/constants.d.ts +0 -2
- package/dist/components/CarouselCard/constants.js +0 -7
- package/dist/components/CarouselCard/constants.js.map +0 -1
- package/dist/components/CarouselCard/titleSize.d.ts +0 -1
- package/dist/components/CarouselCard/titleSize.js +0 -4
- package/dist/components/CarouselCard/titleSize.js.map +0 -1
- package/dist/components/CarouselCard/titleSize.mobile.d.ts +0 -1
- package/dist/components/CarouselCard/titleSize.mobile.js +0 -4
- package/dist/components/CarouselCard/titleSize.mobile.js.map +0 -1
- package/dist/components/Depository/Depository.d.ts +0 -11
- package/dist/components/Depository/Depository.js +0 -42
- package/dist/components/Depository/Depository.js.map +0 -1
- package/dist/components/Depository/DepositoryContent.d.ts +0 -5
- package/dist/components/Depository/DepositoryContent.js +0 -2
- package/dist/components/Depository/DepositoryContent.js.map +0 -1
- package/dist/components/Depository/DepositoryFilter.d.ts +0 -9
- package/dist/components/Depository/DepositoryFilter.js +0 -9
- package/dist/components/Depository/DepositoryFilter.js.map +0 -1
- package/dist/components/Depository/DepositoryItem.d.ts +0 -2
- package/dist/components/Depository/DepositoryItem.js +0 -15
- package/dist/components/Depository/DepositoryItem.js.map +0 -1
- package/dist/components/Depository/useDepository.d.ts +0 -15
- package/dist/components/Depository/useDepository.js +0 -22
- package/dist/components/Depository/useDepository.js.map +0 -1
- package/dist/ui-kit/Unit/Unit.d.ts +0 -2
- package/dist/ui-kit/Unit/Unit.js +0 -9
- package/dist/ui-kit/Unit/Unit.js.map +0 -1
- package/dist/ui-kit/Unit/UnitProps.d.ts +0 -8
- package/dist/ui-kit/Unit/UnitProps.js +0 -2
- package/dist/ui-kit/Unit/UnitProps.js.map +0 -1
- package/lib/components/CarouselCard/CarouselCard.d.ts +0 -5
- package/lib/components/CarouselCard/CarouselCard.fixture.d.ts +0 -11
- package/lib/components/CarouselCard/CarouselCard.fixture.mobile.d.ts +0 -7
- package/lib/components/CarouselCard/CarouselCard.js +0 -14
- package/lib/components/CarouselCard/CarouselCard.js.map +0 -1
- package/lib/components/CarouselCard/CarouselCardContent.d.ts +0 -11
- package/lib/components/CarouselCard/CarouselCardContent.js +0 -2
- package/lib/components/CarouselCard/CarouselCardContent.js.map +0 -1
- package/lib/components/CarouselCard/constants.d.ts +0 -2
- package/lib/components/CarouselCard/constants.js +0 -5
- package/lib/components/CarouselCard/constants.js.map +0 -1
- package/lib/components/CarouselCard/titleSize.d.ts +0 -1
- package/lib/components/CarouselCard/titleSize.js +0 -2
- package/lib/components/CarouselCard/titleSize.js.map +0 -1
- package/lib/components/CarouselCard/titleSize.mobile.d.ts +0 -1
- package/lib/components/CarouselCard/titleSize.mobile.js +0 -2
- package/lib/components/CarouselCard/titleSize.mobile.js.map +0 -1
- package/lib/components/Depository/Depository.d.ts +0 -11
- package/lib/components/Depository/Depository.fixture.d.ts +0 -5
- package/lib/components/Depository/Depository.fixture.mobile.d.ts +0 -5
- package/lib/components/Depository/Depository.js +0 -40
- package/lib/components/Depository/Depository.js.map +0 -1
- package/lib/components/Depository/DepositoryContent.d.ts +0 -5
- package/lib/components/Depository/DepositoryContent.js +0 -2
- package/lib/components/Depository/DepositoryContent.js.map +0 -1
- package/lib/components/Depository/DepositoryFilter.d.ts +0 -9
- package/lib/components/Depository/DepositoryFilter.js +0 -7
- package/lib/components/Depository/DepositoryFilter.js.map +0 -1
- package/lib/components/Depository/DepositoryItem.d.ts +0 -2
- package/lib/components/Depository/DepositoryItem.js +0 -13
- package/lib/components/Depository/DepositoryItem.js.map +0 -1
- package/lib/components/Depository/useDepository.d.ts +0 -15
- package/lib/components/Depository/useDepository.js +0 -19
- package/lib/components/Depository/useDepository.js.map +0 -1
- package/lib/ui-kit/Unit/Unit.d.ts +0 -2
- package/lib/ui-kit/Unit/Unit.js +0 -7
- package/lib/ui-kit/Unit/Unit.js.map +0 -1
- package/lib/ui-kit/Unit/UnitProps.d.ts +0 -8
- package/lib/ui-kit/Unit/UnitProps.js +0 -2
- package/lib/ui-kit/Unit/UnitProps.js.map +0 -1
- package/mobile/bundle/components/CarouselCard/CarouselCard.d.ts +0 -5
- package/mobile/bundle/components/CarouselCard/CarouselCardContent.d.ts +0 -11
- package/mobile/bundle/components/CarouselCard/constants.d.ts +0 -2
- package/mobile/bundle/components/CarouselCard/titleSize.d.ts +0 -1
- package/mobile/bundle/components/Depository/Depository.d.ts +0 -11
- package/mobile/bundle/components/Depository/DepositoryContent.d.ts +0 -5
- package/mobile/bundle/components/Depository/DepositoryFilter.d.ts +0 -9
- package/mobile/bundle/components/Depository/DepositoryItem.d.ts +0 -2
- package/mobile/bundle/components/Depository/useDepository.d.ts +0 -15
- package/mobile/bundle/ui-kit/Unit/Unit.d.ts +0 -2
- package/mobile/bundle/ui-kit/Unit/UnitProps.d.ts +0 -8
- package/mobile/dist/components/CarouselCard/CarouselCard.d.ts +0 -5
- package/mobile/dist/components/CarouselCard/CarouselCard.js +0 -16
- package/mobile/dist/components/CarouselCard/CarouselCard.js.map +0 -1
- package/mobile/dist/components/CarouselCard/CarouselCardContent.d.ts +0 -11
- package/mobile/dist/components/CarouselCard/CarouselCardContent.js +0 -2
- package/mobile/dist/components/CarouselCard/CarouselCardContent.js.map +0 -1
- package/mobile/dist/components/CarouselCard/constants.d.ts +0 -2
- package/mobile/dist/components/CarouselCard/constants.js +0 -7
- package/mobile/dist/components/CarouselCard/constants.js.map +0 -1
- package/mobile/dist/components/CarouselCard/titleSize.d.ts +0 -1
- package/mobile/dist/components/CarouselCard/titleSize.js +0 -4
- package/mobile/dist/components/CarouselCard/titleSize.js.map +0 -1
- package/mobile/dist/components/Depository/Depository.d.ts +0 -11
- package/mobile/dist/components/Depository/Depository.js +0 -42
- package/mobile/dist/components/Depository/Depository.js.map +0 -1
- package/mobile/dist/components/Depository/DepositoryContent.d.ts +0 -5
- package/mobile/dist/components/Depository/DepositoryContent.js +0 -2
- package/mobile/dist/components/Depository/DepositoryContent.js.map +0 -1
- package/mobile/dist/components/Depository/DepositoryFilter.d.ts +0 -9
- package/mobile/dist/components/Depository/DepositoryFilter.js +0 -9
- package/mobile/dist/components/Depository/DepositoryFilter.js.map +0 -1
- package/mobile/dist/components/Depository/DepositoryItem.d.ts +0 -2
- package/mobile/dist/components/Depository/DepositoryItem.js +0 -15
- package/mobile/dist/components/Depository/DepositoryItem.js.map +0 -1
- package/mobile/dist/components/Depository/useDepository.d.ts +0 -15
- package/mobile/dist/components/Depository/useDepository.js +0 -22
- package/mobile/dist/components/Depository/useDepository.js.map +0 -1
- package/mobile/dist/ui-kit/Unit/Unit.d.ts +0 -2
- package/mobile/dist/ui-kit/Unit/Unit.js +0 -9
- package/mobile/dist/ui-kit/Unit/Unit.js.map +0 -1
- package/mobile/dist/ui-kit/Unit/UnitProps.d.ts +0 -8
- package/mobile/dist/ui-kit/Unit/UnitProps.js +0 -2
- package/mobile/dist/ui-kit/Unit/UnitProps.js.map +0 -1
- package/mobile/lib/components/CarouselCard/CarouselCard.d.ts +0 -5
- package/mobile/lib/components/CarouselCard/CarouselCard.js +0 -14
- package/mobile/lib/components/CarouselCard/CarouselCard.js.map +0 -1
- package/mobile/lib/components/CarouselCard/CarouselCardContent.d.ts +0 -11
- package/mobile/lib/components/CarouselCard/CarouselCardContent.js +0 -2
- package/mobile/lib/components/CarouselCard/CarouselCardContent.js.map +0 -1
- package/mobile/lib/components/CarouselCard/constants.d.ts +0 -2
- package/mobile/lib/components/CarouselCard/constants.js +0 -5
- package/mobile/lib/components/CarouselCard/constants.js.map +0 -1
- package/mobile/lib/components/CarouselCard/titleSize.d.ts +0 -1
- package/mobile/lib/components/CarouselCard/titleSize.js +0 -2
- package/mobile/lib/components/CarouselCard/titleSize.js.map +0 -1
- package/mobile/lib/components/Depository/Depository.d.ts +0 -11
- package/mobile/lib/components/Depository/Depository.js +0 -40
- package/mobile/lib/components/Depository/Depository.js.map +0 -1
- package/mobile/lib/components/Depository/DepositoryContent.d.ts +0 -5
- package/mobile/lib/components/Depository/DepositoryContent.js +0 -2
- package/mobile/lib/components/Depository/DepositoryContent.js.map +0 -1
- package/mobile/lib/components/Depository/DepositoryFilter.d.ts +0 -9
- package/mobile/lib/components/Depository/DepositoryFilter.js +0 -7
- package/mobile/lib/components/Depository/DepositoryFilter.js.map +0 -1
- package/mobile/lib/components/Depository/DepositoryItem.d.ts +0 -2
- package/mobile/lib/components/Depository/DepositoryItem.js +0 -13
- package/mobile/lib/components/Depository/DepositoryItem.js.map +0 -1
- package/mobile/lib/components/Depository/useDepository.d.ts +0 -15
- package/mobile/lib/components/Depository/useDepository.js +0 -19
- package/mobile/lib/components/Depository/useDepository.js.map +0 -1
- package/mobile/lib/ui-kit/Unit/Unit.d.ts +0 -2
- package/mobile/lib/ui-kit/Unit/Unit.js +0 -7
- package/mobile/lib/ui-kit/Unit/Unit.js.map +0 -1
- package/mobile/lib/ui-kit/Unit/UnitProps.d.ts +0 -8
- package/mobile/lib/ui-kit/Unit/UnitProps.js +0 -2
- package/mobile/lib/ui-kit/Unit/UnitProps.js.map +0 -1
- package/mobile/src/components/CarouselCard/CarouselCard.example.json +0 -14
- package/mobile/src/components/CarouselCard/CarouselCard.tsx +0 -47
- package/mobile/src/components/CarouselCard/CarouselCard.ui.json +0 -1
- package/mobile/src/components/CarouselCard/CarouselCardContent.ts +0 -13
- package/mobile/src/components/CarouselCard/constants.ts +0 -6
- package/mobile/src/components/CarouselCard/titleSize.tsx +0 -1
- package/mobile/src/components/Depository/Depository.example.json +0 -6
- package/mobile/src/components/Depository/Depository.tsx +0 -84
- package/mobile/src/components/Depository/Depository.ui.json +0 -1
- package/mobile/src/components/Depository/DepositoryContent.ts +0 -6
- package/mobile/src/components/Depository/DepositoryFilter.tsx +0 -41
- package/mobile/src/components/Depository/DepositoryItem.tsx +0 -31
- package/mobile/src/components/Depository/useDepository.ts +0 -46
- package/mobile/src/ui-kit/Unit/Unit.tsx +0 -26
- package/mobile/src/ui-kit/Unit/UnitProps.ts +0 -8
- package/src/components/CarouselCard/CarouselCard.example.json +0 -14
- package/src/components/CarouselCard/CarouselCard.fixture.mobile.tsx +0 -28
- package/src/components/CarouselCard/CarouselCard.fixture.tsx +0 -53
- package/src/components/CarouselCard/CarouselCard.tsx +0 -47
- package/src/components/CarouselCard/CarouselCard.ui.json +0 -1
- package/src/components/CarouselCard/CarouselCardContent.ts +0 -13
- package/src/components/CarouselCard/constants.ts +0 -6
- package/src/components/CarouselCard/titleSize.mobile.tsx +0 -1
- package/src/components/CarouselCard/titleSize.tsx +0 -1
- package/src/components/Depository/Depository.example.json +0 -6
- package/src/components/Depository/Depository.fixture.mobile.tsx +0 -12
- package/src/components/Depository/Depository.fixture.tsx +0 -12
- package/src/components/Depository/Depository.tsx +0 -84
- package/src/components/Depository/Depository.ui.json +0 -1
- package/src/components/Depository/DepositoryContent.ts +0 -6
- package/src/components/Depository/DepositoryFilter.tsx +0 -41
- package/src/components/Depository/DepositoryItem.tsx +0 -31
- package/src/components/Depository/useDepository.ts +0 -46
- package/src/ui-kit/Unit/Unit.tsx +0 -26
- package/src/ui-kit/Unit/UnitProps.ts +0 -8
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
|
-
import { useForm } from '../../hooks/useForm/useForm';
|
|
3
|
-
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
4
|
-
import { NotFound } from '../../ui-kit/NotFound/NotFound';
|
|
5
|
-
import { Pagination } from '../../ui-kit/Pagination/Pagination';
|
|
6
|
-
import { Text } from '../../ui-kit/Text/Text';
|
|
7
|
-
import { UniBlock } from '../../UniBlock/UniBlock';
|
|
8
|
-
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
9
|
-
import { style } from '../../utils/style';
|
|
10
|
-
import { type DepositoryContent } from './DepositoryContent';
|
|
11
|
-
import { DepositoryFilter } from './DepositoryFilter';
|
|
12
|
-
import { DepositoryItem } from './DepositoryItem';
|
|
13
|
-
import { useDepository } from './useDepository';
|
|
14
|
-
|
|
15
|
-
const DEFAULT_ITEMS_COUNT = 10;
|
|
16
|
-
|
|
17
|
-
const initialFiltrationState: DepositoryFiltrationState = {
|
|
18
|
-
startDate: undefined,
|
|
19
|
-
endDate: undefined,
|
|
20
|
-
query: '',
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
export interface DepositoryFiltrationState {
|
|
24
|
-
startDate: Date | undefined;
|
|
25
|
-
endDate: Date | undefined;
|
|
26
|
-
query: string;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
interface DepositoryProps extends DepositoryContent, UniBlockProps {}
|
|
30
|
-
|
|
31
|
-
export const Depository = UniBlock<DepositoryProps>(({ className, ...rest }) => {
|
|
32
|
-
const [currentPage, setCurrentPage] = useState(0);
|
|
33
|
-
const [itemCount, setItemCount] = useState(DEFAULT_ITEMS_COUNT);
|
|
34
|
-
const [filtrationState, { field, reset }] = useForm(initialFiltrationState);
|
|
35
|
-
|
|
36
|
-
const { totalPages = 0, items = [] } = useDepository({
|
|
37
|
-
size: itemCount,
|
|
38
|
-
page: currentPage,
|
|
39
|
-
...filtrationState,
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
const handleChangePage = useCallback((page: number) => setCurrentPage(page - 1), []);
|
|
43
|
-
|
|
44
|
-
const handleItemCountChange = useCallback((count: number) => {
|
|
45
|
-
if (itemCount !== count) {
|
|
46
|
-
setItemCount(count);
|
|
47
|
-
setCurrentPage(0);
|
|
48
|
-
} else {
|
|
49
|
-
setItemCount(count);
|
|
50
|
-
}
|
|
51
|
-
}, []);
|
|
52
|
-
|
|
53
|
-
return (
|
|
54
|
-
<BlockWrapper className={style(className, 'container p-6xl')} {...rest}>
|
|
55
|
-
<DepositoryFilter filtrationState={filtrationState} field={field} onClearFilter={reset} />
|
|
56
|
-
<div className="flex flex-col">
|
|
57
|
-
<div className="grid grid-cols-12 pb-lg border-gray border-opacity-50 border-b">
|
|
58
|
-
<div className="col-span-4 @lg:col-span-2 hidden @lg:block">
|
|
59
|
-
<Text size="text-m" color="text-secondary-text">
|
|
60
|
-
Дата
|
|
61
|
-
</Text>
|
|
62
|
-
</div>
|
|
63
|
-
<span className="col-span-8 @lg:col-span-10 hidden @lg:block">
|
|
64
|
-
<Text size="text-m" color="text-secondary-text">
|
|
65
|
-
Тема
|
|
66
|
-
</Text>
|
|
67
|
-
</span>
|
|
68
|
-
</div>
|
|
69
|
-
{items.length ? (
|
|
70
|
-
items.map((params) => <DepositoryItem key={String(params.publicId)} {...params} />)
|
|
71
|
-
) : (
|
|
72
|
-
<NotFound title="Ничего не найдено" description="Попробуйте очистить фильтры" />
|
|
73
|
-
)}
|
|
74
|
-
<Pagination
|
|
75
|
-
currentPage={currentPage + 1}
|
|
76
|
-
onPageChange={handleChangePage}
|
|
77
|
-
totalPages={totalPages}
|
|
78
|
-
itemCount={itemCount}
|
|
79
|
-
onItemCountChange={handleItemCountChange}
|
|
80
|
-
/>
|
|
81
|
-
</div>
|
|
82
|
-
</BlockWrapper>
|
|
83
|
-
);
|
|
84
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { type FormFieldRegisterer } from '../../hooks/useForm/useForm';
|
|
3
|
-
import { Button } from '../../ui-kit/Button/Button';
|
|
4
|
-
import { DatePicker } from '../../ui-kit/DatePicker/DatePicker';
|
|
5
|
-
import { SearchInput } from '../../ui-kit/SearchDialog/SearchInput';
|
|
6
|
-
import { type DepositoryFiltrationState } from './Depository';
|
|
7
|
-
|
|
8
|
-
interface DepositoryFilterProps {
|
|
9
|
-
filtrationState: DepositoryFiltrationState;
|
|
10
|
-
field: FormFieldRegisterer<any>;
|
|
11
|
-
onClearFilter: () => void;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export const DepositoryFilter = JSX<DepositoryFilterProps>(
|
|
15
|
-
({ field, onClearFilter, filtrationState }) => (
|
|
16
|
-
<div className="grid grid-cols-12 mb-3xl @lg:space-x-xl">
|
|
17
|
-
<SearchInput
|
|
18
|
-
className="col-span-12 @lg:col-span-4 mt-auto"
|
|
19
|
-
placeholder="Поиск"
|
|
20
|
-
{...field('query')}
|
|
21
|
-
/>
|
|
22
|
-
<DatePicker
|
|
23
|
-
className="col-span-12 @lg:col-span-3 mt-4 @lg:mt-0"
|
|
24
|
-
label="Период от"
|
|
25
|
-
maxDate={filtrationState.endDate}
|
|
26
|
-
{...field('startDate')}
|
|
27
|
-
/>
|
|
28
|
-
<DatePicker
|
|
29
|
-
className="col-span-12 @lg:col-span-3 mt-4 @lg:mt-0"
|
|
30
|
-
label="Период до"
|
|
31
|
-
minDate={filtrationState.startDate}
|
|
32
|
-
{...field('endDate')}
|
|
33
|
-
/>
|
|
34
|
-
<div className="col-span-12 @lg:col-span-2 mt-8 @lg:mt-auto">
|
|
35
|
-
<Button type="reset" className="w-full" version="secondary" onClick={onClearFilter}>
|
|
36
|
-
Очистить
|
|
37
|
-
</Button>
|
|
38
|
-
</div>
|
|
39
|
-
</div>
|
|
40
|
-
),
|
|
41
|
-
);
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { API_BASE_URI } from '../../api/apiBaseUrl';
|
|
3
|
-
import { useLink } from '../../hooks/useLink';
|
|
4
|
-
import { RoundedIcon } from '../../ui-kit/Icon/RoundedIcon';
|
|
5
|
-
import { Text } from '../../ui-kit/Text/Text';
|
|
6
|
-
import { formatDate } from '../../utils/formatDate';
|
|
7
|
-
import { type DepositoryDataItem } from './useDepository';
|
|
8
|
-
|
|
9
|
-
export const DepositoryItem = JSX(({ title, timestamp, publicId }: DepositoryDataItem) => {
|
|
10
|
-
const link = useLink();
|
|
11
|
-
const { href } = link({ href: `${API_BASE_URI}/depository/${publicId}/file` });
|
|
12
|
-
|
|
13
|
-
return (
|
|
14
|
-
<div
|
|
15
|
-
className="flex gap-3 items-center py-lg border-gray border-opacity-50 border-b"
|
|
16
|
-
key={publicId}
|
|
17
|
-
>
|
|
18
|
-
<RoundedIcon className="shrink-0" icon="DocDownloadIcon" iconVersion="black" />
|
|
19
|
-
<div className="flex flex-col gap-x-6xl lg:flex-row lg:items-center">
|
|
20
|
-
{timestamp ? (
|
|
21
|
-
<Text size="text-m" font-weight="font-light">
|
|
22
|
-
{formatDate(timestamp)}
|
|
23
|
-
</Text>
|
|
24
|
-
) : null}
|
|
25
|
-
<a className="text-h6 hover:text-primary-active" href={href} download aria-label="Скачать">
|
|
26
|
-
{title}
|
|
27
|
-
</a>
|
|
28
|
-
</div>
|
|
29
|
-
</div>
|
|
30
|
-
);
|
|
31
|
-
});
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { useAsyncData } from '@redneckz/uni-jsx/lib/hooks/useAsyncData';
|
|
2
|
-
import { API_BASE_URI } from '../../api/apiBaseUrl';
|
|
3
|
-
import { fetchJSONUnsafe, type FetchJSONUnsafeType } from '../../utils/fetchJSON';
|
|
4
|
-
import { formatDate } from '../../utils/formatDate';
|
|
5
|
-
import { type DepositoryFiltrationState } from './Depository';
|
|
6
|
-
|
|
7
|
-
export interface DepositoryDataItem {
|
|
8
|
-
publicId?: number;
|
|
9
|
-
timestamp?: string;
|
|
10
|
-
title?: number;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
interface DepositoryData {
|
|
14
|
-
content?: DepositoryDataItem[];
|
|
15
|
-
totalPages?: number;
|
|
16
|
-
totalElements?: number;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
interface UseDepositoryParams extends DepositoryFiltrationState {
|
|
20
|
-
size: number;
|
|
21
|
-
page: number;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
const DEPOSITARY_URL = `${API_BASE_URI}/depository`;
|
|
25
|
-
|
|
26
|
-
export const useDepository = ({ size, page, query, startDate, endDate }: UseDepositoryParams) => {
|
|
27
|
-
const formatStartDate = startDate ? formatDate(startDate, true) : '';
|
|
28
|
-
const formatEndDate = endDate ? formatDate(endDate, true) : '';
|
|
29
|
-
|
|
30
|
-
const searchParams = new URLSearchParams(DEPOSITARY_URL);
|
|
31
|
-
|
|
32
|
-
searchParams.set('page', String(page));
|
|
33
|
-
searchParams.set('size', String(size));
|
|
34
|
-
searchParams.set('query', query);
|
|
35
|
-
searchParams.set('timestampStart', formatStartDate);
|
|
36
|
-
searchParams.set('timestampEnd', formatEndDate);
|
|
37
|
-
|
|
38
|
-
const queryString = `?${searchParams.toString()}`;
|
|
39
|
-
|
|
40
|
-
const { data } = useAsyncData(
|
|
41
|
-
DEPOSITARY_URL + queryString,
|
|
42
|
-
fetchJSONUnsafe as FetchJSONUnsafeType<DepositoryData>,
|
|
43
|
-
);
|
|
44
|
-
|
|
45
|
-
return { items: data?.content, totalPages: data?.totalPages };
|
|
46
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { Text } from '../Text/Text';
|
|
3
|
-
import { type UnitProps } from './UnitProps';
|
|
4
|
-
|
|
5
|
-
export const Unit = JSX<UnitProps>(({ prefix, unit, suffix }) => (
|
|
6
|
-
<div className="w-full flex items-end">
|
|
7
|
-
{prefix ? (
|
|
8
|
-
<div className="gradient-color-text">
|
|
9
|
-
<Text size="text-h2">{prefix}</Text>
|
|
10
|
-
</div>
|
|
11
|
-
) : null}
|
|
12
|
-
{unit ? (
|
|
13
|
-
// -mb-n добавлен для выравнивания unit относительно prefix и suffix, тк шрифт font-mohave неправильно высчитывает line-height
|
|
14
|
-
<div className="-mb-6 @xl:-mb-4">
|
|
15
|
-
<span className="font-mohave text-title-large sm:text-title-extra gradient-color-text">
|
|
16
|
-
{unit}
|
|
17
|
-
</span>
|
|
18
|
-
</div>
|
|
19
|
-
) : null}
|
|
20
|
-
{suffix ? (
|
|
21
|
-
<div className="gradient-color-text">
|
|
22
|
-
<Text size="text-h2">{suffix}</Text>
|
|
23
|
-
</div>
|
|
24
|
-
) : null}
|
|
25
|
-
</div>
|
|
26
|
-
));
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import '../../setup-fixture';
|
|
2
|
-
|
|
3
|
-
import { type LinkButtonProps } from '../../ui-kit/LinkButton/LinkButtonProps';
|
|
4
|
-
import { CarouselCard } from './CarouselCard';
|
|
5
|
-
import { type CarouselCardContent } from './CarouselCardContent';
|
|
6
|
-
|
|
7
|
-
const button: LinkButtonProps = {
|
|
8
|
-
text: 'Подробнее',
|
|
9
|
-
href: '/credit-cards',
|
|
10
|
-
version: 'primary',
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export const CARD: CarouselCardContent = {
|
|
14
|
-
title: 'Контакты и реквизиты',
|
|
15
|
-
description:
|
|
16
|
-
'АО «Россельхозбанк» занимает второе место в России по размеру филиальной сети — 66 филиалов во всех регионах страны',
|
|
17
|
-
button,
|
|
18
|
-
carouselVersion: 'normal',
|
|
19
|
-
version: 'primary',
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
export default {
|
|
23
|
-
default: (
|
|
24
|
-
<div className="@container container grid grid-cols-12">
|
|
25
|
-
<CarouselCard className="col-span-12" {...CARD} />
|
|
26
|
-
</div>
|
|
27
|
-
),
|
|
28
|
-
};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import '../../setup-fixture';
|
|
2
|
-
|
|
3
|
-
import { type LinkButtonProps } from '../../ui-kit/LinkButton/LinkButtonProps';
|
|
4
|
-
import { CarouselCard } from './CarouselCard';
|
|
5
|
-
import { type CarouselCardContent } from './CarouselCardContent';
|
|
6
|
-
|
|
7
|
-
const button: LinkButtonProps = {
|
|
8
|
-
text: 'Подробнее',
|
|
9
|
-
href: '/credit-cards',
|
|
10
|
-
version: 'secondary',
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export const CARD: CarouselCardContent = {
|
|
14
|
-
title: 'Хочешь попасть на практику в РСХБ?',
|
|
15
|
-
description: 'Стажировка в Россельхозбанке — это возможность реализовать смелые идеи и проекты.',
|
|
16
|
-
button,
|
|
17
|
-
carouselVersion: 'normal',
|
|
18
|
-
version: 'primary',
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export const CARD_NEW: CarouselCardContent = {
|
|
22
|
-
title: 'РСХБ?',
|
|
23
|
-
description: 'Стажировка в Россельхозбанке — это возможность реализовать смелые идеи и проекты.',
|
|
24
|
-
button,
|
|
25
|
-
carouselVersion: 'normal',
|
|
26
|
-
version: 'primary',
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
export const CARD_MINI: CarouselCardContent = {
|
|
30
|
-
title: 'Хочешь попасть на практику в РСХБ?',
|
|
31
|
-
description: 'Стажировка в Россельхозбанке — это возможность реализовать смелые идеи и проекты.',
|
|
32
|
-
button,
|
|
33
|
-
carouselVersion: 'small',
|
|
34
|
-
version: 'primary',
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
export default {
|
|
38
|
-
default: (
|
|
39
|
-
<div className="@container container grid grid-cols-12">
|
|
40
|
-
<CarouselCard className="col-span-12" {...CARD} />
|
|
41
|
-
</div>
|
|
42
|
-
),
|
|
43
|
-
new: (
|
|
44
|
-
<div className="@container container grid grid-cols-12">
|
|
45
|
-
<CarouselCard className="col-span-12" {...CARD_NEW} />
|
|
46
|
-
</div>
|
|
47
|
-
),
|
|
48
|
-
mini: (
|
|
49
|
-
<div className="@container container grid grid-cols-12">
|
|
50
|
-
<CarouselCard className="col-span-4" {...CARD_MINI} />
|
|
51
|
-
</div>
|
|
52
|
-
),
|
|
53
|
-
};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
3
|
-
import { renderButtonsSection } from '../../ui-kit/LinkButton/renderButtonsSection';
|
|
4
|
-
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
5
|
-
import { style } from '../../utils/style';
|
|
6
|
-
import { Headline } from '../Headline/Headline';
|
|
7
|
-
import { type CarouselCardContent } from './CarouselCardContent';
|
|
8
|
-
import { titleSize } from './titleSize';
|
|
9
|
-
|
|
10
|
-
export interface CarouselCardProps extends CarouselCardContent, UniBlockProps {}
|
|
11
|
-
|
|
12
|
-
const layerBaseStyle = 'z-10 border border-solid w-full h-full';
|
|
13
|
-
const layerStyle = style(layerBaseStyle, 'absolute hidden @xl:block border-transparent');
|
|
14
|
-
|
|
15
|
-
export const CarouselCard = JSX<CarouselCardProps>(
|
|
16
|
-
({ className, title, description, button, ...rest }) => (
|
|
17
|
-
<BlockWrapper
|
|
18
|
-
className={style('sm:pl-6xl sm:pb-4xl @container-normal', className)}
|
|
19
|
-
defaultPadding="p-0"
|
|
20
|
-
{...rest}
|
|
21
|
-
>
|
|
22
|
-
<div className="relative h-full">
|
|
23
|
-
<div className={style(layerStyle, 'top-9 right-12 bg-green-dark')} />
|
|
24
|
-
<div className={style(layerStyle, 'top-6 right-8 bg-green')} />
|
|
25
|
-
<div className={style(layerStyle, 'top-3 right-4 bg-green-light')} />
|
|
26
|
-
<div
|
|
27
|
-
className={style(
|
|
28
|
-
layerBaseStyle,
|
|
29
|
-
'relative p-xl sm:p-5xl bg-white border-transparent sm:border-green-more-light',
|
|
30
|
-
)}
|
|
31
|
-
>
|
|
32
|
-
<Headline
|
|
33
|
-
title={title}
|
|
34
|
-
description={description}
|
|
35
|
-
headlineVersion={titleSize}
|
|
36
|
-
align="text-left"
|
|
37
|
-
isEmbedded={true}
|
|
38
|
-
/>
|
|
39
|
-
{renderButtonsSection([button], {
|
|
40
|
-
className: 'mt-m sm:mt-6xl sm:justify-center',
|
|
41
|
-
isVertical: true,
|
|
42
|
-
})}
|
|
43
|
-
</div>
|
|
44
|
-
</div>
|
|
45
|
-
</BlockWrapper>
|
|
46
|
-
),
|
|
47
|
-
);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type HeadlineCommonProps } from '../../model/HeadlineType';
|
|
2
|
-
import { type SizeVersion } from '../../model/SizeVersion';
|
|
3
|
-
import { type LinkButtonContent } from '../../ui-kit/LinkButton/LinkButtonContent';
|
|
4
|
-
import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @title Карточка карусели
|
|
8
|
-
*/
|
|
9
|
-
export type CarouselCardContent = UniBlockContent &
|
|
10
|
-
HeadlineCommonProps & {
|
|
11
|
-
button?: LinkButtonContent;
|
|
12
|
-
carouselVersion?: SizeVersion;
|
|
13
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const titleSize = 'XS';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const titleSize = 'XS';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import '../../setup-fixture';
|
|
2
|
-
import { PopupManager } from '../../ui-kit/PopupManager/PopupManager';
|
|
3
|
-
import { Depository } from './Depository';
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
default: (
|
|
7
|
-
<div className="container grid grid-cols-12">
|
|
8
|
-
<Depository className="col-span-12" />
|
|
9
|
-
<PopupManager />
|
|
10
|
-
</div>
|
|
11
|
-
),
|
|
12
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import '../../setup-fixture';
|
|
2
|
-
import { PopupManager } from '../../ui-kit/PopupManager/PopupManager';
|
|
3
|
-
import { Depository } from './Depository';
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
default: (
|
|
7
|
-
<div className="container grid grid-cols-12">
|
|
8
|
-
<Depository className="col-span-12" />
|
|
9
|
-
<PopupManager />
|
|
10
|
-
</div>
|
|
11
|
-
),
|
|
12
|
-
};
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
|
-
import { useForm } from '../../hooks/useForm/useForm';
|
|
3
|
-
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
4
|
-
import { NotFound } from '../../ui-kit/NotFound/NotFound';
|
|
5
|
-
import { Pagination } from '../../ui-kit/Pagination/Pagination';
|
|
6
|
-
import { Text } from '../../ui-kit/Text/Text';
|
|
7
|
-
import { UniBlock } from '../../UniBlock/UniBlock';
|
|
8
|
-
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
9
|
-
import { style } from '../../utils/style';
|
|
10
|
-
import { type DepositoryContent } from './DepositoryContent';
|
|
11
|
-
import { DepositoryFilter } from './DepositoryFilter';
|
|
12
|
-
import { DepositoryItem } from './DepositoryItem';
|
|
13
|
-
import { useDepository } from './useDepository';
|
|
14
|
-
|
|
15
|
-
const DEFAULT_ITEMS_COUNT = 10;
|
|
16
|
-
|
|
17
|
-
const initialFiltrationState: DepositoryFiltrationState = {
|
|
18
|
-
startDate: undefined,
|
|
19
|
-
endDate: undefined,
|
|
20
|
-
query: '',
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
export interface DepositoryFiltrationState {
|
|
24
|
-
startDate: Date | undefined;
|
|
25
|
-
endDate: Date | undefined;
|
|
26
|
-
query: string;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
interface DepositoryProps extends DepositoryContent, UniBlockProps {}
|
|
30
|
-
|
|
31
|
-
export const Depository = UniBlock<DepositoryProps>(({ className, ...rest }) => {
|
|
32
|
-
const [currentPage, setCurrentPage] = useState(0);
|
|
33
|
-
const [itemCount, setItemCount] = useState(DEFAULT_ITEMS_COUNT);
|
|
34
|
-
const [filtrationState, { field, reset }] = useForm(initialFiltrationState);
|
|
35
|
-
|
|
36
|
-
const { totalPages = 0, items = [] } = useDepository({
|
|
37
|
-
size: itemCount,
|
|
38
|
-
page: currentPage,
|
|
39
|
-
...filtrationState,
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
const handleChangePage = useCallback((page: number) => setCurrentPage(page - 1), []);
|
|
43
|
-
|
|
44
|
-
const handleItemCountChange = useCallback((count: number) => {
|
|
45
|
-
if (itemCount !== count) {
|
|
46
|
-
setItemCount(count);
|
|
47
|
-
setCurrentPage(0);
|
|
48
|
-
} else {
|
|
49
|
-
setItemCount(count);
|
|
50
|
-
}
|
|
51
|
-
}, []);
|
|
52
|
-
|
|
53
|
-
return (
|
|
54
|
-
<BlockWrapper className={style(className, 'container p-6xl')} {...rest}>
|
|
55
|
-
<DepositoryFilter filtrationState={filtrationState} field={field} onClearFilter={reset} />
|
|
56
|
-
<div className="flex flex-col">
|
|
57
|
-
<div className="grid grid-cols-12 pb-lg border-gray border-opacity-50 border-b">
|
|
58
|
-
<div className="col-span-4 @lg:col-span-2 hidden @lg:block">
|
|
59
|
-
<Text size="text-m" color="text-secondary-text">
|
|
60
|
-
Дата
|
|
61
|
-
</Text>
|
|
62
|
-
</div>
|
|
63
|
-
<span className="col-span-8 @lg:col-span-10 hidden @lg:block">
|
|
64
|
-
<Text size="text-m" color="text-secondary-text">
|
|
65
|
-
Тема
|
|
66
|
-
</Text>
|
|
67
|
-
</span>
|
|
68
|
-
</div>
|
|
69
|
-
{items.length ? (
|
|
70
|
-
items.map((params) => <DepositoryItem key={String(params.publicId)} {...params} />)
|
|
71
|
-
) : (
|
|
72
|
-
<NotFound title="Ничего не найдено" description="Попробуйте очистить фильтры" />
|
|
73
|
-
)}
|
|
74
|
-
<Pagination
|
|
75
|
-
currentPage={currentPage + 1}
|
|
76
|
-
onPageChange={handleChangePage}
|
|
77
|
-
totalPages={totalPages}
|
|
78
|
-
itemCount={itemCount}
|
|
79
|
-
onItemCountChange={handleItemCountChange}
|
|
80
|
-
/>
|
|
81
|
-
</div>
|
|
82
|
-
</BlockWrapper>
|
|
83
|
-
);
|
|
84
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { type FormFieldRegisterer } from '../../hooks/useForm/useForm';
|
|
3
|
-
import { Button } from '../../ui-kit/Button/Button';
|
|
4
|
-
import { DatePicker } from '../../ui-kit/DatePicker/DatePicker';
|
|
5
|
-
import { SearchInput } from '../../ui-kit/SearchDialog/SearchInput';
|
|
6
|
-
import { type DepositoryFiltrationState } from './Depository';
|
|
7
|
-
|
|
8
|
-
interface DepositoryFilterProps {
|
|
9
|
-
filtrationState: DepositoryFiltrationState;
|
|
10
|
-
field: FormFieldRegisterer<any>;
|
|
11
|
-
onClearFilter: () => void;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export const DepositoryFilter = JSX<DepositoryFilterProps>(
|
|
15
|
-
({ field, onClearFilter, filtrationState }) => (
|
|
16
|
-
<div className="grid grid-cols-12 mb-3xl @lg:space-x-xl">
|
|
17
|
-
<SearchInput
|
|
18
|
-
className="col-span-12 @lg:col-span-4 mt-auto"
|
|
19
|
-
placeholder="Поиск"
|
|
20
|
-
{...field('query')}
|
|
21
|
-
/>
|
|
22
|
-
<DatePicker
|
|
23
|
-
className="col-span-12 @lg:col-span-3 mt-4 @lg:mt-0"
|
|
24
|
-
label="Период от"
|
|
25
|
-
maxDate={filtrationState.endDate}
|
|
26
|
-
{...field('startDate')}
|
|
27
|
-
/>
|
|
28
|
-
<DatePicker
|
|
29
|
-
className="col-span-12 @lg:col-span-3 mt-4 @lg:mt-0"
|
|
30
|
-
label="Период до"
|
|
31
|
-
minDate={filtrationState.startDate}
|
|
32
|
-
{...field('endDate')}
|
|
33
|
-
/>
|
|
34
|
-
<div className="col-span-12 @lg:col-span-2 mt-8 @lg:mt-auto">
|
|
35
|
-
<Button type="reset" className="w-full" version="secondary" onClick={onClearFilter}>
|
|
36
|
-
Очистить
|
|
37
|
-
</Button>
|
|
38
|
-
</div>
|
|
39
|
-
</div>
|
|
40
|
-
),
|
|
41
|
-
);
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { API_BASE_URI } from '../../api/apiBaseUrl';
|
|
3
|
-
import { useLink } from '../../hooks/useLink';
|
|
4
|
-
import { RoundedIcon } from '../../ui-kit/Icon/RoundedIcon';
|
|
5
|
-
import { Text } from '../../ui-kit/Text/Text';
|
|
6
|
-
import { formatDate } from '../../utils/formatDate';
|
|
7
|
-
import { type DepositoryDataItem } from './useDepository';
|
|
8
|
-
|
|
9
|
-
export const DepositoryItem = JSX(({ title, timestamp, publicId }: DepositoryDataItem) => {
|
|
10
|
-
const link = useLink();
|
|
11
|
-
const { href } = link({ href: `${API_BASE_URI}/depository/${publicId}/file` });
|
|
12
|
-
|
|
13
|
-
return (
|
|
14
|
-
<div
|
|
15
|
-
className="flex gap-3 items-center py-lg border-gray border-opacity-50 border-b"
|
|
16
|
-
key={publicId}
|
|
17
|
-
>
|
|
18
|
-
<RoundedIcon className="shrink-0" icon="DocDownloadIcon" iconVersion="black" />
|
|
19
|
-
<div className="flex flex-col gap-x-6xl lg:flex-row lg:items-center">
|
|
20
|
-
{timestamp ? (
|
|
21
|
-
<Text size="text-m" font-weight="font-light">
|
|
22
|
-
{formatDate(timestamp)}
|
|
23
|
-
</Text>
|
|
24
|
-
) : null}
|
|
25
|
-
<a className="text-h6 hover:text-primary-active" href={href} download aria-label="Скачать">
|
|
26
|
-
{title}
|
|
27
|
-
</a>
|
|
28
|
-
</div>
|
|
29
|
-
</div>
|
|
30
|
-
);
|
|
31
|
-
});
|