@redneckz/wildless-cms-uni-blocks 0.4.6 → 0.4.7
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 +189 -196
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/BlockContent.d.ts +3 -1
- package/dist/components/Blocks.d.ts +2 -0
- package/dist/components/Blocks.js +5 -1
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Calculator/BonusCalculatorForm.js +1 -1
- package/dist/components/Calculator/Calculator.js +6 -4
- package/dist/components/Calculator/Calculator.js.map +1 -1
- package/dist/components/Calculator/CalculatorContent.d.ts +7 -6
- package/dist/components/Calculator/CalculatorValueBlock.js +1 -1
- package/dist/components/Calculator/CalculatorValueBlock.js.map +1 -1
- package/dist/components/Calculator/CreditCalculatorForm.js +1 -1
- package/dist/components/Calculator/MortgageCalculatorForm.js +1 -3
- package/dist/components/Calculator/MortgageCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/Rate.js +1 -1
- package/dist/components/Calculator/Rate.js.map +1 -1
- package/dist/components/Calculator/renderCalculatorBlock.js +2 -1
- package/dist/components/Calculator/renderCalculatorBlock.js.map +1 -1
- package/dist/components/Calculator/renderInitialFeeInput.js +1 -1
- package/dist/components/Calculator/renderMonthsInput.js +1 -1
- package/dist/components/Calculator/renderProposalMortgage.js +2 -1
- package/dist/components/Calculator/renderProposalMortgage.js.map +1 -1
- package/dist/components/ErrorBlock/ErrorBlock.d.ts +5 -0
- package/dist/components/ErrorBlock/ErrorBlock.js +23 -0
- package/dist/components/ErrorBlock/ErrorBlock.js.map +1 -0
- package/dist/components/ErrorBlock/ErrorBlockContent.d.ts +35 -0
- package/dist/components/ErrorBlock/ErrorBlockContent.js +2 -0
- package/dist/components/ErrorBlock/ErrorBlockContent.js.map +1 -0
- package/dist/components/OfficeServicesBlock/OfficeServicesBlock.d.ts +5 -0
- package/dist/components/OfficeServicesBlock/OfficeServicesBlock.js +12 -0
- package/dist/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -0
- package/dist/components/OfficeServicesBlock/OfficeServicesBlockContent.d.ts +24 -0
- package/dist/components/OfficeServicesBlock/OfficeServicesBlockContent.js +2 -0
- package/dist/components/OfficeServicesBlock/OfficeServicesBlockContent.js.map +1 -0
- package/dist/components/PictureText/PictureText.js +4 -4
- package/dist/components/PictureText/PictureText.js.map +1 -1
- package/dist/components/SafeDepositRental/RegionsAndBranches.d.ts +12 -0
- package/dist/components/SafeDepositRental/RegionsAndBranches.js +9 -0
- package/dist/components/SafeDepositRental/RegionsAndBranches.js.map +1 -0
- package/dist/components/SafeDepositRental/RenderRadioButtons.d.ts +2 -0
- package/dist/components/SafeDepositRental/RenderRadioButtons.js +12 -0
- package/dist/components/SafeDepositRental/RenderRadioButtons.js.map +1 -0
- package/dist/components/SafeDepositRental/RentalPeriod.d.ts +6 -0
- package/dist/components/SafeDepositRental/RentalPeriod.js +10 -0
- package/dist/components/SafeDepositRental/RentalPeriod.js.map +1 -0
- package/dist/components/SafeDepositRental/SafeBoxCases.d.ts +11 -0
- package/dist/components/SafeDepositRental/SafeBoxCases.js +9 -0
- package/dist/components/SafeDepositRental/SafeBoxCases.js.map +1 -0
- package/dist/components/SafeDepositRental/SafeDepositRental.js +5 -71
- package/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalContent.d.ts +17 -0
- package/dist/components/SafeDepositRental/SafeDepositRentalForm.d.ts +5 -5
- package/dist/components/SafeDepositRental/SafeDepositRentalForm.js +51 -67
- package/dist/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalTotal.d.ts +5 -7
- package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +15 -10
- package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/dist/components/SafeDepositRental/WrapperSelect.d.ts +11 -0
- package/dist/components/SafeDepositRental/WrapperSelect.js +10 -0
- package/dist/components/SafeDepositRental/WrapperSelect.js.map +1 -0
- package/dist/components/SafeDepositRental/fetchBranches.d.ts +2 -0
- package/dist/components/SafeDepositRental/fetchBranches.js +20 -0
- package/dist/components/SafeDepositRental/fetchBranches.js.map +1 -0
- package/dist/components/SafeDepositRental/useGetRegions.d.ts +6 -0
- package/dist/components/SafeDepositRental/useGetRegions.js +11 -0
- package/dist/components/SafeDepositRental/useGetRegions.js.map +1 -0
- package/dist/ui-kit/BenefitItem/BenefitItem.d.ts +1 -1
- package/dist/ui-kit/BenefitItem/BenefitItem.js +3 -2
- package/dist/ui-kit/BenefitItem/BenefitItem.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/Radio/Radio.js +1 -1
- package/dist/ui-kit/Radio/Radio.js.map +1 -1
- package/dist/ui-kit/Select/Select.js +1 -1
- package/dist/ui-kit/Select/Select.js.map +1 -1
- package/dist/ui-kit/Select/SelectOption.d.ts +1 -0
- package/dist/ui-kit/Select/SelectOption.js +2 -2
- package/dist/ui-kit/Select/SelectOption.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/BlockContent.d.ts +3 -1
- package/lib/components/Blocks.d.ts +2 -0
- package/lib/components/Blocks.js +5 -1
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Calculator/BonusCalculatorForm.js +1 -1
- package/lib/components/Calculator/Calculator.js +6 -4
- package/lib/components/Calculator/Calculator.js.map +1 -1
- package/lib/components/Calculator/CalculatorContent.d.ts +7 -6
- package/lib/components/Calculator/CalculatorValueBlock.js +1 -1
- package/lib/components/Calculator/CalculatorValueBlock.js.map +1 -1
- package/lib/components/Calculator/CreditCalculatorForm.js +1 -1
- package/lib/components/Calculator/MortgageCalculatorForm.js +1 -3
- package/lib/components/Calculator/MortgageCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/Rate.js +1 -1
- package/lib/components/Calculator/Rate.js.map +1 -1
- package/lib/components/Calculator/renderCalculatorBlock.js +3 -2
- package/lib/components/Calculator/renderCalculatorBlock.js.map +1 -1
- package/lib/components/Calculator/renderInitialFeeInput.js +1 -1
- package/lib/components/Calculator/renderMonthsInput.js +1 -1
- package/lib/components/Calculator/renderProposalMortgage.js +2 -1
- package/lib/components/Calculator/renderProposalMortgage.js.map +1 -1
- package/lib/components/ErrorBlock/ErrorBlock.d.ts +5 -0
- package/lib/components/ErrorBlock/ErrorBlock.fixture.d.ts +6 -0
- package/lib/components/ErrorBlock/ErrorBlock.js +21 -0
- package/lib/components/ErrorBlock/ErrorBlock.js.map +1 -0
- package/lib/components/ErrorBlock/ErrorBlockContent.d.ts +35 -0
- package/lib/components/ErrorBlock/ErrorBlockContent.js +2 -0
- package/lib/components/ErrorBlock/ErrorBlockContent.js.map +1 -0
- package/lib/components/OfficeServicesBlock/OfficeServicesBlock.d.ts +5 -0
- package/lib/components/OfficeServicesBlock/OfficeServicesBlock.fixture.d.ts +5 -0
- package/lib/components/OfficeServicesBlock/OfficeServicesBlock.js +10 -0
- package/lib/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -0
- package/lib/components/OfficeServicesBlock/OfficeServicesBlockContent.d.ts +24 -0
- package/lib/components/OfficeServicesBlock/OfficeServicesBlockContent.js +2 -0
- package/lib/components/OfficeServicesBlock/OfficeServicesBlockContent.js.map +1 -0
- package/lib/components/PictureText/PictureText.js +4 -4
- package/lib/components/PictureText/PictureText.js.map +1 -1
- package/lib/components/SafeDepositRental/RegionsAndBranches.d.ts +12 -0
- package/lib/components/SafeDepositRental/RegionsAndBranches.js +7 -0
- package/lib/components/SafeDepositRental/RegionsAndBranches.js.map +1 -0
- package/lib/components/SafeDepositRental/RenderRadioButtons.d.ts +2 -0
- package/lib/components/SafeDepositRental/RenderRadioButtons.js +10 -0
- package/lib/components/SafeDepositRental/RenderRadioButtons.js.map +1 -0
- package/lib/components/SafeDepositRental/RentalPeriod.d.ts +6 -0
- package/lib/components/SafeDepositRental/RentalPeriod.js +8 -0
- package/lib/components/SafeDepositRental/RentalPeriod.js.map +1 -0
- package/lib/components/SafeDepositRental/SafeBoxCases.d.ts +11 -0
- package/lib/components/SafeDepositRental/SafeBoxCases.js +7 -0
- package/lib/components/SafeDepositRental/SafeBoxCases.js.map +1 -0
- package/lib/components/SafeDepositRental/SafeDepositRental.js +5 -71
- package/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalContent.d.ts +17 -0
- package/lib/components/SafeDepositRental/SafeDepositRentalForm.d.ts +5 -5
- package/lib/components/SafeDepositRental/SafeDepositRentalForm.js +50 -65
- package/lib/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalTotal.d.ts +5 -7
- package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +15 -9
- package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/lib/components/SafeDepositRental/WrapperSelect.d.ts +11 -0
- package/lib/components/SafeDepositRental/WrapperSelect.js +8 -0
- package/lib/components/SafeDepositRental/WrapperSelect.js.map +1 -0
- package/lib/components/SafeDepositRental/fetchBranches.d.ts +2 -0
- package/lib/components/SafeDepositRental/fetchBranches.js +17 -0
- package/lib/components/SafeDepositRental/fetchBranches.js.map +1 -0
- package/lib/components/SafeDepositRental/useGetRegions.d.ts +6 -0
- package/lib/components/SafeDepositRental/useGetRegions.js +8 -0
- package/lib/components/SafeDepositRental/useGetRegions.js.map +1 -0
- package/lib/ui-kit/BenefitItem/BenefitItem.d.ts +1 -1
- package/lib/ui-kit/BenefitItem/BenefitItem.js +3 -2
- package/lib/ui-kit/BenefitItem/BenefitItem.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/Radio/Radio.js +1 -1
- package/lib/ui-kit/Radio/Radio.js.map +1 -1
- package/lib/ui-kit/Select/Select.js +1 -1
- package/lib/ui-kit/Select/Select.js.map +1 -1
- package/lib/ui-kit/Select/SelectOption.d.ts +1 -0
- package/lib/ui-kit/Select/SelectOption.js +2 -2
- package/lib/ui-kit/Select/SelectOption.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +6 -5
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/BlockContent.d.ts +3 -1
- package/mobile/dist/components/Calculator/BonusCalculatorForm.js +1 -1
- package/mobile/dist/components/Calculator/Calculator.js +6 -4
- package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
- package/mobile/dist/components/Calculator/CalculatorContent.d.ts +7 -6
- package/mobile/dist/components/Calculator/CalculatorValueBlock.js +1 -1
- package/mobile/dist/components/Calculator/CalculatorValueBlock.js.map +1 -1
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js +1 -1
- package/mobile/dist/components/Calculator/MortgageCalculatorForm.js +1 -3
- package/mobile/dist/components/Calculator/MortgageCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/Rate.js +1 -1
- package/mobile/dist/components/Calculator/Rate.js.map +1 -1
- package/mobile/dist/components/Calculator/renderCalculatorBlock.js +2 -1
- package/mobile/dist/components/Calculator/renderCalculatorBlock.js.map +1 -1
- package/mobile/dist/components/Calculator/renderInitialFeeInput.js +1 -1
- package/mobile/dist/components/Calculator/renderMonthsInput.js +1 -1
- package/mobile/dist/components/Calculator/renderProposalMortgage.js +2 -1
- package/mobile/dist/components/Calculator/renderProposalMortgage.js.map +1 -1
- package/mobile/dist/components/ErrorBlock/ErrorBlock.d.ts +5 -0
- package/mobile/dist/components/ErrorBlock/ErrorBlock.js +23 -0
- package/mobile/dist/components/ErrorBlock/ErrorBlock.js.map +1 -0
- package/mobile/dist/components/ErrorBlock/ErrorBlockContent.d.ts +35 -0
- package/mobile/dist/components/ErrorBlock/ErrorBlockContent.js +2 -0
- package/mobile/dist/components/ErrorBlock/ErrorBlockContent.js.map +1 -0
- package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.d.ts +5 -0
- package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.js +12 -0
- package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -0
- package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlockContent.d.ts +24 -0
- package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlockContent.js +2 -0
- package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlockContent.js.map +1 -0
- package/mobile/dist/components/PictureText/PictureText.js +4 -4
- package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/RegionsAndBranches.d.ts +12 -0
- package/mobile/dist/components/SafeDepositRental/RegionsAndBranches.js +9 -0
- package/mobile/dist/components/SafeDepositRental/RegionsAndBranches.js.map +1 -0
- package/mobile/dist/components/SafeDepositRental/RenderRadioButtons.d.ts +2 -0
- package/mobile/dist/components/SafeDepositRental/RenderRadioButtons.js +12 -0
- package/mobile/dist/components/SafeDepositRental/RenderRadioButtons.js.map +1 -0
- package/mobile/dist/components/SafeDepositRental/RentalPeriod.d.ts +6 -0
- package/mobile/dist/components/SafeDepositRental/RentalPeriod.js +10 -0
- package/mobile/dist/components/SafeDepositRental/RentalPeriod.js.map +1 -0
- package/mobile/dist/components/SafeDepositRental/SafeBoxCases.d.ts +11 -0
- package/mobile/dist/components/SafeDepositRental/SafeBoxCases.js +9 -0
- package/mobile/dist/components/SafeDepositRental/SafeBoxCases.js.map +1 -0
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js +5 -71
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalContent.d.ts +17 -0
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.d.ts +5 -5
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.js +51 -67
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.d.ts +5 -7
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +15 -10
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/WrapperSelect.d.ts +11 -0
- package/mobile/dist/components/SafeDepositRental/WrapperSelect.js +10 -0
- package/mobile/dist/components/SafeDepositRental/WrapperSelect.js.map +1 -0
- package/mobile/dist/components/SafeDepositRental/fetchBranches.d.ts +2 -0
- package/mobile/dist/components/SafeDepositRental/fetchBranches.js +20 -0
- package/mobile/dist/components/SafeDepositRental/fetchBranches.js.map +1 -0
- package/mobile/dist/components/SafeDepositRental/useGetRegions.d.ts +6 -0
- package/mobile/dist/components/SafeDepositRental/useGetRegions.js +11 -0
- package/mobile/dist/components/SafeDepositRental/useGetRegions.js.map +1 -0
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.d.ts +1 -1
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js +3 -2
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.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/Radio/Radio.js +1 -1
- package/mobile/dist/ui-kit/Radio/Radio.js.map +1 -1
- package/mobile/dist/ui-kit/Select/Select.js +1 -1
- package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
- package/mobile/dist/ui-kit/Select/SelectOption.d.ts +1 -0
- package/mobile/dist/ui-kit/Select/SelectOption.js +2 -2
- package/mobile/dist/ui-kit/Select/SelectOption.js.map +1 -1
- package/mobile/lib/components/BlockContent.d.ts +3 -1
- package/mobile/lib/components/Calculator/BonusCalculatorForm.js +1 -1
- package/mobile/lib/components/Calculator/Calculator.js +6 -4
- package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
- package/mobile/lib/components/Calculator/CalculatorContent.d.ts +7 -6
- package/mobile/lib/components/Calculator/CalculatorValueBlock.js +1 -1
- package/mobile/lib/components/Calculator/CalculatorValueBlock.js.map +1 -1
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js +1 -1
- package/mobile/lib/components/Calculator/MortgageCalculatorForm.js +1 -3
- package/mobile/lib/components/Calculator/MortgageCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/Rate.js +1 -1
- package/mobile/lib/components/Calculator/Rate.js.map +1 -1
- package/mobile/lib/components/Calculator/renderCalculatorBlock.js +3 -2
- package/mobile/lib/components/Calculator/renderCalculatorBlock.js.map +1 -1
- package/mobile/lib/components/Calculator/renderInitialFeeInput.js +1 -1
- package/mobile/lib/components/Calculator/renderMonthsInput.js +1 -1
- package/mobile/lib/components/Calculator/renderProposalMortgage.js +2 -1
- package/mobile/lib/components/Calculator/renderProposalMortgage.js.map +1 -1
- package/mobile/lib/components/ErrorBlock/ErrorBlock.d.ts +5 -0
- package/mobile/lib/components/ErrorBlock/ErrorBlock.js +21 -0
- package/mobile/lib/components/ErrorBlock/ErrorBlock.js.map +1 -0
- package/mobile/lib/components/ErrorBlock/ErrorBlockContent.d.ts +35 -0
- package/mobile/lib/components/ErrorBlock/ErrorBlockContent.js +2 -0
- package/mobile/lib/components/ErrorBlock/ErrorBlockContent.js.map +1 -0
- package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.d.ts +5 -0
- package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.js +10 -0
- package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -0
- package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlockContent.d.ts +24 -0
- package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlockContent.js +2 -0
- package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlockContent.js.map +1 -0
- package/mobile/lib/components/PictureText/PictureText.js +4 -4
- package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/RegionsAndBranches.d.ts +12 -0
- package/mobile/lib/components/SafeDepositRental/RegionsAndBranches.js +7 -0
- package/mobile/lib/components/SafeDepositRental/RegionsAndBranches.js.map +1 -0
- package/mobile/lib/components/SafeDepositRental/RenderRadioButtons.d.ts +2 -0
- package/mobile/lib/components/SafeDepositRental/RenderRadioButtons.js +10 -0
- package/mobile/lib/components/SafeDepositRental/RenderRadioButtons.js.map +1 -0
- package/mobile/lib/components/SafeDepositRental/RentalPeriod.d.ts +6 -0
- package/mobile/lib/components/SafeDepositRental/RentalPeriod.js +8 -0
- package/mobile/lib/components/SafeDepositRental/RentalPeriod.js.map +1 -0
- package/mobile/lib/components/SafeDepositRental/SafeBoxCases.d.ts +11 -0
- package/mobile/lib/components/SafeDepositRental/SafeBoxCases.js +7 -0
- package/mobile/lib/components/SafeDepositRental/SafeBoxCases.js.map +1 -0
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js +5 -71
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalContent.d.ts +17 -0
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.d.ts +5 -5
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.js +50 -65
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.d.ts +5 -7
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +15 -9
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/WrapperSelect.d.ts +11 -0
- package/mobile/lib/components/SafeDepositRental/WrapperSelect.js +8 -0
- package/mobile/lib/components/SafeDepositRental/WrapperSelect.js.map +1 -0
- package/mobile/lib/components/SafeDepositRental/fetchBranches.d.ts +2 -0
- package/mobile/lib/components/SafeDepositRental/fetchBranches.js +17 -0
- package/mobile/lib/components/SafeDepositRental/fetchBranches.js.map +1 -0
- package/mobile/lib/components/SafeDepositRental/useGetRegions.d.ts +6 -0
- package/mobile/lib/components/SafeDepositRental/useGetRegions.js +8 -0
- package/mobile/lib/components/SafeDepositRental/useGetRegions.js.map +1 -0
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.d.ts +1 -1
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js +3 -2
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.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/Radio/Radio.js +1 -1
- package/mobile/lib/ui-kit/Radio/Radio.js.map +1 -1
- package/mobile/lib/ui-kit/Select/Select.js +1 -1
- package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/lib/ui-kit/Select/SelectOption.d.ts +1 -0
- package/mobile/lib/ui-kit/Select/SelectOption.js +2 -2
- package/mobile/lib/ui-kit/Select/SelectOption.js.map +1 -1
- package/mobile/src/common.css +1 -1
- package/mobile/src/components/BlockContent.ts +5 -1
- package/mobile/src/components/Calculator/BonusCalculatorForm.tsx +1 -1
- package/mobile/src/components/Calculator/Calculator.tsx +6 -4
- package/mobile/src/components/Calculator/CalculatorContent.ts +11 -6
- package/mobile/src/components/Calculator/CalculatorValueBlock.tsx +1 -1
- package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +1 -1
- package/mobile/src/components/Calculator/MortgageCalculatorForm.tsx +2 -8
- package/mobile/src/components/Calculator/Rate.tsx +3 -3
- package/mobile/src/components/Calculator/renderCalculatorBlock.tsx +2 -0
- package/mobile/src/components/Calculator/renderInitialFeeInput.tsx +1 -1
- package/mobile/src/components/Calculator/renderMonthsInput.tsx +1 -1
- package/mobile/src/components/Calculator/renderProposalMortgage.tsx +7 -2
- package/mobile/src/components/ErrorBlock/ErrorBlock.example.json +13 -0
- package/mobile/src/components/ErrorBlock/ErrorBlock.tsx +45 -0
- package/mobile/src/components/ErrorBlock/ErrorBlockContent.ts +38 -0
- package/mobile/src/components/OfficeServicesBlock/OfficeServicesBlock.example.json +33 -0
- package/mobile/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +41 -0
- package/mobile/src/components/OfficeServicesBlock/OfficeServicesBlockContent.ts +26 -0
- package/mobile/src/components/PictureText/PictureText.tsx +6 -6
- package/mobile/src/components/SafeDepositRental/RegionsAndBranches.tsx +50 -0
- package/mobile/src/components/SafeDepositRental/RenderRadioButtons.tsx +29 -0
- package/mobile/src/components/SafeDepositRental/RentalPeriod.tsx +18 -0
- package/mobile/src/components/SafeDepositRental/SafeBoxCases.tsx +48 -0
- package/mobile/src/components/SafeDepositRental/SafeDepositRental.tsx +8 -78
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalContent.ts +21 -0
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalForm.tsx +86 -143
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +23 -15
- package/mobile/src/components/SafeDepositRental/WrapperSelect.tsx +45 -0
- package/mobile/src/components/SafeDepositRental/fetchBranches.ts +21 -0
- package/mobile/src/components/SafeDepositRental/useGetRegions.ts +16 -0
- package/mobile/src/components/__snapshots__/Blocks.spec.tsx.snap +38 -65
- package/mobile/src/ui-kit/BenefitItem/BenefitItem.tsx +12 -9
- package/mobile/src/ui-kit/InputRange/InputRange.tsx +1 -1
- package/mobile/src/ui-kit/Radio/Radio.tsx +1 -1
- package/mobile/src/ui-kit/Select/Select.tsx +1 -0
- package/mobile/src/ui-kit/Select/SelectOption.tsx +3 -2
- package/package.json +1 -1
- package/src/common.css +1 -1
- package/src/components/BlockContent.ts +5 -1
- package/src/components/Blocks.ts +5 -1
- package/src/components/Calculator/BonusCalculatorForm.tsx +1 -1
- package/src/components/Calculator/Calculator.fixture.tsx +1 -0
- package/src/components/Calculator/Calculator.tsx +6 -4
- package/src/components/Calculator/CalculatorContent.ts +11 -6
- package/src/components/Calculator/CalculatorValueBlock.tsx +1 -1
- package/src/components/Calculator/CreditCalculatorForm.tsx +1 -1
- package/src/components/Calculator/MortgageCalculatorForm.tsx +2 -8
- package/src/components/Calculator/Rate.tsx +3 -3
- package/src/components/Calculator/renderCalculatorBlock.tsx +2 -0
- package/src/components/Calculator/renderInitialFeeInput.tsx +1 -1
- package/src/components/Calculator/renderMonthsInput.tsx +1 -1
- package/src/components/Calculator/renderProposalMortgage.tsx +7 -2
- package/src/components/ErrorBlock/ErrorBlock.example.json +13 -0
- package/src/components/ErrorBlock/ErrorBlock.fixture.tsx +53 -0
- package/src/components/ErrorBlock/ErrorBlock.tsx +45 -0
- package/src/components/ErrorBlock/ErrorBlockContent.ts +38 -0
- package/src/components/OfficeServicesBlock/OfficeServicesBlock.example.json +33 -0
- package/src/components/OfficeServicesBlock/OfficeServicesBlock.fixture.tsx +44 -0
- package/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +41 -0
- package/src/components/OfficeServicesBlock/OfficeServicesBlockContent.ts +26 -0
- package/src/components/PictureText/PictureText.fixture.tsx +1 -1
- package/src/components/PictureText/PictureText.tsx +6 -6
- package/src/components/SafeDepositRental/RegionsAndBranches.tsx +50 -0
- package/src/components/SafeDepositRental/RenderRadioButtons.tsx +29 -0
- package/src/components/SafeDepositRental/RentalPeriod.tsx +18 -0
- package/src/components/SafeDepositRental/SafeBoxCases.tsx +48 -0
- package/src/components/SafeDepositRental/SafeDepositRental.fixture.tsx +1 -0
- package/src/components/SafeDepositRental/SafeDepositRental.tsx +8 -78
- package/src/components/SafeDepositRental/SafeDepositRentalContent.ts +21 -0
- package/src/components/SafeDepositRental/SafeDepositRentalForm.tsx +86 -143
- package/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +23 -15
- package/src/components/SafeDepositRental/WrapperSelect.tsx +45 -0
- package/src/components/SafeDepositRental/fetchBranches.ts +21 -0
- package/src/components/SafeDepositRental/useGetRegions.ts +16 -0
- package/src/components/__snapshots__/Blocks.spec.tsx.snap +38 -65
- package/src/ui-kit/BenefitItem/BenefitItem.tsx +12 -9
- package/src/ui-kit/InputRange/InputRange.tsx +1 -1
- package/src/ui-kit/Radio/Radio.tsx +1 -1
- package/src/ui-kit/Select/Select.tsx +1 -0
- package/src/ui-kit/Select/SelectOption.tsx +3 -2
- package/mobile/src/components/SafeDepositRental/SafeDepositRental.example.json +0 -3
- package/src/components/SafeDepositRental/SafeDepositRental.example.json +0 -3
|
@@ -39,7 +39,7 @@ export const BonusCalculatorForm = JSX<BonusCalculatorProps>(
|
|
|
39
39
|
{renderWantedSumInput(
|
|
40
40
|
'Сумма покупок в остальных категориях, ₽',
|
|
41
41
|
{
|
|
42
|
-
className: 'mt-
|
|
42
|
+
className: 'mt-7',
|
|
43
43
|
minSum: minSumOther,
|
|
44
44
|
maxSum: maxSumOther,
|
|
45
45
|
moneyValue: restExpenseValue,
|
|
@@ -75,9 +75,11 @@ function renderNavButton({ tab, i, activeSlideIndex, onClick }: NavButtonProps)
|
|
|
75
75
|
|
|
76
76
|
const btnClassName = isActiveBtn
|
|
77
77
|
? 'h-[88px] w-[387px] min-w-[387px] p-5 border-none bg-primary-main text-white'
|
|
78
|
-
: `h-[77px] w-[
|
|
78
|
+
: `h-[77px] w-[328px] min-w-[328px] px-5 py-4 ease-in duration-300 bg-white text-primary-text`;
|
|
79
79
|
const btnTitleClassName = isActiveBtn ? 'text-xl mb-1.5' : `text-l mb-[3px]`;
|
|
80
|
-
const btnDescClassName = isActiveBtn
|
|
80
|
+
const btnDescClassName = isActiveBtn
|
|
81
|
+
? 'text-l-light text-white'
|
|
82
|
+
: `text-m-light text-secondary-text`;
|
|
81
83
|
const iconClassName = isActiveBtn ? '' : `text-primary-main`;
|
|
82
84
|
|
|
83
85
|
return (
|
|
@@ -86,7 +88,7 @@ function renderNavButton({ tab, i, activeSlideIndex, onClick }: NavButtonProps)
|
|
|
86
88
|
key={String(i)}
|
|
87
89
|
onClick={onClick}
|
|
88
90
|
aria-label={tab?.title}
|
|
89
|
-
className={`box-border
|
|
91
|
+
className={`box-border relative border border-main-stroke cursor-pointer text-left border-b-0 flex hover:h-[88px]
|
|
90
92
|
${btnClassName}`}
|
|
91
93
|
>
|
|
92
94
|
<Img
|
|
@@ -98,7 +100,7 @@ function renderNavButton({ tab, i, activeSlideIndex, onClick }: NavButtonProps)
|
|
|
98
100
|
/>
|
|
99
101
|
<div className="border-0">
|
|
100
102
|
<div className={`${btnTitleClassName}`}>{tab?.title}</div>
|
|
101
|
-
<div className={
|
|
103
|
+
<div className={`${btnDescClassName}`}>{tab.description}</div>
|
|
102
104
|
</div>
|
|
103
105
|
</button>
|
|
104
106
|
);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { EmptyOption } from '../../model/EmptyOptionType';
|
|
2
2
|
import type { Picture } from '../../model/Picture';
|
|
3
3
|
import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
|
|
4
|
+
import type { TitleProps } from '../../model/HeadlineType';
|
|
4
5
|
|
|
5
6
|
export interface CommonCalculatorProps {
|
|
6
7
|
/** @title Кнопки */
|
|
@@ -115,7 +116,8 @@ export interface CalculatorParams {
|
|
|
115
116
|
* @title Кредитный калькулятор
|
|
116
117
|
* @default {"calcType": "CreditCalculatorForm"}
|
|
117
118
|
*/
|
|
118
|
-
export type CreditCalculatorParamsDef =
|
|
119
|
+
export type CreditCalculatorParamsDef = TitleProps &
|
|
120
|
+
CreditCalculatorParams &
|
|
119
121
|
CommonCalculatorProps & {
|
|
120
122
|
calcType: 'CreditCalculatorForm';
|
|
121
123
|
};
|
|
@@ -124,7 +126,8 @@ export type CreditCalculatorParamsDef = CreditCalculatorParams &
|
|
|
124
126
|
* @title Ипотечный калькулятор
|
|
125
127
|
* @default {"calcType": "MortgageCalculatorForm"}
|
|
126
128
|
*/
|
|
127
|
-
export type MortgageCalculatorParamsDef =
|
|
129
|
+
export type MortgageCalculatorParamsDef = TitleProps &
|
|
130
|
+
MortgageCalculatorParams &
|
|
128
131
|
CommonCalculatorProps & {
|
|
129
132
|
calcType: 'MortgageCalculatorForm';
|
|
130
133
|
};
|
|
@@ -133,7 +136,8 @@ export type MortgageCalculatorParamsDef = MortgageCalculatorParams &
|
|
|
133
136
|
* @title Калькулятор вкладов
|
|
134
137
|
* @default {"calcType": "DepositCalculatorForm"}
|
|
135
138
|
*/
|
|
136
|
-
export type DepositCalculatorParamsDef =
|
|
139
|
+
export type DepositCalculatorParamsDef = TitleProps &
|
|
140
|
+
DepositCalculatorParams &
|
|
137
141
|
CommonCalculatorProps & {
|
|
138
142
|
calcType: 'DepositCalculatorForm';
|
|
139
143
|
};
|
|
@@ -142,7 +146,8 @@ export type DepositCalculatorParamsDef = DepositCalculatorParams &
|
|
|
142
146
|
* @title Калькулятор бонусов
|
|
143
147
|
* @default {"calcType": "BonusCalculatorForm"}
|
|
144
148
|
*/
|
|
145
|
-
export type BonusCalculatorParamsDef =
|
|
149
|
+
export type BonusCalculatorParamsDef = TitleProps &
|
|
150
|
+
BonusCalculatorParams &
|
|
146
151
|
CommonCalculatorProps & {
|
|
147
152
|
calcType: 'BonusCalculatorForm';
|
|
148
153
|
};
|
|
@@ -171,10 +176,10 @@ export interface CalculatorNav {
|
|
|
171
176
|
/**
|
|
172
177
|
* @title Вкладка
|
|
173
178
|
*/
|
|
174
|
-
export
|
|
179
|
+
export type CalculatorTab = TitleProps & {
|
|
175
180
|
nav?: CalculatorNav;
|
|
176
181
|
calculatorBlock?: CalculatorBlockDef;
|
|
177
|
-
}
|
|
182
|
+
};
|
|
178
183
|
|
|
179
184
|
/**
|
|
180
185
|
* @title Калькулятор
|
|
@@ -13,7 +13,7 @@ export const CalculatorValueBlock = JSX<CalculatorValueBlockProps>(
|
|
|
13
13
|
({ title, value, postfix = '', prefix, className = '' }) => {
|
|
14
14
|
return (
|
|
15
15
|
<div className={`mb-5 ${className}`}>
|
|
16
|
-
{title ? <div className="text-l-light">{title}</div> : null}
|
|
16
|
+
{title ? <div className="text-l-light text-secondary-text">{title}</div> : null}
|
|
17
17
|
{value ? (
|
|
18
18
|
<div className="text-h3">
|
|
19
19
|
{prefix} {addSpacesBetweenNumbers(Math.round(value))} {postfix}
|
|
@@ -55,7 +55,7 @@ export const CreditCalculatorForm = JSX<CreditCalculatorProp>(
|
|
|
55
55
|
setMoneyValue,
|
|
56
56
|
)}
|
|
57
57
|
{renderMonthsInput('Срок кредита, месяцев', calculatorParams, setMonthsValue)}
|
|
58
|
-
<div className="
|
|
58
|
+
<div className="mt-7">
|
|
59
59
|
<Checkbox
|
|
60
60
|
text="Получаю зарплату на счёт в Россельхозбанке"
|
|
61
61
|
checked={isSalaryClient}
|
|
@@ -32,8 +32,6 @@ export const MortgageCalculatorForm = JSX<MortgageCalculatorProp>(
|
|
|
32
32
|
const maxMonths = /* calculatorParams?.maxMonths || */ DEFAULT_MAX_MONTHS;
|
|
33
33
|
|
|
34
34
|
const rate = getCreditRate({ calculatorParams, isInsurance: isInsurance });
|
|
35
|
-
|
|
36
|
-
const monthlyPayment = 777777; // TODO: hardcode
|
|
37
35
|
const proposalMortgageValue = { credit: 3892000, period: 15, taxRefund: 650000 }; // TODO: hardcode
|
|
38
36
|
|
|
39
37
|
return (
|
|
@@ -60,17 +58,13 @@ export const MortgageCalculatorForm = JSX<MortgageCalculatorProp>(
|
|
|
60
58
|
<Checkbox text="Страхование жизни" checked={isInsurance} onChange={toggleIsInsurance} />
|
|
61
59
|
<Checkbox
|
|
62
60
|
className="mt-4"
|
|
63
|
-
text="Страхование жизни,
|
|
61
|
+
text="Страхование жизни, здоровья и временной утраты трудоспособности"
|
|
64
62
|
checked={isFullInsurance}
|
|
65
63
|
onChange={toggleIsFullInsurance}
|
|
66
64
|
/>
|
|
67
65
|
</div>
|
|
68
66
|
</div>
|
|
69
|
-
<
|
|
70
|
-
<Rate rate={rate} rateBlockClassName="tracking-[-25px]" unit="%" />
|
|
71
|
-
|
|
72
|
-
<CalculatorValueBlock title="Ежемесячный платеж" value={monthlyPayment} postfix="₽" />
|
|
73
|
-
</div>
|
|
67
|
+
<Rate rate={rate} rateBlockClassName="tracking-[-25px]" unit="%" />
|
|
74
68
|
<div>
|
|
75
69
|
<div className="w-[351px]">{renderProposalMortgage(proposalMortgageValue)}</div>
|
|
76
70
|
{renderButtonSection(context, buttons)}
|
|
@@ -9,14 +9,14 @@ export interface RateProps {
|
|
|
9
9
|
|
|
10
10
|
export const Rate = JSX<RateProps>(({ rate, title = 'Ставка', unit, rateBlockClassName }) => (
|
|
11
11
|
<div>
|
|
12
|
-
<div className="text-l-light
|
|
12
|
+
<div className="text-l-light text-secondary-text">{title}</div>
|
|
13
13
|
<div className="flex justify-start">
|
|
14
14
|
<span
|
|
15
|
-
className={`block
|
|
15
|
+
className={`block gradient-color-text font-mohave text-title-huge pr-6 -mt-4 ${rateBlockClassName}`}
|
|
16
16
|
>
|
|
17
17
|
{String(rate).replace('.', ',')}
|
|
18
18
|
</span>
|
|
19
|
-
{unit ? <span className="
|
|
19
|
+
{unit ? <span className="gradient-color-text text-[65px] leading-[75px]">{unit}</span> : ''}
|
|
20
20
|
</div>
|
|
21
21
|
</div>
|
|
22
22
|
));
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { JSXBlock } from '../ContentPage/ContentPage';
|
|
2
2
|
import type { CalculatorBlockDef } from './CalculatorContent';
|
|
3
3
|
import { EmbeddableCalcBlocks, EmbeddableCalcProps } from './EmbeddableCalcBlocks';
|
|
4
|
+
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
4
5
|
|
|
5
6
|
export const renderCalculatorBlock =
|
|
6
7
|
({ context, className }: any) =>
|
|
@@ -18,6 +19,7 @@ export const renderCalculatorBlock =
|
|
|
18
19
|
role="listitem"
|
|
19
20
|
>
|
|
20
21
|
<div className="box-border p-9 w-full">
|
|
22
|
+
{block?.title ? <Heading className="text-center mb-6" title={block.title} /> : null}
|
|
21
23
|
<EmbeddedBlock context={context} {...block} className="flex justify-between" />
|
|
22
24
|
</div>
|
|
23
25
|
</section>
|
|
@@ -6,11 +6,16 @@ type porposalMortgage = {
|
|
|
6
6
|
taxRefund: number;
|
|
7
7
|
};
|
|
8
8
|
|
|
9
|
+
const monthlyPayment = 777777; // TODO: hardcode
|
|
10
|
+
|
|
9
11
|
export function renderProposalMortgage({ credit, period, taxRefund }: porposalMortgage) {
|
|
10
12
|
return (
|
|
11
13
|
<div>
|
|
12
|
-
|
|
13
|
-
|
|
14
|
+
<div className="flex justify-between">
|
|
15
|
+
{<CalculatorValueBlock title="Сумма кредита" value={credit} postfix="₽" />}
|
|
16
|
+
{<CalculatorValueBlock title="Срок" value={period} postfix="лет" className="w-[120px]" />}
|
|
17
|
+
</div>
|
|
18
|
+
{<CalculatorValueBlock title="Ежемесячный платеж" value={monthlyPayment} postfix="₽" />}
|
|
14
19
|
{<CalculatorValueBlock title="Налоговый вычет" value={taxRefund} postfix="₽" />}
|
|
15
20
|
</div>
|
|
16
21
|
);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Страница не найдена",
|
|
3
|
+
"subtitle": "Возможно неправильно набран адрес или такой странице не существует",
|
|
4
|
+
"error": {
|
|
5
|
+
"errorContentType": "Code",
|
|
6
|
+
"code": 404
|
|
7
|
+
},
|
|
8
|
+
"button": {
|
|
9
|
+
"text": "Вернуться на главную",
|
|
10
|
+
"version": "primary",
|
|
11
|
+
"target": "_blank"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import type { UniBlockProps } from '../../types';
|
|
3
|
+
import type { ErrorBlockContent } from './ErrorBlockContent';
|
|
4
|
+
import { useLink } from '../../hooks/useLink';
|
|
5
|
+
import { Button } from '../../ui-kit/Button/Button';
|
|
6
|
+
import { Img } from '../../ui-kit/Img/Img';
|
|
7
|
+
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
8
|
+
|
|
9
|
+
export interface ErrorBlockProps extends ErrorBlockContent, UniBlockProps {}
|
|
10
|
+
|
|
11
|
+
const renderErrorContent = (error: ErrorBlockContent['error']) => {
|
|
12
|
+
if (error?.errorContentType === 'Image' && error?.image) {
|
|
13
|
+
return <Img className="mb-7" image={error.image} />;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
if (error?.errorContentType === 'Code' && error.code) {
|
|
17
|
+
return <div className="text-title-extra gradient-color-text">{error.code}</div>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
return null;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export const ErrorBlock = JSX<ErrorBlockProps>(
|
|
24
|
+
({ context, className = '', title, subtitle, error, button }) => {
|
|
25
|
+
const { useRouter, handlerDecorator } = context;
|
|
26
|
+
const router = useRouter();
|
|
27
|
+
|
|
28
|
+
return (
|
|
29
|
+
<section className={`flex flex-col justify-center items-center ${className}`} role="listitem">
|
|
30
|
+
<div className="flex justify-center mb-7">{renderErrorContent(error)}</div>
|
|
31
|
+
{title ? <Heading headingType="h1" className="text-left mb-4" title={title} /> : null}
|
|
32
|
+
{subtitle ? <div className="text-xl-light text-left mb-7">{subtitle}</div> : null}
|
|
33
|
+
{button?.text ? (
|
|
34
|
+
<Button
|
|
35
|
+
className="py-4 px-9"
|
|
36
|
+
version={button?.version}
|
|
37
|
+
{...useLink({ router, handlerDecorator }, button)}
|
|
38
|
+
>
|
|
39
|
+
{button.text}
|
|
40
|
+
</Button>
|
|
41
|
+
) : null}
|
|
42
|
+
</section>
|
|
43
|
+
);
|
|
44
|
+
},
|
|
45
|
+
);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { Picture } from '../../model/Picture';
|
|
2
|
+
import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
|
|
3
|
+
import type { EmptyOption } from '../../model/EmptyOptionType';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @title Изображение
|
|
7
|
+
*/
|
|
8
|
+
export type ErrorImageDef = {
|
|
9
|
+
/** @default Image */
|
|
10
|
+
errorContentType: 'Image';
|
|
11
|
+
/** @title Изображение */
|
|
12
|
+
image?: Picture;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @title Код ошибки
|
|
17
|
+
*/
|
|
18
|
+
export type ErrorCodeDef = {
|
|
19
|
+
/** @default Code */
|
|
20
|
+
errorContentType: 'Code';
|
|
21
|
+
/** @title Код ошибки */
|
|
22
|
+
code?: number;
|
|
23
|
+
};
|
|
24
|
+
export type ErrorContentDef = EmptyOption | ErrorImageDef | ErrorCodeDef;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @title Блок Ошибка
|
|
28
|
+
*/
|
|
29
|
+
export interface ErrorBlockContent {
|
|
30
|
+
/** @title Заголовок */
|
|
31
|
+
title?: string;
|
|
32
|
+
/** @title Описание */
|
|
33
|
+
subtitle?: string;
|
|
34
|
+
/** @title Вид контента */
|
|
35
|
+
error?: ErrorContentDef;
|
|
36
|
+
/** @title Кнопка */
|
|
37
|
+
button?: ButtonProps;
|
|
38
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Услуги",
|
|
3
|
+
"officesList": [
|
|
4
|
+
{
|
|
5
|
+
"text": "Обслуживание физических лиц",
|
|
6
|
+
"icon": { "icon": "CardTickIcon" }
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"text": "Обслуживание юридических лиц",
|
|
10
|
+
"icon": { "icon": "EmptyWalletChangeIcon" }
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"text": "Продажа монет из драгоценных металлов",
|
|
14
|
+
"icon": { "icon": "UserTickIcon" }
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"text": "Аренда индивидуальных сейфовых ячеек",
|
|
18
|
+
"icon": { "icon": "UserTickIcon" }
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"text": "Операции с обезличенными металлическими счетами",
|
|
22
|
+
"icon": { "icon": "ShieldTickIcon" }
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"text": "Операции со слитками драгоценных металлов",
|
|
26
|
+
"icon": { "icon": "ShieldTickIcon" }
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"text": "Передача фото и голоса в Единую биометрическую систему",
|
|
30
|
+
"icon": { "icon": "ShieldTickIcon" }
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import type { UniBlockProps } from '../../types';
|
|
3
|
+
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
4
|
+
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
5
|
+
import { Img } from '../../ui-kit/Img/Img';
|
|
6
|
+
import type {
|
|
7
|
+
OfficeServicesBlockContent,
|
|
8
|
+
OfficeServicesBlockList,
|
|
9
|
+
} from './OfficeServicesBlockContent';
|
|
10
|
+
|
|
11
|
+
export interface OfficeServicesBlockProps extends OfficeServicesBlockContent, UniBlockProps {}
|
|
12
|
+
|
|
13
|
+
export const OfficeServicesBlock = JSX<OfficeServicesBlockProps>(
|
|
14
|
+
({ className = '', context, title, officesList, anchor = '' }) => {
|
|
15
|
+
return (
|
|
16
|
+
<BlockWrapper
|
|
17
|
+
context={context}
|
|
18
|
+
id={anchor}
|
|
19
|
+
className={`font-sans bg-white p-12 flex flex-col ${className}`}
|
|
20
|
+
>
|
|
21
|
+
{title ? <Heading headingType="h5" className="mb-2.5" title={title} /> : null}
|
|
22
|
+
{officesList?.length ? officesList.map(renderListItems) : null}
|
|
23
|
+
</BlockWrapper>
|
|
24
|
+
);
|
|
25
|
+
},
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
const renderListItems = (itemList: OfficeServicesBlockList, i) => (
|
|
29
|
+
<li key={`list_item_${String(i)}`} className="flex mb-2.5 list-none">
|
|
30
|
+
{itemList.icon ? (
|
|
31
|
+
<Img
|
|
32
|
+
className="mr-[14px] max-w-6 max-h-6"
|
|
33
|
+
width="24px"
|
|
34
|
+
height="24px"
|
|
35
|
+
asSVG
|
|
36
|
+
image={itemList.icon}
|
|
37
|
+
/>
|
|
38
|
+
) : null}
|
|
39
|
+
{itemList.text ? <span className="text-l-light">{itemList.text}</span> : null}
|
|
40
|
+
</li>
|
|
41
|
+
);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { Picture } from '../../model/Picture';
|
|
2
|
+
|
|
3
|
+
export interface OfficeServicesBlockList {
|
|
4
|
+
/**
|
|
5
|
+
* @title Иконка
|
|
6
|
+
* @default {
|
|
7
|
+
* "size": {
|
|
8
|
+
* "width": 24,
|
|
9
|
+
* "height": 24
|
|
10
|
+
* },
|
|
11
|
+
* "format": "webp"
|
|
12
|
+
* }
|
|
13
|
+
*/
|
|
14
|
+
icon?: Picture;
|
|
15
|
+
text?: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @title Офисные услуги
|
|
20
|
+
*/
|
|
21
|
+
export interface OfficeServicesBlockContent {
|
|
22
|
+
/** @title Заголовок */
|
|
23
|
+
title?: string;
|
|
24
|
+
/** @title Список */
|
|
25
|
+
officesList?: OfficeServicesBlockList[];
|
|
26
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type { UniBlockProps } from '../../types';
|
|
3
|
-
import type { PictureTextContent } from './PictureTextContent';
|
|
4
2
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
|
+
import { VersionStyleMap } from '../../model/BlockVersion';
|
|
4
|
+
import type { UniBlockProps } from '../../types';
|
|
5
|
+
import { BenefitItem } from '../../ui-kit/BenefitItem/BenefitItem';
|
|
5
6
|
import type { BenefitItemProps } from '../../ui-kit/BenefitItem/BenefitItemProps';
|
|
6
7
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
7
8
|
import { Img } from '../../ui-kit/Img/Img';
|
|
8
|
-
import { BenefitItem } from '../../ui-kit/BenefitItem/BenefitItem';
|
|
9
|
-
import { Headline } from '../Headline/Headline';
|
|
10
9
|
import { addSpacesBetweenNumbers } from '../../utils/addSpacesBetweenNumbers';
|
|
11
|
-
import {
|
|
10
|
+
import { Headline } from '../Headline/Headline';
|
|
11
|
+
import type { PictureTextContent } from './PictureTextContent';
|
|
12
12
|
|
|
13
13
|
export interface PictureTextProps extends PictureTextContent, UniBlockProps {}
|
|
14
14
|
|
|
@@ -42,7 +42,7 @@ export const PictureText = JSX<PictureTextProps>(
|
|
|
42
42
|
align="center"
|
|
43
43
|
/>
|
|
44
44
|
<div className={'flex justify-center gap-[122px] mt-[30px]'}>
|
|
45
|
-
{image?.src
|
|
45
|
+
{image?.src ? <Img className={directionRight ? 'order-2' : ''} image={image} /> : null}
|
|
46
46
|
<div className="w-[558px] m-auto">
|
|
47
47
|
{benefits?.length ? (
|
|
48
48
|
<div className="flex flex-col gap-4">{benefits.map(renderBenefit(version))}</div>
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import type { Branch } from './SafeDepositRentalContent';
|
|
3
|
+
import { Region } from './useGetRegions';
|
|
4
|
+
import { WrapperSelect } from './WrapperSelect';
|
|
5
|
+
|
|
6
|
+
interface RegionsAndBranchesProps {
|
|
7
|
+
regions?: Region[];
|
|
8
|
+
selectedRegion: string;
|
|
9
|
+
onSelectedRegion: (value: string) => void;
|
|
10
|
+
branches?: Branch[];
|
|
11
|
+
selectedBranch: string;
|
|
12
|
+
onSelectedBranch: (value: string) => void;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const RegionsAndBranches = JSX<RegionsAndBranchesProps>(
|
|
16
|
+
({
|
|
17
|
+
regions = [],
|
|
18
|
+
selectedRegion,
|
|
19
|
+
onSelectedRegion: onSelectedRegion,
|
|
20
|
+
branches = [],
|
|
21
|
+
selectedBranch,
|
|
22
|
+
onSelectedBranch,
|
|
23
|
+
}) => {
|
|
24
|
+
return (
|
|
25
|
+
<div className="flex justify-between mb-6">
|
|
26
|
+
<div className="w-full mr-4">
|
|
27
|
+
<WrapperSelect
|
|
28
|
+
data={regions}
|
|
29
|
+
fieldValue="code"
|
|
30
|
+
fieldLabel="name"
|
|
31
|
+
selected={selectedRegion}
|
|
32
|
+
setSelected={onSelectedRegion}
|
|
33
|
+
label="Город"
|
|
34
|
+
/>
|
|
35
|
+
</div>
|
|
36
|
+
<div className="w-full">
|
|
37
|
+
<WrapperSelect
|
|
38
|
+
data={branches}
|
|
39
|
+
fieldValue="branchCode"
|
|
40
|
+
fieldLabel="address"
|
|
41
|
+
selected={selectedBranch}
|
|
42
|
+
setSelected={onSelectedBranch}
|
|
43
|
+
label="Отделение"
|
|
44
|
+
placeholder="Выберите отделение"
|
|
45
|
+
/>
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
);
|
|
49
|
+
},
|
|
50
|
+
);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useState } from '@redneckz/uni-jsx/lib/hooks/core';
|
|
3
|
+
import { Radio } from '../../ui-kit/Radio/Radio';
|
|
4
|
+
|
|
5
|
+
export const RenderRadioButtons = JSX(() => {
|
|
6
|
+
const [selectedOption, setSelectedOption] = useState('option1');
|
|
7
|
+
|
|
8
|
+
const onChange = (_: React.ChangeEvent<HTMLInputElement>) => setSelectedOption(_.target.value);
|
|
9
|
+
|
|
10
|
+
return (
|
|
11
|
+
<div>
|
|
12
|
+
<Radio
|
|
13
|
+
className="mb-2"
|
|
14
|
+
name="contractType"
|
|
15
|
+
text="Простое хранение"
|
|
16
|
+
value="option1"
|
|
17
|
+
checked={selectedOption === 'option1'}
|
|
18
|
+
onChange={onChange}
|
|
19
|
+
/>
|
|
20
|
+
<Radio
|
|
21
|
+
name="contractType"
|
|
22
|
+
text="Сделка с недвижимостью"
|
|
23
|
+
value="option2"
|
|
24
|
+
checked={selectedOption === 'option2'}
|
|
25
|
+
onChange={onChange}
|
|
26
|
+
/>
|
|
27
|
+
</div>
|
|
28
|
+
);
|
|
29
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { InputRange } from '../../ui-kit/InputRange/InputRange';
|
|
3
|
+
|
|
4
|
+
const ITEMS = ['От 1 дня', 'До 365 дней'];
|
|
5
|
+
const MIN = 1;
|
|
6
|
+
const MAX = 365;
|
|
7
|
+
|
|
8
|
+
interface RentalPeriodProps {
|
|
9
|
+
days: number;
|
|
10
|
+
setDays: (value: number) => void;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const RentalPeriod = JSX<RentalPeriodProps>(({ days, setDays }) => (
|
|
14
|
+
<div className="mb-6">
|
|
15
|
+
<span className="block text-m-light mb-[3px]">Срок аренды</span>
|
|
16
|
+
<InputRange min={MIN} max={MAX} value={days} items={ITEMS} onChange={setDays} />
|
|
17
|
+
</div>
|
|
18
|
+
));
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import type { SafeBoxCase, SafeBoxCaseVolume } from './SafeDepositRentalContent';
|
|
3
|
+
import { WrapperSelect } from './WrapperSelect';
|
|
4
|
+
|
|
5
|
+
interface SafeBoxCasesProps {
|
|
6
|
+
caseVolumes?: SafeBoxCaseVolume[];
|
|
7
|
+
selectedCaseVolume: string;
|
|
8
|
+
onSelectedCaseVolume: (value: string) => void;
|
|
9
|
+
safeBoxCases?: SafeBoxCase[];
|
|
10
|
+
selectedBoxSize: string;
|
|
11
|
+
onSelectedBoxSize: (value: string) => void;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const SafeBoxCases = JSX<SafeBoxCasesProps>(
|
|
15
|
+
({
|
|
16
|
+
caseVolumes = [],
|
|
17
|
+
selectedCaseVolume,
|
|
18
|
+
onSelectedCaseVolume,
|
|
19
|
+
safeBoxCases = [],
|
|
20
|
+
selectedBoxSize,
|
|
21
|
+
onSelectedBoxSize,
|
|
22
|
+
}) => {
|
|
23
|
+
return (
|
|
24
|
+
<div className="flex justify-between mb-6">
|
|
25
|
+
<div className="mr-4 w-full">
|
|
26
|
+
<WrapperSelect
|
|
27
|
+
data={caseVolumes}
|
|
28
|
+
fieldLabel="volume"
|
|
29
|
+
selected={selectedCaseVolume}
|
|
30
|
+
setSelected={onSelectedCaseVolume}
|
|
31
|
+
label="Размер"
|
|
32
|
+
placeholder="Выберите размер"
|
|
33
|
+
/>
|
|
34
|
+
</div>
|
|
35
|
+
<div className="w-full">
|
|
36
|
+
<WrapperSelect
|
|
37
|
+
data={safeBoxCases}
|
|
38
|
+
fieldLabel="safeBoxCasesSize"
|
|
39
|
+
selected={selectedBoxSize}
|
|
40
|
+
setSelected={onSelectedBoxSize}
|
|
41
|
+
label="Параметры ячейки, мм (ВхШхД)"
|
|
42
|
+
placeholder="Выберите параметр ячейки"
|
|
43
|
+
/>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
);
|
|
47
|
+
},
|
|
48
|
+
);
|