@redneckz/wildless-cms-uni-blocks 0.3.61 → 0.3.63
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 +100 -39
- package/bundle/bundle.umd.min.js +1 -1
- package/cosmos-static/icons/AirPlane.svg +1 -0
- package/cosmos-static/icons/CarIcon.svg +1 -0
- package/cosmos-static/icons/CinemaIcon.svg +1 -0
- package/cosmos-static/icons/DocsIcon.svg +1 -0
- package/cosmos-static/icons/PowerIcon.svg +1 -0
- package/cosmos-static/icons/PumpkinIcon.svg +1 -0
- package/cosmos-static/icons/SoundIcon.svg +1 -0
- package/cosmos-static/icons/WateringCan.svg +1 -0
- package/dist/components/Accordion/Accordion.js +7 -2
- package/dist/components/Accordion/Accordion.js.map +1 -1
- package/dist/components/Accordion/AccordionContent.d.ts +3 -0
- package/dist/components/BaseTile/BaseTileProps.d.ts +1 -9
- package/dist/components/BenefitsBlock/BenefitsBlock.js +3 -3
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/BlockContent.d.ts +2 -1
- package/dist/components/Blocks.d.ts +1 -0
- package/dist/components/Blocks.js +2 -0
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.d.ts +5 -0
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +14 -0
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -0
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +21 -0
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.js +2 -0
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.js.map +1 -0
- package/dist/components/BonusBenefitsBlock/getElementsColsValue.d.ts +1 -0
- package/dist/components/BonusBenefitsBlock/getElementsColsValue.js +17 -0
- package/dist/components/BonusBenefitsBlock/getElementsColsValue.js.map +1 -0
- package/dist/components/ComparisonTable/ComparisonTable.mobile.js +1 -1
- package/dist/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
- package/dist/components/ComparisonTable/HeaderCell.mobile.js +1 -1
- package/dist/components/ComparisonTable/HeaderCell.mobile.js.map +1 -1
- package/dist/components/ComparisonTable/TableCell.js +1 -1
- package/dist/components/ComparisonTable/TableCell.js.map +1 -1
- package/dist/components/ComparisonTable/TableCell.mobile.js +1 -1
- package/dist/components/ComparisonTable/TableCell.mobile.js.map +1 -1
- package/dist/components/ContentPage/ContentPage.js +1 -1
- package/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/dist/components/Gallery/GalleryInner.js +1 -1
- package/dist/components/Gallery/GalleryInner.js.map +1 -1
- package/dist/components/Headline/Headline.js +1 -1
- package/dist/components/Headline/Headline.js.map +1 -1
- package/dist/components/Headline/Headline.mobile.js +1 -1
- package/dist/components/Headline/Headline.mobile.js.map +1 -1
- package/dist/components/Headline/HeadlineContent.d.ts +1 -1
- package/dist/components/Headline/constants.d.ts +1 -1
- package/dist/components/LinkDocs/LinkDocsContent.d.ts +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/dist/components/OtherProducts/OtherProductsContent.d.ts +1 -1
- package/dist/components/OtherProducts/OtherProductsItem.d.ts +1 -2
- package/dist/components/OtherProducts/OtherProductsItem.js +10 -7
- package/dist/components/OtherProducts/OtherProductsItem.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js +2 -2
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.mobile.js +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
- package/dist/components/ProductTile/ProductTile.js +1 -1
- package/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/dist/components/Recommendation/Recommendation.js +1 -1
- package/dist/components/Recommendation/Recommendation.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js +2 -2
- package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTable.js +8 -3
- package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableContent.d.ts +7 -5
- package/dist/components/TextBlock/TextBlock.js +1 -1
- package/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/dist/components/Tile/Tile.js +2 -2
- package/dist/components/Tile/Tile.js.map +1 -1
- package/dist/icons/IconName.d.ts +22 -6
- package/dist/icons/IconName.js +18 -2
- package/dist/icons/IconName.js.map +1 -1
- package/dist/model/AlignType.d.ts +9 -0
- package/dist/model/AlignType.js +2 -0
- package/dist/model/AlignType.js.map +1 -0
- package/dist/model/VNode.d.ts +1 -0
- package/dist/model/VNode.js +2 -0
- package/dist/model/VNode.js.map +1 -0
- package/dist/ui-kit/Foldable/Foldable.d.ts +20 -0
- package/dist/ui-kit/Foldable/Foldable.js +22 -0
- package/dist/ui-kit/Foldable/Foldable.js.map +1 -0
- package/dist/ui-kit/Foldable/useActiveHandler.d.ts +11 -0
- package/dist/ui-kit/Foldable/useActiveHandler.js +22 -0
- package/dist/ui-kit/Foldable/useActiveHandler.js.map +1 -0
- package/dist/ui-kit/Logo/Logo.mobile.js +1 -1
- package/dist/ui-kit/Logo/Logo.mobile.js.map +1 -1
- package/dist/ui-kit/SearchBar/SearchBar.js +1 -1
- package/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/dist/ui-kit/SearchBar/SearchBar.mobile.js +1 -1
- package/dist/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
- package/dist/ui-kit/SearchBar.mobile.js +1 -1
- package/dist/ui-kit/SearchBar.mobile.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Accordion/Accordion.fixture.d.ts +1 -0
- package/lib/components/Accordion/Accordion.js +7 -2
- package/lib/components/Accordion/Accordion.js.map +1 -1
- package/lib/components/Accordion/AccordionContent.d.ts +3 -0
- package/lib/components/BaseTile/BaseTileProps.d.ts +1 -9
- package/lib/components/BenefitsBlock/BenefitsBlock.js +3 -3
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/BlockContent.d.ts +2 -1
- package/lib/components/Blocks.d.ts +1 -0
- package/lib/components/Blocks.js +2 -0
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.d.ts +5 -0
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.fixture.d.ts +4 -0
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +12 -0
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -0
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +21 -0
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.js +2 -0
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.js.map +1 -0
- package/lib/components/BonusBenefitsBlock/getElementsColsValue.d.ts +1 -0
- package/lib/components/BonusBenefitsBlock/getElementsColsValue.js +14 -0
- package/lib/components/BonusBenefitsBlock/getElementsColsValue.js.map +1 -0
- package/lib/components/ComparisonTable/ComparisonTable.mobile.js +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
- package/lib/components/ComparisonTable/HeaderCell.mobile.js +1 -1
- package/lib/components/ComparisonTable/HeaderCell.mobile.js.map +1 -1
- package/lib/components/ComparisonTable/TableCell.js +1 -1
- package/lib/components/ComparisonTable/TableCell.js.map +1 -1
- package/lib/components/ComparisonTable/TableCell.mobile.js +1 -1
- package/lib/components/ComparisonTable/TableCell.mobile.js.map +1 -1
- package/lib/components/ContentPage/ContentPage.js +1 -1
- package/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/lib/components/Gallery/GalleryInner.js +1 -1
- package/lib/components/Gallery/GalleryInner.js.map +1 -1
- package/lib/components/Headline/Headline.js +1 -1
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/Headline/Headline.mobile.js +1 -1
- package/lib/components/Headline/Headline.mobile.js.map +1 -1
- package/lib/components/Headline/HeadlineContent.d.ts +1 -1
- package/lib/components/Headline/constants.d.ts +1 -1
- package/lib/components/LinkDocs/LinkDocsContent.d.ts +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/lib/components/OtherProducts/OtherProductsContent.d.ts +1 -1
- package/lib/components/OtherProducts/OtherProductsItem.d.ts +1 -2
- package/lib/components/OtherProducts/OtherProductsItem.js +11 -8
- package/lib/components/OtherProducts/OtherProductsItem.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js +2 -2
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.mobile.js +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
- package/lib/components/ProductTile/ProductTile.js +1 -1
- package/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/lib/components/Recommendation/Recommendation.js +1 -1
- package/lib/components/Recommendation/Recommendation.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js +2 -2
- package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTable.js +8 -3
- package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableContent.d.ts +7 -5
- package/lib/components/TextBlock/TextBlock.js +1 -1
- package/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/lib/components/Tile/Tile.js +2 -2
- package/lib/components/Tile/Tile.js.map +1 -1
- package/lib/icons/IconName.d.ts +22 -6
- package/lib/icons/IconName.js +18 -2
- package/lib/icons/IconName.js.map +1 -1
- package/lib/model/AlignType.d.ts +9 -0
- package/lib/model/AlignType.js +2 -0
- package/lib/model/AlignType.js.map +1 -0
- package/lib/model/VNode.d.ts +1 -0
- package/lib/model/VNode.js +2 -0
- package/lib/model/VNode.js.map +1 -0
- package/lib/ui-kit/Foldable/Foldable.d.ts +20 -0
- package/lib/ui-kit/Foldable/Foldable.js +20 -0
- package/lib/ui-kit/Foldable/Foldable.js.map +1 -0
- package/lib/ui-kit/Foldable/useActiveHandler.d.ts +11 -0
- package/lib/ui-kit/Foldable/useActiveHandler.js +19 -0
- package/lib/ui-kit/Foldable/useActiveHandler.js.map +1 -0
- package/lib/ui-kit/Logo/Logo.mobile.js +1 -1
- package/lib/ui-kit/Logo/Logo.mobile.js.map +1 -1
- package/lib/ui-kit/SearchBar/SearchBar.js +1 -1
- package/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/lib/ui-kit/SearchBar/SearchBar.mobile.js +1 -1
- package/lib/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
- package/lib/ui-kit/SearchBar.mobile.js +1 -1
- package/lib/ui-kit/SearchBar.mobile.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +28 -12
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/Accordion/AccordionContent.d.ts +3 -0
- package/mobile/dist/components/BaseTile/BaseTileProps.d.ts +1 -9
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +3 -3
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/components/BlockContent.d.ts +2 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.d.ts +5 -0
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +14 -0
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -0
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +21 -0
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.js +2 -0
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.js.map +1 -0
- package/mobile/dist/components/BonusBenefitsBlock/getElementsColsValue.d.ts +1 -0
- package/mobile/dist/components/BonusBenefitsBlock/getElementsColsValue.js +17 -0
- package/mobile/dist/components/BonusBenefitsBlock/getElementsColsValue.js.map +1 -0
- package/mobile/dist/components/ComparisonTable/ComparisonTable.js +1 -1
- package/mobile/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/HeaderCell.js +1 -1
- package/mobile/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/TableCell.js +1 -1
- package/mobile/dist/components/ComparisonTable/TableCell.js.map +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.js +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryInner.js +1 -1
- package/mobile/dist/components/Gallery/GalleryInner.js.map +1 -1
- package/mobile/dist/components/Headline/Headline.js +1 -1
- package/mobile/dist/components/Headline/Headline.js.map +1 -1
- package/mobile/dist/components/Headline/HeadlineContent.d.ts +1 -1
- package/mobile/dist/components/Headline/constants.d.ts +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +1 -1
- package/mobile/dist/components/OtherProducts/OtherProductsContent.d.ts +1 -1
- package/mobile/dist/components/OtherProducts/OtherProductsItem.d.ts +1 -2
- package/mobile/dist/components/OtherProducts/OtherProductsItem.js +10 -7
- package/mobile/dist/components/OtherProducts/OtherProductsItem.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTile.js +1 -1
- package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/dist/components/Recommendation/Recommendation.js +1 -1
- package/mobile/dist/components/Recommendation/Recommendation.js.map +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js +2 -2
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +7 -5
- package/mobile/dist/components/Tile/Tile.js +2 -2
- package/mobile/dist/components/Tile/Tile.js.map +1 -1
- package/mobile/dist/icons/IconName.d.ts +22 -6
- package/mobile/dist/icons/IconName.js +18 -2
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/model/AlignType.d.ts +9 -0
- package/mobile/dist/model/AlignType.js +2 -0
- package/mobile/dist/model/AlignType.js.map +1 -0
- package/mobile/dist/model/VNode.d.ts +1 -0
- package/mobile/dist/model/VNode.js +2 -0
- package/mobile/dist/model/VNode.js.map +1 -0
- package/mobile/dist/ui-kit/Foldable/Foldable.d.ts +20 -0
- package/mobile/dist/ui-kit/Foldable/Foldable.js +22 -0
- package/mobile/dist/ui-kit/Foldable/Foldable.js.map +1 -0
- package/mobile/dist/ui-kit/Foldable/useActiveHandler.d.ts +11 -0
- package/mobile/dist/ui-kit/Foldable/useActiveHandler.js +22 -0
- package/mobile/dist/ui-kit/Foldable/useActiveHandler.js.map +1 -0
- package/mobile/dist/ui-kit/Logo/Logo.js +1 -1
- package/mobile/dist/ui-kit/Logo/Logo.js.map +1 -1
- package/mobile/dist/ui-kit/SearchBar/SearchBar.js +1 -1
- package/mobile/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/mobile/lib/components/Accordion/AccordionContent.d.ts +3 -0
- package/mobile/lib/components/BaseTile/BaseTileProps.d.ts +1 -9
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +3 -3
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/components/BlockContent.d.ts +2 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.d.ts +5 -0
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +12 -0
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -0
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +21 -0
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.js +2 -0
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.js.map +1 -0
- package/mobile/lib/components/BonusBenefitsBlock/getElementsColsValue.d.ts +1 -0
- package/mobile/lib/components/BonusBenefitsBlock/getElementsColsValue.js +14 -0
- package/mobile/lib/components/BonusBenefitsBlock/getElementsColsValue.js.map +1 -0
- package/mobile/lib/components/ComparisonTable/ComparisonTable.js +1 -1
- package/mobile/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/HeaderCell.js +1 -1
- package/mobile/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/TableCell.js +1 -1
- package/mobile/lib/components/ComparisonTable/TableCell.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.js +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryInner.js +1 -1
- package/mobile/lib/components/Gallery/GalleryInner.js.map +1 -1
- package/mobile/lib/components/Headline/Headline.js +1 -1
- package/mobile/lib/components/Headline/Headline.js.map +1 -1
- package/mobile/lib/components/Headline/HeadlineContent.d.ts +1 -1
- package/mobile/lib/components/Headline/constants.d.ts +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +1 -1
- package/mobile/lib/components/OtherProducts/OtherProductsContent.d.ts +1 -1
- package/mobile/lib/components/OtherProducts/OtherProductsItem.d.ts +1 -2
- package/mobile/lib/components/OtherProducts/OtherProductsItem.js +11 -8
- package/mobile/lib/components/OtherProducts/OtherProductsItem.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTile.js +1 -1
- package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/lib/components/Recommendation/Recommendation.js +1 -1
- package/mobile/lib/components/Recommendation/Recommendation.js.map +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js +2 -2
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +7 -5
- package/mobile/lib/components/Tile/Tile.js +2 -2
- package/mobile/lib/components/Tile/Tile.js.map +1 -1
- package/mobile/lib/icons/IconName.d.ts +22 -6
- package/mobile/lib/icons/IconName.js +18 -2
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/model/AlignType.d.ts +9 -0
- package/mobile/lib/model/AlignType.js +2 -0
- package/mobile/lib/model/AlignType.js.map +1 -0
- package/mobile/lib/model/VNode.d.ts +1 -0
- package/mobile/lib/model/VNode.js +2 -0
- package/mobile/lib/model/VNode.js.map +1 -0
- package/mobile/lib/ui-kit/Foldable/Foldable.d.ts +20 -0
- package/mobile/lib/ui-kit/Foldable/Foldable.js +20 -0
- package/mobile/lib/ui-kit/Foldable/Foldable.js.map +1 -0
- package/mobile/lib/ui-kit/Foldable/useActiveHandler.d.ts +11 -0
- package/mobile/lib/ui-kit/Foldable/useActiveHandler.js +19 -0
- package/mobile/lib/ui-kit/Foldable/useActiveHandler.js.map +1 -0
- package/mobile/lib/ui-kit/Logo/Logo.js +1 -1
- package/mobile/lib/ui-kit/Logo/Logo.js.map +1 -1
- package/mobile/lib/ui-kit/SearchBar/SearchBar.js +1 -1
- package/mobile/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/mobile/src/components/Accordion/AccordionContent.ts +3 -0
- package/mobile/src/components/BaseTile/BaseTileProps.ts +1 -10
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +6 -8
- package/mobile/src/components/BlockContent.ts +3 -1
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.example.json +54 -0
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +49 -0
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlockContent.ts +23 -0
- package/mobile/src/components/BonusBenefitsBlock/getElementsColsValue.ts +12 -0
- package/mobile/src/components/ComparisonTable/ComparisonTable.tsx +2 -2
- package/mobile/src/components/ComparisonTable/HeaderCell.tsx +4 -4
- package/mobile/src/components/ComparisonTable/TableCell.tsx +4 -4
- package/mobile/src/components/ContentPage/ContentPage.tsx +2 -2
- package/mobile/src/components/Gallery/GalleryInner.tsx +4 -4
- package/mobile/src/components/Headline/Headline.tsx +4 -4
- package/mobile/src/components/Headline/HeadlineContent.ts +1 -1
- package/mobile/src/components/Headline/constants.ts +1 -1
- package/mobile/src/components/LinkDocs/LinkDocsContent.ts +1 -1
- package/mobile/src/components/OtherProducts/OtherProductsContent.ts +1 -1
- package/mobile/src/components/OtherProducts/OtherProductsItem.tsx +33 -23
- package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +2 -2
- package/mobile/src/components/ProductTile/ProductTile.tsx +2 -2
- package/mobile/src/components/Recommendation/Recommendation.tsx +4 -4
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +9 -9
- package/mobile/src/components/TariffsTable/TariffsTableContent.ts +7 -5
- package/mobile/src/components/Tile/Tile.tsx +4 -4
- package/mobile/src/icons/AirPlane.svg +98 -0
- package/mobile/src/icons/ArrowUpIcon.svg +1 -1
- package/mobile/src/icons/ArrowsRewindRight.svg +1 -1
- package/mobile/src/icons/CarIcon.svg +466 -0
- package/mobile/src/icons/CinemaIcon.svg +274 -0
- package/mobile/src/icons/DocsIcon.svg +238 -0
- package/mobile/src/icons/IconName.ts +4 -4
- package/mobile/src/icons/PowerIcon.svg +135 -0
- package/mobile/src/icons/PumpkinIcon.svg +236 -0
- package/mobile/src/icons/SoundIcon.svg +113 -0
- package/mobile/src/icons/WateringCan.svg +497 -0
- package/mobile/src/model/AlignType.ts +9 -0
- package/mobile/src/model/VNode.ts +1 -0
- package/mobile/src/ui-kit/Foldable/Foldable.tsx +81 -0
- package/mobile/src/ui-kit/Foldable/useActiveHandler.ts +34 -0
- package/mobile/src/ui-kit/Logo/Logo.tsx +1 -1
- package/mobile/src/ui-kit/SearchBar/SearchBar.tsx +1 -1
- package/package.json +1 -1
- package/src/components/Accordion/Accordion.fixture.tsx +24 -2
- package/src/components/Accordion/Accordion.tsx +23 -2
- package/src/components/Accordion/AccordionContent.ts +3 -0
- package/src/components/BaseTile/BaseTileProps.ts +1 -10
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +6 -8
- package/src/components/BlockContent.ts +3 -1
- package/src/components/Blocks.ts +2 -0
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.example.json +54 -0
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.fixture.tsx +50 -0
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +49 -0
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlockContent.ts +23 -0
- package/src/components/BonusBenefitsBlock/getElementsColsValue.ts +12 -0
- package/src/components/ComparisonTable/ComparisonTable.mobile.tsx +2 -2
- package/src/components/ComparisonTable/HeaderCell.mobile.tsx +4 -4
- package/src/components/ComparisonTable/TableCell.mobile.tsx +4 -4
- package/src/components/ComparisonTable/TableCell.tsx +4 -4
- package/src/components/ContentPage/ContentPage.tsx +2 -2
- package/src/components/Gallery/GalleryInner.tsx +4 -4
- package/src/components/Headline/Headline.mobile.tsx +4 -4
- package/src/components/Headline/Headline.tsx +4 -4
- package/src/components/Headline/HeadlineContent.ts +1 -1
- package/src/components/Headline/constants.ts +1 -1
- package/src/components/LinkDocs/LinkDocs.tsx +1 -1
- package/src/components/LinkDocs/LinkDocsContent.ts +1 -1
- package/src/components/MobileAppTile/MobileAppTile.tsx +2 -2
- package/src/components/OtherProducts/OtherProductsContent.ts +1 -1
- package/src/components/OtherProducts/OtherProductsItem.tsx +33 -23
- package/src/components/ProductBlock/ProductBlockInner.mobile.tsx +2 -2
- package/src/components/ProductBlock/ProductBlockInner.tsx +9 -11
- package/src/components/ProductTile/ProductTile.tsx +2 -2
- package/src/components/Recommendation/Recommendation.tsx +4 -4
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +9 -9
- package/src/components/TariffsTable/TariffsTable.fixture.tsx +4 -1
- package/src/components/TariffsTable/TariffsTable.tsx +55 -18
- package/src/components/TariffsTable/TariffsTableContent.ts +7 -5
- package/src/components/TextBlock/TextBlock.tsx +4 -4
- package/src/components/Tile/Tile.tsx +4 -4
- package/src/icons/AirPlane.svg +98 -0
- package/src/icons/ArrowUpIcon.svg +1 -1
- package/src/icons/ArrowsRewindRight.svg +1 -1
- package/src/icons/CarIcon.svg +466 -0
- package/src/icons/CinemaIcon.svg +274 -0
- package/src/icons/DocsIcon.svg +238 -0
- package/src/icons/IconName.ts +28 -4
- package/src/icons/PowerIcon.svg +135 -0
- package/src/icons/PumpkinIcon.svg +236 -0
- package/src/icons/SoundIcon.svg +113 -0
- package/src/icons/WateringCan.svg +497 -0
- package/src/model/AlignType.ts +9 -0
- package/src/model/VNode.ts +1 -0
- package/src/ui-kit/Foldable/Foldable.tsx +81 -0
- package/src/ui-kit/Foldable/useActiveHandler.ts +34 -0
- package/src/ui-kit/Logo/Logo.mobile.tsx +1 -1
- package/src/ui-kit/SearchBar/SearchBar.mobile.tsx +1 -1
- package/src/ui-kit/SearchBar/SearchBar.tsx +1 -1
- package/src/ui-kit/SearchBar.mobile.tsx +1 -1
- package/dist/components/OtherProducts/OtherProductsItemInner.d.ts +0 -2
- package/dist/components/OtherProducts/OtherProductsItemInner.js +0 -10
- package/dist/components/OtherProducts/OtherProductsItemInner.js.map +0 -1
- package/dist/components/OtherProducts/useActiveHandler.d.ts +0 -7
- package/dist/components/OtherProducts/useActiveHandler.js +0 -21
- package/dist/components/OtherProducts/useActiveHandler.js.map +0 -1
- package/lib/components/OtherProducts/OtherProductsItemInner.d.ts +0 -2
- package/lib/components/OtherProducts/OtherProductsItemInner.js +0 -8
- package/lib/components/OtherProducts/OtherProductsItemInner.js.map +0 -1
- package/lib/components/OtherProducts/useActiveHandler.d.ts +0 -7
- package/lib/components/OtherProducts/useActiveHandler.js +0 -18
- package/lib/components/OtherProducts/useActiveHandler.js.map +0 -1
- package/mobile/dist/components/OtherProducts/OtherProductsItemInner.d.ts +0 -2
- package/mobile/dist/components/OtherProducts/OtherProductsItemInner.js +0 -10
- package/mobile/dist/components/OtherProducts/OtherProductsItemInner.js.map +0 -1
- package/mobile/dist/components/OtherProducts/useActiveHandler.d.ts +0 -7
- package/mobile/dist/components/OtherProducts/useActiveHandler.js +0 -21
- package/mobile/dist/components/OtherProducts/useActiveHandler.js.map +0 -1
- package/mobile/lib/components/OtherProducts/OtherProductsItemInner.d.ts +0 -2
- package/mobile/lib/components/OtherProducts/OtherProductsItemInner.js +0 -8
- package/mobile/lib/components/OtherProducts/OtherProductsItemInner.js.map +0 -1
- package/mobile/lib/components/OtherProducts/useActiveHandler.d.ts +0 -7
- package/mobile/lib/components/OtherProducts/useActiveHandler.js +0 -18
- package/mobile/lib/components/OtherProducts/useActiveHandler.js.map +0 -1
- package/mobile/src/components/OtherProducts/OtherProductsItemInner.tsx +0 -14
- package/mobile/src/components/OtherProducts/useActiveHandler.ts +0 -24
- package/src/components/OtherProducts/OtherProductsItemInner.tsx +0 -14
- package/src/components/OtherProducts/useActiveHandler.ts +0 -24
|
@@ -20,14 +20,14 @@ export const Headline = JSX<HeadlineProps>(
|
|
|
20
20
|
const STYLE_MAPS = HEADLINE_BLOCK_STYLE_MAPS[bgColorHeadline];
|
|
21
21
|
return (
|
|
22
22
|
<section className={`px-4 py-6 ${STYLE_MAPS.background} ${className}`}>
|
|
23
|
-
{title
|
|
23
|
+
{title ? (
|
|
24
24
|
<Heading
|
|
25
25
|
headingType="h2"
|
|
26
26
|
className={`${STYLE_MAPS.text} ${ALIGN_TEXT[align]}`}
|
|
27
27
|
title={title}
|
|
28
28
|
/>
|
|
29
|
-
)}
|
|
30
|
-
{description
|
|
29
|
+
) : null}
|
|
30
|
+
{description ? (
|
|
31
31
|
<p
|
|
32
32
|
className={`font-normal text-m-md ${STYLE_MAPS.description} ${ALIGN_TEXT[align]} ${
|
|
33
33
|
title ? 'mt-2.5' : ''
|
|
@@ -35,7 +35,7 @@ export const Headline = JSX<HeadlineProps>(
|
|
|
35
35
|
>
|
|
36
36
|
{description}
|
|
37
37
|
</p>
|
|
38
|
-
)}
|
|
38
|
+
) : null}
|
|
39
39
|
{image?.src && (
|
|
40
40
|
<div className="mt-5 mx-auto flex justify-center">
|
|
41
41
|
<Img image={image} />
|
|
@@ -19,18 +19,18 @@ export const Headline = JSX<HeadlineProps>(
|
|
|
19
19
|
const STYLE_MAPS = HEADLINE_BLOCK_STYLE_MAPS[bgColorHeadline];
|
|
20
20
|
return (
|
|
21
21
|
<section className={`p-[50px] ${STYLE_MAPS.background} ${className}`} id={anchor}>
|
|
22
|
-
{title
|
|
22
|
+
{title ? (
|
|
23
23
|
<Heading
|
|
24
24
|
headingType="h2"
|
|
25
25
|
className={`text-primary-text ${STYLE_MAPS.text} ${ALIGN_TEXT[align]}`}
|
|
26
26
|
title={title}
|
|
27
27
|
/>
|
|
28
|
-
)}
|
|
29
|
-
{description
|
|
28
|
+
) : null}
|
|
29
|
+
{description ? (
|
|
30
30
|
<p className={`font-normal text-base mt-4 ${STYLE_MAPS.text} ${ALIGN_TEXT[align]}`}>
|
|
31
31
|
{description}
|
|
32
32
|
</p>
|
|
33
|
-
)}
|
|
33
|
+
) : null}
|
|
34
34
|
</section>
|
|
35
35
|
);
|
|
36
36
|
},
|
|
@@ -2,7 +2,7 @@ import type { BlockVersionWithTransparent } from '../../model/BlockVersion';
|
|
|
2
2
|
import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
|
|
3
3
|
import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
|
|
4
4
|
import type { ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
5
|
-
import type { AlignType } from '
|
|
5
|
+
import type { AlignType } from '../../model/AlignType';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* @title Заголовок
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import type { UniBlockProps } from '../../types';
|
|
3
3
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
4
|
-
import type { AlignType } from '
|
|
4
|
+
import type { AlignType } from '../../model/AlignType';
|
|
5
5
|
import type { LinkColumnsMode, LinkDocsContent } from './LinkDocsContent';
|
|
6
6
|
import { LinkDocsList } from './LinkDocsList';
|
|
7
7
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { LinkProps } from '../../model/LinkProps';
|
|
2
|
-
import type { AlignType } from '
|
|
2
|
+
import type { AlignType } from '../../model/AlignType';
|
|
3
3
|
import type { ListOrientation } from '../../model/ListOrientation';
|
|
4
4
|
import type { Picture } from '../../model/Picture';
|
|
5
5
|
|
|
@@ -28,13 +28,13 @@ export const MobileAppTile = JSX<MobileAppTileProps>(
|
|
|
28
28
|
<BaseTile
|
|
29
29
|
context={context}
|
|
30
30
|
title={
|
|
31
|
-
title
|
|
31
|
+
title ? (
|
|
32
32
|
<Heading
|
|
33
33
|
headingType="h3"
|
|
34
34
|
title={title}
|
|
35
35
|
className={`whitespace-pre-wrap max-w-[600px] mb-[30px]`}
|
|
36
36
|
/>
|
|
37
|
-
)
|
|
37
|
+
) : null
|
|
38
38
|
}
|
|
39
39
|
buttons={
|
|
40
40
|
buttons?.length ? (
|
|
@@ -1,42 +1,52 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type {
|
|
3
|
-
import {
|
|
2
|
+
import type { VNode } from '../../model/VNode';
|
|
3
|
+
import type { ColorPalette, UniBlockProps } from '../../types';
|
|
4
|
+
import { renderBlocksList } from '../../ui-kit/BlocksList/renderBlocksList';
|
|
5
|
+
import { Foldable } from '../../ui-kit/Foldable/Foldable';
|
|
4
6
|
import type { BlockItemCommonProps } from './OtherProductsContent';
|
|
5
|
-
import { OtherProductsItemInner } from './OtherProductsItemInner';
|
|
6
|
-
import { useActiveHandler } from './useActiveHandler';
|
|
7
|
-
import { ColorPalette } from '../../types';
|
|
8
7
|
|
|
9
8
|
export interface BlockItemProps extends BlockItemCommonProps, UniBlockProps {
|
|
10
9
|
dataTheme?: ColorPalette;
|
|
11
10
|
}
|
|
12
11
|
|
|
13
12
|
export const OtherProductsItem = JSX<BlockItemProps>(
|
|
14
|
-
({ label,
|
|
15
|
-
const
|
|
13
|
+
({ label, blocks, columns = 1, context, dataTheme, isUnfolded }) => {
|
|
14
|
+
const foldableBlocks = renderBlocksList({
|
|
16
15
|
context,
|
|
16
|
+
className: 'box-border p-5',
|
|
17
|
+
columns,
|
|
17
18
|
blocks,
|
|
18
|
-
|
|
19
|
-
});
|
|
20
|
-
|
|
19
|
+
}) as VNode[];
|
|
21
20
|
return (
|
|
22
21
|
<div className="border-0 border-b border-solid border-main-divider">
|
|
23
|
-
{
|
|
24
|
-
<
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
blocks={
|
|
22
|
+
{blocks?.length ? (
|
|
23
|
+
<Foldable
|
|
24
|
+
foldButtonDataTheme={dataTheme}
|
|
25
|
+
hiddenBlocksNum={blocks?.length}
|
|
26
|
+
blocks={foldableBlocks}
|
|
27
|
+
isUnfolded={isUnfolded}
|
|
28
28
|
context={context}
|
|
29
|
+
foldButtonLabel={label}
|
|
30
|
+
render={(children, isActive) => (
|
|
31
|
+
<Wrapper columns={columns} isActive={isActive}>
|
|
32
|
+
{children}
|
|
33
|
+
</Wrapper>
|
|
34
|
+
)}
|
|
29
35
|
/>
|
|
30
36
|
) : null}
|
|
31
|
-
<button
|
|
32
|
-
className="border-none bg-primary-main px-0 py-[26px] mb-[1px] w-full font-sans text-white text-base flex justify-center cursor-pointer"
|
|
33
|
-
data-theme={dataTheme}
|
|
34
|
-
onClick={handleToggle}
|
|
35
|
-
>
|
|
36
|
-
<span className="pr-3">{isActive ? 'Скрыть' : label}</span>
|
|
37
|
-
{hasContent ? <Icon name={icon} width="20" height="20" asSVG /> : null}
|
|
38
|
-
</button>
|
|
39
37
|
</div>
|
|
40
38
|
);
|
|
41
39
|
},
|
|
42
40
|
);
|
|
41
|
+
|
|
42
|
+
const Wrapper = JSX<{ columns: number; isActive: boolean }>(({ columns, children, isActive }) => {
|
|
43
|
+
return (
|
|
44
|
+
<div
|
|
45
|
+
className={`box-border w-full ${isActive ? 'p-9' : ''} ${
|
|
46
|
+
columns > 1 ? 'flex flex-wrap' : ''
|
|
47
|
+
}`}
|
|
48
|
+
>
|
|
49
|
+
{children}
|
|
50
|
+
</div>
|
|
51
|
+
);
|
|
52
|
+
});
|
|
@@ -35,13 +35,13 @@ export const ProductBlockInner = JSX<ProductBlockInnerProps>(
|
|
|
35
35
|
<BaseTile
|
|
36
36
|
context={context}
|
|
37
37
|
title={
|
|
38
|
-
title
|
|
38
|
+
title ? (
|
|
39
39
|
<Heading
|
|
40
40
|
headingType={headingType}
|
|
41
41
|
title={title}
|
|
42
42
|
className="whitespace-pre-wrap max-w-[600px]"
|
|
43
43
|
/>
|
|
44
|
-
)
|
|
44
|
+
) : null
|
|
45
45
|
}
|
|
46
46
|
buttons={
|
|
47
47
|
buttons?.length ? (
|
|
@@ -36,12 +36,12 @@ export const ProductBlockInner = JSX<ProductBlockInnerProps>(
|
|
|
36
36
|
title={getTitle(title, headingType)}
|
|
37
37
|
buttons={getButtons(context, buttons)}
|
|
38
38
|
>
|
|
39
|
-
{description
|
|
39
|
+
{description ? (
|
|
40
40
|
<Description
|
|
41
41
|
className={`mt-4 max-w-[600px] text-md font-light ${textColor}`}
|
|
42
42
|
description={description}
|
|
43
43
|
/>
|
|
44
|
-
)}
|
|
44
|
+
) : null}
|
|
45
45
|
{benefits?.filter((items) => items.label)?.length ? (
|
|
46
46
|
<div className="flex gap-6 mt-6">
|
|
47
47
|
{benefits.map((benefit, i) =>
|
|
@@ -67,15 +67,13 @@ export const ProductBlockInner = JSX<ProductBlockInnerProps>(
|
|
|
67
67
|
);
|
|
68
68
|
|
|
69
69
|
const getTitle = (title, headingType) => {
|
|
70
|
-
return (
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
)
|
|
78
|
-
);
|
|
70
|
+
return title ? (
|
|
71
|
+
<Heading
|
|
72
|
+
headingType={headingType}
|
|
73
|
+
title={title}
|
|
74
|
+
className="whitespace-pre-wrap max-w-[600px]"
|
|
75
|
+
/>
|
|
76
|
+
) : null;
|
|
79
77
|
};
|
|
80
78
|
|
|
81
79
|
const getButtons = (context, buttons) => {
|
|
@@ -42,14 +42,14 @@ export const ProductTile = JSX<ProductTileProps>(
|
|
|
42
42
|
<BaseTile
|
|
43
43
|
context={context}
|
|
44
44
|
title={
|
|
45
|
-
title
|
|
45
|
+
title ? (
|
|
46
46
|
<Heading
|
|
47
47
|
headingType={headingType}
|
|
48
48
|
as="h3"
|
|
49
49
|
title={title}
|
|
50
50
|
className={`whitespace-pre-wrap max-w-[600px]`}
|
|
51
51
|
/>
|
|
52
|
-
)
|
|
52
|
+
) : null
|
|
53
53
|
}
|
|
54
54
|
buttons={
|
|
55
55
|
buttons?.length ? (
|
|
@@ -87,20 +87,20 @@ const renderNavButtons = ({
|
|
|
87
87
|
|
|
88
88
|
return (
|
|
89
89
|
<div>
|
|
90
|
-
{showPrevButton
|
|
90
|
+
{showPrevButton ? (
|
|
91
91
|
<ArrowButton
|
|
92
92
|
className="absolute top-1/2 left-8 z-10 mt-6"
|
|
93
93
|
onClick={handlePrevClick}
|
|
94
94
|
ariaLabel="Пролистать влево"
|
|
95
95
|
/>
|
|
96
|
-
)}
|
|
97
|
-
{showNextButton
|
|
96
|
+
) : null}
|
|
97
|
+
{showNextButton ? (
|
|
98
98
|
<ArrowButton
|
|
99
99
|
className="absolute top-1/2 right-8 z-10 mt-6 rotate-180"
|
|
100
100
|
onClick={handleNextClick}
|
|
101
101
|
ariaLabel="Пролистать вправо"
|
|
102
102
|
/>
|
|
103
|
-
)}
|
|
103
|
+
) : null}
|
|
104
104
|
</div>
|
|
105
105
|
);
|
|
106
106
|
};
|
|
@@ -53,14 +53,14 @@ export const StepsBlock = JSX<StepsBlockProps>(
|
|
|
53
53
|
className={`box-border font-sans bg-white px-4 py-6 flex flex-col
|
|
54
54
|
${style.background} ${style.title} ${className || ''}`}
|
|
55
55
|
>
|
|
56
|
-
{title
|
|
56
|
+
{title ? (
|
|
57
57
|
<Heading headingType="h3" className={`text-center ${style.title}`} title={title} />
|
|
58
|
-
)}
|
|
59
|
-
{description
|
|
58
|
+
) : null}
|
|
59
|
+
{description ? (
|
|
60
60
|
<p className={`text-m-md text-center ${style.description} ${title && 'mt-2'}`}>
|
|
61
61
|
{description}
|
|
62
62
|
</p>
|
|
63
|
-
)}
|
|
63
|
+
) : null}
|
|
64
64
|
{steps?.length ? (
|
|
65
65
|
<div className={`box-border py-0.5 mb-0.5 mt-5`}>
|
|
66
66
|
<div className="flex flex-col justify-between gap-x-[101px]">
|
|
@@ -94,17 +94,17 @@ const renderStepTitle = (params: RenderStepTitleParams) => {
|
|
|
94
94
|
<div key={String(i)} className="flex flex-row text-center relative">
|
|
95
95
|
<div className="overflow-hidden">
|
|
96
96
|
{renderIconArea(params)}
|
|
97
|
-
{
|
|
97
|
+
{isLastStep ? null : (
|
|
98
98
|
<div className={`min-h-8 h-full w-[2px] ${style.iconConnector} ${margin}`} />
|
|
99
99
|
)}
|
|
100
100
|
</div>
|
|
101
101
|
<div
|
|
102
102
|
className={`flex flex-col justify-center h-fit ${STEPS_TILE_DESCRIPTION_HEIGHT_MAP[size]}`}
|
|
103
103
|
>
|
|
104
|
-
{step.label
|
|
104
|
+
{step.label ? (
|
|
105
105
|
<div className="font-medium text-m-title-xs m-0 text-left">{step.label}</div>
|
|
106
|
-
)}
|
|
107
|
-
{step.description
|
|
106
|
+
) : null}
|
|
107
|
+
{step.description ? (
|
|
108
108
|
<div
|
|
109
109
|
className={`font-normal text-sm ${style.description} text-left ${
|
|
110
110
|
step.label ? 'mt-1' : ''
|
|
@@ -112,7 +112,7 @@ const renderStepTitle = (params: RenderStepTitleParams) => {
|
|
|
112
112
|
>
|
|
113
113
|
{step.description}
|
|
114
114
|
</div>
|
|
115
|
-
)}
|
|
115
|
+
) : null}
|
|
116
116
|
</div>
|
|
117
117
|
</div>
|
|
118
118
|
</div>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { Picture } from '../../model/Picture';
|
|
1
2
|
import { context } from '../../setup-fixture';
|
|
2
3
|
import { TariffsTable } from './TariffsTable';
|
|
3
|
-
import type { Picture } from '../../model/Picture';
|
|
4
4
|
import type { TariffsTableColumn, TariffsTableRowHeader } from './TariffsTableContent';
|
|
5
5
|
|
|
6
6
|
const image: Picture = {
|
|
@@ -158,6 +158,7 @@ export default {
|
|
|
158
158
|
context={context}
|
|
159
159
|
rowHeaders={rowHeaders}
|
|
160
160
|
columns={columns.slice(0, 1)}
|
|
161
|
+
hiddenRowsNum={2}
|
|
161
162
|
/>
|
|
162
163
|
</div>
|
|
163
164
|
),
|
|
@@ -170,6 +171,7 @@ export default {
|
|
|
170
171
|
context={context}
|
|
171
172
|
rowHeaders={rowHeaders}
|
|
172
173
|
columns={columns.slice(0, 2)}
|
|
174
|
+
hiddenRowsNum={2}
|
|
173
175
|
/>
|
|
174
176
|
</div>
|
|
175
177
|
),
|
|
@@ -182,6 +184,7 @@ export default {
|
|
|
182
184
|
context={context}
|
|
183
185
|
rowHeaders={rowHeaders}
|
|
184
186
|
columns={columns.slice(0, 3)}
|
|
187
|
+
hiddenRowsNum={2}
|
|
185
188
|
/>
|
|
186
189
|
</div>
|
|
187
190
|
),
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useTableArrowScrollControl } from '../../hooks/useTableArrowScrollControl';
|
|
3
|
+
import type { VNode } from '../../model/VNode';
|
|
3
4
|
import type { UniBlockProps } from '../../types';
|
|
5
|
+
import { Foldable } from '../../ui-kit/Foldable/Foldable';
|
|
4
6
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
5
7
|
import { TableArrowScrollControl } from '../../ui-kit/TableArrowScrollControl/TableArrowScrollControl';
|
|
8
|
+
import { TableArrowScrollControlProps } from '../../ui-kit/TableArrowScrollControl/TableArrowScrollControlProps';
|
|
6
9
|
import { COLS_LENGTH_FOR_SCROLL } from './constants';
|
|
7
10
|
import type {
|
|
8
11
|
TariffsTableCellData,
|
|
@@ -15,7 +18,16 @@ import { TariffsTableRow } from './TariffsTableRow';
|
|
|
15
18
|
export interface TariffsTableProps extends TariffsTableContent, UniBlockProps {}
|
|
16
19
|
|
|
17
20
|
export const TariffsTable = JSX<TariffsTableProps>(
|
|
18
|
-
({
|
|
21
|
+
({
|
|
22
|
+
className,
|
|
23
|
+
context,
|
|
24
|
+
title,
|
|
25
|
+
description,
|
|
26
|
+
rowHeaders,
|
|
27
|
+
columns,
|
|
28
|
+
anchor = null,
|
|
29
|
+
hiddenRowsNum = 0,
|
|
30
|
+
}) => {
|
|
19
31
|
const [activeCardIndex, setActiveCardIndex] = context.useState(0);
|
|
20
32
|
|
|
21
33
|
const colData = getColData(columns);
|
|
@@ -27,7 +39,15 @@ export const TariffsTable = JSX<TariffsTableProps>(
|
|
|
27
39
|
activeCardIndex,
|
|
28
40
|
setActiveCardIndex,
|
|
29
41
|
});
|
|
30
|
-
|
|
42
|
+
|
|
43
|
+
const foldableBlocks = rowData?.map((row, i, { length }) => (
|
|
44
|
+
<TariffsTableRow
|
|
45
|
+
key={String(i)}
|
|
46
|
+
row={row}
|
|
47
|
+
isLastRow={i + 1 === length}
|
|
48
|
+
activeCardIndex={activeCardIndex}
|
|
49
|
+
/>
|
|
50
|
+
));
|
|
31
51
|
|
|
32
52
|
return (
|
|
33
53
|
<section
|
|
@@ -45,22 +65,17 @@ export const TariffsTable = JSX<TariffsTableProps>(
|
|
|
45
65
|
) : null}
|
|
46
66
|
{description ? <div className="mb-9 text-center text-m-base">{description}</div> : null}
|
|
47
67
|
{rowData?.length ? (
|
|
48
|
-
<
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
</div>
|
|
60
|
-
{isScrollAvailable ? (
|
|
61
|
-
<div className="absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white" />
|
|
62
|
-
) : null}
|
|
63
|
-
</div>
|
|
68
|
+
<Foldable
|
|
69
|
+
blocks={foldableBlocks}
|
|
70
|
+
hiddenBlocksNum={hiddenRowsNum}
|
|
71
|
+
context={context}
|
|
72
|
+
render={(children) => (
|
|
73
|
+
<Wrapper tableArrowScrollControlProps={tableArrowScrollControlProps}>
|
|
74
|
+
{children}
|
|
75
|
+
</Wrapper>
|
|
76
|
+
)}
|
|
77
|
+
foldButtonLabel="Развернуть"
|
|
78
|
+
/>
|
|
64
79
|
) : null}
|
|
65
80
|
</section>
|
|
66
81
|
);
|
|
@@ -81,3 +96,25 @@ const getRowData = (
|
|
|
81
96
|
header,
|
|
82
97
|
data: colData.map((col) => col?.[i] || [{}]),
|
|
83
98
|
}));
|
|
99
|
+
|
|
100
|
+
const Wrapper = JSX<
|
|
101
|
+
{
|
|
102
|
+
tableArrowScrollControlProps: TableArrowScrollControlProps;
|
|
103
|
+
},
|
|
104
|
+
any,
|
|
105
|
+
VNode
|
|
106
|
+
>(({ children, tableArrowScrollControlProps }) => {
|
|
107
|
+
const { isScrollAvailable } = tableArrowScrollControlProps;
|
|
108
|
+
|
|
109
|
+
return (
|
|
110
|
+
<div role="table">
|
|
111
|
+
<div className="relative">
|
|
112
|
+
{children}
|
|
113
|
+
<TableArrowScrollControl {...tableArrowScrollControlProps} />
|
|
114
|
+
</div>
|
|
115
|
+
{isScrollAvailable ? (
|
|
116
|
+
<div className="absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white" />
|
|
117
|
+
) : null}
|
|
118
|
+
</div>
|
|
119
|
+
);
|
|
120
|
+
});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { CellData } from '../ComparisonTable/ComparisonTableContent';
|
|
2
1
|
import type { ListOrientation } from '../../model/ListOrientation';
|
|
3
|
-
import type {
|
|
2
|
+
import type { Picture } from '../../model/Picture';
|
|
4
3
|
import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
|
|
5
|
-
import type { ListContent } from '../../ui-kit/List/ListContent';
|
|
6
|
-
import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
|
|
7
4
|
import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
|
|
8
|
-
import {
|
|
5
|
+
import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
|
|
6
|
+
import type { ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
7
|
+
import type { ListContent } from '../../ui-kit/List/ListContent';
|
|
8
|
+
import type { CellData } from '../ComparisonTable/ComparisonTableContent';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @title Ряд
|
|
@@ -58,6 +58,8 @@ export type TariffsTableContent = HeadingContent &
|
|
|
58
58
|
rowHeaders?: TariffsTableRowHeader[];
|
|
59
59
|
/** @title Отображать элементы в моб. версии (прокрутка shift+mouseScroll) */
|
|
60
60
|
orientation?: ListOrientation;
|
|
61
|
+
/** @title Скрывать строк */
|
|
62
|
+
hiddenRowsNum?: number;
|
|
61
63
|
};
|
|
62
64
|
|
|
63
65
|
/** @hidden */
|
|
@@ -49,12 +49,12 @@ export const TextBlock = JSX<TextBlockProps>(
|
|
|
49
49
|
{iconVersion === 'small' ? renderIcon(textBlockStyleMap.icon) : null}
|
|
50
50
|
{iconVersion === 'big' ? renderImage(image) : null}
|
|
51
51
|
<div className="py-0.5">
|
|
52
|
-
{title
|
|
52
|
+
{title ? (
|
|
53
53
|
<div className={`font-medium text-base mb-1 ${textBlockStyleMap.title}`}>{title}</div>
|
|
54
|
-
)}
|
|
55
|
-
{description
|
|
54
|
+
) : null}
|
|
55
|
+
{description ? (
|
|
56
56
|
<div className={`text-sm ${textBlockStyleMap.description}`}>{description}</div>
|
|
57
|
-
)}
|
|
57
|
+
) : null}
|
|
58
58
|
</div>
|
|
59
59
|
</section>
|
|
60
60
|
);
|
|
@@ -47,7 +47,7 @@ export const Tile = JSX<TileProps>((props) => {
|
|
|
47
47
|
<BaseTile
|
|
48
48
|
context={context}
|
|
49
49
|
title={
|
|
50
|
-
title
|
|
50
|
+
title ? (
|
|
51
51
|
<Heading
|
|
52
52
|
headingType={headingType}
|
|
53
53
|
as="h3"
|
|
@@ -55,7 +55,7 @@ export const Tile = JSX<TileProps>((props) => {
|
|
|
55
55
|
className={`whitespace-pre-wrap max-w-[600px] ${title ? 'mb-3' : ''}
|
|
56
56
|
${version === 'primary' ? 'text-primary-text' : ''}`}
|
|
57
57
|
/>
|
|
58
|
-
)
|
|
58
|
+
) : null
|
|
59
59
|
}
|
|
60
60
|
buttons={
|
|
61
61
|
buttons?.length ? (
|
|
@@ -68,12 +68,12 @@ export const Tile = JSX<TileProps>((props) => {
|
|
|
68
68
|
}
|
|
69
69
|
image={image?.src && <Img className="mt-auto ml-7" image={image} />}
|
|
70
70
|
>
|
|
71
|
-
{description
|
|
71
|
+
{description ? (
|
|
72
72
|
<Description
|
|
73
73
|
className="max-w-[600px] text-title-new-sm font-light"
|
|
74
74
|
description={description}
|
|
75
75
|
/>
|
|
76
|
-
)}
|
|
76
|
+
) : null}
|
|
77
77
|
{children}
|
|
78
78
|
{renderList(items, version)}
|
|
79
79
|
</BaseTile>
|