@redneckz/wildless-cms-uni-blocks 0.3.57 → 0.3.59
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 +370 -96
- package/bundle/bundle.umd.min.js +1 -1
- package/cosmos-static/icons/SafeIcon.svg +1 -1
- package/dist/components/Blocks.d.ts +1 -1
- package/dist/components/Blocks.js +2 -2
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Calculator/BonusCalculatorForm.d.ts +5 -0
- package/dist/components/Calculator/BonusCalculatorForm.js +40 -0
- package/dist/components/Calculator/BonusCalculatorForm.js.map +1 -0
- package/dist/components/Calculator/Calculator.d.ts +5 -0
- package/dist/components/Calculator/Calculator.js +46 -0
- package/dist/components/Calculator/Calculator.js.map +1 -0
- package/dist/components/Calculator/CalculatorContent.d.ts +110 -0
- package/dist/components/{ProductGalleryGreen/ProductGalleryGreenContent.js → Calculator/CalculatorContent.js} +1 -1
- package/dist/components/Calculator/CalculatorContent.js.map +1 -0
- package/dist/components/Calculator/CalculatorValueBlock.d.ts +8 -0
- package/dist/components/Calculator/CalculatorValueBlock.js +9 -0
- package/dist/components/Calculator/CalculatorValueBlock.js.map +1 -0
- package/dist/components/Calculator/CreditCalculatorForm.d.ts +5 -0
- package/dist/components/Calculator/CreditCalculatorForm.js +51 -0
- package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -0
- package/dist/components/Calculator/DepositCalculatorForm.d.ts +5 -0
- package/dist/components/Calculator/DepositCalculatorForm.js +41 -0
- package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -0
- package/dist/components/Calculator/EmbeddableCalcBlocks.d.ts +11 -0
- package/dist/components/Calculator/EmbeddableCalcBlocks.js +13 -0
- package/dist/components/Calculator/EmbeddableCalcBlocks.js.map +1 -0
- package/dist/components/Calculator/MortgageCalculatorForm.d.ts +5 -0
- package/dist/components/Calculator/MortgageCalculatorForm.js +49 -0
- package/dist/components/Calculator/MortgageCalculatorForm.js.map +1 -0
- package/dist/components/Calculator/constants.d.ts +7 -0
- package/dist/components/Calculator/constants.js +10 -0
- package/dist/components/Calculator/constants.js.map +1 -0
- package/dist/components/Calculator/getCalculatorParams.d.ts +7 -0
- package/dist/components/Calculator/getCalculatorParams.js +11 -0
- package/dist/components/Calculator/getCalculatorParams.js.map +1 -0
- package/dist/components/Calculator/getCreditRate.d.ts +7 -0
- package/dist/components/Calculator/getCreditRate.js +13 -0
- package/dist/components/Calculator/getCreditRate.js.map +1 -0
- package/dist/components/Calculator/getDefaultMonths.d.ts +2 -0
- package/dist/components/Calculator/getDefaultMonths.js +8 -0
- package/dist/components/Calculator/getDefaultMonths.js.map +1 -0
- package/dist/components/Calculator/getDefaultSum.d.ts +2 -0
- package/dist/components/Calculator/getDefaultSum.js +8 -0
- package/dist/components/Calculator/getDefaultSum.js.map +1 -0
- package/dist/components/Calculator/getMonthlyPayment.d.ts +11 -0
- package/dist/components/Calculator/getMonthlyPayment.js +19 -0
- package/dist/components/Calculator/getMonthlyPayment.js.map +1 -0
- package/dist/components/Calculator/renderButtonSection.d.ts +1 -0
- package/dist/components/Calculator/renderButtonSection.js +9 -0
- package/dist/components/Calculator/renderButtonSection.js.map +1 -0
- package/dist/components/Calculator/renderCalculatorList.d.ts +10 -0
- package/dist/components/Calculator/renderCalculatorList.js +17 -0
- package/dist/components/Calculator/renderCalculatorList.js.map +1 -0
- package/dist/components/Calculator/renderInitialFeeInput.d.ts +10 -0
- package/dist/components/Calculator/renderInitialFeeInput.js +18 -0
- package/dist/components/Calculator/renderInitialFeeInput.js.map +1 -0
- package/dist/components/Calculator/renderMonthsInput.d.ts +11 -0
- package/dist/components/Calculator/renderMonthsInput.js +15 -0
- package/dist/components/Calculator/renderMonthsInput.js.map +1 -0
- package/dist/components/Calculator/renderProposal.d.ts +1 -0
- package/dist/components/Calculator/renderProposal.js +10 -0
- package/dist/components/Calculator/renderProposal.js.map +1 -0
- package/dist/components/Calculator/renderProposalMortgage.d.ts +7 -0
- package/dist/components/Calculator/renderProposalMortgage.js +9 -0
- package/dist/components/Calculator/renderProposalMortgage.js.map +1 -0
- package/dist/components/Calculator/renderRate.d.ts +8 -0
- package/dist/components/Calculator/renderRate.js +9 -0
- package/dist/components/Calculator/renderRate.js.map +1 -0
- package/dist/components/Calculator/renderRealEstateValue.d.ts +10 -0
- package/dist/components/Calculator/renderRealEstateValue.js +15 -0
- package/dist/components/Calculator/renderRealEstateValue.js.map +1 -0
- package/dist/components/Calculator/renderWantedSumInput.d.ts +13 -0
- package/dist/components/Calculator/renderWantedSumInput.js +19 -0
- package/dist/components/Calculator/renderWantedSumInput.js.map +1 -0
- package/dist/components/ContentPage/ContentPage.d.ts +1 -1
- package/dist/components/Header/Header.js +2 -2
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/Header/HeaderContent.d.ts +6 -0
- package/dist/components/Header/HeaderSubMenu.js +7 -4
- package/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.js +37 -8
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/ProductGallery/ProductGalleryContent.d.ts +3 -6
- package/dist/components/ProductTile/ProductTile.js +14 -2
- package/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/dist/components/ProductTile/ProductTileContent.d.ts +2 -0
- package/dist/components/Tile/Tile.js +1 -1
- package/dist/components/Tile/Tile.js.map +1 -1
- package/dist/types.d.ts +1 -5
- package/dist/ui-kit/BlocksList/renderBlocksList.d.ts +0 -1
- package/dist/ui-kit/BlocksList/renderBlocksList.js +2 -3
- package/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/dist/ui-kit/Button/Button.js +2 -2
- package/dist/ui-kit/Button/Button.js.map +1 -1
- package/dist/ui-kit/Button/ButtonInner.js +2 -2
- package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/dist/ui-kit/Button/ButtonProps.d.ts +2 -0
- package/dist/ui-kit/Button/ButtonSection.js +1 -1
- package/dist/ui-kit/Button/ButtonSection.js.map +1 -1
- package/dist/ui-kit/Checkbox/Checkbox.js +1 -1
- package/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/dist/ui-kit/InputRange/InputRange.js +2 -2
- package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/dist/ui-kit/InputRange/InputRangeProps.d.ts +2 -1
- package/dist/ui-kit/Tabs/TabsProps.d.ts +2 -1
- package/lib/common.css +1 -1
- package/lib/components/Blocks.d.ts +1 -1
- package/lib/components/Blocks.js +2 -2
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Calculator/BonusCalculatorForm.d.ts +5 -0
- package/lib/components/Calculator/BonusCalculatorForm.js +38 -0
- package/lib/components/Calculator/BonusCalculatorForm.js.map +1 -0
- package/lib/components/Calculator/Calculator.d.ts +5 -0
- package/lib/components/{ProductGalleryGreen/ProductGalleryGreen.fixture.d.ts → Calculator/Calculator.fixture.d.ts} +1 -1
- package/lib/components/Calculator/Calculator.js +44 -0
- package/lib/components/Calculator/Calculator.js.map +1 -0
- package/lib/components/Calculator/CalculatorContent.d.ts +110 -0
- package/lib/components/Calculator/CalculatorContent.js +2 -0
- package/lib/components/Calculator/CalculatorContent.js.map +1 -0
- package/lib/components/Calculator/CalculatorValueBlock.d.ts +8 -0
- package/lib/components/Calculator/CalculatorValueBlock.js +7 -0
- package/lib/components/Calculator/CalculatorValueBlock.js.map +1 -0
- package/lib/components/Calculator/CreditCalculatorForm.d.ts +5 -0
- package/lib/components/Calculator/CreditCalculatorForm.js +49 -0
- package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -0
- package/lib/components/Calculator/DepositCalculatorForm.d.ts +5 -0
- package/lib/components/Calculator/DepositCalculatorForm.js +39 -0
- package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -0
- package/lib/components/Calculator/EmbeddableCalcBlocks.d.ts +11 -0
- package/lib/components/Calculator/EmbeddableCalcBlocks.js +11 -0
- package/lib/components/Calculator/EmbeddableCalcBlocks.js.map +1 -0
- package/lib/components/Calculator/MortgageCalculatorForm.d.ts +5 -0
- package/lib/components/Calculator/MortgageCalculatorForm.js +47 -0
- package/lib/components/Calculator/MortgageCalculatorForm.js.map +1 -0
- package/lib/components/Calculator/constants.d.ts +7 -0
- package/lib/components/Calculator/constants.js +8 -0
- package/lib/components/Calculator/constants.js.map +1 -0
- package/lib/components/Calculator/getCalculatorParams.d.ts +7 -0
- package/lib/components/Calculator/getCalculatorParams.js +8 -0
- package/lib/components/Calculator/getCalculatorParams.js.map +1 -0
- package/lib/components/Calculator/getCreditRate.d.ts +7 -0
- package/lib/components/Calculator/getCreditRate.js +10 -0
- package/lib/components/Calculator/getCreditRate.js.map +1 -0
- package/lib/components/Calculator/getDefaultMonths.d.ts +2 -0
- package/lib/components/Calculator/getDefaultMonths.js +5 -0
- package/lib/components/Calculator/getDefaultMonths.js.map +1 -0
- package/lib/components/Calculator/getDefaultSum.d.ts +2 -0
- package/lib/components/Calculator/getDefaultSum.js +5 -0
- package/lib/components/Calculator/getDefaultSum.js.map +1 -0
- package/lib/components/Calculator/getMonthlyPayment.d.ts +11 -0
- package/lib/components/Calculator/getMonthlyPayment.js +16 -0
- package/lib/components/Calculator/getMonthlyPayment.js.map +1 -0
- package/lib/components/Calculator/renderButtonSection.d.ts +1 -0
- package/lib/components/Calculator/renderButtonSection.js +6 -0
- package/lib/components/Calculator/renderButtonSection.js.map +1 -0
- package/lib/components/Calculator/renderCalculatorList.d.ts +10 -0
- package/lib/components/Calculator/renderCalculatorList.js +14 -0
- package/lib/components/Calculator/renderCalculatorList.js.map +1 -0
- package/lib/components/Calculator/renderInitialFeeInput.d.ts +10 -0
- package/lib/components/Calculator/renderInitialFeeInput.js +15 -0
- package/lib/components/Calculator/renderInitialFeeInput.js.map +1 -0
- package/lib/components/Calculator/renderMonthsInput.d.ts +11 -0
- package/lib/components/Calculator/renderMonthsInput.js +12 -0
- package/lib/components/Calculator/renderMonthsInput.js.map +1 -0
- package/lib/components/Calculator/renderProposal.d.ts +1 -0
- package/lib/components/Calculator/renderProposal.js +7 -0
- package/lib/components/Calculator/renderProposal.js.map +1 -0
- package/lib/components/Calculator/renderProposalMortgage.d.ts +7 -0
- package/lib/components/Calculator/renderProposalMortgage.js +6 -0
- package/lib/components/Calculator/renderProposalMortgage.js.map +1 -0
- package/lib/components/Calculator/renderRate.d.ts +8 -0
- package/lib/components/Calculator/renderRate.js +6 -0
- package/lib/components/Calculator/renderRate.js.map +1 -0
- package/lib/components/Calculator/renderRealEstateValue.d.ts +10 -0
- package/lib/components/Calculator/renderRealEstateValue.js +12 -0
- package/lib/components/Calculator/renderRealEstateValue.js.map +1 -0
- package/lib/components/Calculator/renderWantedSumInput.d.ts +13 -0
- package/lib/components/Calculator/renderWantedSumInput.js +16 -0
- package/lib/components/Calculator/renderWantedSumInput.js.map +1 -0
- package/lib/components/ContentPage/ContentPage.d.ts +1 -1
- package/lib/components/Header/Header.fixture.d.ts +1 -0
- package/lib/components/Header/Header.js +2 -2
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/HeaderContent.d.ts +6 -0
- package/lib/components/Header/HeaderSubMenu.js +7 -4
- package/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.fixture.d.ts +1 -0
- package/lib/components/ProductGallery/ProductGallery.js +37 -8
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/ProductGallery/ProductGalleryContent.d.ts +3 -6
- package/lib/components/ProductTile/ProductTile.fixture.d.ts +1 -0
- package/lib/components/ProductTile/ProductTile.js +14 -2
- package/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/lib/components/ProductTile/ProductTileContent.d.ts +2 -0
- package/lib/components/Tile/Tile.js +1 -1
- package/lib/components/Tile/Tile.js.map +1 -1
- package/lib/types.d.ts +1 -5
- package/lib/ui-kit/BlocksList/renderBlocksList.d.ts +0 -1
- package/lib/ui-kit/BlocksList/renderBlocksList.js +1 -1
- package/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/lib/ui-kit/Button/Button.js +2 -2
- package/lib/ui-kit/Button/Button.js.map +1 -1
- package/lib/ui-kit/Button/ButtonInner.js +2 -2
- package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/lib/ui-kit/Button/ButtonProps.d.ts +2 -0
- package/lib/ui-kit/Button/ButtonSection.js +1 -1
- package/lib/ui-kit/Button/ButtonSection.js.map +1 -1
- package/lib/ui-kit/Checkbox/Checkbox.js +1 -1
- package/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/lib/ui-kit/InputRange/InputRange.js +2 -2
- package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/lib/ui-kit/InputRange/InputRangeProps.d.ts +2 -1
- package/lib/ui-kit/Tabs/TabsProps.d.ts +2 -1
- package/mobile/bundle/bundle.umd.js +3 -3
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/Calculator/BonusCalculatorForm.d.ts +5 -0
- package/mobile/dist/components/Calculator/BonusCalculatorForm.js +40 -0
- package/mobile/dist/components/Calculator/BonusCalculatorForm.js.map +1 -0
- package/mobile/dist/components/Calculator/Calculator.d.ts +5 -0
- package/mobile/dist/components/Calculator/Calculator.js +46 -0
- package/mobile/dist/components/Calculator/Calculator.js.map +1 -0
- package/mobile/dist/components/Calculator/CalculatorContent.d.ts +110 -0
- package/mobile/dist/components/{ProductGalleryGreen/ProductGalleryGreenContent.js → Calculator/CalculatorContent.js} +1 -1
- package/mobile/dist/components/Calculator/CalculatorContent.js.map +1 -0
- package/mobile/dist/components/Calculator/CalculatorValueBlock.d.ts +8 -0
- package/mobile/dist/components/Calculator/CalculatorValueBlock.js +9 -0
- package/mobile/dist/components/Calculator/CalculatorValueBlock.js.map +1 -0
- package/mobile/dist/components/Calculator/CreditCalculatorForm.d.ts +5 -0
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js +51 -0
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -0
- package/mobile/dist/components/Calculator/DepositCalculatorForm.d.ts +5 -0
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js +41 -0
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -0
- package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.d.ts +11 -0
- package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.js +13 -0
- package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.js.map +1 -0
- package/mobile/dist/components/Calculator/MortgageCalculatorForm.d.ts +5 -0
- package/mobile/dist/components/Calculator/MortgageCalculatorForm.js +49 -0
- package/mobile/dist/components/Calculator/MortgageCalculatorForm.js.map +1 -0
- package/mobile/dist/components/Calculator/constants.d.ts +7 -0
- package/mobile/dist/components/Calculator/constants.js +10 -0
- package/mobile/dist/components/Calculator/constants.js.map +1 -0
- package/mobile/dist/components/Calculator/getCalculatorParams.d.ts +7 -0
- package/mobile/dist/components/Calculator/getCalculatorParams.js +11 -0
- package/mobile/dist/components/Calculator/getCalculatorParams.js.map +1 -0
- package/mobile/dist/components/Calculator/getCreditRate.d.ts +7 -0
- package/mobile/dist/components/Calculator/getCreditRate.js +13 -0
- package/mobile/dist/components/Calculator/getCreditRate.js.map +1 -0
- package/mobile/dist/components/Calculator/getDefaultMonths.d.ts +2 -0
- package/mobile/dist/components/Calculator/getDefaultMonths.js +8 -0
- package/mobile/dist/components/Calculator/getDefaultMonths.js.map +1 -0
- package/mobile/dist/components/Calculator/getDefaultSum.d.ts +2 -0
- package/mobile/dist/components/Calculator/getDefaultSum.js +8 -0
- package/mobile/dist/components/Calculator/getDefaultSum.js.map +1 -0
- package/mobile/dist/components/Calculator/getMonthlyPayment.d.ts +11 -0
- package/mobile/dist/components/Calculator/getMonthlyPayment.js +19 -0
- package/mobile/dist/components/Calculator/getMonthlyPayment.js.map +1 -0
- package/mobile/dist/components/Calculator/renderButtonSection.d.ts +1 -0
- package/mobile/dist/components/Calculator/renderButtonSection.js +9 -0
- package/mobile/dist/components/Calculator/renderButtonSection.js.map +1 -0
- package/mobile/dist/components/Calculator/renderCalculatorList.d.ts +10 -0
- package/mobile/dist/components/Calculator/renderCalculatorList.js +17 -0
- package/mobile/dist/components/Calculator/renderCalculatorList.js.map +1 -0
- package/mobile/dist/components/Calculator/renderInitialFeeInput.d.ts +10 -0
- package/mobile/dist/components/Calculator/renderInitialFeeInput.js +18 -0
- package/mobile/dist/components/Calculator/renderInitialFeeInput.js.map +1 -0
- package/mobile/dist/components/Calculator/renderMonthsInput.d.ts +11 -0
- package/mobile/dist/components/Calculator/renderMonthsInput.js +15 -0
- package/mobile/dist/components/Calculator/renderMonthsInput.js.map +1 -0
- package/mobile/dist/components/Calculator/renderProposal.d.ts +1 -0
- package/mobile/dist/components/Calculator/renderProposal.js +10 -0
- package/mobile/dist/components/Calculator/renderProposal.js.map +1 -0
- package/mobile/dist/components/Calculator/renderProposalMortgage.d.ts +7 -0
- package/mobile/dist/components/Calculator/renderProposalMortgage.js +9 -0
- package/mobile/dist/components/Calculator/renderProposalMortgage.js.map +1 -0
- package/mobile/dist/components/Calculator/renderRate.d.ts +8 -0
- package/mobile/dist/components/Calculator/renderRate.js +9 -0
- package/mobile/dist/components/Calculator/renderRate.js.map +1 -0
- package/mobile/dist/components/Calculator/renderRealEstateValue.d.ts +10 -0
- package/mobile/dist/components/Calculator/renderRealEstateValue.js +15 -0
- package/mobile/dist/components/Calculator/renderRealEstateValue.js.map +1 -0
- package/mobile/dist/components/Calculator/renderWantedSumInput.d.ts +13 -0
- package/mobile/dist/components/Calculator/renderWantedSumInput.js +19 -0
- package/mobile/dist/components/Calculator/renderWantedSumInput.js.map +1 -0
- package/mobile/dist/components/ContentPage/ContentPage.d.ts +1 -1
- package/mobile/dist/components/Header/HeaderContent.d.ts +6 -0
- package/mobile/dist/components/Header/HeaderSubMenu.js +7 -4
- package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/dist/components/ProductGallery/ProductGalleryContent.d.ts +3 -6
- package/mobile/dist/components/ProductTile/ProductTile.js +14 -2
- package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +2 -0
- package/mobile/dist/components/Tile/Tile.js +1 -1
- package/mobile/dist/components/Tile/Tile.js.map +1 -1
- package/mobile/dist/types.d.ts +1 -5
- package/mobile/dist/ui-kit/BlocksList/renderBlocksList.d.ts +0 -1
- package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js +2 -3
- package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js +2 -2
- package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonProps.d.ts +2 -0
- package/mobile/dist/ui-kit/Button/ButtonSection.js +1 -1
- package/mobile/dist/ui-kit/Button/ButtonSection.js.map +1 -1
- package/mobile/dist/ui-kit/Checkbox/Checkbox.js +1 -1
- package/mobile/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/mobile/dist/ui-kit/InputRange/InputRange.js +2 -2
- package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/dist/ui-kit/InputRange/InputRangeProps.d.ts +2 -1
- package/mobile/dist/ui-kit/Tabs/TabsProps.d.ts +2 -1
- package/mobile/lib/components/Calculator/BonusCalculatorForm.d.ts +5 -0
- package/mobile/lib/components/Calculator/BonusCalculatorForm.js +38 -0
- package/mobile/lib/components/Calculator/BonusCalculatorForm.js.map +1 -0
- package/mobile/lib/components/Calculator/Calculator.d.ts +5 -0
- package/mobile/lib/components/Calculator/Calculator.js +44 -0
- package/mobile/lib/components/Calculator/Calculator.js.map +1 -0
- package/mobile/lib/components/Calculator/CalculatorContent.d.ts +110 -0
- package/mobile/lib/components/Calculator/CalculatorContent.js +2 -0
- package/mobile/lib/components/Calculator/CalculatorContent.js.map +1 -0
- package/mobile/lib/components/Calculator/CalculatorValueBlock.d.ts +8 -0
- package/mobile/lib/components/Calculator/CalculatorValueBlock.js +7 -0
- package/mobile/lib/components/Calculator/CalculatorValueBlock.js.map +1 -0
- package/mobile/lib/components/Calculator/CreditCalculatorForm.d.ts +5 -0
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js +49 -0
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -0
- package/mobile/lib/components/Calculator/DepositCalculatorForm.d.ts +5 -0
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js +39 -0
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -0
- package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.d.ts +11 -0
- package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.js +11 -0
- package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.js.map +1 -0
- package/mobile/lib/components/Calculator/MortgageCalculatorForm.d.ts +5 -0
- package/mobile/lib/components/Calculator/MortgageCalculatorForm.js +47 -0
- package/mobile/lib/components/Calculator/MortgageCalculatorForm.js.map +1 -0
- package/mobile/lib/components/Calculator/constants.d.ts +7 -0
- package/mobile/lib/components/Calculator/constants.js +8 -0
- package/mobile/lib/components/Calculator/constants.js.map +1 -0
- package/mobile/lib/components/Calculator/getCalculatorParams.d.ts +7 -0
- package/mobile/lib/components/Calculator/getCalculatorParams.js +8 -0
- package/mobile/lib/components/Calculator/getCalculatorParams.js.map +1 -0
- package/mobile/lib/components/Calculator/getCreditRate.d.ts +7 -0
- package/mobile/lib/components/Calculator/getCreditRate.js +10 -0
- package/mobile/lib/components/Calculator/getCreditRate.js.map +1 -0
- package/mobile/lib/components/Calculator/getDefaultMonths.d.ts +2 -0
- package/mobile/lib/components/Calculator/getDefaultMonths.js +5 -0
- package/mobile/lib/components/Calculator/getDefaultMonths.js.map +1 -0
- package/mobile/lib/components/Calculator/getDefaultSum.d.ts +2 -0
- package/mobile/lib/components/Calculator/getDefaultSum.js +5 -0
- package/mobile/lib/components/Calculator/getDefaultSum.js.map +1 -0
- package/mobile/lib/components/Calculator/getMonthlyPayment.d.ts +11 -0
- package/mobile/lib/components/Calculator/getMonthlyPayment.js +16 -0
- package/mobile/lib/components/Calculator/getMonthlyPayment.js.map +1 -0
- package/mobile/lib/components/Calculator/renderButtonSection.d.ts +1 -0
- package/mobile/lib/components/Calculator/renderButtonSection.js +6 -0
- package/mobile/lib/components/Calculator/renderButtonSection.js.map +1 -0
- package/mobile/lib/components/Calculator/renderCalculatorList.d.ts +10 -0
- package/mobile/lib/components/Calculator/renderCalculatorList.js +14 -0
- package/mobile/lib/components/Calculator/renderCalculatorList.js.map +1 -0
- package/mobile/lib/components/Calculator/renderInitialFeeInput.d.ts +10 -0
- package/mobile/lib/components/Calculator/renderInitialFeeInput.js +15 -0
- package/mobile/lib/components/Calculator/renderInitialFeeInput.js.map +1 -0
- package/mobile/lib/components/Calculator/renderMonthsInput.d.ts +11 -0
- package/mobile/lib/components/Calculator/renderMonthsInput.js +12 -0
- package/mobile/lib/components/Calculator/renderMonthsInput.js.map +1 -0
- package/mobile/lib/components/Calculator/renderProposal.d.ts +1 -0
- package/mobile/lib/components/Calculator/renderProposal.js +7 -0
- package/mobile/lib/components/Calculator/renderProposal.js.map +1 -0
- package/mobile/lib/components/Calculator/renderProposalMortgage.d.ts +7 -0
- package/mobile/lib/components/Calculator/renderProposalMortgage.js +6 -0
- package/mobile/lib/components/Calculator/renderProposalMortgage.js.map +1 -0
- package/mobile/lib/components/Calculator/renderRate.d.ts +8 -0
- package/mobile/lib/components/Calculator/renderRate.js +6 -0
- package/mobile/lib/components/Calculator/renderRate.js.map +1 -0
- package/mobile/lib/components/Calculator/renderRealEstateValue.d.ts +10 -0
- package/mobile/lib/components/Calculator/renderRealEstateValue.js +12 -0
- package/mobile/lib/components/Calculator/renderRealEstateValue.js.map +1 -0
- package/mobile/lib/components/Calculator/renderWantedSumInput.d.ts +13 -0
- package/mobile/lib/components/Calculator/renderWantedSumInput.js +16 -0
- package/mobile/lib/components/Calculator/renderWantedSumInput.js.map +1 -0
- package/mobile/lib/components/ContentPage/ContentPage.d.ts +1 -1
- package/mobile/lib/components/Header/HeaderContent.d.ts +6 -0
- package/mobile/lib/components/Header/HeaderSubMenu.js +7 -4
- package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/lib/components/ProductGallery/ProductGalleryContent.d.ts +3 -6
- package/mobile/lib/components/ProductTile/ProductTile.js +14 -2
- package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +2 -0
- package/mobile/lib/components/Tile/Tile.js +1 -1
- package/mobile/lib/components/Tile/Tile.js.map +1 -1
- package/mobile/lib/types.d.ts +1 -5
- package/mobile/lib/ui-kit/BlocksList/renderBlocksList.d.ts +0 -1
- package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js +1 -1
- package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js +2 -2
- package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonProps.d.ts +2 -0
- package/mobile/lib/ui-kit/Button/ButtonSection.js +1 -1
- package/mobile/lib/ui-kit/Button/ButtonSection.js.map +1 -1
- package/mobile/lib/ui-kit/Checkbox/Checkbox.js +1 -1
- package/mobile/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/mobile/lib/ui-kit/InputRange/InputRange.js +2 -2
- package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/lib/ui-kit/InputRange/InputRangeProps.d.ts +2 -1
- package/mobile/lib/ui-kit/Tabs/TabsProps.d.ts +2 -1
- package/mobile/src/common.css +7 -0
- package/mobile/src/components/Calculator/BonusCalculatorForm.tsx +71 -0
- package/mobile/src/components/Calculator/Calculator.tsx +141 -0
- package/mobile/src/components/Calculator/CalculatorContent.ts +134 -0
- package/mobile/src/components/Calculator/CalculatorValueBlock.tsx +25 -0
- package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +99 -0
- package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +69 -0
- package/mobile/src/components/Calculator/EmbeddableCalcBlocks.tsx +17 -0
- package/mobile/src/components/Calculator/MortgageCalculatorForm.tsx +88 -0
- package/mobile/src/components/Calculator/constants.ts +8 -0
- package/mobile/src/components/Calculator/getCalculatorParams.ts +16 -0
- package/mobile/src/components/Calculator/getCreditRate.ts +18 -0
- package/mobile/src/components/Calculator/getDefaultMonths.ts +7 -0
- package/mobile/src/components/Calculator/getDefaultSum.ts +7 -0
- package/mobile/src/components/Calculator/getMonthlyPayment.ts +32 -0
- package/mobile/src/components/Calculator/renderButtonSection.tsx +7 -0
- package/mobile/src/components/Calculator/renderCalculatorList.tsx +43 -0
- package/mobile/src/components/Calculator/renderInitialFeeInput.tsx +37 -0
- package/mobile/src/components/Calculator/renderMonthsInput.tsx +34 -0
- package/mobile/src/components/Calculator/renderProposal.tsx +14 -0
- package/mobile/src/components/Calculator/renderProposalMortgage.tsx +17 -0
- package/mobile/src/components/Calculator/renderRate.tsx +23 -0
- package/mobile/src/components/Calculator/renderRealEstateValue.tsx +33 -0
- package/mobile/src/components/Calculator/renderWantedSumInput.tsx +49 -0
- package/mobile/src/components/ContentPage/ContentPage.page.json +9 -8
- package/mobile/src/components/ContentPage/ContentPage.tsx +2 -2
- package/mobile/src/components/Header/HeaderContent.ts +6 -0
- package/mobile/src/components/Header/HeaderSubMenu.tsx +10 -5
- package/mobile/src/components/ProductGallery/ProductGallery.example.json +8 -10
- package/mobile/src/components/ProductGallery/ProductGalleryContent.ts +3 -6
- package/mobile/src/components/ProductTile/ProductTile.tsx +30 -13
- package/mobile/src/components/ProductTile/ProductTileContent.ts +2 -0
- package/mobile/src/components/Tile/Tile.tsx +5 -1
- package/mobile/src/icons/SafeIcon.svg +7 -1
- package/mobile/src/types.ts +2 -6
- package/mobile/src/ui-kit/BlocksList/renderBlocksList.tsx +1 -1
- package/mobile/src/ui-kit/Button/ButtonInner.tsx +2 -1
- package/mobile/src/ui-kit/Button/ButtonProps.ts +2 -0
- package/mobile/src/ui-kit/Button/ButtonSection.tsx +1 -1
- package/mobile/src/ui-kit/Checkbox/Checkbox.tsx +1 -3
- package/mobile/src/ui-kit/InputRange/InputRange.tsx +7 -9
- package/mobile/src/ui-kit/InputRange/InputRangeProps.ts +3 -1
- package/mobile/src/ui-kit/Tabs/TabsProps.ts +2 -1
- package/package.json +1 -1
- package/src/common.css +7 -0
- package/src/components/Blocks.ts +2 -2
- package/src/components/Calculator/BonusCalculatorForm.tsx +71 -0
- package/src/components/Calculator/Calculator.fixture.tsx +131 -0
- package/src/components/Calculator/Calculator.tsx +141 -0
- package/src/components/Calculator/CalculatorContent.ts +134 -0
- package/src/components/Calculator/CalculatorValueBlock.tsx +25 -0
- package/src/components/Calculator/CreditCalculatorForm.tsx +99 -0
- package/src/components/Calculator/DepositCalculatorForm.tsx +69 -0
- package/src/components/Calculator/EmbeddableCalcBlocks.tsx +17 -0
- package/src/components/Calculator/MortgageCalculatorForm.tsx +88 -0
- package/src/components/Calculator/constants.ts +8 -0
- package/src/components/Calculator/getCalculatorParams.ts +16 -0
- package/src/components/Calculator/getCreditRate.ts +18 -0
- package/src/components/Calculator/getDefaultMonths.ts +7 -0
- package/src/components/Calculator/getDefaultSum.ts +7 -0
- package/src/components/Calculator/getMonthlyPayment.ts +32 -0
- package/src/components/Calculator/renderButtonSection.tsx +7 -0
- package/src/components/Calculator/renderCalculatorList.tsx +43 -0
- package/src/components/Calculator/renderInitialFeeInput.tsx +37 -0
- package/src/components/Calculator/renderMonthsInput.tsx +34 -0
- package/src/components/Calculator/renderProposal.tsx +14 -0
- package/src/components/Calculator/renderProposalMortgage.tsx +17 -0
- package/src/components/Calculator/renderRate.tsx +23 -0
- package/src/components/Calculator/renderRealEstateValue.tsx +33 -0
- package/src/components/Calculator/renderWantedSumInput.tsx +49 -0
- package/src/components/ContentPage/ContentPage.page.json +9 -8
- package/src/components/ContentPage/ContentPage.tsx +2 -2
- package/src/components/Header/Header.fixture.tsx +1 -0
- package/src/components/Header/Header.tsx +4 -1
- package/src/components/Header/HeaderContent.ts +6 -0
- package/src/components/Header/HeaderSubMenu.tsx +10 -5
- package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +1 -1
- package/src/components/ProductGallery/ProductGallery.example.json +8 -10
- package/src/components/ProductGallery/ProductGallery.fixture.tsx +146 -104
- package/src/components/ProductGallery/ProductGallery.tsx +73 -24
- package/src/components/ProductGallery/ProductGalleryContent.ts +3 -6
- package/src/components/ProductTile/ProductTile.fixture.tsx +50 -5
- package/src/components/ProductTile/ProductTile.tsx +30 -13
- package/src/components/ProductTile/ProductTileContent.ts +2 -0
- package/src/components/Tile/Tile.tsx +5 -1
- package/src/icons/SafeIcon.svg +7 -1
- package/src/types.ts +2 -6
- package/src/ui-kit/BlocksList/renderBlocksList.tsx +1 -1
- package/src/ui-kit/Button/Button.fixture.tsx +12 -0
- package/src/ui-kit/Button/Button.tsx +8 -2
- package/src/ui-kit/Button/ButtonInner.tsx +2 -1
- package/src/ui-kit/Button/ButtonProps.ts +2 -0
- package/src/ui-kit/Button/ButtonSection.tsx +1 -1
- package/src/ui-kit/Checkbox/Checkbox.tsx +1 -3
- package/src/ui-kit/InputRange/InputRange.tsx +7 -9
- package/src/ui-kit/InputRange/InputRangeProps.ts +3 -1
- package/src/ui-kit/Tabs/TabsProps.ts +2 -1
- package/dist/components/ContentPage/CustomContentPage.d.ts +0 -30
- package/dist/components/ContentPage/CustomContentPage.js +0 -33
- package/dist/components/ContentPage/CustomContentPage.js.map +0 -1
- package/dist/components/ProductGalleryGreen/ProductGalleryGreen.d.ts +0 -5
- package/dist/components/ProductGalleryGreen/ProductGalleryGreen.js +0 -53
- package/dist/components/ProductGalleryGreen/ProductGalleryGreen.js.map +0 -1
- package/dist/components/ProductGalleryGreen/ProductGalleryGreenContent.d.ts +0 -32
- package/dist/components/ProductGalleryGreen/ProductGalleryGreenContent.js.map +0 -1
- package/lib/components/ContentPage/CustomContentPage.d.ts +0 -30
- package/lib/components/ContentPage/CustomContentPage.js +0 -31
- package/lib/components/ContentPage/CustomContentPage.js.map +0 -1
- package/lib/components/ProductGalleryGreen/ProductGalleryGreen.d.ts +0 -5
- package/lib/components/ProductGalleryGreen/ProductGalleryGreen.js +0 -51
- package/lib/components/ProductGalleryGreen/ProductGalleryGreen.js.map +0 -1
- package/lib/components/ProductGalleryGreen/ProductGalleryGreenContent.d.ts +0 -32
- package/lib/components/ProductGalleryGreen/ProductGalleryGreenContent.js +0 -2
- package/lib/components/ProductGalleryGreen/ProductGalleryGreenContent.js.map +0 -1
- package/mobile/dist/components/ContentPage/CustomContentPage.d.ts +0 -30
- package/mobile/dist/components/ContentPage/CustomContentPage.js +0 -33
- package/mobile/dist/components/ContentPage/CustomContentPage.js.map +0 -1
- package/mobile/dist/components/ProductGalleryGreen/ProductGalleryGreen.d.ts +0 -5
- package/mobile/dist/components/ProductGalleryGreen/ProductGalleryGreen.js +0 -53
- package/mobile/dist/components/ProductGalleryGreen/ProductGalleryGreen.js.map +0 -1
- package/mobile/dist/components/ProductGalleryGreen/ProductGalleryGreenContent.d.ts +0 -32
- package/mobile/dist/components/ProductGalleryGreen/ProductGalleryGreenContent.js.map +0 -1
- package/mobile/lib/components/ContentPage/CustomContentPage.d.ts +0 -30
- package/mobile/lib/components/ContentPage/CustomContentPage.js +0 -31
- package/mobile/lib/components/ContentPage/CustomContentPage.js.map +0 -1
- package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreen.d.ts +0 -5
- package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreen.js +0 -51
- package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreen.js.map +0 -1
- package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreenContent.d.ts +0 -32
- package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreenContent.js +0 -2
- package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreenContent.js.map +0 -1
- package/mobile/src/components/ContentPage/CustomContentPage.tsx +0 -82
- package/mobile/src/components/ProductGalleryGreen/ProductGalleryGreen.example.json +0 -23
- package/mobile/src/components/ProductGalleryGreen/ProductGalleryGreen.tsx +0 -120
- package/mobile/src/components/ProductGalleryGreen/ProductGalleryGreenContent.ts +0 -34
- package/src/components/ContentPage/CustomContentPage.tsx +0 -82
- package/src/components/ProductGalleryGreen/ProductGalleryGreen.example.json +0 -23
- package/src/components/ProductGalleryGreen/ProductGalleryGreen.fixture.tsx +0 -186
- package/src/components/ProductGalleryGreen/ProductGalleryGreen.tsx +0 -120
- package/src/components/ProductGalleryGreen/ProductGalleryGreenContent.ts +0 -34
|
@@ -17,6 +17,12 @@ const letterWithMoney: Picture = {
|
|
|
17
17
|
format: 'webp',
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
+
const letterWithPhone: Picture = {
|
|
21
|
+
src: 'letter-with-phone.png',
|
|
22
|
+
alt: 'Пенсионный кредит в РСХБ',
|
|
23
|
+
format: 'webp',
|
|
24
|
+
};
|
|
25
|
+
|
|
20
26
|
const building: Picture = {
|
|
21
27
|
src: 'building.png',
|
|
22
28
|
alt: 'Кредит под залог недвижимости в РСХБ',
|
|
@@ -38,6 +44,13 @@ const benefits = [
|
|
|
38
44
|
},
|
|
39
45
|
];
|
|
40
46
|
|
|
47
|
+
const benefits2 = [
|
|
48
|
+
{
|
|
49
|
+
label: '1 год',
|
|
50
|
+
description: 'срок программы',
|
|
51
|
+
},
|
|
52
|
+
];
|
|
53
|
+
|
|
41
54
|
const buttons: ButtonProps[] = [
|
|
42
55
|
{
|
|
43
56
|
text: 'Подробнее',
|
|
@@ -46,7 +59,22 @@ const buttons: ButtonProps[] = [
|
|
|
46
59
|
},
|
|
47
60
|
];
|
|
48
61
|
|
|
49
|
-
const
|
|
62
|
+
const buttons2: ButtonProps[] = [
|
|
63
|
+
{
|
|
64
|
+
href: 'https://rshb.ru',
|
|
65
|
+
text: 'Подробнее',
|
|
66
|
+
target: '_blank',
|
|
67
|
+
version: 'secondary',
|
|
68
|
+
},
|
|
69
|
+
];
|
|
70
|
+
|
|
71
|
+
const buttons3: ButtonProps[] = [
|
|
72
|
+
{
|
|
73
|
+
href: 'https://rshb.ru',
|
|
74
|
+
text: 'Оформить',
|
|
75
|
+
target: '_blank',
|
|
76
|
+
version: 'primary',
|
|
77
|
+
},
|
|
50
78
|
{
|
|
51
79
|
href: 'https://rshb.ru',
|
|
52
80
|
text: 'Подробнее',
|
|
@@ -68,7 +96,7 @@ export const PRODUCT_PENSION_TILE: ProductTileContent = {
|
|
|
68
96
|
headingType: 'h3',
|
|
69
97
|
description: 'Для людей в возрасте до 75 лет',
|
|
70
98
|
benefits,
|
|
71
|
-
buttons:
|
|
99
|
+
buttons: buttons2,
|
|
72
100
|
};
|
|
73
101
|
|
|
74
102
|
export default {
|
|
@@ -86,7 +114,7 @@ export default {
|
|
|
86
114
|
headingType="h3"
|
|
87
115
|
description={'Потребительский кредит на любые цели, без залога и поручительства'}
|
|
88
116
|
benefits={benefits}
|
|
89
|
-
buttons={
|
|
117
|
+
buttons={buttons2}
|
|
90
118
|
image={letterWithMoney}
|
|
91
119
|
/>
|
|
92
120
|
</div>
|
|
@@ -100,7 +128,7 @@ export default {
|
|
|
100
128
|
headingType="h3"
|
|
101
129
|
description={'Без переоформления залогой недвижимости на банк'}
|
|
102
130
|
benefits={benefits}
|
|
103
|
-
buttons={
|
|
131
|
+
buttons={buttons2}
|
|
104
132
|
image={building}
|
|
105
133
|
/>
|
|
106
134
|
</div>
|
|
@@ -114,7 +142,24 @@ export default {
|
|
|
114
142
|
headingType="h3"
|
|
115
143
|
description={'Для людей в возрасте до 75 лет'}
|
|
116
144
|
benefits={benefits}
|
|
117
|
-
buttons={
|
|
145
|
+
buttons={buttons2}
|
|
146
|
+
/>
|
|
147
|
+
</div>
|
|
148
|
+
),
|
|
149
|
+
'with-add-desc': (
|
|
150
|
+
<div className="container grid grid-cols-12">
|
|
151
|
+
<ProductTile
|
|
152
|
+
context={context}
|
|
153
|
+
className="col-span-6"
|
|
154
|
+
title="Ипотечное страхование"
|
|
155
|
+
headingType="h3"
|
|
156
|
+
description={'Финансовая защита заемщиков в случае непредвиденных обстоятельств'}
|
|
157
|
+
additionalDescription={
|
|
158
|
+
'Страховая сумма и страховой взнос зависит от остатка задолженности по ипотеке'
|
|
159
|
+
}
|
|
160
|
+
benefits={benefits2}
|
|
161
|
+
buttons={buttons3}
|
|
162
|
+
image={letterWithPhone}
|
|
118
163
|
/>
|
|
119
164
|
</div>
|
|
120
165
|
),
|
|
@@ -8,7 +8,7 @@ import { Img } from '../../ui-kit/Img/Img';
|
|
|
8
8
|
import { BaseTile } from '../BaseTile/BaseTile';
|
|
9
9
|
import { getTileMinHeight } from '../BaseTile/getTileMinHeight';
|
|
10
10
|
import { getTileRightPadding } from '../BaseTile/getTileRightPadding';
|
|
11
|
-
import type {
|
|
11
|
+
import type { TextBenefit } from '../BenefitsBlock/BenefitsBlockContent';
|
|
12
12
|
import type { ProductTileContent } from './ProductTileContent';
|
|
13
13
|
|
|
14
14
|
export interface ProductTileProps extends ProductTileContent, UniBlockProps {}
|
|
@@ -25,6 +25,7 @@ export const ProductTile = JSX<ProductTileProps>(
|
|
|
25
25
|
title,
|
|
26
26
|
headingType = 'h3',
|
|
27
27
|
description,
|
|
28
|
+
additionalDescription,
|
|
28
29
|
benefits,
|
|
29
30
|
buttons,
|
|
30
31
|
image,
|
|
@@ -60,23 +61,31 @@ export const ProductTile = JSX<ProductTileProps>(
|
|
|
60
61
|
{description ? (
|
|
61
62
|
<Description className="mt-4 max-w-[600px]" description={description} />
|
|
62
63
|
) : null}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
<div className="pt-1">
|
|
69
|
-
{benefits.map((_, i) => renderBenefitDescription(_, i, version))}
|
|
70
|
-
</div>
|
|
71
|
-
) : null}
|
|
72
|
-
</div>
|
|
64
|
+
{renderBenefits(benefits, version)}
|
|
65
|
+
|
|
66
|
+
{additionalDescription
|
|
67
|
+
? renderAdditionalDescription(additionalDescription, version)
|
|
68
|
+
: null}
|
|
73
69
|
</BaseTile>
|
|
74
70
|
</section>
|
|
75
71
|
);
|
|
76
72
|
},
|
|
77
73
|
);
|
|
78
74
|
|
|
79
|
-
function
|
|
75
|
+
function renderBenefits(benefits: TextBenefit[] = [], version: BlockVersion) {
|
|
76
|
+
return (
|
|
77
|
+
<div className="flex mt-5 mb-1">
|
|
78
|
+
{benefits.length ? <div className="mr-8">{benefits.map(renderBenefitLabel)}</div> : null}
|
|
79
|
+
{benefits.length ? (
|
|
80
|
+
<div className="pt-1">
|
|
81
|
+
{benefits.map((_, i) => renderBenefitDescription(_, i, version))}
|
|
82
|
+
</div>
|
|
83
|
+
) : null}
|
|
84
|
+
</div>
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
function renderBenefitLabel(benefit: TextBenefit, i: number) {
|
|
80
89
|
return (
|
|
81
90
|
<div key={String(i)} className={`text-xl font-medium ${i ? 'mt-2.5' : ''}`}>
|
|
82
91
|
{benefit.label}
|
|
@@ -84,7 +93,7 @@ function renderBenefitLabel(benefit: Benefit, i: number) {
|
|
|
84
93
|
);
|
|
85
94
|
}
|
|
86
95
|
|
|
87
|
-
function renderBenefitDescription(benefit:
|
|
96
|
+
function renderBenefitDescription(benefit: TextBenefit, i: number, version = 'primary') {
|
|
88
97
|
const labelStyleMap: Record<BlockVersion, string> = {
|
|
89
98
|
primary: 'text-secondary-text',
|
|
90
99
|
secondary: 'text-white',
|
|
@@ -95,3 +104,11 @@ function renderBenefitDescription(benefit: Benefit, i: number, version = 'primar
|
|
|
95
104
|
</div>
|
|
96
105
|
);
|
|
97
106
|
}
|
|
107
|
+
|
|
108
|
+
function renderAdditionalDescription(additionalDescription: string, version = 'primary') {
|
|
109
|
+
const descStyleMap: Record<BlockVersion, string> = {
|
|
110
|
+
primary: 'text-secondary-text',
|
|
111
|
+
secondary: 'text-white',
|
|
112
|
+
};
|
|
113
|
+
return <div className={`text-sm mt-2.5 ${descStyleMap[version]}`}>{additionalDescription}</div>;
|
|
114
|
+
}
|
|
@@ -59,7 +59,11 @@ export const Tile = JSX<TileProps>((props) => {
|
|
|
59
59
|
}
|
|
60
60
|
buttons={
|
|
61
61
|
buttons?.length ? (
|
|
62
|
-
<ButtonSection
|
|
62
|
+
<ButtonSection
|
|
63
|
+
context={context}
|
|
64
|
+
buttons={buttons.map((button) => ({ ...button, className: 'w-[158px]' }))}
|
|
65
|
+
className="flex mt-9 gap-3"
|
|
66
|
+
/>
|
|
63
67
|
) : null
|
|
64
68
|
}
|
|
65
69
|
image={image?.src && <Img className="mt-auto ml-7" image={image} />}
|
package/src/icons/SafeIcon.svg
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
<svg title="Сейф" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"
|
|
1
|
+
<svg title="Сейф" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M2 12.83V15c0 5 2 7 7 7h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
+
<path d="M5 9.5h2.48a2.5 2.5 0 0 1 0 5H5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
<path d="M8 19h8c2 0 3-1 3-3V8c0-2-1-3-3-3H8C6 5 5 6 5 8v8c0 2 1 3 3 3Z" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5
|
+
<path d="M19 9.99h-3M19 14h-3" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6
|
+
<path d="M7.2 12h.1" stroke="currentColor" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7
|
+
</svg>
|
package/src/types.ts
CHANGED
|
@@ -44,16 +44,10 @@ export interface ContentPageMeta {
|
|
|
44
44
|
jsonLd?: string;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
export interface CustomPageTemplate {
|
|
48
|
-
content?: Record<string, any>;
|
|
49
|
-
type?: string;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
47
|
export interface ContentPageDef extends ContentPageMeta {
|
|
53
48
|
style?: string[];
|
|
54
49
|
blocks?: BlockDef[];
|
|
55
50
|
slots?: SlotsMap;
|
|
56
|
-
customPageTmpl?: CustomPageTemplate;
|
|
57
51
|
likeControl?: boolean;
|
|
58
52
|
colorPalette?: ColorPalette;
|
|
59
53
|
}
|
|
@@ -77,3 +71,5 @@ export interface DaDataSuggestion<T> {
|
|
|
77
71
|
export interface DaDataAddress {
|
|
78
72
|
city?: string | null;
|
|
79
73
|
}
|
|
74
|
+
|
|
75
|
+
export type FuncSetNumber = (value: number) => void;
|
|
@@ -13,7 +13,7 @@ type EmbeddableBlocksProps = {
|
|
|
13
13
|
export const renderBlocksList = ({ blocks, context, className, columns }: EmbeddableBlocksProps) =>
|
|
14
14
|
blocks?.length ? blocks.map(renderBlock({ context, className, columns })) : null;
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
const renderBlock =
|
|
17
17
|
({ context, columns, className }: EmbeddableBlocksProps) =>
|
|
18
18
|
(block: BlockDef, i: number) => {
|
|
19
19
|
const type = block?.blockListType;
|
|
@@ -84,6 +84,18 @@ export default {
|
|
|
84
84
|
text="App Store"
|
|
85
85
|
version="secondary"
|
|
86
86
|
/>
|
|
87
|
+
|
|
88
|
+
<Button
|
|
89
|
+
href="https://www.rshb.ru/"
|
|
90
|
+
target="_blank"
|
|
91
|
+
appendRight={
|
|
92
|
+
<div>
|
|
93
|
+
<Img image={{ icon: 'TelegramIcon' }} width="20" height="16" asSVG />
|
|
94
|
+
</div>
|
|
95
|
+
}
|
|
96
|
+
text="Мы в Telegram"
|
|
97
|
+
version="primary"
|
|
98
|
+
/>
|
|
87
99
|
</div>
|
|
88
100
|
</div>
|
|
89
101
|
<div>
|
|
@@ -21,10 +21,16 @@ const buttonStyle = 'text-center font-sans select-none';
|
|
|
21
21
|
export interface ButtonCommonProps extends ButtonProps, ButtonWithIconProps {}
|
|
22
22
|
|
|
23
23
|
export const Button = JSX<ButtonCommonProps>((props) => {
|
|
24
|
-
const { text, aboveText, appendLeft, children, disabled, rounded, ...rest } = props;
|
|
24
|
+
const { text, aboveText, appendLeft, appendRight, children, disabled, rounded, ...rest } = props;
|
|
25
25
|
|
|
26
26
|
const buttonInner = children ?? (
|
|
27
|
-
<ButtonInner
|
|
27
|
+
<ButtonInner
|
|
28
|
+
text={text}
|
|
29
|
+
aboveText={aboveText}
|
|
30
|
+
appendLeft={appendLeft}
|
|
31
|
+
appendRight={appendRight}
|
|
32
|
+
rounded={rounded}
|
|
33
|
+
/>
|
|
28
34
|
);
|
|
29
35
|
|
|
30
36
|
return disabled ? (
|
|
@@ -7,7 +7,7 @@ interface ButtonInnerProps extends ButtonWithIconProps {
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
export const ButtonInner = JSX<ButtonInnerProps>((props) => {
|
|
10
|
-
const { text, aboveText, appendLeft } = props;
|
|
10
|
+
const { text, aboveText, appendLeft, appendRight } = props;
|
|
11
11
|
return (
|
|
12
12
|
<div className={getButtonStyle(props)}>
|
|
13
13
|
{appendLeft ? appendLeft : null}
|
|
@@ -17,6 +17,7 @@ export const ButtonInner = JSX<ButtonInnerProps>((props) => {
|
|
|
17
17
|
<div className="text-button text-left">{text}</div>
|
|
18
18
|
</div>
|
|
19
19
|
) : null}
|
|
20
|
+
{appendRight ? appendRight : null}
|
|
20
21
|
</div>
|
|
21
22
|
);
|
|
22
23
|
});
|
|
@@ -11,7 +11,7 @@ export const ButtonSection = JSX<ButtonSectionProps>(({ context, className = '',
|
|
|
11
11
|
const { handlerDecorator } = context;
|
|
12
12
|
const router = context.useRouter();
|
|
13
13
|
return buttons?.length ? (
|
|
14
|
-
<div className={
|
|
14
|
+
<div className={className}>
|
|
15
15
|
{buttons.map((button, index) =>
|
|
16
16
|
renderButton(useLink({ router, handlerDecorator }, button), index),
|
|
17
17
|
)}
|
|
@@ -32,9 +32,7 @@ export const Checkbox = JSX<CheckboxProps>(({ text, checked, onChange, className
|
|
|
32
32
|
fill="white"
|
|
33
33
|
viewBox="0 0 11 9"
|
|
34
34
|
/>
|
|
35
|
-
{text ?
|
|
36
|
-
<span className="font-sans ml-3 text-sm leading-5 cursor-pointer">{text}</span>
|
|
37
|
-
) : null}
|
|
35
|
+
{text ? <span className="font-sans ml-3 text-m-base cursor-pointer">{text}</span> : null}
|
|
38
36
|
</label>
|
|
39
37
|
</div>
|
|
40
38
|
));
|
|
@@ -20,19 +20,15 @@ export const InputRange = JSX<InputRangeProps>(
|
|
|
20
20
|
return (
|
|
21
21
|
<div className={className}>
|
|
22
22
|
<label className="block relative">
|
|
23
|
-
{title ?
|
|
24
|
-
<span className="absolute text-xs text-secondary-text top-1 mt-0.5 pl-4 ml-0.5">
|
|
25
|
-
{title}
|
|
26
|
-
</span>
|
|
27
|
-
) : null}
|
|
23
|
+
{title ? <span className="text-base text-secondary-text pl-4">{title}</span> : null}
|
|
28
24
|
<input
|
|
29
|
-
className={`m-0 font-sans text-
|
|
30
|
-
outline-none p-0 pl-4
|
|
25
|
+
className={`m-0 mt-[5px] font-sans text-title w-full h-14 border border-solid border-main-stroke rounded-md
|
|
26
|
+
outline-none p-0 pl-4 box-border text-primary-text`}
|
|
31
27
|
value={addSpacesBetweenNumbers(value)}
|
|
32
28
|
onChange={(e) => handleChange(e.target.value)}
|
|
33
29
|
onBlur={handleBlur}
|
|
34
30
|
/>
|
|
35
|
-
<div className="absolute inset-x-0
|
|
31
|
+
<div className="absolute inset-x-0 bottom-[-4px] px-4 leading-[18px]">
|
|
36
32
|
<input
|
|
37
33
|
className="box-border w-full m-0 cursor-pointer slider"
|
|
38
34
|
type="range"
|
|
@@ -47,7 +43,9 @@ export const InputRange = JSX<InputRangeProps>(
|
|
|
47
43
|
</label>
|
|
48
44
|
<div className="flex justify-between my-3">
|
|
49
45
|
{items.map((item, i) => (
|
|
50
|
-
<span key={String(i)} className="text-
|
|
46
|
+
<span key={String(i)} className="text-sm leading-[14px] text-secondary-text pl-4">
|
|
47
|
+
{item}
|
|
48
|
+
</span>
|
|
51
49
|
))}
|
|
52
50
|
</div>
|
|
53
51
|
</div>
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { FuncSetNumber } from '../../types';
|
|
2
|
+
|
|
1
3
|
export interface InputRangeProps {
|
|
2
4
|
className?: string;
|
|
3
5
|
items?: string[];
|
|
@@ -6,5 +8,5 @@ export interface InputRangeProps {
|
|
|
6
8
|
step?: number;
|
|
7
9
|
value?: number;
|
|
8
10
|
title?: string;
|
|
9
|
-
onChange?:
|
|
11
|
+
onChange?: FuncSetNumber;
|
|
10
12
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Picture } from '../../model/Picture';
|
|
2
|
+
import { FuncSetNumber } from '../../types';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* @title Вкладка
|
|
@@ -11,7 +12,7 @@ export interface Tab {
|
|
|
11
12
|
icon?: Picture;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
|
-
export type TabClickHandler =
|
|
15
|
+
export type TabClickHandler = FuncSetNumber;
|
|
15
16
|
|
|
16
17
|
export interface TabsProps {
|
|
17
18
|
tabs?: Tab[];
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { ContentPageDef, CustomPageTemplate, UniBlockProps } from '../../types';
|
|
2
|
-
import { ContentPageContext } from './ContentPageContext';
|
|
3
|
-
interface PageDecoratorProps<VNode> {
|
|
4
|
-
pageClassName: string;
|
|
5
|
-
pageTemplate: CustomPageTemplate;
|
|
6
|
-
render: (props: {
|
|
7
|
-
pageClassName: string;
|
|
8
|
-
pageTemplate: CustomPageTemplate;
|
|
9
|
-
}) => VNode;
|
|
10
|
-
}
|
|
11
|
-
export declare type PageDecorator<VNode = any> = (props: PageDecoratorProps<VNode>, index?: number | string) => any;
|
|
12
|
-
export interface PageTemplate {
|
|
13
|
-
name: string;
|
|
14
|
-
template: any;
|
|
15
|
-
}
|
|
16
|
-
export declare type PageTemplatesRegistry = Record<string, PageTemplate>;
|
|
17
|
-
export interface CustomContentPageProps extends UniBlockProps {
|
|
18
|
-
pageTemplatesRegistry: PageTemplatesRegistry;
|
|
19
|
-
data: ContentPageDef;
|
|
20
|
-
pageDecorator?: PageDecorator;
|
|
21
|
-
}
|
|
22
|
-
export interface RenderPageFunc {
|
|
23
|
-
pageTemplate: CustomPageTemplate;
|
|
24
|
-
pageClassName: string;
|
|
25
|
-
pageDecorator: PageDecorator;
|
|
26
|
-
pageTemplatesRegistry: PageTemplatesRegistry;
|
|
27
|
-
context: ContentPageContext;
|
|
28
|
-
}
|
|
29
|
-
export declare const CustomContentPage: (props: import("@redneckz/uni-jsx").PropsWithChildren<CustomContentPageProps, any>, context?: any) => any;
|
|
30
|
-
export {};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.CustomContentPage = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const style2className_1 = require("../../utils/style2className");
|
|
6
|
-
const defaultPageDecorator = ({ pageClassName, pageTemplate, render }) => render({ pageClassName, pageTemplate });
|
|
7
|
-
exports.CustomContentPage = (0, uni_jsx_1.JSX)(({ className = '', context, pageTemplatesRegistry, data: { style: pageStyle, customPageTmpl: pageTemplate }, pageDecorator = defaultPageDecorator, }) => {
|
|
8
|
-
return pageTemplate
|
|
9
|
-
? renderPage({
|
|
10
|
-
pageTemplate,
|
|
11
|
-
pageClassName: `${(0, style2className_1.style2className)(pageStyle)} ${className}`,
|
|
12
|
-
pageDecorator,
|
|
13
|
-
pageTemplatesRegistry,
|
|
14
|
-
context,
|
|
15
|
-
})
|
|
16
|
-
: null;
|
|
17
|
-
});
|
|
18
|
-
function renderPage({ pageTemplate, pageClassName, pageDecorator, pageTemplatesRegistry, context, }) {
|
|
19
|
-
const { type } = pageTemplate;
|
|
20
|
-
if (!(type && type in pageTemplatesRegistry) || !pageTemplatesRegistry[type].template) {
|
|
21
|
-
throw new Error(`No page template with "${type}" is registered`);
|
|
22
|
-
}
|
|
23
|
-
const { template: PageComponent } = pageTemplatesRegistry[type];
|
|
24
|
-
return pageDecorator({
|
|
25
|
-
pageClassName,
|
|
26
|
-
pageTemplate,
|
|
27
|
-
render: (props) => {
|
|
28
|
-
const { content } = props.pageTemplate;
|
|
29
|
-
return (0, jsx_runtime_1.jsx)(PageComponent, { className: props.pageClassName, context: context, ...content });
|
|
30
|
-
},
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=CustomContentPage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CustomContentPage.js","sourceRoot":"","sources":["../../../src/components/ContentPage/CustomContentPage.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,iEAA8D;AAmC9D,MAAM,oBAAoB,GAAkB,CAAC,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE,CACtF,MAAM,CAAC,EAAE,aAAa,EAAE,YAAY,EAAE,CAAC,CAAC;AAE7B,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAClC,CAAC,EACC,SAAS,GAAG,EAAE,EACd,OAAO,EACP,qBAAqB,EACrB,IAAI,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,YAAY,EAAE,EACxD,aAAa,GAAG,oBAAoB,GACrC,EAAE,EAAE;IACH,OAAO,YAAY;QACjB,CAAC,CAAC,UAAU,CAAC;YACT,YAAY;YACZ,aAAa,EAAE,GAAG,IAAA,iCAAe,EAAC,SAAS,CAAC,IAAI,SAAS,EAAE;YAC3D,aAAa;YACb,qBAAqB;YACrB,OAAO;SACR,CAAC;QACJ,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CACF,CAAC;AAEF,SAAS,UAAU,CAAC,EAClB,YAAY,EACZ,aAAa,EACb,aAAa,EACb,qBAAqB,EACrB,OAAO,GACQ;IACf,MAAM,EAAE,IAAI,EAAE,GAAG,YAAY,CAAC;IAC9B,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,IAAI,qBAAqB,CAAC,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;QACrF,MAAM,IAAI,KAAK,CAAC,0BAA0B,IAAI,iBAAiB,CAAC,CAAC;KAClE;IAED,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,qBAAqB,CAAC,IAAI,CAAC,CAAC;IAChE,OAAO,aAAa,CAAC;QACnB,aAAa;QACb,YAAY;QACZ,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE;YAChB,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC,YAAY,CAAC;YACvC,OAAO,uBAAC,aAAa,IAAC,SAAS,EAAE,KAAK,CAAC,aAAa,EAAE,OAAO,EAAE,OAAO,KAAM,OAAO,GAAI,CAAC;QAC1F,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { UniBlockProps } from '../../types';
|
|
2
|
-
import type { ProductGalleryGreenContent } from './ProductGalleryGreenContent';
|
|
3
|
-
export interface ProductGalleryProps extends ProductGalleryGreenContent, UniBlockProps {
|
|
4
|
-
}
|
|
5
|
-
export declare const ProductGalleryGreen: (props: import("@redneckz/uni-jsx").PropsWithChildren<ProductGalleryProps, any>, context?: any) => any;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.ProductGalleryGreen = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const ProductBlockInner_1 = require("../ProductBlock/ProductBlockInner");
|
|
6
|
-
const productGalleryGreenStyleMap = {
|
|
7
|
-
primary: 'bg-white text-primary-text',
|
|
8
|
-
secondary: 'bg-primary-main text-white',
|
|
9
|
-
};
|
|
10
|
-
const productBlockStyleMap = {
|
|
11
|
-
primary: { title: 'text-secondary-text', text: 'text-secondary-text' },
|
|
12
|
-
secondary: { title: 'text-white', text: 'text-white/80' },
|
|
13
|
-
};
|
|
14
|
-
const productSlideStyleMap = {
|
|
15
|
-
primary: 'bg-white text-primary-text',
|
|
16
|
-
secondary: 'bg-primary-main text-white',
|
|
17
|
-
};
|
|
18
|
-
exports.ProductGalleryGreen = (0, uni_jsx_1.JSX)(({ className = '', context, slides = [], version = 'primary', anchor = null }) => {
|
|
19
|
-
const galleryNav = slides.map((s) => s.nav);
|
|
20
|
-
const galleryBlocks = slides.map((s) => s.productBlock);
|
|
21
|
-
const [activeSlideIndex, setActiveSlideIndex] = context.useState(0);
|
|
22
|
-
return ((0, jsx_runtime_1.jsxs)("section", { id: anchor, className: `box-border pt-[50px] overflow-hidden relative font-sans w-100 ${className}
|
|
23
|
-
${productGalleryGreenStyleMap[version]}`, children: [(0, jsx_runtime_1.jsx)("div", { className: "flex duration-1000 pb-14", style: { transform: `translateX(-${activeSlideIndex}00%)` }, role: "list", children: galleryBlocks.map((_, i) => renderProductBlock({ ..._, version }, i, context)) }), (0, jsx_runtime_1.jsx)("div", { className: "flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border", children: galleryNav.map((slide, i) => renderNavButton({
|
|
24
|
-
slide,
|
|
25
|
-
i,
|
|
26
|
-
activeSlideIndex,
|
|
27
|
-
onClick: () => setActiveSlideIndex(i),
|
|
28
|
-
version,
|
|
29
|
-
})) })] }));
|
|
30
|
-
});
|
|
31
|
-
function renderProductBlock(block, i, context) {
|
|
32
|
-
const { version } = block;
|
|
33
|
-
const additionalClass = version ? productBlockStyleMap[version].title : '';
|
|
34
|
-
return ((0, jsx_runtime_1.jsx)("section", { className: "box-border relative flex grow-0 shrink-0 basis-full", role: "listitem", children: (0, jsx_runtime_1.jsx)("div", { className: "flex grow", children: (0, jsx_runtime_1.jsx)(ProductBlockInner_1.ProductBlockInner, { className: `pl-[50px] z-[1] ${additionalClass}`, context: context, textBlockClassName: "mb-[154px]", ...block }) }) }, String(i)));
|
|
35
|
-
}
|
|
36
|
-
function renderNavButton({ slide, i, activeSlideIndex, onClick, version }) {
|
|
37
|
-
const isActiveBtn = i === activeSlideIndex;
|
|
38
|
-
const btnClassName = isActiveBtn
|
|
39
|
-
? 'bg-white shadow-dark-blue/42 h-[102px] w-[354px] min-w-[354px] p-0 border-none'
|
|
40
|
-
: `min-w-[277px] px-0 pt-4 pb-[23px] hover:py-[26px] hover:py-[26px] ease-in duration-300 bg-white/10
|
|
41
|
-
${productSlideStyleMap[version]}`;
|
|
42
|
-
const btnTitleClassName = isActiveBtn
|
|
43
|
-
? 'text-primary-text text-title-2xs'
|
|
44
|
-
: `text-base ${productBlockStyleMap[version].title}`;
|
|
45
|
-
const btnDescClassName = isActiveBtn
|
|
46
|
-
? 'text-secondary-text text-m-title-xs mt-2.5'
|
|
47
|
-
: `text-m-md mt-1.5 ${productBlockStyleMap[version].text}`;
|
|
48
|
-
const additionalBorder = version === 'secondary' ? 'border-white/50' : 'border-black/50';
|
|
49
|
-
return ((0, jsx_runtime_1.jsx)("button", { type: "button", onClick: onClick, "aria-label": slide?.title, className: `box-border font-sans relative overflow-hidden border-[1px] border-white/50 cursor-pointer text-left mx-1 grow basis-0
|
|
50
|
-
${btnClassName} ${additionalBorder}
|
|
51
|
-
`, children: (0, jsx_runtime_1.jsxs)("div", { className: "border-0 px-6", children: [(0, jsx_runtime_1.jsx)("div", { className: `font-medium ${btnTitleClassName}`, children: slide?.title }), (0, jsx_runtime_1.jsx)("div", { className: `text-secondary-text ${btnDescClassName}`, children: slide.description })] }) }, String(i)));
|
|
52
|
-
}
|
|
53
|
-
//# sourceMappingURL=ProductGalleryGreen.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProductGalleryGreen.js","sourceRoot":"","sources":["../../../src/components/ProductGalleryGreen/ProductGalleryGreen.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAIxC,yEAAsE;AAUtE,MAAM,2BAA2B,GAAiC;IAChE,OAAO,EAAE,4BAA4B;IACrC,SAAS,EAAE,4BAA4B;CACxC,CAAC;AAEF,MAAM,oBAAoB,GAAoC;IAC5D,OAAO,EAAE,EAAE,KAAK,EAAE,qBAAqB,EAAE,IAAI,EAAE,qBAAqB,EAAE;IACtE,SAAS,EAAE,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,eAAe,EAAE;CAC1D,CAAC;AAEF,MAAM,oBAAoB,GAAiC;IACzD,OAAO,EAAE,4BAA4B;IACrC,SAAS,EAAE,4BAA4B;CACxC,CAAC;AAEW,QAAA,mBAAmB,GAAG,IAAA,aAAG,EACpC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,MAAM,GAAG,EAAE,EAAE,OAAO,GAAG,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,EAAE,EAAE;IAC/E,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IAC5C,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC;IACxD,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAEpE,OAAO,CACL,qCACE,EAAE,EAAE,MAAM,EACV,SAAS,EAAE,iEAAiE,SAAS;UACnF,2BAA2B,CAAC,OAAO,CAAC,EAAE,aAExC,gCACE,SAAS,EAAC,0BAA0B,EACpC,KAAK,EAAE,EAAE,SAAS,EAAE,eAAe,gBAAgB,MAAM,EAAE,EAC3D,IAAI,EAAC,MAAM,YAEV,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,kBAAkB,CAAC,EAAE,GAAG,CAAC,EAAE,OAAO,EAAE,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC,GAC3E,EAEN,gCAAK,SAAS,EAAC,yEAAyE,YACrF,UAAU,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CAC3B,eAAe,CAAC;oBACd,KAAK;oBACL,CAAC;oBACD,gBAAgB;oBAChB,OAAO,EAAE,GAAG,EAAE,CAAC,mBAAmB,CAAC,CAAC,CAAC;oBACrC,OAAO;iBACR,CAAC,CACH,GACG,IACE,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,kBAAkB,CAAC,KAA+B,EAAE,CAAS,EAAE,OAAO;IAC7E,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAC1B,MAAM,eAAe,GAAG,OAAO,CAAC,CAAC,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;IAE3E,OAAO,CACL,oCAEE,SAAS,EAAC,qDAAqD,EAC/D,IAAI,EAAC,UAAU,YAEf,gCAAK,SAAS,EAAC,WAAW,YACxB,uBAAC,qCAAiB,IAChB,SAAS,EAAE,mBAAmB,eAAe,EAAE,EAC/C,OAAO,EAAE,OAAO,EAChB,kBAAkB,EAAC,YAAY,KAC3B,KAAK,GACT,GACE,IAXD,MAAM,CAAC,CAAC,CAAC,CAYN,CACX,CAAC;AACJ,CAAC;AAED,SAAS,eAAe,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,gBAAgB,EAAE,OAAO,EAAE,OAAO,EAAE;IACvE,MAAM,WAAW,GAAG,CAAC,KAAK,gBAAgB,CAAC;IAE3C,MAAM,YAAY,GAAG,WAAW;QAC9B,CAAC,CAAC,gFAAgF;QAClF,CAAC,CAAC;QACE,oBAAoB,CAAC,OAAO,CAAC,EAAE,CAAC;IACtC,MAAM,iBAAiB,GAAG,WAAW;QACnC,CAAC,CAAC,kCAAkC;QACpC,CAAC,CAAC,aAAa,oBAAoB,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,CAAC;IACvD,MAAM,gBAAgB,GAAG,WAAW;QAClC,CAAC,CAAC,4CAA4C;QAC9C,CAAC,CAAC,oBAAoB,oBAAoB,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC;IAE7D,MAAM,gBAAgB,GAAG,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,iBAAiB,CAAC;IAEzF,OAAO,CACL,mCACE,IAAI,EAAC,QAAQ,EAEb,OAAO,EAAE,OAAO,gBACJ,KAAK,EAAE,KAAK,EACxB,SAAS,EAAE;UACP,YAAY,IAAI,gBAAgB;OACnC,YAED,iCAAK,SAAS,EAAC,eAAe,aAC5B,gCAAK,SAAS,EAAE,eAAe,iBAAiB,EAAE,YAAG,KAAK,EAAE,KAAK,GAAO,EACxE,gCAAK,SAAS,EAAE,uBAAuB,gBAAgB,EAAE,YAAG,KAAK,CAAC,WAAW,GAAO,IAChF,IAVD,MAAM,CAAC,CAAC,CAAC,CAWP,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { ProductBlockInnerContent } from '../ProductBlock/ProductBlockContent';
|
|
2
|
-
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
|
-
/** @title Кнопка под слайдом */
|
|
4
|
-
interface ProductGalleryNav {
|
|
5
|
-
/** @title Заголовок */
|
|
6
|
-
title: string;
|
|
7
|
-
/** @title Описание */
|
|
8
|
-
description: string;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* @title Слайд
|
|
12
|
-
*/
|
|
13
|
-
export interface ProductSlide {
|
|
14
|
-
/** @title Превью содержимого слайда на навигации */
|
|
15
|
-
nav?: ProductGalleryNav;
|
|
16
|
-
/** @title Содержимое слайда */
|
|
17
|
-
productBlock: ProductBlockInnerContent;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* @title Продуктовая галерея
|
|
21
|
-
*/
|
|
22
|
-
export interface ProductGalleryGreenContent {
|
|
23
|
-
/**
|
|
24
|
-
* @title Задержка
|
|
25
|
-
* @hidden //! temporary not used
|
|
26
|
-
*/
|
|
27
|
-
duration?: number;
|
|
28
|
-
/** @title Слайды */
|
|
29
|
-
slides?: ProductSlide[];
|
|
30
|
-
version?: BlockVersion;
|
|
31
|
-
}
|
|
32
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProductGalleryGreenContent.js","sourceRoot":"","sources":["../../../src/components/ProductGalleryGreen/ProductGalleryGreenContent.ts"],"names":[],"mappings":""}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { ContentPageDef, CustomPageTemplate, UniBlockProps } from '../../types';
|
|
2
|
-
import { ContentPageContext } from './ContentPageContext';
|
|
3
|
-
interface PageDecoratorProps<VNode> {
|
|
4
|
-
pageClassName: string;
|
|
5
|
-
pageTemplate: CustomPageTemplate;
|
|
6
|
-
render: (props: {
|
|
7
|
-
pageClassName: string;
|
|
8
|
-
pageTemplate: CustomPageTemplate;
|
|
9
|
-
}) => VNode;
|
|
10
|
-
}
|
|
11
|
-
export declare type PageDecorator<VNode = any> = (props: PageDecoratorProps<VNode>, index?: number | string) => any;
|
|
12
|
-
export interface PageTemplate {
|
|
13
|
-
name: string;
|
|
14
|
-
template: any;
|
|
15
|
-
}
|
|
16
|
-
export declare type PageTemplatesRegistry = Record<string, PageTemplate>;
|
|
17
|
-
export interface CustomContentPageProps extends UniBlockProps {
|
|
18
|
-
pageTemplatesRegistry: PageTemplatesRegistry;
|
|
19
|
-
data: ContentPageDef;
|
|
20
|
-
pageDecorator?: PageDecorator;
|
|
21
|
-
}
|
|
22
|
-
export interface RenderPageFunc {
|
|
23
|
-
pageTemplate: CustomPageTemplate;
|
|
24
|
-
pageClassName: string;
|
|
25
|
-
pageDecorator: PageDecorator;
|
|
26
|
-
pageTemplatesRegistry: PageTemplatesRegistry;
|
|
27
|
-
context: ContentPageContext;
|
|
28
|
-
}
|
|
29
|
-
export declare const CustomContentPage: (props: import("@redneckz/uni-jsx").PropsWithChildren<CustomContentPageProps, any>, context?: any) => any;
|
|
30
|
-
export {};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { style2className } from '../../utils/style2className.js';
|
|
4
|
-
const defaultPageDecorator = ({ pageClassName, pageTemplate, render }) => render({ pageClassName, pageTemplate });
|
|
5
|
-
export const CustomContentPage = JSX(({ className = '', context, pageTemplatesRegistry, data: { style: pageStyle, customPageTmpl: pageTemplate }, pageDecorator = defaultPageDecorator, }) => {
|
|
6
|
-
return pageTemplate
|
|
7
|
-
? renderPage({
|
|
8
|
-
pageTemplate,
|
|
9
|
-
pageClassName: `${style2className(pageStyle)} ${className}`,
|
|
10
|
-
pageDecorator,
|
|
11
|
-
pageTemplatesRegistry,
|
|
12
|
-
context,
|
|
13
|
-
})
|
|
14
|
-
: null;
|
|
15
|
-
});
|
|
16
|
-
function renderPage({ pageTemplate, pageClassName, pageDecorator, pageTemplatesRegistry, context, }) {
|
|
17
|
-
const { type } = pageTemplate;
|
|
18
|
-
if (!(type && type in pageTemplatesRegistry) || !pageTemplatesRegistry[type].template) {
|
|
19
|
-
throw new Error(`No page template with "${type}" is registered`);
|
|
20
|
-
}
|
|
21
|
-
const { template: PageComponent } = pageTemplatesRegistry[type];
|
|
22
|
-
return pageDecorator({
|
|
23
|
-
pageClassName,
|
|
24
|
-
pageTemplate,
|
|
25
|
-
render: (props) => {
|
|
26
|
-
const { content } = props.pageTemplate;
|
|
27
|
-
return _jsx(PageComponent, { className: props.pageClassName, context: context, ...content });
|
|
28
|
-
},
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=CustomContentPage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CustomContentPage.js","sourceRoot":"","sources":["../../../src/components/ContentPage/CustomContentPage.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAmC9D,MAAM,oBAAoB,GAAkB,CAAC,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE,CACtF,MAAM,CAAC,EAAE,aAAa,EAAE,YAAY,EAAE,CAAC,CAAC;AAE1C,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAClC,CAAC,EACC,SAAS,GAAG,EAAE,EACd,OAAO,EACP,qBAAqB,EACrB,IAAI,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,YAAY,EAAE,EACxD,aAAa,GAAG,oBAAoB,GACrC,EAAE,EAAE;IACH,OAAO,YAAY;QACjB,CAAC,CAAC,UAAU,CAAC;YACT,YAAY;YACZ,aAAa,EAAE,GAAG,eAAe,CAAC,SAAS,CAAC,IAAI,SAAS,EAAE;YAC3D,aAAa;YACb,qBAAqB;YACrB,OAAO;SACR,CAAC;QACJ,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CACF,CAAC;AAEF,SAAS,UAAU,CAAC,EAClB,YAAY,EACZ,aAAa,EACb,aAAa,EACb,qBAAqB,EACrB,OAAO,GACQ;IACf,MAAM,EAAE,IAAI,EAAE,GAAG,YAAY,CAAC;IAC9B,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,IAAI,qBAAqB,CAAC,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;QACrF,MAAM,IAAI,KAAK,CAAC,0BAA0B,IAAI,iBAAiB,CAAC,CAAC;KAClE;IAED,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,qBAAqB,CAAC,IAAI,CAAC,CAAC;IAChE,OAAO,aAAa,CAAC;QACnB,aAAa;QACb,YAAY;QACZ,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE;YAChB,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC,YAAY,CAAC;YACvC,OAAO,KAAC,aAAa,IAAC,SAAS,EAAE,KAAK,CAAC,aAAa,EAAE,OAAO,EAAE,OAAO,KAAM,OAAO,GAAI,CAAC;QAC1F,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
|