@redneckz/wildless-cms-uni-blocks 0.5.12 → 0.5.14
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 +136 -84
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Accordion/AccordionContent.d.ts +9 -7
- package/bundle/components/Accordion/AccordionItem.d.ts +1 -4
- package/bundle/components/Accordion/AccordionItem.mobile.d.ts +1 -4
- package/bundle/components/Accordion/AccordionItemProps.d.ts +5 -0
- package/bundle/components/Accordion/AccordionItemsList.d.ts +1 -0
- package/bundle/components/Blocks.d.ts +3 -1
- package/bundle/components/InvestmentInfo/InvestmentInfo.d.ts +5 -0
- package/bundle/components/InvestmentInfo/InvestmentInfoContent.d.ts +49 -0
- package/bundle/components/OtherProducts/OtherProducts.d.ts +2 -1
- package/bundle/components/OtherProducts/OtherProductsContent.d.ts +1 -21
- package/bundle/components/OtherProductsItem/OtherProductsItem.d.ts +6 -0
- package/bundle/components/OtherProductsItem/OtherProductsItemContent.d.ts +14 -0
- package/bundle/components/StepsBlock/renderItems.d.ts +7 -2
- package/bundle/components/StepsBlock/renderStepContent.d.ts +14 -0
- package/bundle/model/BlockDecorator.d.ts +1 -0
- package/bundle/model/BlocksRegistry.d.ts +4 -1
- package/bundle/ui-kit/Foldable/DefaultFoldButton.d.ts +14 -0
- package/bundle/ui-kit/Foldable/Foldable.d.ts +3 -10
- package/bundle/ui-kit/Foldable/FoldablePartProps.d.ts +4 -0
- package/bundle/ui-kit/Foldable/FoldableSection.d.ts +5 -0
- package/dist/components/Accordion/Accordion.js +3 -1
- package/dist/components/Accordion/Accordion.js.map +1 -1
- package/dist/components/Accordion/Accordion.mobile.js +5 -2
- package/dist/components/Accordion/Accordion.mobile.js.map +1 -1
- package/dist/components/Accordion/AccordionContent.d.ts +9 -7
- package/dist/components/Accordion/AccordionItem.d.ts +1 -4
- package/dist/components/Accordion/AccordionItem.js +3 -8
- package/dist/components/Accordion/AccordionItem.js.map +1 -1
- package/dist/components/Accordion/AccordionItem.mobile.d.ts +1 -4
- package/dist/components/Accordion/AccordionItem.mobile.js +2 -5
- package/dist/components/Accordion/AccordionItem.mobile.js.map +1 -1
- package/dist/components/Accordion/AccordionItemProps.d.ts +5 -0
- package/dist/components/Accordion/AccordionItemProps.js +2 -0
- package/dist/components/Accordion/AccordionItemProps.js.map +1 -0
- package/dist/components/Accordion/AccordionItemsList.d.ts +1 -0
- package/dist/components/Accordion/AccordionItemsList.js +6 -0
- package/dist/components/Accordion/AccordionItemsList.js.map +1 -0
- package/dist/components/Blocks.d.ts +3 -1
- package/dist/components/Blocks.js +4 -0
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/ContentPage/filterBlocks.js +1 -2
- package/dist/components/ContentPage/filterBlocks.js.map +1 -1
- package/dist/components/ContentPage/filterBlocks.mobile.js +1 -3
- package/dist/components/ContentPage/filterBlocks.mobile.js.map +1 -1
- package/dist/components/ContentPage/renderBlock.js +8 -7
- package/dist/components/ContentPage/renderBlock.js.map +1 -1
- package/dist/components/Footer/Footer.mobile.js +8 -7
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/Header/Header.mobile.js +5 -5
- package/dist/components/Header/Header.mobile.js.map +1 -1
- package/dist/components/InvestmentInfo/InvestmentInfo.d.ts +5 -0
- package/dist/components/InvestmentInfo/InvestmentInfo.js +49 -0
- package/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -0
- package/dist/components/InvestmentInfo/InvestmentInfoContent.d.ts +49 -0
- package/dist/components/InvestmentInfo/InvestmentInfoContent.js +2 -0
- package/dist/components/InvestmentInfo/InvestmentInfoContent.js.map +1 -0
- package/dist/components/OtherProducts/OtherProducts.d.ts +2 -1
- package/dist/components/OtherProducts/OtherProducts.js +2 -4
- package/dist/components/OtherProducts/OtherProducts.js.map +1 -1
- package/dist/components/OtherProducts/OtherProductsContent.d.ts +1 -21
- package/dist/components/OtherProductsItem/OtherProductsItem.d.ts +6 -0
- package/dist/components/OtherProductsItem/OtherProductsItem.js +11 -0
- package/dist/components/OtherProductsItem/OtherProductsItem.js.map +1 -0
- package/dist/components/OtherProductsItem/OtherProductsItemContent.d.ts +14 -0
- package/dist/components/OtherProductsItem/OtherProductsItemContent.js +2 -0
- package/dist/components/OtherProductsItem/OtherProductsItemContent.js.map +1 -0
- package/dist/components/StepsBlock/StepsBlock.js +2 -8
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlockStyleMaps.js +2 -2
- package/dist/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
- package/dist/components/StepsBlock/renderItems.d.ts +7 -2
- package/dist/components/StepsBlock/renderItems.js +5 -1
- package/dist/components/StepsBlock/renderItems.js.map +1 -1
- package/dist/components/StepsBlock/renderStepContent.d.ts +14 -0
- package/dist/components/StepsBlock/renderStepContent.js +20 -0
- package/dist/components/StepsBlock/renderStepContent.js.map +1 -0
- package/dist/components/TariffsTable/TariffsTable.js +11 -2
- package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/dist/model/BlockDecorator.d.ts +1 -0
- package/dist/model/BlockDecorator.js +2 -1
- package/dist/model/BlockDecorator.js.map +1 -1
- package/dist/model/BlocksRegistry.d.ts +4 -1
- package/dist/ui-kit/Foldable/DefaultFoldButton.d.ts +14 -0
- package/dist/ui-kit/Foldable/DefaultFoldButton.js +16 -0
- package/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -0
- package/dist/ui-kit/Foldable/Foldable.d.ts +3 -10
- package/dist/ui-kit/Foldable/Foldable.js +7 -23
- package/dist/ui-kit/Foldable/Foldable.js.map +1 -1
- package/dist/ui-kit/Foldable/FoldablePartProps.d.ts +4 -0
- package/dist/ui-kit/Foldable/{FoldButtonProps.js → FoldablePartProps.js} +1 -1
- package/dist/ui-kit/Foldable/FoldablePartProps.js.map +1 -0
- package/dist/ui-kit/Foldable/FoldableSection.d.ts +5 -0
- package/dist/ui-kit/Foldable/FoldableSection.js +17 -0
- package/dist/ui-kit/Foldable/FoldableSection.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/Accordion/Accordion.js +3 -1
- package/lib/components/Accordion/Accordion.js.map +1 -1
- package/lib/components/Accordion/Accordion.mobile.js +5 -2
- package/lib/components/Accordion/Accordion.mobile.js.map +1 -1
- package/lib/components/Accordion/AccordionContent.d.ts +9 -7
- package/lib/components/Accordion/AccordionItem.d.ts +1 -4
- package/lib/components/Accordion/AccordionItem.js +3 -8
- package/lib/components/Accordion/AccordionItem.js.map +1 -1
- package/lib/components/Accordion/AccordionItem.mobile.d.ts +1 -4
- package/lib/components/Accordion/AccordionItem.mobile.js +2 -5
- package/lib/components/Accordion/AccordionItem.mobile.js.map +1 -1
- package/lib/components/Accordion/AccordionItemProps.d.ts +5 -0
- package/lib/components/Accordion/AccordionItemProps.js +2 -0
- package/lib/components/Accordion/AccordionItemProps.js.map +1 -0
- package/lib/components/Accordion/AccordionItemsList.d.ts +1 -0
- package/lib/components/Accordion/AccordionItemsList.js +4 -0
- package/lib/components/Accordion/AccordionItemsList.js.map +1 -0
- package/lib/components/Blocks.d.ts +3 -1
- package/lib/components/Blocks.js +4 -0
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/ContentPage/filterBlocks.js +1 -2
- package/lib/components/ContentPage/filterBlocks.js.map +1 -1
- package/lib/components/ContentPage/filterBlocks.mobile.js +1 -3
- package/lib/components/ContentPage/filterBlocks.mobile.js.map +1 -1
- package/lib/components/ContentPage/renderBlock.js +9 -8
- package/lib/components/ContentPage/renderBlock.js.map +1 -1
- package/lib/components/Footer/Footer.mobile.js +8 -7
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/Header/Header.mobile.js +5 -5
- package/lib/components/Header/Header.mobile.js.map +1 -1
- package/lib/components/InvestmentInfo/InvestmentInfo.d.ts +5 -0
- package/lib/components/InvestmentInfo/InvestmentInfo.fixture.d.ts +7 -0
- package/lib/components/InvestmentInfo/InvestmentInfo.js +47 -0
- package/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -0
- package/lib/components/InvestmentInfo/InvestmentInfoContent.d.ts +49 -0
- package/lib/components/InvestmentInfo/InvestmentInfoContent.js +2 -0
- package/lib/components/InvestmentInfo/InvestmentInfoContent.js.map +1 -0
- package/lib/components/OtherProducts/OtherProducts.d.ts +2 -1
- package/lib/components/OtherProducts/OtherProducts.fixture.d.ts +1 -0
- package/lib/components/OtherProducts/OtherProducts.js +2 -4
- package/lib/components/OtherProducts/OtherProducts.js.map +1 -1
- package/lib/components/OtherProducts/OtherProductsContent.d.ts +1 -21
- package/lib/components/OtherProductsItem/OtherProductsItem.d.ts +6 -0
- package/lib/components/OtherProductsItem/OtherProductsItem.fixture.d.ts +5 -0
- package/lib/components/OtherProductsItem/OtherProductsItem.js +9 -0
- package/lib/components/OtherProductsItem/OtherProductsItem.js.map +1 -0
- package/lib/components/OtherProductsItem/OtherProductsItemContent.d.ts +14 -0
- package/lib/components/OtherProductsItem/OtherProductsItemContent.js +2 -0
- package/lib/components/OtherProductsItem/OtherProductsItemContent.js.map +1 -0
- package/lib/components/StepsBlock/StepsBlock.fixture.d.ts +2 -1
- package/lib/components/StepsBlock/StepsBlock.js +2 -8
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlockStyleMaps.js +2 -2
- package/lib/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
- package/lib/components/StepsBlock/renderItems.d.ts +7 -2
- package/lib/components/StepsBlock/renderItems.js +6 -2
- package/lib/components/StepsBlock/renderItems.js.map +1 -1
- package/lib/components/StepsBlock/renderStepContent.d.ts +14 -0
- package/lib/components/StepsBlock/renderStepContent.js +17 -0
- package/lib/components/StepsBlock/renderStepContent.js.map +1 -0
- package/lib/components/TariffsTable/TariffsTable.js +11 -2
- package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/lib/model/BlockDecorator.d.ts +1 -0
- package/lib/model/BlockDecorator.js +1 -0
- package/lib/model/BlockDecorator.js.map +1 -1
- package/lib/model/BlocksRegistry.d.ts +4 -1
- package/lib/ui-kit/Foldable/DefaultFoldButton.d.ts +14 -0
- package/lib/ui-kit/Foldable/DefaultFoldButton.js +13 -0
- package/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -0
- package/lib/ui-kit/Foldable/Foldable.d.ts +3 -10
- package/lib/ui-kit/Foldable/Foldable.js +9 -25
- package/lib/ui-kit/Foldable/Foldable.js.map +1 -1
- package/lib/ui-kit/Foldable/FoldablePartProps.d.ts +4 -0
- package/lib/ui-kit/Foldable/FoldablePartProps.js +2 -0
- package/lib/ui-kit/Foldable/FoldablePartProps.js.map +1 -0
- package/lib/ui-kit/Foldable/FoldableSection.d.ts +5 -0
- package/lib/ui-kit/Foldable/FoldableSection.js +15 -0
- package/lib/ui-kit/Foldable/FoldableSection.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +138 -159
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Accordion/AccordionContent.d.ts +9 -7
- package/mobile/bundle/components/Accordion/AccordionItem.d.ts +1 -4
- package/mobile/bundle/components/Accordion/AccordionItemProps.d.ts +5 -0
- package/mobile/bundle/components/Accordion/AccordionItemsList.d.ts +1 -0
- package/mobile/bundle/components/InvestmentInfo/InvestmentInfo.d.ts +5 -0
- package/mobile/bundle/components/InvestmentInfo/InvestmentInfoContent.d.ts +49 -0
- package/mobile/bundle/components/OtherProducts/OtherProducts.d.ts +2 -1
- package/mobile/bundle/components/OtherProducts/OtherProductsContent.d.ts +1 -21
- package/mobile/bundle/components/OtherProductsItem/OtherProductsItem.d.ts +6 -0
- package/mobile/bundle/components/OtherProductsItem/OtherProductsItemContent.d.ts +14 -0
- package/mobile/bundle/components/StepsBlock/renderItems.d.ts +7 -2
- package/mobile/bundle/components/StepsBlock/renderStepContent.d.ts +14 -0
- package/mobile/bundle/model/BlockDecorator.d.ts +1 -0
- package/mobile/bundle/model/BlocksRegistry.d.ts +4 -1
- package/mobile/bundle/ui-kit/Foldable/DefaultFoldButton.d.ts +14 -0
- package/mobile/bundle/ui-kit/Foldable/Foldable.d.ts +3 -10
- package/mobile/bundle/ui-kit/Foldable/FoldablePartProps.d.ts +4 -0
- package/mobile/bundle/ui-kit/Foldable/FoldableSection.d.ts +5 -0
- package/mobile/dist/components/Accordion/Accordion.js +5 -2
- package/mobile/dist/components/Accordion/Accordion.js.map +1 -1
- package/mobile/dist/components/Accordion/AccordionContent.d.ts +9 -7
- package/mobile/dist/components/Accordion/AccordionItem.d.ts +1 -4
- package/mobile/dist/components/Accordion/AccordionItem.js +2 -5
- package/mobile/dist/components/Accordion/AccordionItem.js.map +1 -1
- package/mobile/dist/components/Accordion/AccordionItemProps.d.ts +5 -0
- package/mobile/dist/components/Accordion/AccordionItemProps.js +2 -0
- package/mobile/dist/components/Accordion/AccordionItemProps.js.map +1 -0
- package/mobile/dist/components/Accordion/AccordionItemsList.d.ts +1 -0
- package/mobile/dist/components/Accordion/AccordionItemsList.js +6 -0
- package/mobile/dist/components/Accordion/AccordionItemsList.js.map +1 -0
- package/mobile/dist/components/ContentPage/filterBlocks.js +1 -3
- package/mobile/dist/components/ContentPage/filterBlocks.js.map +1 -1
- package/mobile/dist/components/ContentPage/renderBlock.js +8 -7
- package/mobile/dist/components/ContentPage/renderBlock.js.map +1 -1
- package/mobile/dist/components/Footer/Footer.js +8 -7
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/Header/Header.js +5 -5
- package/mobile/dist/components/Header/Header.js.map +1 -1
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.d.ts +5 -0
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js +49 -0
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -0
- package/mobile/dist/components/InvestmentInfo/InvestmentInfoContent.d.ts +49 -0
- package/mobile/dist/components/InvestmentInfo/InvestmentInfoContent.js +2 -0
- package/mobile/dist/components/InvestmentInfo/InvestmentInfoContent.js.map +1 -0
- package/mobile/dist/components/OtherProducts/OtherProducts.d.ts +2 -1
- package/mobile/dist/components/OtherProducts/OtherProducts.js +2 -4
- package/mobile/dist/components/OtherProducts/OtherProducts.js.map +1 -1
- package/mobile/dist/components/OtherProducts/OtherProductsContent.d.ts +1 -21
- package/mobile/dist/components/OtherProductsItem/OtherProductsItem.d.ts +6 -0
- package/mobile/dist/components/OtherProductsItem/OtherProductsItem.js +11 -0
- package/mobile/dist/components/OtherProductsItem/OtherProductsItem.js.map +1 -0
- package/mobile/dist/components/OtherProductsItem/OtherProductsItemContent.d.ts +14 -0
- package/mobile/dist/components/OtherProductsItem/OtherProductsItemContent.js +2 -0
- package/mobile/dist/components/OtherProductsItem/OtherProductsItemContent.js.map +1 -0
- package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.js +2 -2
- package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
- package/mobile/dist/components/StepsBlock/renderItems.d.ts +7 -2
- package/mobile/dist/components/StepsBlock/renderItems.js +5 -1
- package/mobile/dist/components/StepsBlock/renderItems.js.map +1 -1
- package/mobile/dist/components/StepsBlock/renderStepContent.d.ts +14 -0
- package/mobile/dist/components/StepsBlock/renderStepContent.js +20 -0
- package/mobile/dist/components/StepsBlock/renderStepContent.js.map +1 -0
- package/mobile/dist/model/BlockDecorator.d.ts +1 -0
- package/mobile/dist/model/BlockDecorator.js +2 -1
- package/mobile/dist/model/BlockDecorator.js.map +1 -1
- package/mobile/dist/model/BlocksRegistry.d.ts +4 -1
- package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.d.ts +14 -0
- package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js +16 -0
- package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -0
- package/mobile/dist/ui-kit/Foldable/Foldable.d.ts +3 -10
- package/mobile/dist/ui-kit/Foldable/Foldable.js +7 -23
- package/mobile/dist/ui-kit/Foldable/Foldable.js.map +1 -1
- package/mobile/dist/ui-kit/Foldable/FoldablePartProps.d.ts +4 -0
- package/mobile/dist/ui-kit/Foldable/{FoldButtonProps.js → FoldablePartProps.js} +1 -1
- package/mobile/dist/ui-kit/Foldable/FoldablePartProps.js.map +1 -0
- package/mobile/dist/ui-kit/Foldable/FoldableSection.d.ts +5 -0
- package/mobile/dist/ui-kit/Foldable/FoldableSection.js +17 -0
- package/mobile/dist/ui-kit/Foldable/FoldableSection.js.map +1 -0
- package/mobile/lib/components/Accordion/Accordion.js +5 -2
- package/mobile/lib/components/Accordion/Accordion.js.map +1 -1
- package/mobile/lib/components/Accordion/AccordionContent.d.ts +9 -7
- package/mobile/lib/components/Accordion/AccordionItem.d.ts +1 -4
- package/mobile/lib/components/Accordion/AccordionItem.js +2 -5
- package/mobile/lib/components/Accordion/AccordionItem.js.map +1 -1
- package/mobile/lib/components/Accordion/AccordionItemProps.d.ts +5 -0
- package/mobile/lib/components/Accordion/AccordionItemProps.js +2 -0
- package/mobile/lib/components/Accordion/AccordionItemProps.js.map +1 -0
- package/mobile/lib/components/Accordion/AccordionItemsList.d.ts +1 -0
- package/mobile/lib/components/Accordion/AccordionItemsList.js +4 -0
- package/mobile/lib/components/Accordion/AccordionItemsList.js.map +1 -0
- package/mobile/lib/components/ContentPage/filterBlocks.js +1 -3
- package/mobile/lib/components/ContentPage/filterBlocks.js.map +1 -1
- package/mobile/lib/components/ContentPage/renderBlock.js +9 -8
- package/mobile/lib/components/ContentPage/renderBlock.js.map +1 -1
- package/mobile/lib/components/Footer/Footer.js +8 -7
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/Header/Header.js +5 -5
- package/mobile/lib/components/Header/Header.js.map +1 -1
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.d.ts +5 -0
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js +47 -0
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -0
- package/mobile/lib/components/InvestmentInfo/InvestmentInfoContent.d.ts +49 -0
- package/mobile/lib/components/InvestmentInfo/InvestmentInfoContent.js +2 -0
- package/mobile/lib/components/InvestmentInfo/InvestmentInfoContent.js.map +1 -0
- package/mobile/lib/components/OtherProducts/OtherProducts.d.ts +2 -1
- package/mobile/lib/components/OtherProducts/OtherProducts.js +2 -4
- package/mobile/lib/components/OtherProducts/OtherProducts.js.map +1 -1
- package/mobile/lib/components/OtherProducts/OtherProductsContent.d.ts +1 -21
- package/mobile/lib/components/OtherProductsItem/OtherProductsItem.d.ts +6 -0
- package/mobile/lib/components/OtherProductsItem/OtherProductsItem.js +9 -0
- package/mobile/lib/components/OtherProductsItem/OtherProductsItem.js.map +1 -0
- package/mobile/lib/components/OtherProductsItem/OtherProductsItemContent.d.ts +14 -0
- package/mobile/lib/components/OtherProductsItem/OtherProductsItemContent.js +2 -0
- package/mobile/lib/components/OtherProductsItem/OtherProductsItemContent.js.map +1 -0
- package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.js +2 -2
- package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
- package/mobile/lib/components/StepsBlock/renderItems.d.ts +7 -2
- package/mobile/lib/components/StepsBlock/renderItems.js +6 -2
- package/mobile/lib/components/StepsBlock/renderItems.js.map +1 -1
- package/mobile/lib/components/StepsBlock/renderStepContent.d.ts +14 -0
- package/mobile/lib/components/StepsBlock/renderStepContent.js +17 -0
- package/mobile/lib/components/StepsBlock/renderStepContent.js.map +1 -0
- package/mobile/lib/model/BlockDecorator.d.ts +1 -0
- package/mobile/lib/model/BlockDecorator.js +1 -0
- package/mobile/lib/model/BlockDecorator.js.map +1 -1
- package/mobile/lib/model/BlocksRegistry.d.ts +4 -1
- package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.d.ts +14 -0
- package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js +13 -0
- package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -0
- package/mobile/lib/ui-kit/Foldable/Foldable.d.ts +3 -10
- package/mobile/lib/ui-kit/Foldable/Foldable.js +9 -25
- package/mobile/lib/ui-kit/Foldable/Foldable.js.map +1 -1
- package/mobile/lib/ui-kit/Foldable/FoldablePartProps.d.ts +4 -0
- package/mobile/lib/ui-kit/Foldable/FoldablePartProps.js +2 -0
- package/mobile/lib/ui-kit/Foldable/FoldablePartProps.js.map +1 -0
- package/mobile/lib/ui-kit/Foldable/FoldableSection.d.ts +5 -0
- package/mobile/lib/ui-kit/Foldable/FoldableSection.js +15 -0
- package/mobile/lib/ui-kit/Foldable/FoldableSection.js.map +1 -0
- package/mobile/src/common.css +11 -3
- package/mobile/src/components/Accordion/Accordion.tsx +17 -7
- package/mobile/src/components/Accordion/AccordionContent.ts +10 -7
- package/mobile/src/components/Accordion/AccordionItem.tsx +34 -30
- package/mobile/src/components/Accordion/AccordionItemProps.ts +6 -0
- package/mobile/src/components/Accordion/AccordionItemsList.tsx +5 -0
- package/mobile/src/components/ContentPage/filterBlocks.ts +1 -3
- package/mobile/src/components/ContentPage/renderBlock.tsx +16 -11
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.ui.json +8 -1
- package/mobile/src/components/Footer/Footer.tsx +15 -13
- package/mobile/src/components/GracePeriod/GracePeriod.ui.json +5 -0
- package/mobile/src/components/Header/Header.tsx +16 -11
- package/mobile/src/components/InvestmentInfo/InvestmentInfo.example.json +48 -0
- package/mobile/src/components/InvestmentInfo/InvestmentInfo.tsx +149 -0
- package/mobile/src/components/InvestmentInfo/InvestmentInfo.ui.json +16 -0
- package/mobile/src/components/InvestmentInfo/InvestmentInfoContent.ts +55 -0
- package/mobile/src/components/OtherProducts/OtherProducts.example.json +1 -54
- package/mobile/src/components/OtherProducts/OtherProducts.tsx +13 -24
- package/mobile/src/components/OtherProducts/OtherProducts.ui.json +1 -76
- package/mobile/src/components/OtherProducts/OtherProductsContent.ts +1 -22
- package/mobile/src/components/OtherProductsItem/OtherProductsItem.example.json +3 -0
- package/mobile/src/components/OtherProductsItem/OtherProductsItem.tsx +39 -0
- package/mobile/src/components/OtherProductsItem/OtherProductsItem.ui.json +1 -0
- package/mobile/src/components/OtherProductsItem/OtherProductsItemContent.ts +17 -0
- package/mobile/src/components/SafeDepositRental/SafeDepositRental.ui.json +8 -1
- package/mobile/src/components/StepsBlock/StepsBlockStyleMaps.ts +2 -2
- package/mobile/src/components/StepsBlock/renderItems.tsx +24 -15
- package/mobile/src/components/StepsBlock/renderStepContent.tsx +63 -0
- package/mobile/src/model/BlockDecorator.ts +2 -0
- package/mobile/src/model/BlocksRegistry.ts +4 -1
- package/mobile/src/ui-kit/Foldable/DefaultFoldButton.tsx +52 -0
- package/mobile/src/ui-kit/Foldable/Foldable.tsx +19 -67
- package/mobile/src/ui-kit/Foldable/FoldablePartProps.ts +4 -0
- package/mobile/src/ui-kit/Foldable/FoldableSection.tsx +30 -0
- package/package.json +2 -2
- package/src/common.css +11 -3
- package/src/components/Accordion/Accordion.mobile.tsx +17 -7
- package/src/components/Accordion/Accordion.tsx +12 -3
- package/src/components/Accordion/AccordionContent.ts +10 -7
- package/src/components/Accordion/AccordionItem.mobile.tsx +34 -30
- package/src/components/Accordion/AccordionItem.tsx +24 -23
- package/src/components/Accordion/AccordionItemProps.ts +6 -0
- package/src/components/Accordion/AccordionItemsList.tsx +5 -0
- package/src/components/Blocks.ts +4 -0
- package/src/components/ContentPage/filterBlocks.mobile.ts +1 -3
- package/src/components/ContentPage/filterBlocks.ts +1 -2
- package/src/components/ContentPage/renderBlock.tsx +16 -11
- package/src/components/ExchangeRateTile/ExchangeRateTile.ui.json +8 -1
- package/src/components/Footer/Footer.mobile.tsx +15 -13
- package/src/components/GracePeriod/GracePeriod.ui.json +5 -0
- package/src/components/Header/Header.mobile.tsx +16 -11
- package/src/components/InvestmentInfo/InvestmentInfo.example.json +48 -0
- package/src/components/InvestmentInfo/InvestmentInfo.fixture.tsx +107 -0
- package/src/components/InvestmentInfo/InvestmentInfo.tsx +149 -0
- package/src/components/InvestmentInfo/InvestmentInfo.ui.json +16 -0
- package/src/components/InvestmentInfo/InvestmentInfoContent.ts +55 -0
- package/src/components/OtherProducts/OtherProducts.example.json +1 -54
- package/src/components/OtherProducts/OtherProducts.fixture.tsx +77 -126
- package/src/components/OtherProducts/OtherProducts.tsx +13 -24
- package/src/components/OtherProducts/OtherProducts.ui.json +1 -76
- package/src/components/OtherProducts/OtherProductsContent.ts +1 -22
- package/src/components/OtherProductsItem/OtherProductsItem.example.json +3 -0
- package/src/components/OtherProductsItem/OtherProductsItem.fixture.tsx +5 -0
- package/src/components/OtherProductsItem/OtherProductsItem.tsx +39 -0
- package/src/components/OtherProductsItem/OtherProductsItem.ui.json +1 -0
- package/src/components/OtherProductsItem/OtherProductsItemContent.ts +17 -0
- package/src/components/SafeDepositRental/SafeDepositRental.ui.json +8 -1
- package/src/components/StepsBlock/StepsBlock.fixture.tsx +39 -25
- package/src/components/StepsBlock/StepsBlock.tsx +3 -49
- package/src/components/StepsBlock/StepsBlockStyleMaps.ts +2 -2
- package/src/components/StepsBlock/renderItems.tsx +24 -15
- package/src/components/StepsBlock/renderStepContent.tsx +63 -0
- package/src/components/TariffsTable/TariffsTable.tsx +32 -23
- package/src/model/BlockDecorator.ts +2 -0
- package/src/model/BlocksRegistry.ts +4 -1
- package/src/ui-kit/Foldable/DefaultFoldButton.tsx +52 -0
- package/src/ui-kit/Foldable/Foldable.tsx +19 -67
- package/src/ui-kit/Foldable/FoldablePartProps.ts +4 -0
- package/src/ui-kit/Foldable/FoldableSection.tsx +30 -0
- package/tailwind.config.cjs +5 -0
- package/bundle/components/ContentPage/isBlockInRegistry.d.ts +0 -2
- package/bundle/components/OtherProducts/OtherProductsItem.d.ts +0 -6
- package/bundle/ui-kit/Foldable/DefaultButton.d.ts +0 -2
- package/bundle/ui-kit/Foldable/FoldButtonProps.d.ts +0 -12
- package/bundle/utils/getAccordionItems.d.ts +0 -1
- package/dist/components/ContentPage/isBlockInRegistry.d.ts +0 -2
- package/dist/components/ContentPage/isBlockInRegistry.js +0 -7
- package/dist/components/ContentPage/isBlockInRegistry.js.map +0 -1
- package/dist/components/OtherProducts/OtherProductsItem.d.ts +0 -6
- package/dist/components/OtherProducts/OtherProductsItem.js +0 -19
- package/dist/components/OtherProducts/OtherProductsItem.js.map +0 -1
- package/dist/ui-kit/Foldable/DefaultButton.d.ts +0 -2
- package/dist/ui-kit/Foldable/DefaultButton.js +0 -12
- package/dist/ui-kit/Foldable/DefaultButton.js.map +0 -1
- package/dist/ui-kit/Foldable/FoldButtonProps.d.ts +0 -12
- package/dist/ui-kit/Foldable/FoldButtonProps.js.map +0 -1
- package/dist/utils/getAccordionItems.d.ts +0 -1
- package/dist/utils/getAccordionItems.js +0 -13
- package/dist/utils/getAccordionItems.js.map +0 -1
- package/lib/components/ContentPage/isBlockInRegistry.d.ts +0 -2
- package/lib/components/ContentPage/isBlockInRegistry.js +0 -4
- package/lib/components/ContentPage/isBlockInRegistry.js.map +0 -1
- package/lib/components/OtherProducts/OtherProductsItem.d.ts +0 -6
- package/lib/components/OtherProducts/OtherProductsItem.js +0 -17
- package/lib/components/OtherProducts/OtherProductsItem.js.map +0 -1
- package/lib/ui-kit/Foldable/DefaultButton.d.ts +0 -2
- package/lib/ui-kit/Foldable/DefaultButton.js +0 -10
- package/lib/ui-kit/Foldable/DefaultButton.js.map +0 -1
- package/lib/ui-kit/Foldable/FoldButtonProps.d.ts +0 -12
- package/lib/ui-kit/Foldable/FoldButtonProps.js +0 -2
- package/lib/ui-kit/Foldable/FoldButtonProps.js.map +0 -1
- package/lib/utils/getAccordionItems.d.ts +0 -1
- package/lib/utils/getAccordionItems.js +0 -10
- package/lib/utils/getAccordionItems.js.map +0 -1
- package/mobile/bundle/components/ContentPage/isBlockInRegistry.d.ts +0 -2
- package/mobile/bundle/components/OtherProducts/OtherProductsItem.d.ts +0 -6
- package/mobile/bundle/ui-kit/Foldable/DefaultButton.d.ts +0 -2
- package/mobile/bundle/ui-kit/Foldable/FoldButtonProps.d.ts +0 -12
- package/mobile/bundle/utils/getAccordionItems.d.ts +0 -1
- package/mobile/dist/components/ContentPage/isBlockInRegistry.d.ts +0 -2
- package/mobile/dist/components/ContentPage/isBlockInRegistry.js +0 -7
- package/mobile/dist/components/ContentPage/isBlockInRegistry.js.map +0 -1
- package/mobile/dist/components/OtherProducts/OtherProductsItem.d.ts +0 -6
- package/mobile/dist/components/OtherProducts/OtherProductsItem.js +0 -19
- package/mobile/dist/components/OtherProducts/OtherProductsItem.js.map +0 -1
- package/mobile/dist/ui-kit/Foldable/DefaultButton.d.ts +0 -2
- package/mobile/dist/ui-kit/Foldable/DefaultButton.js +0 -12
- package/mobile/dist/ui-kit/Foldable/DefaultButton.js.map +0 -1
- package/mobile/dist/ui-kit/Foldable/FoldButtonProps.d.ts +0 -12
- package/mobile/dist/ui-kit/Foldable/FoldButtonProps.js.map +0 -1
- package/mobile/dist/utils/getAccordionItems.d.ts +0 -1
- package/mobile/dist/utils/getAccordionItems.js +0 -13
- package/mobile/dist/utils/getAccordionItems.js.map +0 -1
- package/mobile/lib/components/ContentPage/isBlockInRegistry.d.ts +0 -2
- package/mobile/lib/components/ContentPage/isBlockInRegistry.js +0 -4
- package/mobile/lib/components/ContentPage/isBlockInRegistry.js.map +0 -1
- package/mobile/lib/components/OtherProducts/OtherProductsItem.d.ts +0 -6
- package/mobile/lib/components/OtherProducts/OtherProductsItem.js +0 -17
- package/mobile/lib/components/OtherProducts/OtherProductsItem.js.map +0 -1
- package/mobile/lib/ui-kit/Foldable/DefaultButton.d.ts +0 -2
- package/mobile/lib/ui-kit/Foldable/DefaultButton.js +0 -10
- package/mobile/lib/ui-kit/Foldable/DefaultButton.js.map +0 -1
- package/mobile/lib/ui-kit/Foldable/FoldButtonProps.d.ts +0 -12
- package/mobile/lib/ui-kit/Foldable/FoldButtonProps.js +0 -2
- package/mobile/lib/ui-kit/Foldable/FoldButtonProps.js.map +0 -1
- package/mobile/lib/utils/getAccordionItems.d.ts +0 -1
- package/mobile/lib/utils/getAccordionItems.js +0 -10
- package/mobile/lib/utils/getAccordionItems.js.map +0 -1
- package/mobile/src/components/ContentPage/isBlockInRegistry.ts +0 -5
- package/mobile/src/components/OtherProducts/OtherProductsItem.tsx +0 -49
- package/mobile/src/ui-kit/Foldable/DefaultButton.tsx +0 -27
- package/mobile/src/ui-kit/Foldable/FoldButtonProps.ts +0 -13
- package/mobile/src/utils/getAccordionItems.ts +0 -10
- package/src/components/ContentPage/isBlockInRegistry.ts +0 -5
- package/src/components/OtherProducts/OtherProductsItem.tsx +0 -49
- package/src/ui-kit/Foldable/DefaultButton.tsx +0 -27
- package/src/ui-kit/Foldable/FoldButtonProps.ts +0 -13
- package/src/utils/getAccordionItems.ts +0 -10
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { context } from '../../react/setup-fixture';
|
|
2
|
+
import { InvestmentInfo } from './InvestmentInfo';
|
|
3
|
+
import type { InvestmentInfoContent } from './InvestmentInfoContent';
|
|
4
|
+
|
|
5
|
+
export const INVESTMENT_INFO: InvestmentInfoContent = {
|
|
6
|
+
items: [
|
|
7
|
+
'Качественные фермерские продукты напрямую от производителей',
|
|
8
|
+
'Самая большая база сельских туров по России',
|
|
9
|
+
'Площадки для создания комфортной жизни за городом',
|
|
10
|
+
'Подробная база вакансий для жителей сельской местности',
|
|
11
|
+
],
|
|
12
|
+
investmentZeroColumn: {
|
|
13
|
+
title: 'Открытие ИИС',
|
|
14
|
+
},
|
|
15
|
+
investmentColumns: [
|
|
16
|
+
{
|
|
17
|
+
title: '1 января года, следующего за годом открытия ИИС',
|
|
18
|
+
cells: [
|
|
19
|
+
{
|
|
20
|
+
text: 'Потенциальный доход инвестиций',
|
|
21
|
+
cellColor: 'green-light',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
text: 'Первый взнос 400 000 ₽',
|
|
25
|
+
cellColor: 'green-dark',
|
|
26
|
+
cellSize: 'S',
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
title: '1 января второго года после открытия ИИС',
|
|
32
|
+
cells: [
|
|
33
|
+
{
|
|
34
|
+
text: 'Налоговый вычет за 1 год 52 000 ₽',
|
|
35
|
+
cellColor: 'yellow',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
text: 'Потенциальный доход инвестиций за 2 года',
|
|
39
|
+
cellColor: 'green-light',
|
|
40
|
+
cellSize: 'S',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
text: 'Второй взнос 400 000 ₽',
|
|
44
|
+
cellColor: 'green',
|
|
45
|
+
cellSize: 'S',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
text: 'Первый взнос 400 000 ₽',
|
|
49
|
+
cellColor: 'green-dark',
|
|
50
|
+
cellSize: 'S',
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
title: '1 января третьего года после открытия ИИС',
|
|
56
|
+
cells: [
|
|
57
|
+
{
|
|
58
|
+
text: 'Налоговый вычет за 2 год 52 000 ₽',
|
|
59
|
+
cellColor: 'yellow',
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
text: 'Потенциальный доход инвестиций за 3 года',
|
|
63
|
+
cellColor: 'green-light',
|
|
64
|
+
cellSize: 'M',
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
text: 'Третий взнос — 0 ₽',
|
|
68
|
+
cellColor: 'green',
|
|
69
|
+
cellSize: 'S',
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
text: 'Первый и второй взносы 800 000 ₽',
|
|
73
|
+
cellColor: 'green-dark',
|
|
74
|
+
cellSize: 'L',
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
title: 'Возможный вывод средств, закрытие ИИС',
|
|
80
|
+
cells: [
|
|
81
|
+
{
|
|
82
|
+
text: 'Налоговый вычет за 3 года 156 000 ₽',
|
|
83
|
+
cellColor: 'yellow',
|
|
84
|
+
cellSize: 'S',
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
text: 'Потенциальный доход инвестиций за 3 года',
|
|
88
|
+
cellColor: 'green-light',
|
|
89
|
+
cellSize: 'M',
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
text: 'Сумма инвестиций за 3 года 1 200 000 ₽',
|
|
93
|
+
cellColor: 'green-dark',
|
|
94
|
+
cellSize: 'XL',
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
export default {
|
|
102
|
+
default: (
|
|
103
|
+
<div className="container grid grid-cols-12">
|
|
104
|
+
<InvestmentInfo className="col-span-12" context={context} {...INVESTMENT_INFO} />
|
|
105
|
+
</div>
|
|
106
|
+
),
|
|
107
|
+
};
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import type { UniBlockProps } from '../../model/ContentPageDef';
|
|
3
|
+
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
4
|
+
import { List } from '../../ui-kit/List/List';
|
|
5
|
+
import { joinList } from '../../utils/joinList';
|
|
6
|
+
import type {
|
|
7
|
+
InvestmentCell,
|
|
8
|
+
InvestmentCellColor,
|
|
9
|
+
InvestmentCellSize,
|
|
10
|
+
InvestmentColumn,
|
|
11
|
+
InvestmentInfoContent,
|
|
12
|
+
InvestmentZeroColumn,
|
|
13
|
+
} from './InvestmentInfoContent';
|
|
14
|
+
|
|
15
|
+
const investmentCellColorMap: Record<InvestmentCellColor, string> = {
|
|
16
|
+
yellow: 'bg-yellow',
|
|
17
|
+
green: 'bg-green',
|
|
18
|
+
'green-light': 'bg-green-light',
|
|
19
|
+
'green-dark': 'bg-green-dark',
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
const investmentCellSizeMap: Record<InvestmentCellSize, string> = {
|
|
23
|
+
XS: 'h-[40px]',
|
|
24
|
+
S: 'h-[68px]',
|
|
25
|
+
M: 'h-[102px]',
|
|
26
|
+
L: 'h-[136px]',
|
|
27
|
+
XL: 'h-[204px]',
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export interface InvestmentInfoProps extends InvestmentInfoContent, UniBlockProps {}
|
|
31
|
+
|
|
32
|
+
export const InvestmentInfo = JSX<InvestmentInfoProps>((props) => {
|
|
33
|
+
const {
|
|
34
|
+
context,
|
|
35
|
+
className = '',
|
|
36
|
+
items,
|
|
37
|
+
isDotted,
|
|
38
|
+
investmentZeroColumn,
|
|
39
|
+
investmentColumns,
|
|
40
|
+
...rest
|
|
41
|
+
} = props;
|
|
42
|
+
const colums = investmentColumns ? [...investmentColumns] : [];
|
|
43
|
+
if (investmentZeroColumn) {
|
|
44
|
+
colums.unshift(investmentZeroColumn);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
return (
|
|
48
|
+
<BlockWrapper
|
|
49
|
+
className={`font-sans bg-white p-9 pb-9 ${className}`}
|
|
50
|
+
context={context}
|
|
51
|
+
{...rest}
|
|
52
|
+
>
|
|
53
|
+
<div className="container text-m-light">
|
|
54
|
+
{colums?.length ? (
|
|
55
|
+
<div>
|
|
56
|
+
<div className="flex items-end px-9 text-white">
|
|
57
|
+
{joinList(<div className="w-px h-4 bg-main-stroke" />)(
|
|
58
|
+
colums.map(renderInvestmentColumn),
|
|
59
|
+
)}
|
|
60
|
+
<div className="w-px h-4 bg-main-stroke" />
|
|
61
|
+
</div>
|
|
62
|
+
<div className="border-t border-main-stroke -mt-2 mx-9" />
|
|
63
|
+
<div className="flex justify-between mt-3 -mx-10">
|
|
64
|
+
{colums.map(renderInvestmentColumnTitle)}
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
) : null}
|
|
68
|
+
|
|
69
|
+
{items?.length ? (
|
|
70
|
+
<List
|
|
71
|
+
className="mt-9 text-h6"
|
|
72
|
+
items={items}
|
|
73
|
+
itemClassName="mb-[7px]"
|
|
74
|
+
isDotted={isDotted}
|
|
75
|
+
/>
|
|
76
|
+
) : null}
|
|
77
|
+
</div>
|
|
78
|
+
</BlockWrapper>
|
|
79
|
+
);
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
const renderInvestmentColumn = (
|
|
83
|
+
column: InvestmentColumn | InvestmentZeroColumn,
|
|
84
|
+
i: number,
|
|
85
|
+
arr: Array<InvestmentColumn>,
|
|
86
|
+
) => {
|
|
87
|
+
const isSecondColumn = i === 1;
|
|
88
|
+
const isLastColumn = i === arr.length - 1;
|
|
89
|
+
|
|
90
|
+
return (
|
|
91
|
+
<div
|
|
92
|
+
key={`column_${i}`}
|
|
93
|
+
className={`${getColumnClasses(isSecondColumn, isLastColumn, column.cells)}`}
|
|
94
|
+
>
|
|
95
|
+
{column.cells?.length ? (
|
|
96
|
+
<div className={`w-full ${isLastColumn ? 'border-4 border-green-more-dark p-1' : ''}`}>
|
|
97
|
+
{column.cells.map(renderInvestmentCell)}
|
|
98
|
+
</div>
|
|
99
|
+
) : null}
|
|
100
|
+
</div>
|
|
101
|
+
);
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
const getColumnClasses = (
|
|
105
|
+
isSecondColumn: boolean,
|
|
106
|
+
isLastColumn: boolean,
|
|
107
|
+
cells: InvestmentCell[] = [],
|
|
108
|
+
): string =>
|
|
109
|
+
[
|
|
110
|
+
cells.length ? 'flex-1' : 'flex-0',
|
|
111
|
+
cells.length && !isSecondColumn && !isLastColumn ? 'pl-2.5' : '',
|
|
112
|
+
cells.length && !isLastColumn ? 'pr-2.5 pb-8' : 'pb-6',
|
|
113
|
+
].join(' ');
|
|
114
|
+
|
|
115
|
+
const renderInvestmentCell = (cell: InvestmentCell, i: number) => {
|
|
116
|
+
const cellSize = cell.cellSize || 'XS';
|
|
117
|
+
const cellColor = cell.cellColor || 'green';
|
|
118
|
+
|
|
119
|
+
return cell.text ? (
|
|
120
|
+
<div
|
|
121
|
+
key={`cell_${i}`}
|
|
122
|
+
className={`flex-1 flex items-center justify-center relative py-2 ${
|
|
123
|
+
investmentCellSizeMap[cellSize]
|
|
124
|
+
} ${investmentCellColorMap[cellColor]} ${cellSize === 'XS' ? 'px-3' : 'px-11'}`}
|
|
125
|
+
>
|
|
126
|
+
<div className="text-center">{cell.text}</div>
|
|
127
|
+
</div>
|
|
128
|
+
) : null;
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
const renderInvestmentColumnTitle = (
|
|
132
|
+
column: InvestmentColumn | InvestmentZeroColumn,
|
|
133
|
+
i: number,
|
|
134
|
+
arr: Array<InvestmentColumn>,
|
|
135
|
+
) => {
|
|
136
|
+
const isFirstColumn = i === 0;
|
|
137
|
+
const isLastColumn = i === arr.length - 1;
|
|
138
|
+
|
|
139
|
+
return (
|
|
140
|
+
<div
|
|
141
|
+
key={`title_${i}`}
|
|
142
|
+
className={`flex-1 max-w-[180px] text-center px-2 ${isFirstColumn ? 'pl-9' : ''} ${
|
|
143
|
+
isLastColumn ? 'pr-9' : ' '
|
|
144
|
+
}`}
|
|
145
|
+
>
|
|
146
|
+
{column.title}
|
|
147
|
+
</div>
|
|
148
|
+
);
|
|
149
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { ListContent } from '../../ui-kit/List/ListContent';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @title Цвет
|
|
5
|
+
* @enumNames ["Желтый", "Светло-зеленый", "Зеленый", "Тёмно-зеленый"]
|
|
6
|
+
*/
|
|
7
|
+
export type InvestmentCellColor = 'yellow' | 'green-light' | 'green' | 'green-dark';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @title Высота
|
|
11
|
+
* @enumNames ["Очень большой", "Большой", "Средний", "Маленький", "Очень маленький"]
|
|
12
|
+
*/
|
|
13
|
+
export type InvestmentCellSize = 'XL' | 'L' | 'M' | 'S' | 'XS';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @title Ячейка
|
|
17
|
+
*/
|
|
18
|
+
export type InvestmentCell = {
|
|
19
|
+
/** @title Текст */
|
|
20
|
+
text?: string;
|
|
21
|
+
cellColor?: InvestmentCellColor;
|
|
22
|
+
cellSize?: InvestmentCellSize;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @title Элемент данных 1
|
|
27
|
+
*/
|
|
28
|
+
export type InvestmentZeroColumn = {
|
|
29
|
+
/** @title Название */
|
|
30
|
+
title?: string;
|
|
31
|
+
/** @hidden */
|
|
32
|
+
cells?: InvestmentCell[];
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @title Элемент данных
|
|
37
|
+
*/
|
|
38
|
+
export type InvestmentColumn = {
|
|
39
|
+
/** @title Название */
|
|
40
|
+
title?: string;
|
|
41
|
+
/** @title Ячейки */
|
|
42
|
+
cells?: InvestmentCell[];
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @title Блок инвестиций
|
|
47
|
+
*/
|
|
48
|
+
export type InvestmentInfoContent = ListContent & {
|
|
49
|
+
/** @title Буллиты */
|
|
50
|
+
isDotted?: boolean;
|
|
51
|
+
/** @title Элемент данных 1 */
|
|
52
|
+
investmentZeroColumn?: InvestmentZeroColumn;
|
|
53
|
+
/** @title Остальные элементы данных */
|
|
54
|
+
investmentColumns?: InvestmentColumn[];
|
|
55
|
+
};
|
|
@@ -1,56 +1,3 @@
|
|
|
1
1
|
{
|
|
2
|
-
"title": "Другие продукты"
|
|
3
|
-
"blockItems": [
|
|
4
|
-
{
|
|
5
|
-
"label": "Другие продукты 1",
|
|
6
|
-
"blocks": [
|
|
7
|
-
{
|
|
8
|
-
"blockListType": "TextBlock",
|
|
9
|
-
"title": "Текстовый блок",
|
|
10
|
-
"description": "Описание текстового блока",
|
|
11
|
-
"style": ["col-span-12"]
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"blockListType": "TextBlock",
|
|
15
|
-
"title": "Текстовый блок №2",
|
|
16
|
-
"description": "Описание текстового блока №2",
|
|
17
|
-
"style": ["col-span-12"]
|
|
18
|
-
}
|
|
19
|
-
]
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"label": "Другие продукты 2",
|
|
23
|
-
"blocks": [
|
|
24
|
-
{
|
|
25
|
-
"blockListType": "TextBlock",
|
|
26
|
-
"title": "Текстовый блок",
|
|
27
|
-
"description": "Описание текстового блока",
|
|
28
|
-
"style": ["col-span-12"]
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"blockListType": "TextBlock",
|
|
32
|
-
"title": "Текстовый блок №2",
|
|
33
|
-
"description": "Описание текстового блока №2",
|
|
34
|
-
"style": ["col-span-12"]
|
|
35
|
-
}
|
|
36
|
-
]
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"label": "Другие продукты 3",
|
|
40
|
-
"blocks": [
|
|
41
|
-
{
|
|
42
|
-
"blockListType": "TextBlock",
|
|
43
|
-
"title": "Текстовый блок",
|
|
44
|
-
"description": "Описание текстового блока",
|
|
45
|
-
"style": ["col-span-12"]
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"blockListType": "TextBlock",
|
|
49
|
-
"title": "Текстовый блок №2",
|
|
50
|
-
"description": "Описание текстового блока №2",
|
|
51
|
-
"style": ["col-span-12"]
|
|
52
|
-
}
|
|
53
|
-
]
|
|
54
|
-
}
|
|
55
|
-
]
|
|
2
|
+
"title": "Другие продукты"
|
|
56
3
|
}
|
|
@@ -1,156 +1,107 @@
|
|
|
1
1
|
import { context } from '../../react/setup-fixture';
|
|
2
|
+
import { Gallery } from '../Gallery/Gallery';
|
|
2
3
|
import { defaultProps as GALLERY } from '../Gallery/Gallery.fixture';
|
|
4
|
+
import { Headline } from '../Headline/Headline';
|
|
3
5
|
import { HEADLINE } from '../Headline/Headline.fixture';
|
|
6
|
+
import { LinkDocs } from '../LinkDocs/LinkDocs';
|
|
4
7
|
import { linkDocsContentExample } from '../LinkDocs/linkDocsContentExample';
|
|
8
|
+
import { MiniGallery } from '../MiniGallery/MiniGallery';
|
|
5
9
|
import { defaultProps as MINI_GALLERY } from '../MiniGallery/MiniGallery.fixture';
|
|
10
|
+
import { OtherProductsItem } from '../OtherProductsItem/OtherProductsItem';
|
|
11
|
+
import { PictureText } from '../PictureText/PictureText';
|
|
6
12
|
import { PICTURE_TEXT } from '../PictureText/PictureText.fixture';
|
|
13
|
+
import { ProductBlock } from '../ProductBlock/ProductBlock';
|
|
7
14
|
import { PRODUCT_BLOCK } from '../ProductBlock/ProductBlock.fixture';
|
|
15
|
+
import { ProductTile } from '../ProductTile/ProductTile';
|
|
8
16
|
import { PRODUCT_PENSION_TILE, PRODUCT_TILE } from '../ProductTile/ProductTile.fixture';
|
|
17
|
+
import { TextBlock } from '../TextBlock/TextBlock';
|
|
9
18
|
import { TEXT_BLOCK } from '../TextBlock/TextBlock.fixture';
|
|
19
|
+
import { Tile } from '../Tile/Tile';
|
|
10
20
|
import { TILE, TILE_PREMIUM } from '../Tile/Tile.fixture';
|
|
11
|
-
import type { OtherProductsProps } from './OtherProducts';
|
|
12
21
|
import { OtherProducts } from './OtherProducts';
|
|
13
22
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
LinkDocsBlockListDef,
|
|
18
|
-
MiniGalleryBlockListDef,
|
|
19
|
-
PictureTextBlockListDef,
|
|
20
|
-
ProductBlockBlockListDef,
|
|
21
|
-
ProductTileBlockListDef,
|
|
22
|
-
TextBlockBlockListDef,
|
|
23
|
-
TileBlockListDef,
|
|
24
|
-
} from '../../ui-kit/BlocksList/BlocksListProps';
|
|
23
|
+
const TEXT_BLOCK_OTHER_BLOCK = (
|
|
24
|
+
<TextBlock context={context} className="col-span-12" {...TEXT_BLOCK} />
|
|
25
|
+
);
|
|
25
26
|
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
...TEXT_BLOCK,
|
|
30
|
-
};
|
|
27
|
+
const PRODUCT_BLOCK_OTHER_BLOCK = (
|
|
28
|
+
<ProductBlock context={context} className="col-span-6" {...PRODUCT_BLOCK} />
|
|
29
|
+
);
|
|
31
30
|
|
|
32
|
-
const
|
|
33
|
-
blockListType: 'ProductBlock',
|
|
34
|
-
style: ['col-span-6'],
|
|
35
|
-
...PRODUCT_BLOCK,
|
|
36
|
-
};
|
|
31
|
+
const TILES_OTHER_BLOCK = <Tile context={context} className="col-span-12" {...TILE} />;
|
|
37
32
|
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
...TILE,
|
|
42
|
-
};
|
|
33
|
+
const TILES_PREMIUM_OTHER_BLOCK = (
|
|
34
|
+
<Tile context={context} className="col-span-6" {...TILE_PREMIUM} />
|
|
35
|
+
);
|
|
43
36
|
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
...TILE_PREMIUM,
|
|
48
|
-
};
|
|
37
|
+
const PRODUCT_TILES_OTHER_BLOCK = (
|
|
38
|
+
<ProductTile context={context} className="col-span-6" {...PRODUCT_TILE} />
|
|
39
|
+
);
|
|
49
40
|
|
|
50
|
-
const
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
...PRODUCT_TILE,
|
|
54
|
-
};
|
|
41
|
+
const PRODUCT_PENSION_TILES_OTHER_BLOCK = (
|
|
42
|
+
<ProductTile context={context} className="col-span-6" {...PRODUCT_PENSION_TILE} />
|
|
43
|
+
);
|
|
55
44
|
|
|
56
|
-
const
|
|
57
|
-
blockListType: 'ProductTile',
|
|
58
|
-
style: ['col-span-6'],
|
|
59
|
-
...PRODUCT_PENSION_TILE,
|
|
60
|
-
};
|
|
45
|
+
const HEADLINE_OTHER_BLOCK = <Headline context={context} className="col-span-12" {...HEADLINE} />;
|
|
61
46
|
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
...HEADLINE,
|
|
66
|
-
};
|
|
47
|
+
const PICTURE_TEXT_OTHER_BLOCK = (
|
|
48
|
+
<PictureText context={context} className="col-span-12" {...PICTURE_TEXT} />
|
|
49
|
+
);
|
|
67
50
|
|
|
68
|
-
const
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
...PICTURE_TEXT,
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
const LINK_DOCS_OTHER_BLOCK: LinkDocsBlockListDef = {
|
|
75
|
-
blockListType: 'LinkDocs',
|
|
76
|
-
style: ['col-span-12'],
|
|
77
|
-
...linkDocsContentExample,
|
|
78
|
-
};
|
|
51
|
+
const LINK_DOCS_OTHER_BLOCK = (
|
|
52
|
+
<LinkDocs context={context} className="col-span-12" {...linkDocsContentExample} />
|
|
53
|
+
);
|
|
79
54
|
|
|
80
|
-
const GALLERY_OTHER_BLOCK
|
|
81
|
-
blockListType: 'Gallery',
|
|
82
|
-
style: ['col-span-12'],
|
|
83
|
-
...GALLERY,
|
|
84
|
-
};
|
|
55
|
+
const GALLERY_OTHER_BLOCK = <Gallery className="col-span-12" {...GALLERY} />;
|
|
85
56
|
|
|
86
|
-
const MINI_GALLERY_OTHER_BLOCK
|
|
87
|
-
blockListType: 'MiniGallery',
|
|
88
|
-
style: ['col-span-12'],
|
|
89
|
-
...MINI_GALLERY,
|
|
90
|
-
};
|
|
57
|
+
const MINI_GALLERY_OTHER_BLOCK = <MiniGallery className="col-span-12" {...MINI_GALLERY} />;
|
|
91
58
|
|
|
92
|
-
const
|
|
93
|
-
context
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
label: 'OtherProducts №1 Tiles',
|
|
98
|
-
blocks: [
|
|
99
|
-
TILES_PREMIUM_OTHER_BLOCK,
|
|
100
|
-
TILES_PREMIUM_OTHER_BLOCK,
|
|
101
|
-
TILES_OTHER_BLOCK,
|
|
102
|
-
TILES_OTHER_BLOCK,
|
|
103
|
-
],
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
label: 'OtherProducts №2 Product_Tiles',
|
|
107
|
-
blocks: [
|
|
108
|
-
PRODUCT_TILES_OTHER_BLOCK,
|
|
109
|
-
PRODUCT_TILES_OTHER_BLOCK,
|
|
110
|
-
PRODUCT_PENSION_TILES_OTHER_BLOCK,
|
|
111
|
-
PRODUCT_PENSION_TILES_OTHER_BLOCK,
|
|
112
|
-
],
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
label: 'OtherProducts №3 Product_Block',
|
|
116
|
-
blocks: [PRODUCT_BLOCK_OTHER_BLOCK, PRODUCT_BLOCK_OTHER_BLOCK],
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
label: 'OtherProducts №4 Text_Block',
|
|
120
|
-
blocks: [
|
|
121
|
-
TEXT_BLOCK_OTHER_BLOCK,
|
|
122
|
-
TEXT_BLOCK_OTHER_BLOCK,
|
|
123
|
-
TEXT_BLOCK_OTHER_BLOCK,
|
|
124
|
-
TEXT_BLOCK_OTHER_BLOCK,
|
|
125
|
-
],
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
label: 'OtherProducts №5 Picture_Text',
|
|
129
|
-
blocks: [PICTURE_TEXT_OTHER_BLOCK],
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
label: 'OtherProducts №6 Headline',
|
|
133
|
-
blocks: [HEADLINE_OTHER_BLOCK],
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
label: 'OtherProducts №7 Link_Docs',
|
|
137
|
-
blocks: [LINK_DOCS_OTHER_BLOCK],
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
label: 'OtherProducts №8 Gallery',
|
|
141
|
-
blocks: [GALLERY_OTHER_BLOCK, GALLERY_OTHER_BLOCK],
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
label: 'OtherProducts №9 Mini_Gallery',
|
|
145
|
-
blocks: [MINI_GALLERY_OTHER_BLOCK, MINI_GALLERY_OTHER_BLOCK],
|
|
146
|
-
},
|
|
147
|
-
],
|
|
148
|
-
};
|
|
59
|
+
export const OTHER_PRODUCTS_ITEM = (
|
|
60
|
+
<OtherProductsItem context={context} label="OtherProducts №1 Tiles">
|
|
61
|
+
{[TILES_PREMIUM_OTHER_BLOCK, TILES_PREMIUM_OTHER_BLOCK, TILES_OTHER_BLOCK, TILES_OTHER_BLOCK]}
|
|
62
|
+
</OtherProductsItem>
|
|
63
|
+
);
|
|
149
64
|
|
|
150
65
|
export default {
|
|
151
66
|
default: (
|
|
152
67
|
<div className="container grid grid-cols-12">
|
|
153
|
-
<OtherProducts className="col-span-12"
|
|
68
|
+
<OtherProducts context={context} className="col-span-12">
|
|
69
|
+
{OTHER_PRODUCTS_ITEM}
|
|
70
|
+
<OtherProductsItem context={context} label="OtherProducts №2 Product_Tiles">
|
|
71
|
+
{[
|
|
72
|
+
PRODUCT_TILES_OTHER_BLOCK,
|
|
73
|
+
PRODUCT_TILES_OTHER_BLOCK,
|
|
74
|
+
PRODUCT_PENSION_TILES_OTHER_BLOCK,
|
|
75
|
+
PRODUCT_PENSION_TILES_OTHER_BLOCK,
|
|
76
|
+
]}
|
|
77
|
+
</OtherProductsItem>
|
|
78
|
+
<OtherProductsItem context={context} label="OtherProducts №3 Product_Block">
|
|
79
|
+
{[PRODUCT_BLOCK_OTHER_BLOCK, PRODUCT_BLOCK_OTHER_BLOCK]}
|
|
80
|
+
</OtherProductsItem>
|
|
81
|
+
<OtherProductsItem context={context} label="OtherProducts №4 Text_Block">
|
|
82
|
+
{[
|
|
83
|
+
TEXT_BLOCK_OTHER_BLOCK,
|
|
84
|
+
TEXT_BLOCK_OTHER_BLOCK,
|
|
85
|
+
TEXT_BLOCK_OTHER_BLOCK,
|
|
86
|
+
TEXT_BLOCK_OTHER_BLOCK,
|
|
87
|
+
]}
|
|
88
|
+
</OtherProductsItem>
|
|
89
|
+
<OtherProductsItem context={context} label="OtherProducts №5 Picture_Text">
|
|
90
|
+
{[PICTURE_TEXT_OTHER_BLOCK]}
|
|
91
|
+
</OtherProductsItem>
|
|
92
|
+
<OtherProductsItem context={context} label="OtherProducts №6 Headline">
|
|
93
|
+
{[HEADLINE_OTHER_BLOCK]}
|
|
94
|
+
</OtherProductsItem>
|
|
95
|
+
<OtherProductsItem context={context} label="OtherProducts №7 Link_Docs">
|
|
96
|
+
{[LINK_DOCS_OTHER_BLOCK]}
|
|
97
|
+
</OtherProductsItem>
|
|
98
|
+
<OtherProductsItem context={context} label="OtherProducts №8 Gallery">
|
|
99
|
+
{[GALLERY_OTHER_BLOCK, GALLERY_OTHER_BLOCK]}
|
|
100
|
+
</OtherProductsItem>
|
|
101
|
+
<OtherProductsItem context={context} label="OtherProducts №9 Mini_Gallery">
|
|
102
|
+
{[MINI_GALLERY_OTHER_BLOCK, MINI_GALLERY_OTHER_BLOCK]}
|
|
103
|
+
</OtherProductsItem>
|
|
104
|
+
</OtherProducts>
|
|
154
105
|
</div>
|
|
155
106
|
),
|
|
156
107
|
};
|
|
@@ -1,32 +1,21 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import type { JSXBlock } from '../../model/BlocksRegistry';
|
|
2
3
|
import type { UniBlockProps } from '../../model/ContentPageDef';
|
|
3
4
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
4
5
|
import type { OtherProductsContent } from './OtherProductsContent';
|
|
5
|
-
import { OtherProductsItem } from './OtherProductsItem';
|
|
6
6
|
|
|
7
7
|
export interface OtherProductsProps extends OtherProductsContent, UniBlockProps {}
|
|
8
8
|
|
|
9
9
|
export const OtherProducts = JSX<OtherProductsProps>(
|
|
10
|
-
({
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
>
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
{...item}
|
|
23
|
-
dataTheme={colorPalette}
|
|
24
|
-
context={context}
|
|
25
|
-
/>
|
|
26
|
-
))}
|
|
27
|
-
</div>
|
|
28
|
-
) : null}
|
|
29
|
-
</BlockWrapper>
|
|
30
|
-
);
|
|
31
|
-
},
|
|
32
|
-
);
|
|
10
|
+
({ context, className = '', children, ...rest }) => (
|
|
11
|
+
<BlockWrapper
|
|
12
|
+
context={context}
|
|
13
|
+
className={`font-sans text-primary-text ${className}`}
|
|
14
|
+
{...rest}
|
|
15
|
+
>
|
|
16
|
+
{children ? <div className="box-border1">{children}</div> : null}
|
|
17
|
+
</BlockWrapper>
|
|
18
|
+
),
|
|
19
|
+
) as JSXBlock<OtherProductsProps>;
|
|
20
|
+
|
|
21
|
+
OtherProducts.childrenTypes = ['OtherProductsItem'];
|