@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
|
@@ -145,6 +145,17 @@ exports[`Blocks ComparisonTable should render block "ComparisonTable" without co
|
|
|
145
145
|
</section>
|
|
146
146
|
`;
|
|
147
147
|
|
|
148
|
+
exports[`Blocks ErrorBlock should render block "ErrorBlock" without content 1`] = `
|
|
149
|
+
<section
|
|
150
|
+
class="flex flex-col justify-center items-center "
|
|
151
|
+
role="listitem"
|
|
152
|
+
>
|
|
153
|
+
<div
|
|
154
|
+
class="flex justify-center mb-7"
|
|
155
|
+
/>
|
|
156
|
+
</section>
|
|
157
|
+
`;
|
|
158
|
+
|
|
148
159
|
exports[`Blocks ExchangeRateTile should render block "ExchangeRateTile" without content 1`] = `
|
|
149
160
|
<section
|
|
150
161
|
class="bg-white text-primary-text font-sans p-9 box-border "
|
|
@@ -666,6 +677,12 @@ exports[`Blocks Navigation should render block "Navigation" without content 1`]
|
|
|
666
677
|
</section>
|
|
667
678
|
`;
|
|
668
679
|
|
|
680
|
+
exports[`Blocks OfficeServicesBlock should render block "OfficeServicesBlock" without content 1`] = `
|
|
681
|
+
<section
|
|
682
|
+
class="font-sans bg-white p-12 flex flex-col "
|
|
683
|
+
/>
|
|
684
|
+
`;
|
|
685
|
+
|
|
669
686
|
exports[`Blocks OtherProducts should render block "OtherProducts" without content 1`] = `
|
|
670
687
|
<section
|
|
671
688
|
class="font-sans text-primary-text "
|
|
@@ -869,20 +886,15 @@ exports[`Blocks SafeDepositRental should render block "SafeDepositRental" withou
|
|
|
869
886
|
Город
|
|
870
887
|
</span>
|
|
871
888
|
<select
|
|
872
|
-
class="appearance-none h-14 border border-gray p-4 rounded-md text-s w-full cursor-pointer"
|
|
889
|
+
class="appearance-none h-14 border border-gray p-4 rounded-md text-s w-full cursor-pointer text-secondary-text"
|
|
890
|
+
placeholder="12321321312"
|
|
873
891
|
style="background: url(/icons/ArrowDownIcon.svg) no-repeat 50%;"
|
|
874
892
|
>
|
|
875
893
|
<option
|
|
876
894
|
class=""
|
|
877
|
-
value="
|
|
895
|
+
value=""
|
|
878
896
|
>
|
|
879
|
-
|
|
880
|
-
</option>
|
|
881
|
-
<option
|
|
882
|
-
class=""
|
|
883
|
-
value="Краснодар"
|
|
884
|
-
>
|
|
885
|
-
Краснодар
|
|
897
|
+
Выберите значение
|
|
886
898
|
</option>
|
|
887
899
|
</select>
|
|
888
900
|
</div>
|
|
@@ -897,32 +909,15 @@ exports[`Blocks SafeDepositRental should render block "SafeDepositRental" withou
|
|
|
897
909
|
Отделение
|
|
898
910
|
</span>
|
|
899
911
|
<select
|
|
900
|
-
class="appearance-none h-14 border border-gray p-4 rounded-md text-s w-full cursor-pointer"
|
|
912
|
+
class="appearance-none h-14 border border-gray p-4 rounded-md text-s w-full cursor-pointer text-secondary-text"
|
|
913
|
+
placeholder="12321321312"
|
|
901
914
|
style="background: url(/icons/ArrowDownIcon.svg) no-repeat 50%;"
|
|
902
915
|
>
|
|
903
916
|
<option
|
|
904
917
|
class=""
|
|
905
|
-
value="
|
|
906
|
-
>
|
|
907
|
-
выберите отделение
|
|
908
|
-
</option>
|
|
909
|
-
<option
|
|
910
|
-
class=""
|
|
911
|
-
value="МоскваОфис1"
|
|
912
|
-
>
|
|
913
|
-
МоскваОфис1
|
|
914
|
-
</option>
|
|
915
|
-
<option
|
|
916
|
-
class=""
|
|
917
|
-
value="МоскваОфис2"
|
|
918
|
+
value=""
|
|
918
919
|
>
|
|
919
|
-
|
|
920
|
-
</option>
|
|
921
|
-
<option
|
|
922
|
-
class=""
|
|
923
|
-
value="МоскваОфис3"
|
|
924
|
-
>
|
|
925
|
-
МоскваОфис3
|
|
920
|
+
Выберите отделение
|
|
926
921
|
</option>
|
|
927
922
|
</select>
|
|
928
923
|
</div>
|
|
@@ -985,29 +980,18 @@ exports[`Blocks SafeDepositRental should render block "SafeDepositRental" withou
|
|
|
985
980
|
<span
|
|
986
981
|
class="block text-m-light mb-2"
|
|
987
982
|
>
|
|
988
|
-
Размер
|
|
983
|
+
Размер
|
|
989
984
|
</span>
|
|
990
985
|
<select
|
|
991
|
-
class="appearance-none h-14 border border-gray p-4 rounded-md text-s w-full cursor-pointer"
|
|
986
|
+
class="appearance-none h-14 border border-gray p-4 rounded-md text-s w-full cursor-pointer text-secondary-text"
|
|
987
|
+
placeholder="12321321312"
|
|
992
988
|
style="background: url(/icons/ArrowDownIcon.svg) no-repeat 50%;"
|
|
993
989
|
>
|
|
994
990
|
<option
|
|
995
991
|
class=""
|
|
996
|
-
value="
|
|
997
|
-
>
|
|
998
|
-
маленькая
|
|
999
|
-
</option>
|
|
1000
|
-
<option
|
|
1001
|
-
class=""
|
|
1002
|
-
value="средняя"
|
|
1003
|
-
>
|
|
1004
|
-
средняя
|
|
1005
|
-
</option>
|
|
1006
|
-
<option
|
|
1007
|
-
class=""
|
|
1008
|
-
value="большая"
|
|
992
|
+
value=""
|
|
1009
993
|
>
|
|
1010
|
-
|
|
994
|
+
Выберите размер
|
|
1011
995
|
</option>
|
|
1012
996
|
</select>
|
|
1013
997
|
</div>
|
|
@@ -1022,26 +1006,15 @@ exports[`Blocks SafeDepositRental should render block "SafeDepositRental" withou
|
|
|
1022
1006
|
Параметры ячейки, мм (ВхШхД)
|
|
1023
1007
|
</span>
|
|
1024
1008
|
<select
|
|
1025
|
-
class="appearance-none h-14 border border-gray p-4 rounded-md text-s w-full cursor-pointer"
|
|
1009
|
+
class="appearance-none h-14 border border-gray p-4 rounded-md text-s w-full cursor-pointer text-secondary-text"
|
|
1010
|
+
placeholder="12321321312"
|
|
1026
1011
|
style="background: url(/icons/ArrowDownIcon.svg) no-repeat 50%;"
|
|
1027
1012
|
>
|
|
1028
1013
|
<option
|
|
1029
1014
|
class=""
|
|
1030
|
-
value="
|
|
1031
|
-
>
|
|
1032
|
-
125x225x375
|
|
1033
|
-
</option>
|
|
1034
|
-
<option
|
|
1035
|
-
class=""
|
|
1036
|
-
value="200x300x400"
|
|
1015
|
+
value=""
|
|
1037
1016
|
>
|
|
1038
|
-
|
|
1039
|
-
</option>
|
|
1040
|
-
<option
|
|
1041
|
-
class=""
|
|
1042
|
-
value="300x400x500"
|
|
1043
|
-
>
|
|
1044
|
-
300x400x500
|
|
1017
|
+
Выберите параметр ячейки
|
|
1045
1018
|
</option>
|
|
1046
1019
|
</select>
|
|
1047
1020
|
</div>
|
|
@@ -1063,7 +1036,8 @@ exports[`Blocks SafeDepositRental should render block "SafeDepositRental" withou
|
|
|
1063
1036
|
class="flex items-center relative cursor-pointer"
|
|
1064
1037
|
>
|
|
1065
1038
|
<input
|
|
1066
|
-
|
|
1039
|
+
checked=""
|
|
1040
|
+
class="appearance-none flex justify-center items-center shrink-0 w-5 h-5 border-2 border-primary-main rounded-full cursor-pointer after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main"
|
|
1067
1041
|
name="contractType"
|
|
1068
1042
|
type="radio"
|
|
1069
1043
|
value="option1"
|
|
@@ -1080,8 +1054,7 @@ exports[`Blocks SafeDepositRental should render block "SafeDepositRental" withou
|
|
|
1080
1054
|
class="flex items-center relative cursor-pointer"
|
|
1081
1055
|
>
|
|
1082
1056
|
<input
|
|
1083
|
-
|
|
1084
|
-
class="appearance-none flex justify-center items-center w-5 h-5 border-2 border-primary-main rounded-full cursor-pointer after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main"
|
|
1057
|
+
class="appearance-none flex justify-center items-center shrink-0 w-5 h-5 border-2 border-primary-main rounded-full cursor-pointer after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main"
|
|
1085
1058
|
name="contractType"
|
|
1086
1059
|
type="radio"
|
|
1087
1060
|
value="option2"
|
|
@@ -1146,7 +1119,7 @@ exports[`Blocks SafeDepositRental should render block "SafeDepositRental" withou
|
|
|
1146
1119
|
<span
|
|
1147
1120
|
class="text-h3"
|
|
1148
1121
|
>
|
|
1149
|
-
|
|
1122
|
+
0 ₽
|
|
1150
1123
|
</span>
|
|
1151
1124
|
</div>
|
|
1152
1125
|
</div>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type { BenefitItemProps, BenefitItemCommonProps } from './BenefitItemProps';
|
|
3
|
-
import { Img } from '../Img/Img';
|
|
4
2
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
|
+
import { Img } from '../Img/Img';
|
|
4
|
+
import type { BenefitItemCommonProps, BenefitItemProps } from './BenefitItemProps';
|
|
5
5
|
|
|
6
6
|
export interface BenefitGeneralProps extends BenefitItemProps, BenefitItemCommonProps {}
|
|
7
7
|
|
|
@@ -25,15 +25,18 @@ export const BenefitItem = JSX<BenefitGeneralProps>((props) => {
|
|
|
25
25
|
} = props;
|
|
26
26
|
|
|
27
27
|
const isIconWhite = benefitsVersion === 'white' || version === 'secondary';
|
|
28
|
+
const listItemAlign = description ? 'items-start' : 'items-center';
|
|
28
29
|
|
|
29
30
|
return (
|
|
30
|
-
<div className={`flex
|
|
31
|
+
<div className={`flex gap-5 ${listItemAlign} ${className}`}>
|
|
31
32
|
{icon ? (
|
|
32
|
-
<
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
<div className={renderBenefitIconBgStyle(version, benefitsVersion)}>
|
|
34
|
+
<Img
|
|
35
|
+
className="w-[24px] h-[24px]"
|
|
36
|
+
image={{ ...icon, iconVersion: isIconWhite ? 'white' : 'normal' }}
|
|
37
|
+
asSVG
|
|
38
|
+
/>
|
|
39
|
+
</div>
|
|
37
40
|
) : null}
|
|
38
41
|
<div className="gap-0.5">
|
|
39
42
|
{label ? <div className={`text-h6 ${titleStyleMap[version]}`}>{label}</div> : null}
|
|
@@ -54,5 +57,5 @@ function renderBenefitIconBgStyle(version, benefitsVersion) {
|
|
|
54
57
|
bgColorStyle = 'bg-secondary-light text-primary-main';
|
|
55
58
|
}
|
|
56
59
|
|
|
57
|
-
return `w-[50px] h-[50px] min-w-[50px] rounded-full p-[10px] box-border ${bgColorStyle}`;
|
|
60
|
+
return `w-[50px] h-[50px] min-w-[50px] rounded-full p-[10px] box-border flex items-center justify-center ${bgColorStyle}`;
|
|
58
61
|
}
|
|
@@ -41,7 +41,7 @@ export const InputRange = JSX<InputRangeProps>(
|
|
|
41
41
|
return (
|
|
42
42
|
<div className={className}>
|
|
43
43
|
<label className="block relative">
|
|
44
|
-
{title ? <span className="text-m
|
|
44
|
+
{title ? <span className="text-m-light">{title}</span> : null}
|
|
45
45
|
<input
|
|
46
46
|
className={`m-0 mt-2 font-sans text-h3 w-full h-14 border border-solid border-main-stroke rounded-md
|
|
47
47
|
outline-none p-0 pl-4 box-border text-primary-text hover:border-primary-hover focus:border-primary-focus ${DISABLED_INPUT_CLASSES}`}
|
|
@@ -5,7 +5,7 @@ export const Radio = JSX<RadioProps>(({ name, text, value, checked, onChange, cl
|
|
|
5
5
|
<div className={className}>
|
|
6
6
|
<label className="flex items-center relative cursor-pointer">
|
|
7
7
|
<input
|
|
8
|
-
className="appearance-none flex justify-center items-center w-5 h-5 border-2 border-primary-main rounded-full cursor-pointer after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main"
|
|
8
|
+
className="appearance-none flex justify-center items-center shrink-0 w-5 h-5 border-2 border-primary-main rounded-full cursor-pointer after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main"
|
|
9
9
|
type="radio"
|
|
10
10
|
value={value}
|
|
11
11
|
name={name}
|
|
@@ -4,12 +4,13 @@ export interface SelectOptionProps {
|
|
|
4
4
|
className?: string;
|
|
5
5
|
value?: string;
|
|
6
6
|
selected?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
export const SelectOption = JSX<SelectOptionProps>(
|
|
10
|
-
({ className = '', value, selected, children }) => {
|
|
11
|
+
({ className = '', value, selected, disabled = false, children }) => {
|
|
11
12
|
return (
|
|
12
|
-
<option className={className} value={`${value}`} selected={selected}>
|
|
13
|
+
<option className={className} value={`${value}`} selected={selected} disabled={disabled}>
|
|
13
14
|
{children}
|
|
14
15
|
</option>
|
|
15
16
|
);
|
package/package.json
CHANGED
package/src/common.css
CHANGED
|
@@ -13,6 +13,7 @@ import type { LinkDocsContent } from './LinkDocs/LinkDocsContent';
|
|
|
13
13
|
import type { LinkListContent } from './LinkList/LinkListContent';
|
|
14
14
|
import type { MobileAppTileContent } from './MobileAppTile/MobileAppTileContent';
|
|
15
15
|
import type { NavigationContent } from './Navigation/NavigationContent';
|
|
16
|
+
import type { OfficeServicesBlockContent } from './OfficeServicesBlock/OfficeServicesBlockContent';
|
|
16
17
|
import type { PictureTextContent } from './PictureText/PictureTextContent';
|
|
17
18
|
import type { PlaceholderContent } from './Placeholder/PlaceholderContent';
|
|
18
19
|
import type { ProductBlockContent } from './ProductBlock/ProductBlockContent';
|
|
@@ -25,6 +26,7 @@ import type { TabsContent } from './Tabs/TabsContent';
|
|
|
25
26
|
import type { TariffsTableContent } from './TariffsTable/TariffsTableContent';
|
|
26
27
|
import type { TextBlockContent } from './TextBlock/TextBlockContent';
|
|
27
28
|
import type { TileContent } from './Tile/TileContent';
|
|
29
|
+
import type { ErrorBlockContent } from './ErrorBlock/ErrorBlockContent';
|
|
28
30
|
|
|
29
31
|
/**
|
|
30
32
|
* @hidden
|
|
@@ -56,4 +58,6 @@ export type BlockContent =
|
|
|
56
58
|
| LinkListContent
|
|
57
59
|
| BonusBenefitsBlockContent
|
|
58
60
|
| SafeDepositRentalContent
|
|
59
|
-
| TabsContent
|
|
61
|
+
| TabsContent
|
|
62
|
+
| ErrorBlockContent
|
|
63
|
+
| OfficeServicesBlockContent;
|
package/src/components/Blocks.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { BenefitsBlock } from './BenefitsBlock/BenefitsBlock';
|
|
|
3
3
|
import { Bonus } from './Bonus/Bonus';
|
|
4
4
|
import { BonusBenefitsBlock } from './BonusBenefitsBlock/BonusBenefitsBlock';
|
|
5
5
|
import { Calculator } from './Calculator/Calculator';
|
|
6
|
-
import { Catalog } from './Catalog/Catalog';
|
|
7
6
|
import { CardTransfer } from './CardTransfer/CardTransfer';
|
|
7
|
+
import { Catalog } from './Catalog/Catalog';
|
|
8
8
|
import { ComparisonTable } from './ComparisonTable/ComparisonTable';
|
|
9
9
|
import { ExchangeRateTile } from './ExchangeRateTile/ExchangeRateTile';
|
|
10
10
|
import { Footer } from './Footer/Footer';
|
|
@@ -17,6 +17,7 @@ import { LinkDocs } from './LinkDocs/LinkDocs';
|
|
|
17
17
|
import { MiniGallery } from './MiniGallery/MiniGallery';
|
|
18
18
|
import { MobileAppTile } from './MobileAppTile/MobileAppTile';
|
|
19
19
|
import { Navigation } from './Navigation/Navigation';
|
|
20
|
+
import { OfficeServicesBlock } from './OfficeServicesBlock/OfficeServicesBlock';
|
|
20
21
|
import { OtherProducts } from './OtherProducts/OtherProducts';
|
|
21
22
|
import { PictureText } from './PictureText/PictureText';
|
|
22
23
|
import { Placeholder } from './Placeholder/Placeholder';
|
|
@@ -31,6 +32,7 @@ import { Tabs } from './Tabs/Tabs';
|
|
|
31
32
|
import { TariffsTable } from './TariffsTable/TariffsTable';
|
|
32
33
|
import { TextBlock } from './TextBlock/TextBlock';
|
|
33
34
|
import { Tile } from './Tile/Tile';
|
|
35
|
+
import { ErrorBlock } from './ErrorBlock/ErrorBlock';
|
|
34
36
|
|
|
35
37
|
export const Blocks = {
|
|
36
38
|
Accordion,
|
|
@@ -66,4 +68,6 @@ export const Blocks = {
|
|
|
66
68
|
BonusBenefitsBlock,
|
|
67
69
|
SafeDepositRental,
|
|
68
70
|
Tabs,
|
|
71
|
+
ErrorBlock,
|
|
72
|
+
OfficeServicesBlock,
|
|
69
73
|
};
|
|
@@ -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
|
+
}
|