@redneckz/wildless-cms-uni-blocks 0.8.24 → 0.8.26
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/bin/migration-scripts/0.6.43.js +4 -1
- package/bin/migration-scripts/0.7.8.js +4 -1
- package/bin/migration-scripts/0.8.15.js +4 -1
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +165 -184
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Headline/HeadlineContent.d.ts +2 -0
- package/bundle/components/RollupItem/RollupItem.mobile.d.ts +5 -0
- package/bundle/ui-kit/BenefitItem/BenefitItemProps.d.ts +1 -1
- package/dist/components/Accordion/Accordion.js +2 -3
- package/dist/components/Accordion/Accordion.js.map +1 -1
- package/dist/components/Accordion/Accordion.mobile.js +2 -3
- package/dist/components/Accordion/Accordion.mobile.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js +2 -2
- package/dist/components/ApplicationForm/ApplicationFormCredit.js +2 -2
- package/dist/components/ApplicationForm/ApplicationFormWed.js +2 -2
- package/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/Blocks.js +0 -4
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Blocks.mobile.js +4 -2
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +2 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/dist/components/CarouselLinks/CarouselLinks.js +1 -1
- package/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/dist/components/Footer/Footer.mobile.js +3 -3
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/Header/Header.mobile.js +2 -3
- package/dist/components/Header/Header.mobile.js.map +1 -1
- package/dist/components/Headline/Headline.js +3 -2
- package/dist/components/Headline/Headline.js.map +1 -1
- package/dist/components/Headline/HeadlineContent.d.ts +2 -0
- package/dist/components/RollupItem/RollupItem.js +9 -4
- package/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/dist/components/RollupItem/RollupItem.mobile.d.ts +5 -0
- package/dist/components/RollupItem/RollupItem.mobile.js +33 -0
- package/dist/components/RollupItem/RollupItem.mobile.js.map +1 -0
- package/dist/ui-kit/BenefitItem/BenefitItemProps.d.ts +1 -1
- package/dist/ui-kit/Icon/Icon.js +4 -1
- package/dist/ui-kit/Icon/Icon.js.map +1 -1
- package/dist/ui-kit/List/List.js +1 -1
- package/dist/ui-kit/List/List.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListItem.js +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListItem.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Accordion/Accordion.fixture.d.ts +0 -2
- package/lib/components/Accordion/Accordion.fixture.mobile.d.ts +1 -1
- package/lib/components/Accordion/Accordion.js +2 -3
- package/lib/components/Accordion/Accordion.js.map +1 -1
- package/lib/components/Accordion/Accordion.mobile.js +2 -3
- package/lib/components/Accordion/Accordion.mobile.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js +2 -2
- package/lib/components/ApplicationForm/ApplicationFormCredit.js +2 -2
- package/lib/components/ApplicationForm/ApplicationFormWed.js +2 -2
- package/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/Blocks.js +0 -4
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Blocks.mobile.js +4 -2
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +2 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/lib/components/CarouselLinks/CarouselLinks.js +1 -1
- package/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/lib/components/Footer/Footer.mobile.js +3 -3
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/Header/Header.mobile.js +2 -3
- package/lib/components/Header/Header.mobile.js.map +1 -1
- package/lib/components/Headline/Headline.js +3 -2
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/Headline/HeadlineContent.d.ts +2 -0
- package/lib/components/{AccordionItem/AccordionItem.fixture.d.ts → RollupItem/RollupItem.fixture.mobile.d.ts} +2 -0
- package/lib/components/RollupItem/RollupItem.js +9 -4
- package/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/lib/components/RollupItem/RollupItem.mobile.d.ts +5 -0
- package/lib/components/RollupItem/RollupItem.mobile.js +31 -0
- package/lib/components/RollupItem/RollupItem.mobile.js.map +1 -0
- package/lib/ui-kit/BenefitItem/BenefitItemProps.d.ts +1 -1
- package/lib/ui-kit/Foldable/DefaultFoldButton.d.ts +0 -1
- package/lib/ui-kit/Icon/Icon.js +4 -1
- package/lib/ui-kit/Icon/Icon.js.map +1 -1
- package/lib/ui-kit/List/List.js +1 -1
- package/lib/ui-kit/List/List.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListItem.js +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListItem.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +204 -154
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Headline/HeadlineContent.d.ts +2 -0
- package/mobile/bundle/ui-kit/BenefitItem/BenefitItemProps.d.ts +1 -1
- package/mobile/dist/components/Accordion/Accordion.js +2 -3
- package/mobile/dist/components/Accordion/Accordion.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js +2 -2
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +2 -2
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js +2 -2
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/components/Blocks.js +4 -2
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +2 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/dist/components/CarouselLinks/CarouselLinks.js +1 -1
- package/mobile/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/mobile/dist/components/Footer/Footer.js +3 -3
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/Header/Header.js +2 -3
- package/mobile/dist/components/Header/Header.js.map +1 -1
- package/mobile/dist/components/Headline/Headline.js +3 -2
- package/mobile/dist/components/Headline/Headline.js.map +1 -1
- package/mobile/dist/components/Headline/HeadlineContent.d.ts +2 -0
- package/mobile/dist/components/RollupItem/RollupItem.js +17 -5
- package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/dist/ui-kit/BenefitItem/BenefitItemProps.d.ts +1 -1
- package/mobile/dist/ui-kit/Icon/Icon.js +4 -1
- package/mobile/dist/ui-kit/Icon/Icon.js.map +1 -1
- package/mobile/dist/ui-kit/List/List.js +1 -1
- package/mobile/dist/ui-kit/List/List.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListItem.js +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListItem.js.map +1 -1
- package/mobile/lib/components/Accordion/Accordion.js +2 -3
- package/mobile/lib/components/Accordion/Accordion.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js +2 -2
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +2 -2
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js +2 -2
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/components/Blocks.js +4 -2
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +2 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/lib/components/CarouselLinks/CarouselLinks.js +1 -1
- package/mobile/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/mobile/lib/components/Footer/Footer.js +3 -3
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/Header/Header.js +2 -3
- package/mobile/lib/components/Header/Header.js.map +1 -1
- package/mobile/lib/components/Headline/Headline.js +3 -2
- package/mobile/lib/components/Headline/Headline.js.map +1 -1
- package/mobile/lib/components/Headline/HeadlineContent.d.ts +2 -0
- package/mobile/lib/components/RollupItem/RollupItem.js +17 -5
- package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/lib/ui-kit/BenefitItem/BenefitItemProps.d.ts +1 -1
- package/mobile/lib/ui-kit/Icon/Icon.js +4 -1
- package/mobile/lib/ui-kit/Icon/Icon.js.map +1 -1
- package/mobile/lib/ui-kit/List/List.js +1 -1
- package/mobile/lib/ui-kit/List/List.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListItem.js +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListItem.js.map +1 -1
- package/mobile/src/components/Accordion/Accordion.example.json +3 -3
- package/mobile/src/components/Accordion/Accordion.tsx +2 -3
- package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +2 -2
- package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +2 -2
- package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +2 -2
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
- package/mobile/src/components/Blocks.ts +4 -2
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +10 -3
- package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +1 -1
- package/mobile/src/components/Footer/Footer.tsx +9 -9
- package/mobile/src/components/Header/Header.tsx +5 -6
- package/mobile/src/components/Headline/Headline.tsx +4 -1
- package/mobile/src/components/Headline/HeadlineContent.ts +2 -0
- package/mobile/src/components/PictureText/PictureText.example.json +2 -0
- package/mobile/src/components/RollupItem/RollupItem.tsx +77 -28
- package/mobile/src/components/StepsBlock/StepsBlock.example.json +4 -1
- package/mobile/src/ui-kit/BenefitItem/BenefitItemProps.ts +1 -1
- package/mobile/src/ui-kit/Icon/Icon.tsx +4 -1
- package/mobile/src/ui-kit/List/List.tsx +1 -1
- package/mobile/src/ui-kit/SwipeListControl/SwipeListContainer.tsx +0 -1
- package/mobile/src/ui-kit/SwipeListControl/SwipeListItem.tsx +1 -2
- package/package.json +1 -1
- package/src/components/Accordion/Accordion.example.json +3 -3
- package/src/components/Accordion/Accordion.fixture.mobile.tsx +20 -11
- package/src/components/Accordion/Accordion.fixture.tsx +42 -27
- package/src/components/Accordion/Accordion.mobile.tsx +2 -3
- package/src/components/Accordion/Accordion.tsx +2 -3
- package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +2 -2
- package/src/components/ApplicationForm/ApplicationFormCredit.tsx +2 -2
- package/src/components/ApplicationForm/ApplicationFormWed.tsx +2 -2
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
- package/src/components/Blocks.mobile.ts +4 -2
- package/src/components/Blocks.ts +0 -4
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +10 -3
- package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.fixture.tsx +2 -2
- package/src/components/CarouselLinks/CarouselLinks.tsx +1 -1
- package/src/components/Footer/Footer.mobile.tsx +9 -9
- package/src/components/Header/Header.mobile.tsx +5 -6
- package/src/components/Headline/Headline.tsx +4 -1
- package/src/components/Headline/HeadlineContent.ts +2 -0
- package/src/components/OtherProducts/OtherProducts.fixture.tsx +15 -14
- package/src/components/PictureText/PictureText.example.json +2 -0
- package/src/components/RollupItem/RollupItem.fixture.mobile.tsx +33 -0
- package/src/components/RollupItem/RollupItem.mobile.tsx +143 -0
- package/src/components/RollupItem/RollupItem.tsx +17 -13
- package/src/components/StepsBlock/StepsBlock.example.json +4 -1
- package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +1 -0
- package/src/ui-kit/BenefitItem/BenefitItemProps.ts +1 -1
- package/src/ui-kit/Icon/Icon.tsx +4 -1
- package/src/ui-kit/List/List.tsx +1 -1
- package/src/ui-kit/SwipeListControl/SwipeListContainer.tsx +0 -1
- package/src/ui-kit/SwipeListControl/SwipeListItem.tsx +1 -2
- package/bundle/components/Accordion/AccordionItemsList.d.ts +0 -1
- package/bundle/components/AccordionItem/AccordionItem.d.ts +0 -3
- package/bundle/components/AccordionItem/AccordionItem.mobile.d.ts +0 -3
- package/bundle/components/AccordionItem/AccordionItemContent.d.ts +0 -14
- package/bundle/components/AccordionItem/AccordionItemProps.d.ts +0 -4
- package/bundle/components/OtherProductsItem/OtherProductsItem.d.ts +0 -5
- package/bundle/components/OtherProductsItem/OtherProductsItemContent.d.ts +0 -12
- package/dist/components/Accordion/AccordionItemsList.d.ts +0 -1
- package/dist/components/Accordion/AccordionItemsList.js +0 -6
- package/dist/components/Accordion/AccordionItemsList.js.map +0 -1
- package/dist/components/AccordionItem/AccordionItem.d.ts +0 -3
- package/dist/components/AccordionItem/AccordionItem.js +0 -14
- package/dist/components/AccordionItem/AccordionItem.js.map +0 -1
- package/dist/components/AccordionItem/AccordionItem.mobile.d.ts +0 -3
- package/dist/components/AccordionItem/AccordionItem.mobile.js +0 -19
- package/dist/components/AccordionItem/AccordionItem.mobile.js.map +0 -1
- package/dist/components/AccordionItem/AccordionItemContent.d.ts +0 -14
- package/dist/components/AccordionItem/AccordionItemContent.js +0 -2
- package/dist/components/AccordionItem/AccordionItemContent.js.map +0 -1
- package/dist/components/AccordionItem/AccordionItemProps.d.ts +0 -4
- package/dist/components/AccordionItem/AccordionItemProps.js +0 -2
- package/dist/components/AccordionItem/AccordionItemProps.js.map +0 -1
- package/dist/components/OtherProductsItem/OtherProductsItem.d.ts +0 -5
- package/dist/components/OtherProductsItem/OtherProductsItem.js +0 -18
- package/dist/components/OtherProductsItem/OtherProductsItem.js.map +0 -1
- package/dist/components/OtherProductsItem/OtherProductsItemContent.d.ts +0 -12
- package/dist/components/OtherProductsItem/OtherProductsItemContent.js +0 -2
- package/dist/components/OtherProductsItem/OtherProductsItemContent.js.map +0 -1
- package/lib/components/Accordion/AccordionItemsList.d.ts +0 -1
- package/lib/components/Accordion/AccordionItemsList.js +0 -4
- package/lib/components/Accordion/AccordionItemsList.js.map +0 -1
- package/lib/components/AccordionItem/AccordionItem.d.ts +0 -3
- package/lib/components/AccordionItem/AccordionItem.fixture.mobile.d.ts +0 -5
- package/lib/components/AccordionItem/AccordionItem.js +0 -12
- package/lib/components/AccordionItem/AccordionItem.js.map +0 -1
- package/lib/components/AccordionItem/AccordionItem.mobile.d.ts +0 -3
- package/lib/components/AccordionItem/AccordionItem.mobile.js +0 -17
- package/lib/components/AccordionItem/AccordionItem.mobile.js.map +0 -1
- package/lib/components/AccordionItem/AccordionItemContent.d.ts +0 -14
- package/lib/components/AccordionItem/AccordionItemContent.js +0 -2
- package/lib/components/AccordionItem/AccordionItemContent.js.map +0 -1
- package/lib/components/AccordionItem/AccordionItemProps.d.ts +0 -4
- package/lib/components/AccordionItem/AccordionItemProps.js +0 -2
- package/lib/components/AccordionItem/AccordionItemProps.js.map +0 -1
- package/lib/components/OtherProductsItem/OtherProductsItem.d.ts +0 -5
- package/lib/components/OtherProductsItem/OtherProductsItem.fixture.d.ts +0 -5
- package/lib/components/OtherProductsItem/OtherProductsItem.js +0 -16
- package/lib/components/OtherProductsItem/OtherProductsItem.js.map +0 -1
- package/lib/components/OtherProductsItem/OtherProductsItemContent.d.ts +0 -12
- package/lib/components/OtherProductsItem/OtherProductsItemContent.js +0 -2
- package/lib/components/OtherProductsItem/OtherProductsItemContent.js.map +0 -1
- package/mobile/bundle/components/Accordion/AccordionItemsList.d.ts +0 -1
- package/mobile/bundle/components/AccordionItem/AccordionItem.d.ts +0 -3
- package/mobile/bundle/components/AccordionItem/AccordionItemContent.d.ts +0 -14
- package/mobile/bundle/components/AccordionItem/AccordionItemProps.d.ts +0 -4
- package/mobile/bundle/components/OtherProductsItem/OtherProductsItem.d.ts +0 -5
- package/mobile/bundle/components/OtherProductsItem/OtherProductsItemContent.d.ts +0 -12
- package/mobile/dist/components/Accordion/AccordionItemsList.d.ts +0 -1
- package/mobile/dist/components/Accordion/AccordionItemsList.js +0 -6
- package/mobile/dist/components/Accordion/AccordionItemsList.js.map +0 -1
- package/mobile/dist/components/AccordionItem/AccordionItem.d.ts +0 -3
- package/mobile/dist/components/AccordionItem/AccordionItem.js +0 -19
- package/mobile/dist/components/AccordionItem/AccordionItem.js.map +0 -1
- package/mobile/dist/components/AccordionItem/AccordionItemContent.d.ts +0 -14
- package/mobile/dist/components/AccordionItem/AccordionItemContent.js +0 -2
- package/mobile/dist/components/AccordionItem/AccordionItemContent.js.map +0 -1
- package/mobile/dist/components/AccordionItem/AccordionItemProps.d.ts +0 -4
- package/mobile/dist/components/AccordionItem/AccordionItemProps.js +0 -2
- package/mobile/dist/components/AccordionItem/AccordionItemProps.js.map +0 -1
- package/mobile/dist/components/OtherProductsItem/OtherProductsItem.d.ts +0 -5
- package/mobile/dist/components/OtherProductsItem/OtherProductsItem.js +0 -18
- package/mobile/dist/components/OtherProductsItem/OtherProductsItem.js.map +0 -1
- package/mobile/dist/components/OtherProductsItem/OtherProductsItemContent.d.ts +0 -12
- package/mobile/dist/components/OtherProductsItem/OtherProductsItemContent.js +0 -2
- package/mobile/dist/components/OtherProductsItem/OtherProductsItemContent.js.map +0 -1
- package/mobile/lib/components/Accordion/AccordionItemsList.d.ts +0 -1
- package/mobile/lib/components/Accordion/AccordionItemsList.js +0 -4
- package/mobile/lib/components/Accordion/AccordionItemsList.js.map +0 -1
- package/mobile/lib/components/AccordionItem/AccordionItem.d.ts +0 -3
- package/mobile/lib/components/AccordionItem/AccordionItem.js +0 -17
- package/mobile/lib/components/AccordionItem/AccordionItem.js.map +0 -1
- package/mobile/lib/components/AccordionItem/AccordionItemContent.d.ts +0 -14
- package/mobile/lib/components/AccordionItem/AccordionItemContent.js +0 -2
- package/mobile/lib/components/AccordionItem/AccordionItemContent.js.map +0 -1
- package/mobile/lib/components/AccordionItem/AccordionItemProps.d.ts +0 -4
- package/mobile/lib/components/AccordionItem/AccordionItemProps.js +0 -2
- package/mobile/lib/components/AccordionItem/AccordionItemProps.js.map +0 -1
- package/mobile/lib/components/OtherProductsItem/OtherProductsItem.d.ts +0 -5
- package/mobile/lib/components/OtherProductsItem/OtherProductsItem.js +0 -16
- package/mobile/lib/components/OtherProductsItem/OtherProductsItem.js.map +0 -1
- package/mobile/lib/components/OtherProductsItem/OtherProductsItemContent.d.ts +0 -12
- package/mobile/lib/components/OtherProductsItem/OtherProductsItemContent.js +0 -2
- package/mobile/lib/components/OtherProductsItem/OtherProductsItemContent.js.map +0 -1
- package/mobile/src/components/Accordion/AccordionItemsList.tsx +0 -5
- package/mobile/src/components/AccordionItem/AccordionItem.example.json +0 -25
- package/mobile/src/components/AccordionItem/AccordionItem.tsx +0 -90
- package/mobile/src/components/AccordionItem/AccordionItem.ui.json +0 -7
- package/mobile/src/components/AccordionItem/AccordionItemContent.ts +0 -15
- package/mobile/src/components/AccordionItem/AccordionItemProps.ts +0 -4
- package/mobile/src/components/OtherProductsItem/OtherProductsItem.example.json +0 -22
- package/mobile/src/components/OtherProductsItem/OtherProductsItem.tsx +0 -50
- package/mobile/src/components/OtherProductsItem/OtherProductsItem.ui.json +0 -1
- package/mobile/src/components/OtherProductsItem/OtherProductsItemContent.ts +0 -13
- package/src/components/Accordion/AccordionItemsList.tsx +0 -5
- package/src/components/AccordionItem/AccordionItem.example.json +0 -25
- package/src/components/AccordionItem/AccordionItem.fixture.mobile.tsx +0 -17
- package/src/components/AccordionItem/AccordionItem.fixture.tsx +0 -17
- package/src/components/AccordionItem/AccordionItem.mobile.tsx +0 -90
- package/src/components/AccordionItem/AccordionItem.tsx +0 -58
- package/src/components/AccordionItem/AccordionItem.ui.json +0 -7
- package/src/components/AccordionItem/AccordionItemContent.ts +0 -15
- package/src/components/AccordionItem/AccordionItemProps.ts +0 -4
- package/src/components/OtherProductsItem/OtherProductsItem.example.json +0 -22
- package/src/components/OtherProductsItem/OtherProductsItem.fixture.tsx +0 -20
- package/src/components/OtherProductsItem/OtherProductsItem.tsx +0 -50
- package/src/components/OtherProductsItem/OtherProductsItem.ui.json +0 -1
- package/src/components/OtherProductsItem/OtherProductsItemContent.ts +0 -13
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import {
|
|
4
|
-
useIntersectionObserver,
|
|
5
4
|
type IntersectionObserverOptions,
|
|
5
|
+
useIntersectionObserver,
|
|
6
6
|
} from '../../hooks/useIntersectionObserver';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -33,7 +33,6 @@ export const SwipeListItem = JSX<SwipeListControlItemProps>(
|
|
|
33
33
|
<div
|
|
34
34
|
className={`inline-block snap-always box-border ${className}`}
|
|
35
35
|
style={style}
|
|
36
|
-
role="listitem"
|
|
37
36
|
aria-current={Boolean(idx === activeIndex)}
|
|
38
37
|
ref={ref}
|
|
39
38
|
>
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
},
|
|
6
6
|
"blocks": [
|
|
7
7
|
{
|
|
8
|
-
"type": "
|
|
8
|
+
"type": "RollupItem",
|
|
9
9
|
"content": {
|
|
10
10
|
"label": "Аккордеон 1",
|
|
11
11
|
"isExpanded": true,
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
]
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
|
-
"type": "
|
|
34
|
+
"type": "RollupItem",
|
|
35
35
|
"content": {
|
|
36
36
|
"label": "Аккордеон 2",
|
|
37
37
|
"isExpanded": false,
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
|
-
"type": "
|
|
44
|
+
"type": "RollupItem",
|
|
45
45
|
"content": {
|
|
46
46
|
"label": "Аккордеон 3",
|
|
47
47
|
"isExpanded": false,
|
|
@@ -5,10 +5,10 @@ import { Blocks } from '../Blocks';
|
|
|
5
5
|
import { HEADLINE } from '../Headline/Headline.fixture';
|
|
6
6
|
import { linkDocsContentExample } from '../LinkDocs/linkDocsContentExample';
|
|
7
7
|
import { TEXT_BLOCK } from '../TextBlock/TextBlock.fixture';
|
|
8
|
-
import {
|
|
8
|
+
import { VerticalLayout } from '../VerticalLayout/VerticalLayout';
|
|
9
9
|
|
|
10
|
-
export const
|
|
11
|
-
type: '
|
|
10
|
+
export const ROLLUP_ITEM: BlockDef = {
|
|
11
|
+
type: 'RollupItem',
|
|
12
12
|
content: {
|
|
13
13
|
label: 'Accordion label 1',
|
|
14
14
|
labelIcon: { icon: 'CardIcon' },
|
|
@@ -27,27 +27,36 @@ const options = {
|
|
|
27
27
|
export default {
|
|
28
28
|
default: (
|
|
29
29
|
<div className="container grid grid-cols-12">
|
|
30
|
-
<
|
|
30
|
+
<VerticalLayout
|
|
31
31
|
className="col-span-12"
|
|
32
|
-
title="Accordion title"
|
|
33
|
-
description="Accordion description 2"
|
|
34
|
-
bordered={true}
|
|
35
32
|
block={{
|
|
36
|
-
type: '
|
|
33
|
+
type: 'VerticalLayout',
|
|
37
34
|
blocks: [
|
|
38
|
-
ACCORDION_ITEM,
|
|
39
35
|
{
|
|
40
|
-
type: '
|
|
36
|
+
type: 'Headline',
|
|
37
|
+
content: {
|
|
38
|
+
title: 'Accordion title',
|
|
39
|
+
description: 'Accordion description 2',
|
|
40
|
+
headlineVersion: 'M',
|
|
41
|
+
align: 'text-center',
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
ROLLUP_ITEM,
|
|
45
|
+
{
|
|
46
|
+
type: 'RollupItem',
|
|
41
47
|
content: { label: 'Accordion label 2', isExpanded: true },
|
|
42
48
|
blocks: [{ type: 'Headline', content: HEADLINE }],
|
|
43
49
|
},
|
|
44
50
|
{
|
|
45
|
-
type: '
|
|
51
|
+
type: 'RollupItem',
|
|
46
52
|
content: { label: 'Accordion label 3', isExpanded: true },
|
|
47
53
|
blocks: [{ type: 'LinkDocs', content: { ...linkDocsContentExample, title: '' } }],
|
|
48
54
|
},
|
|
49
55
|
],
|
|
50
56
|
}}
|
|
57
|
+
version="primary"
|
|
58
|
+
isInnerPadding={false}
|
|
59
|
+
isPadding={true}
|
|
51
60
|
options={options}
|
|
52
61
|
/>
|
|
53
62
|
</div>
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { BlockRendererOptions } from '../../BlockRenderer/BlockRendererOptions';
|
|
2
|
-
import type { BlockDef } from '../../model/ContentPageDef';
|
|
3
2
|
import '../../setup-fixture';
|
|
4
3
|
import { Blocks } from '../Blocks';
|
|
5
4
|
import { HEADLINE } from '../Headline/Headline.fixture';
|
|
@@ -8,16 +7,7 @@ import { PICTURE_TEXT } from '../PictureText/PictureText.fixture';
|
|
|
8
7
|
import { PRODUCT_TILE } from '../ProductTile/ProductTile.fixture';
|
|
9
8
|
import { TEXT_BLOCK } from '../TextBlock/TextBlock.fixture';
|
|
10
9
|
import { TILE } from '../Tile/Tile.fixture';
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
export const ACCORDION_ITEM: BlockDef = {
|
|
14
|
-
type: 'AccordionItem',
|
|
15
|
-
content: { label: 'Accordion label 1', isExpanded: true },
|
|
16
|
-
blocks: [
|
|
17
|
-
{ type: 'TextBlock', content: TEXT_BLOCK },
|
|
18
|
-
{ type: 'TextBlock', content: TEXT_BLOCK },
|
|
19
|
-
],
|
|
20
|
-
};
|
|
10
|
+
import { VerticalLayout } from '../VerticalLayout/VerticalLayout';
|
|
21
11
|
|
|
22
12
|
const options = {
|
|
23
13
|
blocksRegistry: Blocks,
|
|
@@ -26,31 +16,47 @@ const options = {
|
|
|
26
16
|
export default {
|
|
27
17
|
default: (
|
|
28
18
|
<div className="container grid grid-cols-12">
|
|
29
|
-
<
|
|
19
|
+
<VerticalLayout
|
|
30
20
|
className="col-span-12"
|
|
31
|
-
|
|
32
|
-
|
|
21
|
+
version="primary"
|
|
22
|
+
isInnerPadding={false}
|
|
23
|
+
isPadding={true}
|
|
33
24
|
block={{
|
|
34
|
-
type: '
|
|
25
|
+
type: 'VerticalLayout',
|
|
35
26
|
blocks: [
|
|
36
|
-
ACCORDION_ITEM,
|
|
37
27
|
{
|
|
38
|
-
type: '
|
|
28
|
+
type: 'Headline',
|
|
29
|
+
content: {
|
|
30
|
+
title: 'Accordion title',
|
|
31
|
+
description: 'Accordion description',
|
|
32
|
+
headlineVersion: 'M',
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
type: 'RollupItem',
|
|
37
|
+
content: { label: 'Accordion label 1', isExpanded: true },
|
|
38
|
+
blocks: [
|
|
39
|
+
{ type: 'TextBlock', content: TEXT_BLOCK },
|
|
40
|
+
{ type: 'TextBlock', content: TEXT_BLOCK },
|
|
41
|
+
],
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
type: 'RollupItem',
|
|
39
45
|
content: { label: 'Accordion label 2', isExpanded: true },
|
|
40
46
|
blocks: [{ type: 'PictureText', content: PICTURE_TEXT }],
|
|
41
47
|
},
|
|
42
48
|
{
|
|
43
|
-
type: '
|
|
49
|
+
type: 'RollupItem',
|
|
44
50
|
content: { label: 'Accordion label 3', isExpanded: true },
|
|
45
51
|
blocks: [{ type: 'Headline', content: HEADLINE }],
|
|
46
52
|
},
|
|
47
53
|
{
|
|
48
|
-
type: '
|
|
54
|
+
type: 'RollupItem',
|
|
49
55
|
content: { label: 'Accordion label 4' },
|
|
50
56
|
blocks: [{ type: 'LinkDocs', content: { ...linkDocsContentExample, title: '' } }],
|
|
51
57
|
},
|
|
52
58
|
{
|
|
53
|
-
type: '
|
|
59
|
+
type: 'RollupItem',
|
|
54
60
|
content: { label: 'Accordion label 5' },
|
|
55
61
|
blocks: [
|
|
56
62
|
{ type: 'Tile', content: TILE, style: ['col-span-6'] },
|
|
@@ -58,7 +64,7 @@ export default {
|
|
|
58
64
|
],
|
|
59
65
|
},
|
|
60
66
|
{
|
|
61
|
-
type: '
|
|
67
|
+
type: 'RollupItem',
|
|
62
68
|
content: { label: 'Accordion label 6' },
|
|
63
69
|
blocks: [
|
|
64
70
|
{ type: 'ProductTile', content: PRODUCT_TILE, style: ['col-span-6'] },
|
|
@@ -73,16 +79,22 @@ export default {
|
|
|
73
79
|
),
|
|
74
80
|
'right-align-title': (
|
|
75
81
|
<div className="container grid grid-cols-12">
|
|
76
|
-
<
|
|
82
|
+
<VerticalLayout
|
|
77
83
|
className="col-span-12"
|
|
78
|
-
title="Accordion title"
|
|
79
|
-
accordionAlignTitle="right"
|
|
80
|
-
description="Accordion description"
|
|
81
84
|
block={{
|
|
82
|
-
type: '
|
|
85
|
+
type: 'VerticalLayout',
|
|
83
86
|
blocks: [
|
|
84
87
|
{
|
|
85
|
-
type: '
|
|
88
|
+
type: 'Headline',
|
|
89
|
+
content: {
|
|
90
|
+
title: 'Accordion title',
|
|
91
|
+
description: 'Accordion description',
|
|
92
|
+
headlineVersion: 'M',
|
|
93
|
+
align: 'text-right',
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
type: 'RollupItem',
|
|
86
98
|
content: { label: 'Accordion label 1', isExpanded: true },
|
|
87
99
|
blocks: [
|
|
88
100
|
{ type: 'TextBlock', content: TEXT_BLOCK },
|
|
@@ -91,6 +103,9 @@ export default {
|
|
|
91
103
|
},
|
|
92
104
|
],
|
|
93
105
|
}}
|
|
106
|
+
version="primary"
|
|
107
|
+
isInnerPadding={false}
|
|
108
|
+
isPadding={true}
|
|
94
109
|
options={options}
|
|
95
110
|
/>
|
|
96
111
|
</div>
|
|
@@ -5,7 +5,6 @@ import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
|
5
5
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
6
6
|
import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
|
|
7
7
|
import type { AccordionContent } from './AccordionContent';
|
|
8
|
-
import { AccordionItemsList } from './AccordionItemsList';
|
|
9
8
|
|
|
10
9
|
export interface AccordionProps extends AccordionContent, UniBlockProps {}
|
|
11
10
|
|
|
@@ -20,9 +19,9 @@ export const Accordion: JSXBlock<AccordionProps> = JSX<AccordionProps>(
|
|
|
20
19
|
</Paragraph>
|
|
21
20
|
</div>
|
|
22
21
|
) : null}
|
|
23
|
-
<
|
|
22
|
+
<div className="list-none m-0 p-0">{renderChildren(rest)}</div>
|
|
24
23
|
</BlockWrapper>
|
|
25
24
|
),
|
|
26
25
|
);
|
|
27
26
|
|
|
28
|
-
Accordion.childrenTypes = ['
|
|
27
|
+
Accordion.childrenTypes = ['Accordion'];
|
|
@@ -6,7 +6,6 @@ import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
|
6
6
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
7
7
|
import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
|
|
8
8
|
import type { AccordionContent } from './AccordionContent';
|
|
9
|
-
import { AccordionItemsList } from './AccordionItemsList';
|
|
10
9
|
|
|
11
10
|
export interface AccordionProps extends AccordionContent, UniBlockProps {}
|
|
12
11
|
|
|
@@ -26,9 +25,9 @@ export const Accordion: JSXBlock<AccordionProps> = JSX<AccordionProps>(
|
|
|
26
25
|
<Paragraph size="text-l">{description}</Paragraph>
|
|
27
26
|
</div>
|
|
28
27
|
) : null}
|
|
29
|
-
<
|
|
28
|
+
<div className="list-none m-0 p-0">{renderChildren(rest)}</div>
|
|
30
29
|
</BlockWrapper>
|
|
31
30
|
),
|
|
32
31
|
);
|
|
33
32
|
|
|
34
|
-
Accordion.childrenTypes = ['
|
|
33
|
+
Accordion.childrenTypes = ['Accordion'];
|
|
@@ -61,13 +61,13 @@ export const ApplicationFormAcquiring = JSX<ApplicationFormsProps>((props) => {
|
|
|
61
61
|
const onSubmit = async (e: PreventableEvent) => {
|
|
62
62
|
e.preventDefault();
|
|
63
63
|
|
|
64
|
-
const
|
|
64
|
+
const partnerComments = `Вид эквайринга=${acquiringType}/Онлайн касса=${onlineСheckout}/POS-терминал=${posTerminal}`;
|
|
65
65
|
|
|
66
66
|
handleSubmit &&
|
|
67
67
|
(await handleSubmit({
|
|
68
68
|
typeForm: 'acqr',
|
|
69
69
|
region: regions.find((_) => _.code === selectedRegion)?.name || '',
|
|
70
|
-
|
|
70
|
+
partnerComments,
|
|
71
71
|
fullName,
|
|
72
72
|
inn,
|
|
73
73
|
name,
|
|
@@ -65,7 +65,7 @@ export const ApplicationFormCredit = JSX<ApplicationFormsProps>((props) => {
|
|
|
65
65
|
const onSubmit = async (e: PreventableEvent) => {
|
|
66
66
|
e.preventDefault();
|
|
67
67
|
|
|
68
|
-
const
|
|
68
|
+
const partnerComments = `Сумма=${amount}/Срок=${term}/Выручка=${annualRevenue}`;
|
|
69
69
|
|
|
70
70
|
handleSubmit &&
|
|
71
71
|
(await handleSubmit({
|
|
@@ -77,7 +77,7 @@ export const ApplicationFormCredit = JSX<ApplicationFormsProps>((props) => {
|
|
|
77
77
|
mail,
|
|
78
78
|
region: regions.find((_) => _.code === selectedRegion)?.name || '',
|
|
79
79
|
department: branches.find((_) => _.branchCode === department)?.address || '',
|
|
80
|
-
|
|
80
|
+
partnerComments,
|
|
81
81
|
}));
|
|
82
82
|
};
|
|
83
83
|
|
|
@@ -54,7 +54,7 @@ export const ApplicationFormWed = JSX<ApplicationFormsProps>((props) => {
|
|
|
54
54
|
const onSubmit = async (e: PreventableEvent) => {
|
|
55
55
|
e.preventDefault();
|
|
56
56
|
|
|
57
|
-
const
|
|
57
|
+
const partnerComments = `Валютный контроль=${currencyControl}/Документарные операции=${documentaryOperations}/Конверсионные операции=${conversionOperations}/Доп инф=${text}`;
|
|
58
58
|
|
|
59
59
|
handleSubmit &&
|
|
60
60
|
(await handleSubmit({
|
|
@@ -63,7 +63,7 @@ export const ApplicationFormWed = JSX<ApplicationFormsProps>((props) => {
|
|
|
63
63
|
name,
|
|
64
64
|
phone,
|
|
65
65
|
mail,
|
|
66
|
-
|
|
66
|
+
partnerComments,
|
|
67
67
|
}));
|
|
68
68
|
};
|
|
69
69
|
|
|
@@ -41,7 +41,7 @@ const renderStep = (benefit: BenefitBlockItemProps, i: number) => {
|
|
|
41
41
|
/>
|
|
42
42
|
) : null}
|
|
43
43
|
{benefit?.icon?.src ? <Img image={benefit.icon} /> : null}
|
|
44
|
-
<div className="ml-5">
|
|
44
|
+
<div className="ml-5 h-full">
|
|
45
45
|
{benefit?.label ? <Heading headingType="h6">{benefit.label}</Heading> : null}
|
|
46
46
|
{renderDescription(description)}
|
|
47
47
|
</div>
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { BlocksRegistry } from '../model/BlocksRegistry';
|
|
2
2
|
import { Accordion } from './Accordion/Accordion';
|
|
3
|
-
import { AccordionItem } from './AccordionItem/AccordionItem';
|
|
4
3
|
import { ComparisonTable } from './ComparisonTable/ComparisonTable';
|
|
5
4
|
import { Footer } from './Footer/Footer';
|
|
6
5
|
import { Header } from './Header/Header';
|
|
@@ -10,13 +9,14 @@ import { LinkList } from './LinkList/LinkList';
|
|
|
10
9
|
import { MobileAppTile } from './MobileAppTile/MobileAppTile';
|
|
11
10
|
import { Placeholder } from './Placeholder/Placeholder';
|
|
12
11
|
import { ProductBlock } from './ProductBlock/ProductBlock';
|
|
12
|
+
import { RollupItem } from './RollupItem/RollupItem';
|
|
13
13
|
import { StepsBlock } from './StepsBlock/StepsBlock';
|
|
14
14
|
import { TariffsTable } from './TariffsTable/TariffsTable';
|
|
15
15
|
import { TextBlock } from './TextBlock/TextBlock';
|
|
16
|
+
import { VerticalLayout } from './VerticalLayout/VerticalLayout';
|
|
16
17
|
|
|
17
18
|
export const Blocks: BlocksRegistry = {
|
|
18
19
|
Accordion,
|
|
19
|
-
AccordionItem,
|
|
20
20
|
ComparisonTable,
|
|
21
21
|
Footer,
|
|
22
22
|
Header,
|
|
@@ -25,8 +25,10 @@ export const Blocks: BlocksRegistry = {
|
|
|
25
25
|
LinkList,
|
|
26
26
|
MobileAppTile,
|
|
27
27
|
ProductBlock,
|
|
28
|
+
RollupItem,
|
|
28
29
|
StepsBlock,
|
|
29
30
|
TariffsTable,
|
|
30
31
|
TextBlock,
|
|
31
32
|
Placeholder,
|
|
33
|
+
VerticalLayout,
|
|
32
34
|
};
|
package/src/components/Blocks.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { BlocksRegistry } from '../model/BlocksRegistry';
|
|
2
2
|
import { Accordion } from './Accordion/Accordion';
|
|
3
|
-
import { AccordionItem } from './AccordionItem/AccordionItem';
|
|
4
3
|
import { ApplicationForm } from './ApplicationForm/ApplicationForm';
|
|
5
4
|
import { BenefitsBlock } from './BenefitsBlock/BenefitsBlock';
|
|
6
5
|
import { Bonus } from './Bonus/Bonus';
|
|
@@ -37,7 +36,6 @@ import { MobileAppTile } from './MobileAppTile/MobileAppTile';
|
|
|
37
36
|
import { OfficeMap } from './OfficeMap/OfficeMap';
|
|
38
37
|
import { OfficeServicesBlock } from './OfficeServicesBlock/OfficeServicesBlock';
|
|
39
38
|
import { OtherProducts } from './OtherProducts/OtherProducts';
|
|
40
|
-
import { OtherProductsItem } from './OtherProductsItem/OtherProductsItem';
|
|
41
39
|
import { ParagraphBlock } from './ParagraphBlock/ParagraphBlock';
|
|
42
40
|
import { PictureText } from './PictureText/PictureText';
|
|
43
41
|
import { Placeholder } from './Placeholder/Placeholder';
|
|
@@ -60,7 +58,6 @@ import { Video } from './Video/Video';
|
|
|
60
58
|
|
|
61
59
|
export const Blocks: BlocksRegistry = {
|
|
62
60
|
Accordion,
|
|
63
|
-
AccordionItem,
|
|
64
61
|
ApplicationForm,
|
|
65
62
|
BenefitsBlock,
|
|
66
63
|
Bonus,
|
|
@@ -97,7 +94,6 @@ export const Blocks: BlocksRegistry = {
|
|
|
97
94
|
OfficeMap,
|
|
98
95
|
OfficeServicesBlock,
|
|
99
96
|
OtherProducts,
|
|
100
|
-
OtherProductsItem,
|
|
101
97
|
ParagraphBlock,
|
|
102
98
|
PictureText,
|
|
103
99
|
Placeholder,
|
|
@@ -9,6 +9,7 @@ import type {
|
|
|
9
9
|
BonusBenefitsBlockContent,
|
|
10
10
|
ColumnsCount,
|
|
11
11
|
} from './BonusBenefitsBlockContent';
|
|
12
|
+
import { style } from '../../utils/style';
|
|
12
13
|
|
|
13
14
|
export interface BenefitsBlockProps extends BonusBenefitsBlockContent, UniBlockProps {}
|
|
14
15
|
|
|
@@ -40,10 +41,16 @@ export const BonusBenefitsBlock = JSX<BenefitsBlockProps>(
|
|
|
40
41
|
|
|
41
42
|
const renderBonusBenefit = ({ icon, title, description }: BonusBenefit, i: number) => {
|
|
42
43
|
return (
|
|
43
|
-
<div
|
|
44
|
+
<div
|
|
45
|
+
key={String(i)}
|
|
46
|
+
className={style(
|
|
47
|
+
'flex flex-col items-center text-h6',
|
|
48
|
+
!description && !title ? 'justify-center' : '',
|
|
49
|
+
)}
|
|
50
|
+
>
|
|
44
51
|
{title ? <span>{title}</span> : null}
|
|
45
|
-
{icon ? <Img image={icon} height="180" width="auto" className="
|
|
46
|
-
|
|
52
|
+
{icon ? <Img image={icon} height="180" width="auto" className="w-auto" /> : null}
|
|
53
|
+
{description ? <span>{description}</span> : null}
|
|
47
54
|
</div>
|
|
48
55
|
);
|
|
49
56
|
};
|
|
@@ -3,13 +3,13 @@ import { CarouselBankHistoryCard } from './CarouselBankHistoryCard';
|
|
|
3
3
|
export const BANK_HISTORY_CARD = {
|
|
4
4
|
title: '1796г.',
|
|
5
5
|
description:
|
|
6
|
-
"Россельхозбанк стал одним из ключевых участников Приоритетного национального проекта 'Развитие АПК'
|
|
6
|
+
"Россельхозбанк стал одним из ключевых участников Приоритетного национального проекта 'Развитие АПК' целью которого развитие агропромышленного сектора российской экономики",
|
|
7
7
|
};
|
|
8
8
|
|
|
9
9
|
export const ACTIVE_BANK_HISTORY_CARD = {
|
|
10
10
|
title: '1796г.',
|
|
11
11
|
description:
|
|
12
|
-
"Россельхозбанк стал одним из ключевых участников Приоритетного национального проекта 'Развитие АПК'
|
|
12
|
+
"Россельхозбанк стал одним из ключевых участников Приоритетного национального проекта 'Развитие АПК' целью которого развитие агропромышленного сектора российской экономики",
|
|
13
13
|
isActive: true,
|
|
14
14
|
};
|
|
15
15
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { projectSettings } from '../../ProjectSettings';
|
|
3
2
|
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
3
|
+
import { projectSettings } from '../../ProjectSettings';
|
|
4
4
|
import type { SitemapDataProps } from '../../services/sitemap/SitemapProps';
|
|
5
5
|
import { useSWRResource } from '../../services/sitemap/useSWRResource';
|
|
6
|
+
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
6
7
|
import { Button } from '../../ui-kit/Button/Button';
|
|
7
8
|
import { Img } from '../../ui-kit/Img/Img';
|
|
8
9
|
import { SearchBar } from '../../ui-kit/SearchBar/SearchBar';
|
|
9
10
|
import { getIconWithVersion } from '../../utils/getIconWithVersion';
|
|
10
|
-
import { AccordionItemsList } from '../Accordion/AccordionItemsList';
|
|
11
|
-
import { AccordionItem } from '../AccordionItem/AccordionItem';
|
|
12
11
|
import { LinkList } from '../LinkList/LinkList';
|
|
13
12
|
import { MobileAppTile } from '../MobileAppTile/MobileAppTile';
|
|
13
|
+
import { RollupItem } from '../RollupItem/RollupItem';
|
|
14
14
|
import { Contacts } from './Contacts';
|
|
15
15
|
import type { FooterContent, SubMenuItem } from './FooterContent';
|
|
16
16
|
import type { FooterDataProps } from './FooterDataProps';
|
|
@@ -28,15 +28,15 @@ export const Footer = JSX<FooterProps>(({ className = '', ...rest }) => {
|
|
|
28
28
|
useSWRResource<FooterDataProps>(projectSettings.FOOTER || 'footer', fallback);
|
|
29
29
|
|
|
30
30
|
return (
|
|
31
|
-
<footer className={`
|
|
31
|
+
<BlockWrapper tag="footer" className={`px-4 py-[26px] ${className}`} {...rest}>
|
|
32
32
|
<Contacts className="overflow-hidden" items={contacts} hasButton />
|
|
33
|
-
<
|
|
33
|
+
<div className="m-0 p-0">
|
|
34
34
|
{sitemap.topItems?.map((item, i) => (
|
|
35
|
-
<
|
|
35
|
+
<RollupItem key={String(i)} label={item?.text}>
|
|
36
36
|
<LinkList documents={item.items} />
|
|
37
|
-
</
|
|
37
|
+
</RollupItem>
|
|
38
38
|
))}
|
|
39
|
-
</
|
|
39
|
+
</div>
|
|
40
40
|
<div>{sitemap?.dispositions?.map(renderSubMenuItem)}</div>
|
|
41
41
|
<MobileAppTile
|
|
42
42
|
title="Мобильное приложение"
|
|
@@ -47,7 +47,7 @@ export const Footer = JSX<FooterProps>(({ className = '', ...rest }) => {
|
|
|
47
47
|
<SocialMedia className="pb-4" media={socialMedia} />
|
|
48
48
|
<HorizontalNavigation title={horizontalNavigationTitle} links={relatedEnterprises} />
|
|
49
49
|
<TextInformation links={documents} />
|
|
50
|
-
</
|
|
50
|
+
</BlockWrapper>
|
|
51
51
|
);
|
|
52
52
|
});
|
|
53
53
|
|
|
@@ -12,9 +12,8 @@ import type { SitemapDataProps } from '../../services/sitemap/SitemapProps';
|
|
|
12
12
|
import { useSWRResource } from '../../services/sitemap/useSWRResource';
|
|
13
13
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
14
14
|
import { HeaderItem } from '../../ui-kit/HeaderItem/HeaderItem';
|
|
15
|
-
import { AccordionItemsList } from '../Accordion/AccordionItemsList';
|
|
16
|
-
import { AccordionItem } from '../AccordionItem/AccordionItem';
|
|
17
15
|
import { LinkList } from '../LinkList/LinkList';
|
|
16
|
+
import { RollupItem } from '../RollupItem/RollupItem';
|
|
18
17
|
import { HeaderBurger } from './HeaderBurger';
|
|
19
18
|
import type { HeaderContent } from './HeaderContent';
|
|
20
19
|
import { HeaderTop } from './HeaderTop';
|
|
@@ -65,13 +64,13 @@ export const Header = JSX<HeaderProps>(
|
|
|
65
64
|
burgerSubMenu={dispositions}
|
|
66
65
|
defaultLocation={defaultLocation}
|
|
67
66
|
>
|
|
68
|
-
<
|
|
67
|
+
<div className="list-none m-0 p-0">
|
|
69
68
|
{topItems?.map((item, i) => (
|
|
70
|
-
<
|
|
69
|
+
<RollupItem key={String(i)} label={item.text}>
|
|
71
70
|
<LinkList documents={item.items} />
|
|
72
|
-
</
|
|
71
|
+
</RollupItem>
|
|
73
72
|
))}
|
|
74
|
-
</
|
|
73
|
+
</div>
|
|
75
74
|
</HeaderBurger>
|
|
76
75
|
) : null}
|
|
77
76
|
</BlockWrapper>
|
|
@@ -18,14 +18,17 @@ export const Headline = JSX<HeadlineProps>(
|
|
|
18
18
|
headlineVersion = 'XL',
|
|
19
19
|
align = 'text-center',
|
|
20
20
|
as,
|
|
21
|
+
isPadding = true,
|
|
21
22
|
...rest
|
|
22
23
|
}) => {
|
|
23
24
|
const versionStyle = headlineVersionStyles[headlineVersion];
|
|
25
|
+
const paddingStyle = isPadding ? 'p-12' : '';
|
|
24
26
|
|
|
25
27
|
return (
|
|
26
28
|
<BlockWrapper
|
|
27
29
|
className={style(
|
|
28
|
-
'flex flex-col
|
|
30
|
+
'flex flex-col group-data-secondary:bg-primary-main group-data-secondary:text-white',
|
|
31
|
+
paddingStyle,
|
|
29
32
|
versionStyle.wrapper,
|
|
30
33
|
className,
|
|
31
34
|
)}
|
|
@@ -16,8 +16,8 @@ const options = {
|
|
|
16
16
|
} as BlockRendererOptions;
|
|
17
17
|
|
|
18
18
|
export const OTHER_PRODUCTS_ITEM: BlockDef = {
|
|
19
|
-
type: '
|
|
20
|
-
content: { label: 'OtherProducts №1 Tiles' },
|
|
19
|
+
type: 'RollupItem',
|
|
20
|
+
content: { label: 'OtherProducts №1 Tiles', version: 'secondary' },
|
|
21
21
|
blocks: [
|
|
22
22
|
{ type: 'Tile', content: TILE_PREMIUM, style: ['col-span-6'] },
|
|
23
23
|
{ type: 'Tile', content: TILE_PREMIUM, style: ['col-span-6'] },
|
|
@@ -36,8 +36,9 @@ export default {
|
|
|
36
36
|
blocks: [
|
|
37
37
|
OTHER_PRODUCTS_ITEM,
|
|
38
38
|
{
|
|
39
|
-
type: '
|
|
40
|
-
|
|
39
|
+
type: 'RollupItem',
|
|
40
|
+
|
|
41
|
+
content: { label: 'OtherProducts №2 Product_Tiles', version: 'secondary' },
|
|
41
42
|
blocks: [
|
|
42
43
|
{ type: 'ProductTile', content: PRODUCT_TILE, style: ['col-span-6'] },
|
|
43
44
|
{ type: 'ProductTile', content: PRODUCT_TILE, style: ['col-span-6'] },
|
|
@@ -46,16 +47,16 @@ export default {
|
|
|
46
47
|
],
|
|
47
48
|
},
|
|
48
49
|
{
|
|
49
|
-
type: '
|
|
50
|
-
content: { label: 'OtherProducts №3 Product_Block' },
|
|
50
|
+
type: 'RollupItem',
|
|
51
|
+
content: { label: 'OtherProducts №3 Product_Block', version: 'secondary' },
|
|
51
52
|
blocks: [
|
|
52
53
|
{ type: 'ProductBlock', content: PRODUCT_BLOCK, style: ['col-span-6'] },
|
|
53
54
|
{ type: 'ProductBlock', content: PRODUCT_BLOCK, style: ['col-span-6'] },
|
|
54
55
|
],
|
|
55
56
|
},
|
|
56
57
|
{
|
|
57
|
-
type: '
|
|
58
|
-
content: { label: 'OtherProducts №4 Text_Block' },
|
|
58
|
+
type: 'RollupItem',
|
|
59
|
+
content: { label: 'OtherProducts №4 Text_Block', version: 'secondary' },
|
|
59
60
|
blocks: [
|
|
60
61
|
{ type: 'TextBlock', content: TEXT_BLOCK },
|
|
61
62
|
{ type: 'TextBlock', content: TEXT_BLOCK },
|
|
@@ -64,18 +65,18 @@ export default {
|
|
|
64
65
|
],
|
|
65
66
|
},
|
|
66
67
|
{
|
|
67
|
-
type: '
|
|
68
|
-
content: { label: 'OtherProducts №5 Picture_Text' },
|
|
68
|
+
type: 'RollupItem',
|
|
69
|
+
content: { label: 'OtherProducts №5 Picture_Text', version: 'secondary' },
|
|
69
70
|
blocks: [{ type: 'PictureText', content: PICTURE_TEXT }],
|
|
70
71
|
},
|
|
71
72
|
{
|
|
72
|
-
type: '
|
|
73
|
-
content: { label: 'OtherProducts №6 Headline' },
|
|
73
|
+
type: 'RollupItem',
|
|
74
|
+
content: { label: 'OtherProducts №6 Headline', version: 'secondary' },
|
|
74
75
|
blocks: [{ type: 'Headline', content: HEADLINE }],
|
|
75
76
|
},
|
|
76
77
|
{
|
|
77
|
-
type: '
|
|
78
|
-
content: { label: 'OtherProducts №7 Link_Docs' },
|
|
78
|
+
type: 'RollupItem',
|
|
79
|
+
content: { label: 'OtherProducts №7 Link_Docs', version: 'secondary' },
|
|
79
80
|
blocks: [{ type: 'LinkDocs', content: linkDocsContentExample }],
|
|
80
81
|
},
|
|
81
82
|
],
|