@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
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import type { AlignType } from '../../model/AlignType';
|
|
2
2
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
|
+
import type { HeadlineCommonProps } from '../../model/HeadlineType';
|
|
3
4
|
import type { Picture } from '../../model/Picture';
|
|
4
5
|
import type { BlockDef } from '../../ui-kit/BlocksList/BlocksListProps';
|
|
5
|
-
import type { HeadlineCommonProps } from '../../model/HeadlineType';
|
|
6
|
-
/**
|
|
7
|
-
* @title Элемент списка
|
|
8
|
-
*/
|
|
9
6
|
export interface AccordionItemCommonProps {
|
|
10
7
|
/**
|
|
11
8
|
* @title Название
|
|
@@ -14,8 +11,6 @@ export interface AccordionItemCommonProps {
|
|
|
14
11
|
label?: string;
|
|
15
12
|
/** @title Отображать в раскрытом виде */
|
|
16
13
|
isExpanded?: boolean;
|
|
17
|
-
/** @title Блоки */
|
|
18
|
-
blocks?: BlockDef[];
|
|
19
14
|
/**
|
|
20
15
|
* @title Отображать/скрывать обводку элемента
|
|
21
16
|
* @default false
|
|
@@ -23,6 +18,13 @@ export interface AccordionItemCommonProps {
|
|
|
23
18
|
bordered?: boolean;
|
|
24
19
|
labelIcon?: Picture;
|
|
25
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* @title Элемент списка
|
|
23
|
+
*/
|
|
24
|
+
export interface AccordionItem extends AccordionItemCommonProps {
|
|
25
|
+
/** @title Блоки */
|
|
26
|
+
blocks?: BlockDef[];
|
|
27
|
+
}
|
|
26
28
|
/**
|
|
27
29
|
* @title Аккордеон
|
|
28
30
|
*/
|
|
@@ -34,7 +36,7 @@ export declare type AccordionContent = HeadlineCommonProps & {
|
|
|
34
36
|
accordionAlignTitle?: AlignType;
|
|
35
37
|
version?: BlockVersion;
|
|
36
38
|
/** @title Список */
|
|
37
|
-
accordionItems?:
|
|
39
|
+
accordionItems?: AccordionItem[];
|
|
38
40
|
/**
|
|
39
41
|
* @title Отображать/скрывать обводку у элемента списка
|
|
40
42
|
* @default false
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { AccordionItemCommonProps } from './AccordionContent';
|
|
3
|
-
export interface AccordionItemProps extends AccordionItemCommonProps, UniBlockProps {
|
|
4
|
-
}
|
|
1
|
+
import type { AccordionItemProps } from './AccordionItemProps';
|
|
5
2
|
export declare const AccordionItem: import("@redneckz/uni-jsx").UNIComponent<AccordionItemProps, any, any>;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { AccordionItemCommonProps } from './AccordionContent';
|
|
3
|
-
export interface AccordionItemProps extends AccordionItemCommonProps, UniBlockProps {
|
|
4
|
-
}
|
|
1
|
+
import type { AccordionItemProps } from './AccordionItemProps';
|
|
5
2
|
export declare const AccordionItem: import("@redneckz/uni-jsx").UNIComponent<AccordionItemProps, any, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AccordionItemsList: import("@redneckz/uni-jsx").UNIComponent<{}, any, any>;
|
|
@@ -13,6 +13,7 @@ export declare const Blocks: {
|
|
|
13
13
|
Header: import("@redneckz/uni-jsx").UNIComponent<import("./Header/Header").HeaderProps, any, any>;
|
|
14
14
|
Headline: import("@redneckz/uni-jsx").UNIComponent<import("./Headline/Headline").HeadlineProps, any, any>;
|
|
15
15
|
InsuranceAmountBlock: import("@redneckz/uni-jsx").UNIComponent<import("./InsuranceAmountBlock/InsuranceAmountBlock").InsuranceAmountBlockProps, any, any>;
|
|
16
|
+
InvestmentInfo: import("@redneckz/uni-jsx").UNIComponent<import("./InvestmentInfo/InvestmentInfo").InvestmentInfoProps, any, any>;
|
|
16
17
|
LinkDocs: import("@redneckz/uni-jsx").UNIComponent<import("./LinkDocs/LinkDocs").LinkDocsProps, any, any>;
|
|
17
18
|
MiniGallery: import("@redneckz/uni-jsx").UNIComponent<import("./MiniGallery/MiniGallery").MiniGalleryProps, any, any>;
|
|
18
19
|
MobileAppTile: import("@redneckz/uni-jsx").UNIComponent<import("./MobileAppTile/MobileAppTile").MobileAppTileProps, any, any>;
|
|
@@ -21,7 +22,8 @@ export declare const Blocks: {
|
|
|
21
22
|
ProductGallery: import("@redneckz/uni-jsx").UNIComponent<import("./ProductGallery/ProductGallery").ProductGalleryProps, any, any>;
|
|
22
23
|
ProductTile: import("@redneckz/uni-jsx").UNIComponent<import("./ProductTile/ProductTile").ProductTileProps, any, any>;
|
|
23
24
|
PromoTile: import("@redneckz/uni-jsx").UNIComponent<import("./PromoTile/PromoTile").PromoTileProps, any, any>;
|
|
24
|
-
OtherProducts: import("
|
|
25
|
+
OtherProducts: import("../model/BlocksRegistry").JSXBlock<import("./OtherProducts/OtherProducts").OtherProductsProps>;
|
|
26
|
+
OtherProductsItem: import("../model/BlocksRegistry").JSXBlock<import("./OtherProductsItem/OtherProductsItem").OtherProductsItemProps>;
|
|
25
27
|
Recommendation: import("@redneckz/uni-jsx").UNIComponent<import("./Recommendation/Recommendation").RecommendationProps, any, any>;
|
|
26
28
|
StepsBlock: import("@redneckz/uni-jsx").UNIComponent<import("./StepsBlock/StepsBlock").StepsBlockProps, any, any>;
|
|
27
29
|
TariffsTable: import("@redneckz/uni-jsx").UNIComponent<import("./TariffsTable/TariffsTable").TariffsTableProps, any, any>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { UniBlockProps } from '../../model/ContentPageDef';
|
|
2
|
+
import type { InvestmentInfoContent } from './InvestmentInfoContent';
|
|
3
|
+
export interface InvestmentInfoProps extends InvestmentInfoContent, UniBlockProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const InvestmentInfo: import("@redneckz/uni-jsx").UNIComponent<InvestmentInfoProps, any, any>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { ListContent } from '../../ui-kit/List/ListContent';
|
|
2
|
+
/**
|
|
3
|
+
* @title Цвет
|
|
4
|
+
* @enumNames ["Желтый", "Светло-зеленый", "Зеленый", "Тёмно-зеленый"]
|
|
5
|
+
*/
|
|
6
|
+
export declare type InvestmentCellColor = 'yellow' | 'green-light' | 'green' | 'green-dark';
|
|
7
|
+
/**
|
|
8
|
+
* @title Высота
|
|
9
|
+
* @enumNames ["Очень большой", "Большой", "Средний", "Маленький", "Очень маленький"]
|
|
10
|
+
*/
|
|
11
|
+
export declare type InvestmentCellSize = 'XL' | 'L' | 'M' | 'S' | 'XS';
|
|
12
|
+
/**
|
|
13
|
+
* @title Ячейка
|
|
14
|
+
*/
|
|
15
|
+
export declare type InvestmentCell = {
|
|
16
|
+
/** @title Текст */
|
|
17
|
+
text?: string;
|
|
18
|
+
cellColor?: InvestmentCellColor;
|
|
19
|
+
cellSize?: InvestmentCellSize;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* @title Элемент данных 1
|
|
23
|
+
*/
|
|
24
|
+
export declare type InvestmentZeroColumn = {
|
|
25
|
+
/** @title Название */
|
|
26
|
+
title?: string;
|
|
27
|
+
/** @hidden */
|
|
28
|
+
cells?: InvestmentCell[];
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* @title Элемент данных
|
|
32
|
+
*/
|
|
33
|
+
export declare type InvestmentColumn = {
|
|
34
|
+
/** @title Название */
|
|
35
|
+
title?: string;
|
|
36
|
+
/** @title Ячейки */
|
|
37
|
+
cells?: InvestmentCell[];
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* @title Блок инвестиций
|
|
41
|
+
*/
|
|
42
|
+
export declare type InvestmentInfoContent = ListContent & {
|
|
43
|
+
/** @title Буллиты */
|
|
44
|
+
isDotted?: boolean;
|
|
45
|
+
/** @title Элемент данных 1 */
|
|
46
|
+
investmentZeroColumn?: InvestmentZeroColumn;
|
|
47
|
+
/** @title Остальные элементы данных */
|
|
48
|
+
investmentColumns?: InvestmentColumn[];
|
|
49
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { JSXBlock } from '../../model/BlocksRegistry';
|
|
1
2
|
import type { UniBlockProps } from '../../model/ContentPageDef';
|
|
2
3
|
import type { OtherProductsContent } from './OtherProductsContent';
|
|
3
4
|
export interface OtherProductsProps extends OtherProductsContent, UniBlockProps {
|
|
4
5
|
}
|
|
5
|
-
export declare const OtherProducts:
|
|
6
|
+
export declare const OtherProducts: JSXBlock<OtherProductsProps>;
|
|
@@ -1,25 +1,5 @@
|
|
|
1
|
-
import type { ColorPalette } from '../../model/ContentPageDef';
|
|
2
1
|
import type { TitleProps } from '../../model/HeadlineType';
|
|
3
|
-
import type { BlockDef } from '../../ui-kit/BlocksList/BlocksListProps';
|
|
4
|
-
/**
|
|
5
|
-
* @title Элемент списка
|
|
6
|
-
*/
|
|
7
|
-
export interface BlockItemCommonProps {
|
|
8
|
-
/**
|
|
9
|
-
* @title Название
|
|
10
|
-
* @default Список
|
|
11
|
-
*/
|
|
12
|
-
label?: string;
|
|
13
|
-
/** @title Отображать в раскрытом виде */
|
|
14
|
-
isUnfolded?: boolean;
|
|
15
|
-
/** @title Блоки */
|
|
16
|
-
blocks?: BlockDef[];
|
|
17
|
-
}
|
|
18
2
|
/**
|
|
19
3
|
* @title Другие продукты
|
|
20
4
|
*/
|
|
21
|
-
export declare type OtherProductsContent = TitleProps
|
|
22
|
-
/** @title Список */
|
|
23
|
-
blockItems?: BlockItemCommonProps[];
|
|
24
|
-
colorPalette?: ColorPalette;
|
|
25
|
-
};
|
|
5
|
+
export declare type OtherProductsContent = TitleProps;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { JSXBlock } from '../../model/BlocksRegistry';
|
|
2
|
+
import type { UniBlockProps } from '../../model/ContentPageDef';
|
|
3
|
+
import type { OtherProductsItemContent } from './OtherProductsItemContent';
|
|
4
|
+
export interface OtherProductsItemProps extends OtherProductsItemContent, UniBlockProps {
|
|
5
|
+
}
|
|
6
|
+
export declare const OtherProductsItem: JSXBlock<OtherProductsItemProps>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ColorPalette } from '../../model/ContentPageDef';
|
|
2
|
+
/**
|
|
3
|
+
* @title Элемент списка
|
|
4
|
+
*/
|
|
5
|
+
export interface OtherProductsItemContent {
|
|
6
|
+
/**
|
|
7
|
+
* @title Название
|
|
8
|
+
* @default Список
|
|
9
|
+
*/
|
|
10
|
+
label?: string;
|
|
11
|
+
/** @title Отображать в раскрытом виде */
|
|
12
|
+
isUnfolded?: boolean;
|
|
13
|
+
colorPalette?: ColorPalette;
|
|
14
|
+
}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
3
|
-
export declare const renderItems: (items
|
|
2
|
+
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
|
+
export declare const renderItems: ({ items, isDotted, version, className, }: {
|
|
4
|
+
items?: string[] | undefined;
|
|
5
|
+
isDotted?: boolean | undefined;
|
|
6
|
+
version?: BlockVersion | undefined;
|
|
7
|
+
className?: string | undefined;
|
|
8
|
+
}) => JSX.Element | null;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
|
+
import type { HandlerDecorator, Router } from '../ContentPage/ContentPageContext';
|
|
4
|
+
import type { Step } from './StepsBlockContent';
|
|
5
|
+
import type { StyleType } from './StepsBlockStyleMaps';
|
|
6
|
+
export declare const renderStepContent: ({ styleMap, isMainButton, version, router, handlerDecorator, }: {
|
|
7
|
+
styleMap: StyleType;
|
|
8
|
+
isMainButton: boolean;
|
|
9
|
+
version: BlockVersion;
|
|
10
|
+
router: Router;
|
|
11
|
+
handlerDecorator?: HandlerDecorator | undefined;
|
|
12
|
+
}) => (step: Step, i: number, { length }: {
|
|
13
|
+
length: number;
|
|
14
|
+
}) => JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { BlockDef, Slot, SlotsMap } from './ContentPageDef';
|
|
2
2
|
export declare const DEFAULT_SLOT_NAME: null;
|
|
3
3
|
export declare type BlockAncestors = [keyof SlotsMap | typeof DEFAULT_SLOT_NAME, ...Slot[]];
|
|
4
|
+
export declare const DEFAULT_ANCESTORS: BlockAncestors;
|
|
4
5
|
interface BlockDecoratorProps<VNode> {
|
|
5
6
|
blockClassName: string;
|
|
6
7
|
block: BlockDef;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { UNIComponent } from '@redneckz/uni-jsx';
|
|
2
2
|
import type { UniBlockProps } from './ContentPageDef';
|
|
3
3
|
import type { VNode } from './VNode';
|
|
4
|
-
export declare type JSXBlock<BlockProps = Record<string, any>> = UNIComponent<BlockProps & UniBlockProps, any, VNode | VNode[]
|
|
4
|
+
export declare type JSXBlock<BlockProps = Record<string, any>> = UNIComponent<BlockProps & UniBlockProps, any, VNode | VNode[]> & {
|
|
5
|
+
childrenTypes?: string[];
|
|
6
|
+
renderChild?: (child: VNode, i: number) => VNode;
|
|
7
|
+
};
|
|
5
8
|
export declare type BlocksRegistry<BlockProps = Record<string, any>> = Record<string, JSXBlock<BlockProps>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { ColorPalette } from '../../model/ContentPageDef';
|
|
3
|
+
import type { IconName } from '../Icon/IconProps';
|
|
4
|
+
import type { FoldablePartProps } from './FoldablePartProps';
|
|
5
|
+
interface DefaultFoldButtonProps {
|
|
6
|
+
className?: string;
|
|
7
|
+
label: string;
|
|
8
|
+
icon: IconName;
|
|
9
|
+
dataTheme?: ColorPalette;
|
|
10
|
+
onClick?: () => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const DefaultFoldButton: import("@redneckz/uni-jsx").UNIComponent<DefaultFoldButtonProps, any, any>;
|
|
13
|
+
export declare const renderDefaultFoldButton: ({ isUnfolded, onToggle }: FoldablePartProps) => JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
import type { VNode } from '../../model/VNode';
|
|
2
|
-
|
|
3
|
-
isUnfolded: boolean;
|
|
4
|
-
onToggle: () => void;
|
|
5
|
-
}
|
|
2
|
+
import type { FoldablePartProps } from './FoldablePartProps';
|
|
6
3
|
export interface FoldableProps {
|
|
7
|
-
blocks?: VNode[];
|
|
8
|
-
hiddenBlocksNum?: number;
|
|
9
4
|
unfoldedByDefault?: boolean;
|
|
10
5
|
isFoldButtonOnTop?: boolean;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
renderFoldButton?: (props: RenderFoldButtonProps) => VNode;
|
|
6
|
+
renderFoldableSection: (props: FoldablePartProps) => VNode;
|
|
7
|
+
renderFoldButton?: (props: FoldablePartProps) => VNode;
|
|
14
8
|
}
|
|
15
9
|
export declare const Foldable: import("@redneckz/uni-jsx").UNIComponent<FoldableProps, any, any>;
|
|
16
|
-
export {};
|
|
@@ -2,15 +2,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.Accordion = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const renderBlocksList_1 = require("../../ui-kit/BlocksList/renderBlocksList");
|
|
5
6
|
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
6
7
|
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
7
8
|
const AccordionItem_1 = require("./AccordionItem");
|
|
9
|
+
const AccordionItemsList_1 = require("./AccordionItemsList");
|
|
8
10
|
const ALIGN_TITLE = {
|
|
9
11
|
left: 'text-left',
|
|
10
12
|
center: 'text-center',
|
|
11
13
|
right: 'text-right',
|
|
12
14
|
};
|
|
13
15
|
exports.Accordion = (0, uni_jsx_1.JSX)(({ title, description, accordionItems, context, className = '', accordionAlignTitle = 'center', ...rest }) => {
|
|
14
|
-
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { context: context, className: `p-[50px] mb-1 last:mb-0 font-sans bg-white text-primary-text ${className}`, ...rest, children: [title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", as: "h2", className: `mb-2.5 ${ALIGN_TITLE[accordionAlignTitle]}`, title: title })) : null, description ? (0, jsx_runtime_1.jsx)("div", { className: "mb-2.5 text-l", children: description }) : null, accordionItems?.length ? ((0, jsx_runtime_1.jsx)(
|
|
16
|
+
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { context: context, className: `p-[50px] mb-1 last:mb-0 font-sans bg-white text-primary-text ${className}`, ...rest, children: [title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", as: "h2", className: `mb-2.5 ${ALIGN_TITLE[accordionAlignTitle]}`, title: title })) : null, description ? (0, jsx_runtime_1.jsx)("div", { className: "mb-2.5 text-l", children: description }) : null, accordionItems?.length ? ((0, jsx_runtime_1.jsx)(AccordionItemsList_1.AccordionItemsList, { children: accordionItems.map((item, i) => ((0, jsx_runtime_1.jsx)(AccordionItem_1.AccordionItem, { context: context, hasContent: Boolean(item.blocks?.length), ...item, children: (0, renderBlocksList_1.renderBlocksList)({ blocks: item.blocks, context, className: '!p-0 mb-5' }) }, `AccordionItem${i}`))) })) : null] }));
|
|
15
17
|
});
|
|
16
18
|
//# sourceMappingURL=Accordion.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Accordion.js","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,4DAAyD;AACzD,0DAAuD;AAEvD,mDAAgD;
|
|
1
|
+
{"version":3,"file":"Accordion.js","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,+EAA4E;AAC5E,4DAAyD;AACzD,0DAAuD;AAEvD,mDAAgD;AAChD,6DAA0D;AAE1D,MAAM,WAAW,GAA8B;IAC7C,IAAI,EAAE,WAAW;IACjB,MAAM,EAAE,aAAa;IACrB,KAAK,EAAE,YAAY;CACpB,CAAC;AAIW,QAAA,SAAS,GAAG,IAAA,aAAG,EAC1B,CAAC,EACC,KAAK,EACL,WAAW,EACX,cAAc,EACd,OAAO,EACP,SAAS,GAAG,EAAE,EACd,mBAAmB,GAAG,QAAQ,EAC9B,GAAG,IAAI,EACR,EAAE,EAAE;IACH,OAAO,CACL,wBAAC,2BAAY,IACX,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,gEAAgE,SAAS,EAAE,KAClF,IAAI,aAEP,KAAK,CAAC,CAAC,CAAC,CACP,uBAAC,iBAAO,IACN,WAAW,EAAC,IAAI,EAChB,EAAE,EAAC,IAAI,EACP,SAAS,EAAE,UAAU,WAAW,CAAC,mBAAmB,CAAC,EAAE,EACvD,KAAK,EAAE,KAAK,GACZ,CACH,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAC,eAAe,YAAE,WAAW,GAAO,CAAC,CAAC,CAAC,IAAI,EACvE,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC,CACxB,uBAAC,uCAAkB,cAChB,cAAc,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAC/B,uBAAC,6BAAa,IAEZ,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,KACpC,IAAI,YAEP,IAAA,mCAAgB,EAAC,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC,IALtE,gBAAgB,CAAC,EAAE,CAMV,CACjB,CAAC,GACiB,CACtB,CAAC,CAAC,CAAC,IAAI,IACK,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -2,9 +2,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.Accordion = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const renderBlocksList_1 = require("../../ui-kit/BlocksList/renderBlocksList");
|
|
6
|
+
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
5
7
|
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
6
8
|
const AccordionItem_1 = require("./AccordionItem");
|
|
7
|
-
|
|
8
|
-
|
|
9
|
+
const AccordionItemsList_1 = require("./AccordionItemsList");
|
|
10
|
+
exports.Accordion = (0, uni_jsx_1.JSX)(({ title, description, accordionItems, context, className = '', bordered, ...rest }) => {
|
|
11
|
+
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { context: context, className: `py-6 px-4 font-sans bg-white text-primary-text ${className}`, ...rest, children: [title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", className: "mb-2 text-center", title: title }) : null, description ? (0, jsx_runtime_1.jsx)("div", { className: "mb-5 text-m-light text-center", children: description }) : null, accordionItems?.length ? ((0, jsx_runtime_1.jsx)(AccordionItemsList_1.AccordionItemsList, { children: accordionItems.map((item, i) => ((0, jsx_runtime_1.jsx)(AccordionItem_1.AccordionItem, { context: context, bordered: bordered, hasContent: Boolean(item.blocks?.length), ...item, children: (0, renderBlocksList_1.renderBlocksList)({ blocks: item.blocks, context, className: '!p-0 mb-5' }) }, `AccordionItem_${i}`))) })) : null] }));
|
|
9
12
|
});
|
|
10
13
|
//# sourceMappingURL=Accordion.mobile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Accordion.mobile.js","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,0DAAuD;AAEvD,mDAAgD;
|
|
1
|
+
{"version":3,"file":"Accordion.mobile.js","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,+EAA4E;AAC5E,4DAAyD;AACzD,0DAAuD;AAEvD,mDAAgD;AAChD,6DAA0D;AAI7C,QAAA,SAAS,GAAG,IAAA,aAAG,EAC1B,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,OAAO,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACrF,OAAO,CACL,wBAAC,2BAAY,IACX,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,kDAAkD,SAAS,EAAE,KACpE,IAAI,aAEP,KAAK,CAAC,CAAC,CAAC,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,SAAS,EAAC,kBAAkB,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EACtF,WAAW,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAC,+BAA+B,YAAE,WAAW,GAAO,CAAC,CAAC,CAAC,IAAI,EACvF,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC,CACxB,uBAAC,uCAAkB,cAChB,cAAc,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAC/B,uBAAC,6BAAa,IAEZ,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,KACpC,IAAI,YAEP,IAAA,mCAAgB,EAAC,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC,IANtE,iBAAiB,CAAC,EAAE,CAOX,CACjB,CAAC,GACiB,CACtB,CAAC,CAAC,CAAC,IAAI,IACK,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import type { AlignType } from '../../model/AlignType';
|
|
2
2
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
|
+
import type { HeadlineCommonProps } from '../../model/HeadlineType';
|
|
3
4
|
import type { Picture } from '../../model/Picture';
|
|
4
5
|
import type { BlockDef } from '../../ui-kit/BlocksList/BlocksListProps';
|
|
5
|
-
import type { HeadlineCommonProps } from '../../model/HeadlineType';
|
|
6
|
-
/**
|
|
7
|
-
* @title Элемент списка
|
|
8
|
-
*/
|
|
9
6
|
export interface AccordionItemCommonProps {
|
|
10
7
|
/**
|
|
11
8
|
* @title Название
|
|
@@ -14,8 +11,6 @@ export interface AccordionItemCommonProps {
|
|
|
14
11
|
label?: string;
|
|
15
12
|
/** @title Отображать в раскрытом виде */
|
|
16
13
|
isExpanded?: boolean;
|
|
17
|
-
/** @title Блоки */
|
|
18
|
-
blocks?: BlockDef[];
|
|
19
14
|
/**
|
|
20
15
|
* @title Отображать/скрывать обводку элемента
|
|
21
16
|
* @default false
|
|
@@ -23,6 +18,13 @@ export interface AccordionItemCommonProps {
|
|
|
23
18
|
bordered?: boolean;
|
|
24
19
|
labelIcon?: Picture;
|
|
25
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* @title Элемент списка
|
|
23
|
+
*/
|
|
24
|
+
export interface AccordionItem extends AccordionItemCommonProps {
|
|
25
|
+
/** @title Блоки */
|
|
26
|
+
blocks?: BlockDef[];
|
|
27
|
+
}
|
|
26
28
|
/**
|
|
27
29
|
* @title Аккордеон
|
|
28
30
|
*/
|
|
@@ -34,7 +36,7 @@ export declare type AccordionContent = HeadlineCommonProps & {
|
|
|
34
36
|
accordionAlignTitle?: AlignType;
|
|
35
37
|
version?: BlockVersion;
|
|
36
38
|
/** @title Список */
|
|
37
|
-
accordionItems?:
|
|
39
|
+
accordionItems?: AccordionItem[];
|
|
38
40
|
/**
|
|
39
41
|
* @title Отображать/скрывать обводку у элемента списка
|
|
40
42
|
* @default false
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { AccordionItemCommonProps } from './AccordionContent';
|
|
3
|
-
export interface AccordionItemProps extends AccordionItemCommonProps, UniBlockProps {
|
|
4
|
-
}
|
|
1
|
+
import type { AccordionItemProps } from './AccordionItemProps';
|
|
5
2
|
export declare const AccordionItem: import("@redneckz/uni-jsx").UNIComponent<AccordionItemProps, any, any>;
|
|
@@ -2,15 +2,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.AccordionItem = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const renderBlocksList_1 = require("../../ui-kit/BlocksList/renderBlocksList");
|
|
6
5
|
const Foldable_1 = require("../../ui-kit/Foldable/Foldable");
|
|
6
|
+
const FoldableSection_1 = require("../../ui-kit/Foldable/FoldableSection");
|
|
7
7
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
8
8
|
const icons = ['PlusIcon', 'MinusIcon'];
|
|
9
|
-
exports.AccordionItem = (0, uni_jsx_1.JSX)(({ label = '',
|
|
10
|
-
|
|
11
|
-
? (0, renderBlocksList_1.renderBlocksList)({ context, blocks, className: '!p-0 mb-5' })
|
|
12
|
-
: [];
|
|
13
|
-
return ((0, jsx_runtime_1.jsx)("li", { className: "border-0 border-b border-solid border-main-divider last:border-b-0", children: (0, jsx_runtime_1.jsx)(Foldable_1.Foldable, { hiddenBlocksNum: foldableBlocks.length, blocks: foldableBlocks, isFoldButtonOnTop: true, containerClassName: "grid grid-cols-12", renderFoldButton: (props) => ((0, jsx_runtime_1.jsx)(FoldButton, { icon: icons[Number(props.isUnfolded)], label: label, hasContent: Boolean(blocks?.length), onClick: props.onToggle })) }) }));
|
|
14
|
-
});
|
|
15
|
-
const FoldButton = (0, uni_jsx_1.JSX)(({ icon, label, hasContent, onClick }) => ((0, jsx_runtime_1.jsxs)("button", { className: `border-none bg-transparent px-0 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 group cursor-pointer ${hasContent ? 'group cursor-pointer' : ''}`, onClick: onClick, children: [(0, jsx_runtime_1.jsx)("span", { className: `text-xl font-medium pr-2.5`, children: label }), hasContent ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { image: icon, className: "text-primary-main flex-shrink-0", width: "24", height: "24", asSVG: true })) : null] })));
|
|
9
|
+
exports.AccordionItem = (0, uni_jsx_1.JSX)(({ label = '', children, hasContent = true }) => ((0, jsx_runtime_1.jsx)("li", { className: "border-0 border-b border-solid border-main-divider last:border-b-0", children: (0, jsx_runtime_1.jsx)(Foldable_1.Foldable, { isFoldButtonOnTop: true, renderFoldableSection: ({ isUnfolded }) => ((0, jsx_runtime_1.jsx)(FoldableSection_1.FoldableSection, { className: "grid grid-cols-12", isUnfolded: isUnfolded, children: children })), renderFoldButton: ({ isUnfolded, onToggle }) => ((0, jsx_runtime_1.jsx)(FoldButton, { label: label, icon: icons[Number(isUnfolded)], hasContent: hasContent, onClick: onToggle })) }) })));
|
|
10
|
+
const FoldButton = (0, uni_jsx_1.JSX)(({ label, icon, hasContent, onClick }) => ((0, jsx_runtime_1.jsxs)("button", { className: `border-none bg-transparent px-0 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 group cursor-pointer ${hasContent ? 'group cursor-pointer' : ''}`, onClick: onClick, children: [(0, jsx_runtime_1.jsx)("span", { className: `text-xl font-medium pr-2.5`, children: label }), hasContent ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { image: icon, className: "text-primary-main flex-shrink-0", width: "24", height: "24", asSVG: true })) : null] })));
|
|
16
11
|
//# sourceMappingURL=AccordionItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccordionItem.js","sourceRoot":"","sources":["../../../src/components/Accordion/AccordionItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"AccordionItem.js","sourceRoot":"","sources":["../../../src/components/Accordion/AccordionItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,6DAA0D;AAC1D,2EAAwE;AAExE,8CAA2C;AAG3C,MAAM,KAAK,GAAe,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;AAEvC,QAAA,aAAa,GAAG,IAAA,aAAG,EAC9B,CAAC,EAAE,KAAK,GAAG,EAAE,EAAE,QAAQ,EAAE,UAAU,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CAC/C,+BAAI,SAAS,EAAC,oEAAoE,YAChF,uBAAC,mBAAQ,IACP,iBAAiB,EAAE,IAAI,EACvB,qBAAqB,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CACzC,uBAAC,iCAAe,IAAC,SAAS,EAAC,mBAAmB,EAAC,UAAU,EAAE,UAAU,YAClE,QAAQ,GACO,CACnB,EACD,gBAAgB,EAAE,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAC9C,uBAAC,UAAU,IACT,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,EAC/B,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,QAAQ,GACjB,CACH,GACD,GACC,CACN,CACF,CAAC;AASF,MAAM,UAAU,GAAG,IAAA,aAAG,EAAkB,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAChF,oCACE,SAAS,EAAE,4HACT,UAAU,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,EACxC,EAAE,EACF,OAAO,EAAE,OAAO,aAEhB,iCAAM,SAAS,EAAE,4BAA4B,YAAG,KAAK,GAAQ,EAC5D,UAAU,CAAC,CAAC,CAAC,CACZ,uBAAC,SAAG,IAAC,KAAK,EAAE,IAAI,EAAE,SAAS,EAAC,iCAAiC,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,CAC9F,CAAC,CAAC,CAAC,IAAI,IACD,CACV,CAAC,CAAC"}
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { AccordionItemCommonProps } from './AccordionContent';
|
|
3
|
-
export interface AccordionItemProps extends AccordionItemCommonProps, UniBlockProps {
|
|
4
|
-
}
|
|
1
|
+
import type { AccordionItemProps } from './AccordionItemProps';
|
|
5
2
|
export declare const AccordionItem: import("@redneckz/uni-jsx").UNIComponent<AccordionItemProps, any, any>;
|
|
@@ -2,14 +2,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.AccordionItem = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const renderBlocksList_1 = require("../../ui-kit/BlocksList/renderBlocksList");
|
|
6
5
|
const Foldable_1 = require("../../ui-kit/Foldable/Foldable");
|
|
6
|
+
const FoldableSection_1 = require("../../ui-kit/Foldable/FoldableSection");
|
|
7
7
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
8
8
|
const icons = ['PlusIcon', 'MinusIcon'];
|
|
9
|
-
exports.AccordionItem = (0, uni_jsx_1.JSX)(({ label = '', labelIcon,
|
|
10
|
-
const foldableBlocks = blocks ? (0, renderBlocksList_1.renderBlocksList)({ context, blocks, className: '!px-0' }) : [];
|
|
11
|
-
return ((0, jsx_runtime_1.jsx)("li", { className: `${borderedLiClass(bordered)} border-solid border-main-divider`, children: (0, jsx_runtime_1.jsx)(Foldable_1.Foldable, { hiddenBlocksNum: foldableBlocks.length, blocks: foldableBlocks, isFoldButtonOnTop: true, containerClassName: "flex flex-wrap group-last:last:pb-0", renderFoldButton: (props) => ((0, jsx_runtime_1.jsx)(FoldButton, { className: bordered ? '' : 'py-[14px] px-0', icon: icons[Number(props.isUnfolded)], label: label, primaryIcon: labelIcon, hasContent: Boolean(blocks?.length), onClick: props.onToggle })) }) }));
|
|
12
|
-
});
|
|
9
|
+
exports.AccordionItem = (0, uni_jsx_1.JSX)(({ label = '', labelIcon, bordered, children, hasContent = true }) => ((0, jsx_runtime_1.jsx)("li", { className: `${borderedLiClass(bordered)} border-solid border-main-divider`, children: (0, jsx_runtime_1.jsx)(Foldable_1.Foldable, { isFoldButtonOnTop: true, renderFoldableSection: ({ isUnfolded }) => ((0, jsx_runtime_1.jsx)(FoldableSection_1.FoldableSection, { className: "flex flex-wrap group-last:last:pb-0", isUnfolded: isUnfolded, children: children })), renderFoldButton: ({ isUnfolded, onToggle }) => ((0, jsx_runtime_1.jsx)(FoldButton, { className: bordered ? '' : 'py-[14px] px-0', label: label, icon: icons[Number(isUnfolded)], primaryIcon: labelIcon, hasContent: hasContent, onClick: onToggle })) }) })));
|
|
13
10
|
const FoldButton = (0, uni_jsx_1.JSX)(({ className, hasContent, icon, label, primaryIcon, onClick }) => ((0, jsx_runtime_1.jsxs)("button", { className: `border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text
|
|
14
11
|
${className}
|
|
15
12
|
${hasContent ? 'group cursor-pointer' : ''}`, onClick: onClick, children: [(0, jsx_runtime_1.jsxs)("span", { className: `text-m-title-xs font-medium pr-2.5 flex ${hasContent ? 'group-hover:text-primary-main' : ''}`, children: [primaryIcon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { image: primaryIcon, className: "mr-3 flex-shrink-0", width: "24", height: "24", asSVG: true })) : null, label] }), hasContent ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: "flex-shrink-0", image: icon, width: "24", height: "24", asSVG: true })) : null] })));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccordionItem.mobile.js","sourceRoot":"","sources":["../../../src/components/Accordion/AccordionItem.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC
|
|
1
|
+
{"version":3,"file":"AccordionItem.mobile.js","sourceRoot":"","sources":["../../../src/components/Accordion/AccordionItem.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,6DAA0D;AAC1D,2EAAwE;AAExE,8CAA2C;AAG3C,MAAM,KAAK,GAAe,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;AAEvC,QAAA,aAAa,GAAG,IAAA,aAAG,EAC9B,CAAC,EAAE,KAAK,GAAG,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CACpE,+BAAI,SAAS,EAAE,GAAG,eAAe,CAAC,QAAQ,CAAC,mCAAmC,YAC5E,uBAAC,mBAAQ,IACP,iBAAiB,EAAE,IAAI,EACvB,qBAAqB,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CACzC,uBAAC,iCAAe,IAAC,SAAS,EAAC,qCAAqC,EAAC,UAAU,EAAE,UAAU,YACpF,QAAQ,GACO,CACnB,EACD,gBAAgB,EAAE,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAC9C,uBAAC,UAAU,IACT,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,gBAAgB,EAC3C,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,EAC/B,WAAW,EAAE,SAAS,EACtB,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,QAAQ,GACjB,CACH,GACD,GACC,CACN,CACF,CAAC;AAWF,MAAM,UAAU,GAAG,IAAA,aAAG,EACpB,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAChE,oCACE,SAAS,EAAE;IACb,SAAS;IACT,UAAU,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,EAAE,EAAE,EACxC,OAAO,EAAE,OAAO,aAEhB,kCACE,SAAS,EAAE,2CACT,UAAU,CAAC,CAAC,CAAC,+BAA+B,CAAC,CAAC,CAAC,EACjD,EAAE,aAED,WAAW,CAAC,CAAC,CAAC,CACb,uBAAC,SAAG,IAAC,KAAK,EAAE,WAAW,EAAE,SAAS,EAAC,oBAAoB,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,CACxF,CAAC,CAAC,CAAC,IAAI,EACP,KAAK,IACD,EACN,UAAU,CAAC,CAAC,CAAC,CACZ,uBAAC,SAAG,IAAC,SAAS,EAAC,eAAe,EAAC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,CAC5E,CAAC,CAAC,CAAC,IAAI,IACD,CACV,CACF,CAAC;AAEF,SAAS,eAAe,CAAC,QAAkB;IACzC,OAAO,QAAQ,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,mCAAmC,CAAC;AACpF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccordionItemProps.js","sourceRoot":"","sources":["../../../src/components/Accordion/AccordionItemProps.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AccordionItemsList: import("@redneckz/uni-jsx").UNIComponent<{}, any, any>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.AccordionItemsList = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
exports.AccordionItemsList = (0, uni_jsx_1.JSX)(({ children }) => ((0, jsx_runtime_1.jsx)("ul", { className: "list-none m-0 p-0", children: children })));
|
|
6
|
+
//# sourceMappingURL=AccordionItemsList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccordionItemsList.js","sourceRoot":"","sources":["../../../src/components/Accordion/AccordionItemsList.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAE3B,QAAA,kBAAkB,GAAG,IAAA,aAAG,EAAC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CACtD,+BAAI,SAAS,EAAC,mBAAmB,YAAE,QAAQ,GAAM,CAClD,CAAC,CAAC"}
|
|
@@ -13,6 +13,7 @@ export declare const Blocks: {
|
|
|
13
13
|
Header: import("@redneckz/uni-jsx").UNIComponent<import("./Header/Header").HeaderProps, any, any>;
|
|
14
14
|
Headline: import("@redneckz/uni-jsx").UNIComponent<import("./Headline/Headline").HeadlineProps, any, any>;
|
|
15
15
|
InsuranceAmountBlock: import("@redneckz/uni-jsx").UNIComponent<import("./InsuranceAmountBlock/InsuranceAmountBlock").InsuranceAmountBlockProps, any, any>;
|
|
16
|
+
InvestmentInfo: import("@redneckz/uni-jsx").UNIComponent<import("./InvestmentInfo/InvestmentInfo").InvestmentInfoProps, any, any>;
|
|
16
17
|
LinkDocs: import("@redneckz/uni-jsx").UNIComponent<import("./LinkDocs/LinkDocs").LinkDocsProps, any, any>;
|
|
17
18
|
MiniGallery: import("@redneckz/uni-jsx").UNIComponent<import("./MiniGallery/MiniGallery").MiniGalleryProps, any, any>;
|
|
18
19
|
MobileAppTile: import("@redneckz/uni-jsx").UNIComponent<import("./MobileAppTile/MobileAppTile").MobileAppTileProps, any, any>;
|
|
@@ -21,7 +22,8 @@ export declare const Blocks: {
|
|
|
21
22
|
ProductGallery: import("@redneckz/uni-jsx").UNIComponent<import("./ProductGallery/ProductGallery").ProductGalleryProps, any, any>;
|
|
22
23
|
ProductTile: import("@redneckz/uni-jsx").UNIComponent<import("./ProductTile/ProductTile").ProductTileProps, any, any>;
|
|
23
24
|
PromoTile: import("@redneckz/uni-jsx").UNIComponent<import("./PromoTile/PromoTile").PromoTileProps, any, any>;
|
|
24
|
-
OtherProducts: import("
|
|
25
|
+
OtherProducts: import("../model/BlocksRegistry").JSXBlock<import("./OtherProducts/OtherProducts").OtherProductsProps>;
|
|
26
|
+
OtherProductsItem: import("../model/BlocksRegistry").JSXBlock<import("./OtherProductsItem/OtherProductsItem").OtherProductsItemProps>;
|
|
25
27
|
Recommendation: import("@redneckz/uni-jsx").UNIComponent<import("./Recommendation/Recommendation").RecommendationProps, any, any>;
|
|
26
28
|
StepsBlock: import("@redneckz/uni-jsx").UNIComponent<import("./StepsBlock/StepsBlock").StepsBlockProps, any, any>;
|
|
27
29
|
TariffsTable: import("@redneckz/uni-jsx").UNIComponent<import("./TariffsTable/TariffsTable").TariffsTableProps, any, any>;
|
|
@@ -16,11 +16,13 @@ const GracePeriod_1 = require("./GracePeriod/GracePeriod");
|
|
|
16
16
|
const Header_1 = require("./Header/Header");
|
|
17
17
|
const Headline_1 = require("./Headline/Headline");
|
|
18
18
|
const InsuranceAmountBlock_1 = require("./InsuranceAmountBlock/InsuranceAmountBlock");
|
|
19
|
+
const InvestmentInfo_1 = require("./InvestmentInfo/InvestmentInfo");
|
|
19
20
|
const LinkDocs_1 = require("./LinkDocs/LinkDocs");
|
|
20
21
|
const MiniGallery_1 = require("./MiniGallery/MiniGallery");
|
|
21
22
|
const MobileAppTile_1 = require("./MobileAppTile/MobileAppTile");
|
|
22
23
|
const OfficeServicesBlock_1 = require("./OfficeServicesBlock/OfficeServicesBlock");
|
|
23
24
|
const OtherProducts_1 = require("./OtherProducts/OtherProducts");
|
|
25
|
+
const OtherProductsItem_1 = require("./OtherProductsItem/OtherProductsItem");
|
|
24
26
|
const PictureText_1 = require("./PictureText/PictureText");
|
|
25
27
|
const Placeholder_1 = require("./Placeholder/Placeholder");
|
|
26
28
|
const ProductBlock_1 = require("./ProductBlock/ProductBlock");
|
|
@@ -49,6 +51,7 @@ exports.Blocks = {
|
|
|
49
51
|
Header: Header_1.Header,
|
|
50
52
|
Headline: Headline_1.Headline,
|
|
51
53
|
InsuranceAmountBlock: InsuranceAmountBlock_1.InsuranceAmountBlock,
|
|
54
|
+
InvestmentInfo: InvestmentInfo_1.InvestmentInfo,
|
|
52
55
|
LinkDocs: LinkDocs_1.LinkDocs,
|
|
53
56
|
MiniGallery: MiniGallery_1.MiniGallery,
|
|
54
57
|
MobileAppTile: MobileAppTile_1.MobileAppTile,
|
|
@@ -58,6 +61,7 @@ exports.Blocks = {
|
|
|
58
61
|
ProductTile: ProductTile_1.ProductTile,
|
|
59
62
|
PromoTile: PromoTile_1.PromoTile,
|
|
60
63
|
OtherProducts: OtherProducts_1.OtherProducts,
|
|
64
|
+
OtherProductsItem: OtherProductsItem_1.OtherProductsItem,
|
|
61
65
|
Recommendation: Recommendation_1.Recommendation,
|
|
62
66
|
StepsBlock: StepsBlock_1.StepsBlock,
|
|
63
67
|
TariffsTable: TariffsTable_1.TariffsTable,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Blocks.js","sourceRoot":"","sources":["../../src/components/Blocks.ts"],"names":[],"mappings":";;AAAA,qDAAkD;AAClD,iEAA8D;AAC9D,yCAAsC;AACtC,gFAA6E;AAC7E,wDAAqD;AACrD,8DAA2D;AAC3D,+CAA4C;AAC5C,uEAAoE;AACpE,wDAAqD;AACrD,0EAAuE;AACvE,4CAAyC;AACzC,+CAA4C;AAC5C,2DAAwD;AACxD,4CAAyC;AACzC,kDAA+C;AAC/C,sFAAmF;AACnF,kDAA+C;AAC/C,2DAAwD;AACxD,iEAA8D;AAC9D,mFAAgF;AAChF,iEAA8D;AAC9D,2DAAwD;AACxD,2DAAwD;AACxD,8DAA2D;AAC3D,oEAAiE;AACjE,2DAAwD;AACxD,qDAAkD;AAClD,oEAAiE;AACjE,6EAA0E;AAC1E,wDAAqD;AACrD,sCAAmC;AACnC,8DAA2D;AAC3D,qDAAkD;AAClD,sCAAmC;AAEtB,QAAA,MAAM,GAAG;IACpB,SAAS,EAAT,qBAAS;IACT,aAAa,EAAb,6BAAa;IACb,KAAK,EAAL,aAAK;IACL,YAAY,EAAZ,2BAAY;IACZ,eAAe,EAAf,iCAAe;IACf,UAAU,EAAV,uBAAU;IACV,OAAO,EAAP,iBAAO;IACP,gBAAgB,EAAhB,mCAAgB;IAChB,MAAM,EAAN,eAAM;IACN,OAAO,EAAP,iBAAO;IACP,WAAW,EAAX,yBAAW;IACX,MAAM,EAAN,eAAM;IACN,QAAQ,EAAR,mBAAQ;IACR,oBAAoB,EAApB,2CAAoB;IACpB,QAAQ,EAAR,mBAAQ;IACR,WAAW,EAAX,yBAAW;IACX,aAAa,EAAb,6BAAa;IACb,WAAW,EAAX,yBAAW;IACX,YAAY,EAAZ,2BAAY;IACZ,cAAc,EAAd,+BAAc;IACd,WAAW,EAAX,yBAAW;IACX,SAAS,EAAT,qBAAS;IACT,aAAa,EAAb,6BAAa;IACb,cAAc,EAAd,+BAAc;IACd,UAAU,EAAV,uBAAU;IACV,YAAY,EAAZ,2BAAY;IACZ,SAAS,EAAT,qBAAS;IACT,IAAI,EAAJ,WAAI;IACJ,WAAW,EAAX,yBAAW;IACX,kBAAkB,EAAlB,uCAAkB;IAClB,iBAAiB,EAAjB,qCAAiB;IACjB,IAAI,EAAJ,WAAI;IACJ,UAAU,EAAV,uBAAU;IACV,mBAAmB,EAAnB,yCAAmB;CACpB,CAAC"}
|
|
1
|
+
{"version":3,"file":"Blocks.js","sourceRoot":"","sources":["../../src/components/Blocks.ts"],"names":[],"mappings":";;AAAA,qDAAkD;AAClD,iEAA8D;AAC9D,yCAAsC;AACtC,gFAA6E;AAC7E,wDAAqD;AACrD,8DAA2D;AAC3D,+CAA4C;AAC5C,uEAAoE;AACpE,wDAAqD;AACrD,0EAAuE;AACvE,4CAAyC;AACzC,+CAA4C;AAC5C,2DAAwD;AACxD,4CAAyC;AACzC,kDAA+C;AAC/C,sFAAmF;AACnF,oEAAiE;AACjE,kDAA+C;AAC/C,2DAAwD;AACxD,iEAA8D;AAC9D,mFAAgF;AAChF,iEAA8D;AAC9D,6EAA0E;AAC1E,2DAAwD;AACxD,2DAAwD;AACxD,8DAA2D;AAC3D,oEAAiE;AACjE,2DAAwD;AACxD,qDAAkD;AAClD,oEAAiE;AACjE,6EAA0E;AAC1E,wDAAqD;AACrD,sCAAmC;AACnC,8DAA2D;AAC3D,qDAAkD;AAClD,sCAAmC;AAEtB,QAAA,MAAM,GAAG;IACpB,SAAS,EAAT,qBAAS;IACT,aAAa,EAAb,6BAAa;IACb,KAAK,EAAL,aAAK;IACL,YAAY,EAAZ,2BAAY;IACZ,eAAe,EAAf,iCAAe;IACf,UAAU,EAAV,uBAAU;IACV,OAAO,EAAP,iBAAO;IACP,gBAAgB,EAAhB,mCAAgB;IAChB,MAAM,EAAN,eAAM;IACN,OAAO,EAAP,iBAAO;IACP,WAAW,EAAX,yBAAW;IACX,MAAM,EAAN,eAAM;IACN,QAAQ,EAAR,mBAAQ;IACR,oBAAoB,EAApB,2CAAoB;IACpB,cAAc,EAAd,+BAAc;IACd,QAAQ,EAAR,mBAAQ;IACR,WAAW,EAAX,yBAAW;IACX,aAAa,EAAb,6BAAa;IACb,WAAW,EAAX,yBAAW;IACX,YAAY,EAAZ,2BAAY;IACZ,cAAc,EAAd,+BAAc;IACd,WAAW,EAAX,yBAAW;IACX,SAAS,EAAT,qBAAS;IACT,aAAa,EAAb,6BAAa;IACb,iBAAiB,EAAjB,qCAAiB;IACjB,cAAc,EAAd,+BAAc;IACd,UAAU,EAAV,uBAAU;IACV,YAAY,EAAZ,2BAAY;IACZ,SAAS,EAAT,qBAAS;IACT,IAAI,EAAJ,WAAI;IACJ,WAAW,EAAX,yBAAW;IACX,kBAAkB,EAAlB,uCAAkB;IAClB,iBAAiB,EAAjB,qCAAiB;IACjB,IAAI,EAAJ,WAAI;IACJ,UAAU,EAAV,uBAAU;IACV,mBAAmB,EAAnB,yCAAmB;CACpB,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.filterBlocks = void 0;
|
|
3
|
-
const isBlockInRegistry_1 = require("./isBlockInRegistry");
|
|
4
3
|
const normalizeBlock_1 = require("./normalizeBlock");
|
|
5
|
-
const filterBlocks = (blocks, blocksRegistry) => blocks?.filter((block) => (
|
|
4
|
+
const filterBlocks = (blocks, blocksRegistry) => blocks?.filter((block) => (block?.type || '') in blocksRegistry).map(normalizeBlock_1.normalizeBlock);
|
|
6
5
|
exports.filterBlocks = filterBlocks;
|
|
7
6
|
//# sourceMappingURL=filterBlocks.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filterBlocks.js","sourceRoot":"","sources":["../../../src/components/ContentPage/filterBlocks.ts"],"names":[],"mappings":";;AAEA,
|
|
1
|
+
{"version":3,"file":"filterBlocks.js","sourceRoot":"","sources":["../../../src/components/ContentPage/filterBlocks.ts"],"names":[],"mappings":";;AAEA,qDAAkD;AAE3C,MAAM,YAAY,GAAG,CAAC,MAAkB,EAAE,cAA8B,EAAE,EAAE,CACjF,MAAM,EAAE,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,IAAI,IAAI,EAAE,CAAC,IAAI,cAAc,CAAC,CAAC,GAAG,CAAC,+BAAc,CAAC,CAAC;AAD1E,QAAA,YAAY,gBAC8D"}
|