@redneckz/wildless-cms-uni-blocks 0.4.5 → 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 +231 -185
- package/bundle/bundle.umd.min.js +1 -1
- package/cosmos-static/icons/{AirPlane.svg → AirPlaneIcon.svg} +0 -0
- package/cosmos-static/icons/{DocDownload.svg → DocDownloadIcon.svg} +0 -0
- package/cosmos-static/icons/{Logo.svg → LogoIcon.svg} +0 -0
- package/cosmos-static/icons/{PackA4.svg → PackA4Icon.svg} +0 -0
- package/cosmos-static/icons/{WateringCan.svg → WateringCanIcon.svg} +0 -0
- package/dist/components/BlockContent.d.ts +5 -2
- package/dist/components/Blocks.d.ts +3 -0
- package/dist/components/Blocks.js +6 -0
- 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/CardTransfer/CardTransfer.d.ts +5 -0
- package/dist/components/CardTransfer/CardTransfer.js +28 -0
- package/dist/components/CardTransfer/CardTransfer.js.map +1 -0
- package/dist/components/CardTransfer/CardTransferContent.d.ts +10 -0
- package/dist/components/CardTransfer/CardTransferContent.js +2 -0
- package/dist/components/CardTransfer/CardTransferContent.js.map +1 -0
- 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 +16 -11
- 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/components/TariffsTable/EmbeddableCellData.js +1 -0
- package/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableRowContainer.js +3 -3
- package/dist/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
- package/dist/components/TariffsTable/dataFixture.js +1 -0
- package/dist/components/TariffsTable/dataFixture.js.map +1 -1
- package/dist/icons/IconName.d.ts +12 -12
- package/dist/icons/IconName.js +10 -10
- package/dist/icons/IconName.js.map +1 -1
- 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/Button/Button.js +6 -15
- package/dist/ui-kit/Button/Button.js.map +1 -1
- package/dist/ui-kit/Button/GetButtonClassParams.d.ts +6 -0
- package/dist/ui-kit/Button/GetButtonClassParams.js +2 -0
- package/dist/ui-kit/Button/GetButtonClassParams.js.map +1 -0
- package/dist/ui-kit/Button/buttonClassNameConstants.d.ts +4 -0
- package/dist/ui-kit/Button/buttonClassNameConstants.js +14 -0
- package/dist/ui-kit/Button/buttonClassNameConstants.js.map +1 -0
- package/dist/ui-kit/Button/getDisabledButtonClasses.d.ts +2 -0
- package/dist/ui-kit/Button/getDisabledButtonClasses.js +12 -0
- package/dist/ui-kit/Button/getDisabledButtonClasses.js.map +1 -0
- package/dist/ui-kit/Button/getRegularButtonClasses.d.ts +2 -0
- package/dist/ui-kit/Button/getRegularButtonClasses.js +12 -0
- package/dist/ui-kit/Button/getRegularButtonClasses.js.map +1 -0
- package/dist/ui-kit/CurrencyInput/CurrencyInput.d.ts +19 -0
- package/dist/ui-kit/CurrencyInput/CurrencyInput.js +21 -0
- package/dist/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -0
- package/dist/ui-kit/InnerTable/InnerTable.js +1 -1
- package/dist/ui-kit/InnerTable/InnerTable.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTableButton.js +2 -2
- package/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTableHeader.js +1 -1
- package/dist/ui-kit/InnerTable/InnerTableHeader.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/Logo/Logo.js +1 -1
- package/dist/ui-kit/Logo/Logo.js.map +1 -1
- package/dist/ui-kit/Logo/Logo.mobile.js +1 -1
- package/dist/ui-kit/Logo/Logo.mobile.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 +5 -2
- package/lib/components/Blocks.d.ts +3 -0
- package/lib/components/Blocks.js +6 -0
- 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/CardTransfer/CardTransfer.d.ts +5 -0
- package/lib/components/CardTransfer/CardTransfer.fixture.d.ts +5 -0
- package/lib/components/CardTransfer/CardTransfer.js +26 -0
- package/lib/components/CardTransfer/CardTransfer.js.map +1 -0
- package/lib/components/CardTransfer/CardTransferContent.d.ts +10 -0
- package/lib/components/CardTransfer/CardTransferContent.js +2 -0
- package/lib/components/CardTransfer/CardTransferContent.js.map +1 -0
- 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 +16 -10
- 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/components/TariffsTable/EmbeddableCellData.js +1 -0
- package/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableRowContainer.js +3 -3
- package/lib/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
- package/lib/components/TariffsTable/dataFixture.js +1 -0
- package/lib/components/TariffsTable/dataFixture.js.map +1 -1
- package/lib/icons/IconName.d.ts +12 -12
- package/lib/icons/IconName.js +10 -10
- package/lib/icons/IconName.js.map +1 -1
- 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/Button/Button.js +6 -15
- package/lib/ui-kit/Button/Button.js.map +1 -1
- package/lib/ui-kit/Button/GetButtonClassParams.d.ts +6 -0
- package/lib/ui-kit/Button/GetButtonClassParams.js +2 -0
- package/lib/ui-kit/Button/GetButtonClassParams.js.map +1 -0
- package/lib/ui-kit/Button/buttonClassNameConstants.d.ts +4 -0
- package/lib/ui-kit/Button/buttonClassNameConstants.js +12 -0
- package/lib/ui-kit/Button/buttonClassNameConstants.js.map +1 -0
- package/lib/ui-kit/Button/getDisabledButtonClasses.d.ts +2 -0
- package/lib/ui-kit/Button/getDisabledButtonClasses.js +9 -0
- package/lib/ui-kit/Button/getDisabledButtonClasses.js.map +1 -0
- package/lib/ui-kit/Button/getRegularButtonClasses.d.ts +2 -0
- package/lib/ui-kit/Button/getRegularButtonClasses.js +9 -0
- package/lib/ui-kit/Button/getRegularButtonClasses.js.map +1 -0
- package/lib/ui-kit/CurrencyInput/CurrencyInput.d.ts +19 -0
- package/lib/ui-kit/CurrencyInput/CurrencyInput.js +19 -0
- package/lib/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -0
- package/lib/ui-kit/InnerTable/InnerTable.js +1 -1
- package/lib/ui-kit/InnerTable/InnerTable.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTableButton.js +2 -2
- package/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTableHeader.js +1 -1
- package/lib/ui-kit/InnerTable/InnerTableHeader.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/Logo/Logo.js +1 -1
- package/lib/ui-kit/Logo/Logo.js.map +1 -1
- package/lib/ui-kit/Logo/Logo.mobile.js +1 -1
- package/lib/ui-kit/Logo/Logo.mobile.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 +17 -16
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/BlockContent.d.ts +5 -2
- 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/CardTransfer/CardTransfer.d.ts +5 -0
- package/mobile/dist/components/CardTransfer/CardTransfer.js +28 -0
- package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -0
- package/mobile/dist/components/CardTransfer/CardTransferContent.d.ts +10 -0
- package/mobile/dist/components/CardTransfer/CardTransferContent.js +2 -0
- package/mobile/dist/components/CardTransfer/CardTransferContent.js.map +1 -0
- 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 +16 -11
- 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/components/TariffsTable/TariffsTableRowContainer.js +3 -3
- package/mobile/dist/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
- package/mobile/dist/components/TariffsTable/dataFixture.js +1 -0
- package/mobile/dist/components/TariffsTable/dataFixture.js.map +1 -1
- package/mobile/dist/icons/IconName.d.ts +12 -12
- package/mobile/dist/icons/IconName.js +10 -10
- package/mobile/dist/icons/IconName.js.map +1 -1
- 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/Button/GetButtonClassParams.d.ts +6 -0
- package/mobile/dist/ui-kit/Button/GetButtonClassParams.js +2 -0
- package/mobile/dist/ui-kit/Button/GetButtonClassParams.js.map +1 -0
- package/mobile/dist/ui-kit/Button/buttonClassNameConstants.d.ts +4 -0
- package/mobile/dist/ui-kit/Button/buttonClassNameConstants.js +14 -0
- package/mobile/dist/ui-kit/Button/buttonClassNameConstants.js.map +1 -0
- package/mobile/dist/ui-kit/Button/getDisabledButtonClasses.d.ts +2 -0
- package/mobile/dist/ui-kit/Button/getDisabledButtonClasses.js +12 -0
- package/mobile/dist/ui-kit/Button/getDisabledButtonClasses.js.map +1 -0
- package/mobile/dist/ui-kit/Button/getRegularButtonClasses.d.ts +2 -0
- package/mobile/dist/ui-kit/Button/getRegularButtonClasses.js +12 -0
- package/mobile/dist/ui-kit/Button/getRegularButtonClasses.js.map +1 -0
- package/mobile/dist/ui-kit/CurrencyInput/CurrencyInput.d.ts +19 -0
- package/mobile/dist/ui-kit/CurrencyInput/CurrencyInput.js +21 -0
- package/mobile/dist/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -0
- package/mobile/dist/ui-kit/InnerTable/InnerTable.js +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTable.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js +2 -2
- package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableHeader.js +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableHeader.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/Logo/Logo.js +1 -1
- package/mobile/dist/ui-kit/Logo/Logo.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 +5 -2
- 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/CardTransfer/CardTransfer.d.ts +5 -0
- package/mobile/lib/components/CardTransfer/CardTransfer.js +26 -0
- package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -0
- package/mobile/lib/components/CardTransfer/CardTransferContent.d.ts +10 -0
- package/mobile/lib/components/CardTransfer/CardTransferContent.js +2 -0
- package/mobile/lib/components/CardTransfer/CardTransferContent.js.map +1 -0
- 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 +16 -10
- 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/components/TariffsTable/TariffsTableRowContainer.js +3 -3
- package/mobile/lib/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
- package/mobile/lib/components/TariffsTable/dataFixture.js +1 -0
- package/mobile/lib/components/TariffsTable/dataFixture.js.map +1 -1
- package/mobile/lib/icons/IconName.d.ts +12 -12
- package/mobile/lib/icons/IconName.js +10 -10
- package/mobile/lib/icons/IconName.js.map +1 -1
- 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/Button/GetButtonClassParams.d.ts +6 -0
- package/mobile/lib/ui-kit/Button/GetButtonClassParams.js +2 -0
- package/mobile/lib/ui-kit/Button/GetButtonClassParams.js.map +1 -0
- package/mobile/lib/ui-kit/Button/buttonClassNameConstants.d.ts +4 -0
- package/mobile/lib/ui-kit/Button/buttonClassNameConstants.js +12 -0
- package/mobile/lib/ui-kit/Button/buttonClassNameConstants.js.map +1 -0
- package/mobile/lib/ui-kit/Button/getDisabledButtonClasses.d.ts +2 -0
- package/mobile/lib/ui-kit/Button/getDisabledButtonClasses.js +9 -0
- package/mobile/lib/ui-kit/Button/getDisabledButtonClasses.js.map +1 -0
- package/mobile/lib/ui-kit/Button/getRegularButtonClasses.d.ts +2 -0
- package/mobile/lib/ui-kit/Button/getRegularButtonClasses.js +9 -0
- package/mobile/lib/ui-kit/Button/getRegularButtonClasses.js.map +1 -0
- package/mobile/lib/ui-kit/CurrencyInput/CurrencyInput.d.ts +19 -0
- package/mobile/lib/ui-kit/CurrencyInput/CurrencyInput.js +19 -0
- package/mobile/lib/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -0
- package/mobile/lib/ui-kit/InnerTable/InnerTable.js +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTable.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js +2 -2
- package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableHeader.js +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableHeader.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/Logo/Logo.js +1 -1
- package/mobile/lib/ui-kit/Logo/Logo.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 +8 -2
- 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/CardTransfer/CardTransfer.tsx +59 -0
- package/mobile/src/components/CardTransfer/CardTransferContent.ts +10 -0
- package/mobile/src/components/ContentPage/ContentPage.page.json +4 -0
- 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 +24 -16
- 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/TariffsTable/TariffsTableRowContainer.tsx +9 -4
- package/mobile/src/components/TariffsTable/dataFixture.ts +5 -4
- package/mobile/src/components/__snapshots__/Blocks.spec.tsx.snap +98 -73
- package/mobile/src/icons/{AirPlane.svg → AirPlaneIcon.svg} +0 -0
- package/mobile/src/icons/{DocDownload.svg → DocDownloadIcon.svg} +0 -0
- package/mobile/src/icons/IconName.ts +4 -4
- package/mobile/src/icons/{Logo.svg → LogoIcon.svg} +0 -0
- package/mobile/src/icons/{PackA4.svg → PackA4Icon.svg} +0 -0
- package/mobile/src/icons/{WateringCan.svg → WateringCanIcon.svg} +0 -0
- package/mobile/src/ui-kit/BenefitItem/BenefitItem.tsx +12 -9
- package/mobile/src/ui-kit/Button/GetButtonClassParams.ts +7 -0
- package/mobile/src/ui-kit/Button/buttonClassNameConstants.ts +16 -0
- package/mobile/src/ui-kit/Button/getDisabledButtonClasses.ts +15 -0
- package/mobile/src/ui-kit/Button/getRegularButtonClasses.ts +15 -0
- package/mobile/src/ui-kit/CurrencyInput/CurrencyInput.tsx +70 -0
- package/mobile/src/ui-kit/InnerTable/InnerTable.tsx +1 -1
- package/mobile/src/ui-kit/InnerTable/InnerTableButton.tsx +2 -2
- package/mobile/src/ui-kit/InnerTable/InnerTableHeader.tsx +1 -1
- package/mobile/src/ui-kit/InputRange/InputRange.tsx +1 -1
- package/mobile/src/ui-kit/Logo/Logo.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 +8 -2
- package/src/components/Blocks.ts +6 -0
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.fixture.tsx +2 -2
- 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/CardTransfer/CardTransfer.fixture.tsx +6 -0
- package/src/components/CardTransfer/CardTransfer.tsx +59 -0
- package/src/components/CardTransfer/CardTransferContent.ts +10 -0
- package/src/components/ContentPage/ContentPage.page.json +4 -0
- 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 +24 -16
- 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/TariffsTable/EmbeddableCellData.tsx +3 -2
- package/src/components/TariffsTable/TariffsTableRowContainer.tsx +9 -4
- package/src/components/TariffsTable/dataFixture.ts +5 -4
- package/src/components/__snapshots__/Blocks.spec.tsx.snap +98 -73
- package/src/icons/{AirPlane.svg → AirPlaneIcon.svg} +0 -0
- package/src/icons/{DocDownload.svg → DocDownloadIcon.svg} +0 -0
- package/src/icons/IconName.ts +16 -16
- package/src/icons/{Logo.svg → LogoIcon.svg} +0 -0
- package/src/icons/{PackA4.svg → PackA4Icon.svg} +0 -0
- package/src/icons/{WateringCan.svg → WateringCanIcon.svg} +0 -0
- package/src/ui-kit/BenefitItem/BenefitItem.tsx +12 -9
- package/src/ui-kit/Button/Button.tsx +6 -34
- package/src/ui-kit/Button/GetButtonClassParams.ts +7 -0
- package/src/ui-kit/Button/buttonClassNameConstants.ts +16 -0
- package/src/ui-kit/Button/getDisabledButtonClasses.ts +15 -0
- package/src/ui-kit/Button/getRegularButtonClasses.ts +15 -0
- package/src/ui-kit/CurrencyInput/CurrencyInput.tsx +70 -0
- package/src/ui-kit/InnerTable/InnerTable.tsx +1 -1
- package/src/ui-kit/InnerTable/InnerTableButton.tsx +2 -2
- package/src/ui-kit/InnerTable/InnerTableHeader.tsx +1 -1
- package/src/ui-kit/InputRange/InputRange.tsx +1 -1
- package/src/ui-kit/Logo/Logo.mobile.tsx +1 -1
- package/src/ui-kit/Logo/Logo.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
package/src/common.css
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { BenefitsBlockContent } from './BenefitsBlock/BenefitsBlockContent';
|
|
2
2
|
import type { BonusContent } from './Bonus/BonusContent';
|
|
3
3
|
import type { BonusBenefitsBlockContent } from './BonusBenefitsBlock/BonusBenefitsBlockContent';
|
|
4
|
+
import type { CardTransferContent } from './CardTransfer/CardTransferContent';
|
|
4
5
|
import type { ComparisonTableContent } from './ComparisonTable/ComparisonTableContent';
|
|
5
6
|
import type { ExchangeRateTileContent } from './ExchangeRateTile/ExchangeRateTileContent';
|
|
6
7
|
import type { FooterContent } from './Footer/FooterContent';
|
|
@@ -12,6 +13,7 @@ import type { LinkDocsContent } from './LinkDocs/LinkDocsContent';
|
|
|
12
13
|
import type { LinkListContent } from './LinkList/LinkListContent';
|
|
13
14
|
import type { MobileAppTileContent } from './MobileAppTile/MobileAppTileContent';
|
|
14
15
|
import type { NavigationContent } from './Navigation/NavigationContent';
|
|
16
|
+
import type { OfficeServicesBlockContent } from './OfficeServicesBlock/OfficeServicesBlockContent';
|
|
15
17
|
import type { PictureTextContent } from './PictureText/PictureTextContent';
|
|
16
18
|
import type { PlaceholderContent } from './Placeholder/PlaceholderContent';
|
|
17
19
|
import type { ProductBlockContent } from './ProductBlock/ProductBlockContent';
|
|
@@ -20,10 +22,11 @@ import type { ProductTileContent } from './ProductTile/ProductTileContent';
|
|
|
20
22
|
import type { PromoTileContent } from './PromoTile/PromoTileContent';
|
|
21
23
|
import type { SafeDepositRentalContent } from './SafeDepositRental/SafeDepositRentalContent';
|
|
22
24
|
import type { StepsBlockContent } from './StepsBlock/StepsBlockContent';
|
|
23
|
-
import { TabsContent } from './Tabs/TabsContent';
|
|
25
|
+
import type { TabsContent } from './Tabs/TabsContent';
|
|
24
26
|
import type { TariffsTableContent } from './TariffsTable/TariffsTableContent';
|
|
25
27
|
import type { TextBlockContent } from './TextBlock/TextBlockContent';
|
|
26
28
|
import type { TileContent } from './Tile/TileContent';
|
|
29
|
+
import type { ErrorBlockContent } from './ErrorBlock/ErrorBlockContent';
|
|
27
30
|
|
|
28
31
|
/**
|
|
29
32
|
* @hidden
|
|
@@ -31,6 +34,7 @@ import type { TileContent } from './Tile/TileContent';
|
|
|
31
34
|
export type BlockContent =
|
|
32
35
|
| BenefitsBlockContent
|
|
33
36
|
| BonusContent
|
|
37
|
+
| CardTransferContent
|
|
34
38
|
| ComparisonTableContent
|
|
35
39
|
| ExchangeRateTileContent
|
|
36
40
|
| FooterContent
|
|
@@ -54,4 +58,6 @@ export type BlockContent =
|
|
|
54
58
|
| LinkListContent
|
|
55
59
|
| BonusBenefitsBlockContent
|
|
56
60
|
| SafeDepositRentalContent
|
|
57
|
-
| TabsContent
|
|
61
|
+
| TabsContent
|
|
62
|
+
| ErrorBlockContent
|
|
63
|
+
| OfficeServicesBlockContent;
|
package/src/components/Blocks.ts
CHANGED
|
@@ -3,6 +3,7 @@ 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 { CardTransfer } from './CardTransfer/CardTransfer';
|
|
6
7
|
import { Catalog } from './Catalog/Catalog';
|
|
7
8
|
import { ComparisonTable } from './ComparisonTable/ComparisonTable';
|
|
8
9
|
import { ExchangeRateTile } from './ExchangeRateTile/ExchangeRateTile';
|
|
@@ -16,6 +17,7 @@ import { LinkDocs } from './LinkDocs/LinkDocs';
|
|
|
16
17
|
import { MiniGallery } from './MiniGallery/MiniGallery';
|
|
17
18
|
import { MobileAppTile } from './MobileAppTile/MobileAppTile';
|
|
18
19
|
import { Navigation } from './Navigation/Navigation';
|
|
20
|
+
import { OfficeServicesBlock } from './OfficeServicesBlock/OfficeServicesBlock';
|
|
19
21
|
import { OtherProducts } from './OtherProducts/OtherProducts';
|
|
20
22
|
import { PictureText } from './PictureText/PictureText';
|
|
21
23
|
import { Placeholder } from './Placeholder/Placeholder';
|
|
@@ -30,11 +32,13 @@ import { Tabs } from './Tabs/Tabs';
|
|
|
30
32
|
import { TariffsTable } from './TariffsTable/TariffsTable';
|
|
31
33
|
import { TextBlock } from './TextBlock/TextBlock';
|
|
32
34
|
import { Tile } from './Tile/Tile';
|
|
35
|
+
import { ErrorBlock } from './ErrorBlock/ErrorBlock';
|
|
33
36
|
|
|
34
37
|
export const Blocks = {
|
|
35
38
|
Accordion,
|
|
36
39
|
BenefitsBlock,
|
|
37
40
|
Bonus,
|
|
41
|
+
CardTransfer,
|
|
38
42
|
ComparisonTable,
|
|
39
43
|
Calculator,
|
|
40
44
|
Catalog,
|
|
@@ -64,4 +68,6 @@ export const Blocks = {
|
|
|
64
68
|
BonusBenefitsBlock,
|
|
65
69
|
SafeDepositRental,
|
|
66
70
|
Tabs,
|
|
71
|
+
ErrorBlock,
|
|
72
|
+
OfficeServicesBlock,
|
|
67
73
|
};
|
|
@@ -13,11 +13,11 @@ export default {
|
|
|
13
13
|
bonusBenefits={[
|
|
14
14
|
{
|
|
15
15
|
label: 'Более 5000 товаров',
|
|
16
|
-
icon: { icon: '
|
|
16
|
+
icon: { icon: 'WateringCanIcon' },
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
label: '750 авиакомпаний, 1,2 млн отелей, билеты РЖД',
|
|
20
|
-
icon: { icon: '
|
|
20
|
+
icon: { icon: 'AirPlaneIcon' },
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
label: 'Аренда автомобилей',
|
|
@@ -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,59 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
4
|
+
import { CurrencyInput } from '../../ui-kit/CurrencyInput/CurrencyInput';
|
|
5
|
+
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
6
|
+
import type { UniBlockProps } from '../../types';
|
|
7
|
+
import type { GetButtonClassParams } from '../../ui-kit/Button/GetButtonClassParams';
|
|
8
|
+
import type { CardTransferContent } from './CardTransferContent';
|
|
9
|
+
import { getRegularButtonClasses } from '../../ui-kit/Button/getRegularButtonClasses';
|
|
10
|
+
import { getDisabledButtonClasses } from '../../ui-kit/Button/getDisabledButtonClasses';
|
|
11
|
+
|
|
12
|
+
const AMOUNT_KEY = 'amount';
|
|
13
|
+
const INPUT_LABEL = 'Сумма перевода';
|
|
14
|
+
const BUTTON_TEXT = 'Далее';
|
|
15
|
+
const PLACEHOLDER = '1500';
|
|
16
|
+
const TITLE = 'Укажите сумму перевода';
|
|
17
|
+
|
|
18
|
+
const FORM_URL = 'https://www.rshb.ru/p2p/';
|
|
19
|
+
|
|
20
|
+
const BUTTON_CLASS_PARAMS: GetButtonClassParams = {
|
|
21
|
+
version: 'primary',
|
|
22
|
+
className: 'w-full h-[56px] px-9 mt-6',
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export interface CardTransferProps extends CardTransferContent, UniBlockProps {}
|
|
26
|
+
|
|
27
|
+
export const CardTransfer = JSX<CardTransferProps>(({ className = '', title = TITLE, ...rest }) => {
|
|
28
|
+
const [value, setValue] = useState<string>('');
|
|
29
|
+
const isDisabled = !Number(value);
|
|
30
|
+
|
|
31
|
+
return (
|
|
32
|
+
<BlockWrapper
|
|
33
|
+
className={`p-[50px] flex flex-col items-center font-sans bg-white ${className}`}
|
|
34
|
+
{...rest}
|
|
35
|
+
>
|
|
36
|
+
{title ? <Heading className="max-w-[684px] pb-9" headingType="h2" title={title} /> : null}
|
|
37
|
+
<form className="w-[468px]" method="POST" action={FORM_URL}>
|
|
38
|
+
<CurrencyInput
|
|
39
|
+
name={AMOUNT_KEY}
|
|
40
|
+
value={value}
|
|
41
|
+
onChange={setValue}
|
|
42
|
+
placeholder={PLACEHOLDER}
|
|
43
|
+
label={INPUT_LABEL}
|
|
44
|
+
/>
|
|
45
|
+
<button
|
|
46
|
+
type="submit"
|
|
47
|
+
className={
|
|
48
|
+
isDisabled
|
|
49
|
+
? getDisabledButtonClasses(BUTTON_CLASS_PARAMS)
|
|
50
|
+
: getRegularButtonClasses(BUTTON_CLASS_PARAMS)
|
|
51
|
+
}
|
|
52
|
+
disabled={isDisabled}
|
|
53
|
+
>
|
|
54
|
+
{BUTTON_TEXT}
|
|
55
|
+
</button>
|
|
56
|
+
</form>
|
|
57
|
+
</BlockWrapper>
|
|
58
|
+
);
|
|
59
|
+
});
|
|
@@ -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,53 @@
|
|
|
1
|
+
import { context } from '../../react/setup-fixture';
|
|
2
|
+
import type { Picture } from '../../model/Picture';
|
|
3
|
+
import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
|
|
4
|
+
import { ErrorBlock } from './ErrorBlock';
|
|
5
|
+
|
|
6
|
+
const image: Picture = {
|
|
7
|
+
src: 'error.png',
|
|
8
|
+
format: 'webp',
|
|
9
|
+
alt: 'Ошибка',
|
|
10
|
+
size: {
|
|
11
|
+
width: 460,
|
|
12
|
+
height: 294,
|
|
13
|
+
},
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const buttonPrimary: ButtonProps = {
|
|
17
|
+
href: '/credit-cards',
|
|
18
|
+
text: 'Вернуться на главную',
|
|
19
|
+
target: '_blank',
|
|
20
|
+
version: 'primary',
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export default {
|
|
24
|
+
default: (
|
|
25
|
+
<div className="container grid grid-cols-12">
|
|
26
|
+
<ErrorBlock
|
|
27
|
+
className="col-span-12"
|
|
28
|
+
context={context}
|
|
29
|
+
title="Страница не найдена"
|
|
30
|
+
subtitle="Возможно неправильно набран адрес или такой странице не существует"
|
|
31
|
+
error={{
|
|
32
|
+
errorContentType: 'Code',
|
|
33
|
+
code: 404,
|
|
34
|
+
}}
|
|
35
|
+
button={buttonPrimary}
|
|
36
|
+
/>
|
|
37
|
+
</div>
|
|
38
|
+
),
|
|
39
|
+
'error-with-image': (
|
|
40
|
+
<div className="container grid grid-cols-12">
|
|
41
|
+
<ErrorBlock
|
|
42
|
+
className="col-span-12"
|
|
43
|
+
context={context}
|
|
44
|
+
title="Страница не найдена"
|
|
45
|
+
subtitle="Возможно неправильно набран адрес или такой странице не существует"
|
|
46
|
+
error={{
|
|
47
|
+
errorContentType: 'Image',
|
|
48
|
+
image: image,
|
|
49
|
+
}}
|
|
50
|
+
/>
|
|
51
|
+
</div>
|
|
52
|
+
),
|
|
53
|
+
};
|
|
@@ -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
|
+
}
|