@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
package/bundle/bundle.umd.js
CHANGED
|
@@ -208,6 +208,7 @@
|
|
|
208
208
|
var IconMap;
|
|
209
209
|
(function (IconMap) {
|
|
210
210
|
IconMap["ActualBalanceIcon"] = "ActualBalanceIcon";
|
|
211
|
+
IconMap["AirPlane"] = "AirPlane";
|
|
211
212
|
IconMap["AppleIcon"] = "AppleIcon";
|
|
212
213
|
IconMap["ArrowDownIcon"] = "ArrowDownIcon";
|
|
213
214
|
IconMap["ArrowLeftIcon"] = "ArrowLeftIcon";
|
|
@@ -226,7 +227,9 @@
|
|
|
226
227
|
IconMap["CardPosIcon"] = "CardPosIcon";
|
|
227
228
|
IconMap["CardTickIcon"] = "CardTickIcon";
|
|
228
229
|
IconMap["CardWithGemIcon"] = "CardWithGemIcon";
|
|
230
|
+
IconMap["CarIcon"] = "CarIcon";
|
|
229
231
|
IconMap["ChartSquareIcon"] = "ChartSquareIcon";
|
|
232
|
+
IconMap["CinemaIcon"] = "CinemaIcon";
|
|
230
233
|
IconMap["ClockIcon"] = "ClockIcon";
|
|
231
234
|
IconMap["CloseIcon"] = "CloseIcon";
|
|
232
235
|
IconMap["ComfortableCompIcon"] = "ComfortableCompIcon";
|
|
@@ -234,6 +237,7 @@
|
|
|
234
237
|
IconMap["DiscountShapeIcon"] = "DiscountShapeIcon";
|
|
235
238
|
IconMap["DocIcon"] = "DocIcon";
|
|
236
239
|
IconMap["DocIconMonoColor"] = "DocIconMonoColor";
|
|
240
|
+
IconMap["DocsIcon"] = "DocsIcon";
|
|
237
241
|
IconMap["DocumentTextIcon"] = "DocumentTextIcon";
|
|
238
242
|
IconMap["DollarIcon"] = "DollarIcon";
|
|
239
243
|
IconMap["EarthIcon"] = "EarthIcon";
|
|
@@ -267,13 +271,16 @@
|
|
|
267
271
|
IconMap["PersonalCardIcon"] = "PersonalCardIcon";
|
|
268
272
|
IconMap["PlayMarketIcon"] = "PlayMarketIcon";
|
|
269
273
|
IconMap["PlusIcon"] = "PlusIcon";
|
|
274
|
+
IconMap["PowerIcon"] = "PowerIcon";
|
|
270
275
|
IconMap["Profile2UserIcon"] = "Profile2UserIcon";
|
|
271
276
|
IconMap["ProfileIcon"] = "ProfileIcon";
|
|
277
|
+
IconMap["PumpkinIcon"] = "PumpkinIcon";
|
|
272
278
|
IconMap["RoundRubleIcon"] = "RoundRubleIcon";
|
|
273
279
|
IconMap["SafeIcon"] = "SafeIcon";
|
|
274
280
|
IconMap["ShieldTickIcon"] = "ShieldTickIcon";
|
|
275
281
|
IconMap["SignDocsIcon"] = "SignDocsIcon";
|
|
276
282
|
IconMap["SmallClockIcon"] = "SmallClockIcon";
|
|
283
|
+
IconMap["SoundIcon"] = "SoundIcon";
|
|
277
284
|
IconMap["TelegramIcon"] = "TelegramIcon";
|
|
278
285
|
IconMap["UnionPayIcon"] = "UnionPayIcon";
|
|
279
286
|
IconMap["UserTickIcon"] = "UserTickIcon";
|
|
@@ -283,15 +290,17 @@
|
|
|
283
290
|
IconMap["WalletAddIcon"] = "WalletAddIcon";
|
|
284
291
|
IconMap["WalletIcon"] = "WalletIcon";
|
|
285
292
|
IconMap["WalletWithMoneyIcon"] = "WalletWithMoneyIcon";
|
|
293
|
+
IconMap["WateringCan"] = "WateringCan";
|
|
286
294
|
})(IconMap || (IconMap = {}));
|
|
287
295
|
var IconTitleMap;
|
|
288
296
|
(function (IconTitleMap) {
|
|
289
297
|
IconTitleMap["ActualBalanceIcon"] = "\u0414\u0435\u043D\u044C\u0433\u0438";
|
|
298
|
+
IconTitleMap["AirPlane"] = "\u0421\u0430\u043C\u043E\u043B\u0435\u0442";
|
|
290
299
|
IconTitleMap["AppleIcon"] = "\u041B\u043E\u0433\u043E \u00ABApple\u00BB";
|
|
291
300
|
IconTitleMap["ArrowDownIcon"] = "\u0421\u0442\u0440\u0435\u043B\u043A\u0430 '\u0412\u043D\u0438\u0437'";
|
|
292
301
|
IconTitleMap["ArrowLeftIcon"] = "\u0421\u0442\u0440\u0435\u043B\u043A\u0430";
|
|
293
|
-
IconTitleMap["ArrowsRewindRight"] = "
|
|
294
|
-
IconTitleMap["ArrowUpIcon"] = "
|
|
302
|
+
IconTitleMap["ArrowsRewindRight"] = "\u0421\u0442\u0440\u0435\u043B\u043A\u0430";
|
|
303
|
+
IconTitleMap["ArrowUpIcon"] = "\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445";
|
|
295
304
|
IconTitleMap["AtmIcon"] = "\u0411\u0430\u043D\u043A\u043E\u043C\u0430\u0442";
|
|
296
305
|
IconTitleMap["BankIcon"] = "\u0411\u0430\u043D\u043A";
|
|
297
306
|
IconTitleMap["BurgerIcon"] = "\u0411\u0443\u0440\u0433\u0435\u0440";
|
|
@@ -305,7 +314,9 @@
|
|
|
305
314
|
IconTitleMap["CardPosIcon"] = "\u041A\u0440\u0435\u0434. \u043A\u0430\u0440\u0442\u0430 \u043F\u043E\u0434 \u043D\u0430\u043A\u043B\u043E\u043D\u043E\u043C";
|
|
306
315
|
IconTitleMap["CardTickIcon"] = "\u041A\u0440\u0435\u0434. \u043A\u0430\u0440\u0442\u0430 \u0441 \u0433\u0430\u043B\u043E\u0447\u043A\u043E\u0439";
|
|
307
316
|
IconTitleMap["CardWithGemIcon"] = "\u041A\u0430\u0440\u0442\u0430 \u0441 \u0434\u0440\u0430\u0433\u043E\u0446\u0435\u043D\u043D\u043E\u0441\u0442\u044F\u043C\u0438";
|
|
317
|
+
IconTitleMap["CarIcon"] = "\u041C\u0430\u0448\u0438\u043D\u0430";
|
|
308
318
|
IconTitleMap["ChartSquareIcon"] = "\u0414\u0435\u043D\u044C\u0433\u0438 \u0432\u043D\u0443\u0442\u0440\u0438 \u043A\u043E\u0448\u0435\u043B\u044C\u043A\u0430";
|
|
319
|
+
IconTitleMap["CinemaIcon"] = "\u041A\u0438\u043D\u043E";
|
|
309
320
|
IconTitleMap["ClockIcon"] = "\u0427\u0430\u0441\u044B";
|
|
310
321
|
IconTitleMap["CloseIcon"] = "\u041A\u0440\u0435\u0441\u0442\u0438\u043A";
|
|
311
322
|
IconTitleMap["ComfortableCompIcon"] = "\u041A\u0440\u0435\u0441\u043B\u043E";
|
|
@@ -313,6 +324,7 @@
|
|
|
313
324
|
IconTitleMap["DiscountShapeIcon"] = "\u0421\u043A\u0438\u0434\u043A\u0430";
|
|
314
325
|
IconTitleMap["DocIcon"] = "\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442";
|
|
315
326
|
IconTitleMap["DocIconMonoColor"] = "\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442 (\u043E\u0434\u043D\u043E\u0446\u0432\u0435\u0442\u043D\u044B\u0439)";
|
|
327
|
+
IconTitleMap["DocsIcon"] = "\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u044B";
|
|
316
328
|
IconTitleMap["DocumentTextIcon"] = "\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442 \u0441 \u0442\u0435\u043A\u0441\u0442\u043E\u043C";
|
|
317
329
|
IconTitleMap["DollarIcon"] = "\u0414\u043E\u043B\u043B\u0430\u0440";
|
|
318
330
|
IconTitleMap["EarthIcon"] = "\u0417\u0435\u043C\u043B\u044F";
|
|
@@ -346,13 +358,16 @@
|
|
|
346
358
|
IconTitleMap["PersonalCardIcon"] = "\u041F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u0430\u044F \u043A\u0430\u0440\u0442\u0430";
|
|
347
359
|
IconTitleMap["PlayMarketIcon"] = "\u041B\u043E\u0433\u043E \u00ABPlayMarket\u00BB";
|
|
348
360
|
IconTitleMap["PlusIcon"] = "\u041F\u043B\u044E\u0441";
|
|
361
|
+
IconTitleMap["PowerIcon"] = "\u0429\u0438\u0442";
|
|
349
362
|
IconTitleMap["Profile2UserIcon"] = "\u041F\u0440\u043E\u0444\u0438\u043B\u044C, 2 \u043F\u0435\u0440\u0441\u043E\u043D\u044B";
|
|
350
363
|
IconTitleMap["ProfileIcon"] = "\u041F\u0440\u043E\u0444\u0438\u043B\u044C";
|
|
364
|
+
IconTitleMap["PumpkinIcon"] = "\u0422\u044B\u043A\u0432\u0430";
|
|
351
365
|
IconTitleMap["RoundRubleIcon"] = "\u0420\u0443\u0431\u043B\u044C (\u043A\u0440\u0443\u0433.)";
|
|
352
366
|
IconTitleMap["SafeIcon"] = "\u0421\u0435\u0439\u0444";
|
|
353
367
|
IconTitleMap["ShieldTickIcon"] = "\u0411\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u044C";
|
|
354
368
|
IconTitleMap["SignDocsIcon"] = "\u041F\u043E\u0434\u043F\u0438\u0441\u0430\u043D\u043D\u044B\u0435 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u044B";
|
|
355
369
|
IconTitleMap["SmallClockIcon"] = "\u041C\u0430\u043B\u0435\u043D\u044C\u043A\u0438\u0435 \u0447\u0430\u0441\u044B";
|
|
370
|
+
IconTitleMap["SoundIcon"] = "\u0417\u0432\u0443\u043A";
|
|
356
371
|
IconTitleMap["TelegramIcon"] = "\u041B\u043E\u0433\u043E \u00ABTelegram\u00BB";
|
|
357
372
|
IconTitleMap["UnionPayIcon"] = "UnionPay";
|
|
358
373
|
IconTitleMap["UserTickIcon"] = "\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C";
|
|
@@ -362,6 +377,7 @@
|
|
|
362
377
|
IconTitleMap["WalletAddIcon"] = "\u041A\u043E\u0448\u0435\u043B\u0451\u043A \u0441 \u043F\u043B\u044E\u0441\u043E\u043C";
|
|
363
378
|
IconTitleMap["WalletIcon"] = "\u041A\u043E\u0448\u0435\u043B\u0451\u043A";
|
|
364
379
|
IconTitleMap["WalletWithMoneyIcon"] = "\u041A\u043E\u0448\u0435\u043B\u0451\u043A \u0441 \u0434\u0435\u043D\u044C\u0433\u0430\u043C\u0438";
|
|
380
|
+
IconTitleMap["WateringCan"] = "\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0440\u043E\u0434\u0443\u043A\u0442";
|
|
365
381
|
})(IconTitleMap || (IconTitleMap = {}));
|
|
366
382
|
|
|
367
383
|
const projectSettings = new (class {
|
|
@@ -465,7 +481,7 @@
|
|
|
465
481
|
|
|
466
482
|
const Headline = JSX(({ bgColorHeadline = 'transparent', align = 'left', className = '', title, description, anchor = null, }) => {
|
|
467
483
|
const STYLE_MAPS = HEADLINE_BLOCK_STYLE_MAPS[bgColorHeadline];
|
|
468
|
-
return (jsxs("section", { className: `p-[50px] ${STYLE_MAPS.background} ${className}`, id: anchor, children: [title
|
|
484
|
+
return (jsxs("section", { className: `p-[50px] ${STYLE_MAPS.background} ${className}`, id: anchor, children: [title ? (jsx(Heading, { headingType: "h2", className: `text-primary-text ${STYLE_MAPS.text} ${ALIGN_TEXT[align]}`, title: title })) : null, description ? (jsx("p", { className: `font-normal text-base mt-4 ${STYLE_MAPS.text} ${ALIGN_TEXT[align]}`, children: description })) : null] }));
|
|
469
485
|
});
|
|
470
486
|
|
|
471
487
|
const LinkDocsListItemBase = JSX(({ className, iconClassName, textClassName, suffixClassName, doc, icon }) => {
|
|
@@ -725,10 +741,10 @@
|
|
|
725
741
|
|
|
726
742
|
const ProductBlockInner = JSX(({ className = '', context, title, headingType = 'h2', description, benefits, benefitsVersion = 'normal', buttons, image, items, version = 'primary', isDotted = true, textBlockClassName = '', }) => {
|
|
727
743
|
const textColor = version === 'secondary' ? 'text-white' : 'text-primary-text';
|
|
728
|
-
return (jsxs("div", { className: `flex grow justify-between items-stretch ${className}`, children: [jsx("div", { className: `flex flex-col ${textBlockClassName}`, children: jsxs(BaseTile, { context: context, title: getTitle(title, headingType), buttons: getButtons(context, buttons), children: [description
|
|
744
|
+
return (jsxs("div", { className: `flex grow justify-between items-stretch ${className}`, children: [jsx("div", { className: `flex flex-col ${textBlockClassName}`, children: jsxs(BaseTile, { context: context, title: getTitle(title, headingType), buttons: getButtons(context, buttons), children: [description ? (jsx(Description, { className: `mt-4 max-w-[600px] text-md font-light ${textColor}`, description: description })) : null, benefits?.filter((items) => items.label)?.length ? (jsx("div", { className: "flex gap-6 mt-6", children: benefits.map((benefit, i) => renderBenefit$1({ benefit, version, benefitsVersion }, i)) })) : null, items?.length ? (jsx(List, { className: "mt-5 text-title-2xs font-light", items: items, itemClassName: "mb-[7px]", version: version, isDotted: isDotted })) : null] }) }), image?.src && jsx(Img, { className: "mt-[-50px]", image: image })] }));
|
|
729
745
|
});
|
|
730
746
|
const getTitle = (title, headingType) => {
|
|
731
|
-
return
|
|
747
|
+
return title ? (jsx(Heading, { headingType: headingType, title: title, className: "whitespace-pre-wrap max-w-[600px]" })) : null;
|
|
732
748
|
};
|
|
733
749
|
const getButtons = (context, buttons) => {
|
|
734
750
|
return buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex mt-9 gap-4" })) : null;
|
|
@@ -775,7 +791,7 @@
|
|
|
775
791
|
};
|
|
776
792
|
const TextBlock = JSX(({ title, description, blockVersion = 'primary', iconVersion, image, className, anchor = null, }) => {
|
|
777
793
|
const textBlockStyleMap = textBlockStyleMaps[blockVersion];
|
|
778
|
-
return (jsxs("section", { className: `font-sans px-9 py-4 flex ${textBlockStyleMap.background} ${className || ''}`, id: anchor, children: [iconVersion === 'small' ? renderIcon$1(textBlockStyleMap.icon) : null, iconVersion === 'big' ? renderImage(image) : null, jsxs("div", { className: "py-0.5", children: [title
|
|
794
|
+
return (jsxs("section", { className: `font-sans px-9 py-4 flex ${textBlockStyleMap.background} ${className || ''}`, id: anchor, children: [iconVersion === 'small' ? renderIcon$1(textBlockStyleMap.icon) : null, iconVersion === 'big' ? renderImage(image) : null, jsxs("div", { className: "py-0.5", children: [title ? (jsx("div", { className: `font-medium text-base mb-1 ${textBlockStyleMap.title}`, children: title })) : null, description ? (jsx("div", { className: `text-sm ${textBlockStyleMap.description}`, children: description })) : null] })] }));
|
|
779
795
|
});
|
|
780
796
|
function renderIcon$1(className) {
|
|
781
797
|
return (jsx("div", { className: "pt-1.5 pl-1 pr-4", children: jsx("div", { className: `rounded-full h-4 w-4 text-center text-xs ${className}`, children: "i" }) }));
|
|
@@ -822,8 +838,8 @@
|
|
|
822
838
|
};
|
|
823
839
|
const Tile = JSX((props) => {
|
|
824
840
|
const { context, title, headingType = 'h3', description, items, children, buttons, image, className = '', version = 'primary', role, anchor = null, } = props;
|
|
825
|
-
return (jsx("section", { className: `overflow-hidden font-sans p-9 pr-3 box-border ${className} ${tileStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, role: role, id: anchor, children: jsxs(BaseTile, { context: context, title: title
|
|
826
|
-
${version === 'primary' ? 'text-primary-text' : ''}` })), buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons.map((button) => ({ ...button, className: 'w-[158px]' })), className: "flex mt-9 gap-3" })) : null, image: image?.src && jsx(Img, { className: "mt-auto ml-7", image: image }), children: [description
|
|
841
|
+
return (jsx("section", { className: `overflow-hidden font-sans p-9 pr-3 box-border ${className} ${tileStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, role: role, id: anchor, children: jsxs(BaseTile, { context: context, title: title ? (jsx(Heading, { headingType: headingType, as: "h3", title: title, className: `whitespace-pre-wrap max-w-[600px] ${title ? 'mb-3' : ''}
|
|
842
|
+
${version === 'primary' ? 'text-primary-text' : ''}` })) : null, buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons.map((button) => ({ ...button, className: 'w-[158px]' })), className: "flex mt-9 gap-3" })) : null, image: image?.src && jsx(Img, { className: "mt-auto ml-7", image: image }), children: [description ? (jsx(Description, { className: "max-w-[600px] text-title-new-sm font-light", description: description })) : null, children, renderList$1(items, version)] }) }));
|
|
827
843
|
});
|
|
828
844
|
function renderList$1(items, version) {
|
|
829
845
|
return items?.length ? (jsx(List, { items: items, itemClassName: "text-title-2xs font-light mt-2", version: version === 'primary' ? 'tile' : 'tile-white' })) : null;
|
|
@@ -834,7 +850,7 @@
|
|
|
834
850
|
secondary: 'bg-primary-main text-white',
|
|
835
851
|
};
|
|
836
852
|
const ProductTile = JSX(({ context, className = '', title, headingType = 'h3', description, additionalDescription, benefits, buttons, image, version = 'primary', anchor = null, }) => {
|
|
837
|
-
return (jsx("section", { className: `bg-white overflow-hidden text-primary-text font-sans p-9 box-border ${className} ${productTileStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, id: anchor, children: jsxs(BaseTile, { context: context, title: title
|
|
853
|
+
return (jsx("section", { className: `bg-white overflow-hidden text-primary-text font-sans p-9 box-border ${className} ${productTileStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, id: anchor, children: jsxs(BaseTile, { context: context, title: title ? (jsx(Heading, { headingType: headingType, as: "h3", title: title, className: `whitespace-pre-wrap max-w-[600px]` })) : null, buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex mt-9 gap-3" })) : null, image: image?.src && jsx(Img, { className: "mt-auto ml-7", image: image }), children: [description ? (jsx(Description, { className: "mt-4 max-w-[600px]", description: description })) : null, renderBenefits(benefits, version), additionalDescription
|
|
838
854
|
? renderAdditionalDescription(additionalDescription, version)
|
|
839
855
|
: null] }) }));
|
|
840
856
|
});
|
|
@@ -915,7 +931,7 @@
|
|
|
915
931
|
const showNextButton = isGalleryScrollAvailable &&
|
|
916
932
|
cards?.length - activeCardIndex > galleryLengthForScrollMap[version];
|
|
917
933
|
const showPrevButton = isGalleryScrollAvailable && activeCardIndex > 0;
|
|
918
|
-
return (jsxs("section", { className: `relative font-sans text-primary-text bg-white p-[42px] overflow-hidden ${className}`, id: anchor, children: [jsx(GalleryContainer, { context: context, cards: cards, version: version, activeCardIndex: activeCardIndex, ...rest }), showPrevButton
|
|
934
|
+
return (jsxs("section", { className: `relative font-sans text-primary-text bg-white p-[42px] overflow-hidden ${className}`, id: anchor, children: [jsx(GalleryContainer, { context: context, cards: cards, version: version, activeCardIndex: activeCardIndex, ...rest }), showPrevButton ? (jsx(ArrowButton, { className: "absolute top-1/2 left-8 z-10 mt-[25px]", onClick: handlePrevClick, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E", "data-block-control": "scroll-left" })) : null, showNextButton ? (jsx(ArrowButton, { className: "absolute top-1/2 right-8 z-10 mt-[25px] rotate-180", onClick: handleNextClick, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E", "data-block-control": "scroll-right" })) : null, jsx("div", { className: "absolute top-0 left-0 bottom-0 w-[84px] bg-opacity-from-white" }), jsx("div", { className: "absolute top-0 right-0 bottom-0 w-[100px] bg-opacity-to-white" })] }));
|
|
919
935
|
});
|
|
920
936
|
|
|
921
937
|
const Gallery = JSX((props) => jsx(GalleryInner, { ...props, version: "normal" }));
|
|
@@ -990,15 +1006,20 @@
|
|
|
990
1006
|
`, onClick: handleToggle, children: [jsx("span", { className: `text-xl pr-2.5 font-medium`, children: label }), hasContent ? (jsx(Img, { image: icon, className: "text-primary-main", width: "24", height: "24", asSVG: true })) : null] }), hasContent ? (jsx(AccordionItemInner, { isExpanded: isActive, blocks: blocks, context: context })) : null] }));
|
|
991
1007
|
});
|
|
992
1008
|
|
|
993
|
-
const
|
|
994
|
-
|
|
1009
|
+
const ALIGN_TITLE = {
|
|
1010
|
+
left: 'text-left',
|
|
1011
|
+
center: 'text-center',
|
|
1012
|
+
right: 'text-right',
|
|
1013
|
+
};
|
|
1014
|
+
const Accordion = JSX(({ title, description, accordionItems, context, className = '', anchor = null, accordionAlignTitle = 'center', }) => {
|
|
1015
|
+
return (jsxs("section", { className: `p-[50px] font-sans bg-white text-primary-text ${className}`, id: anchor, children: [title ? (jsx(Heading, { headingType: "h4", className: `mb-2.5 ${ALIGN_TITLE[accordionAlignTitle]}`, title: title })) : null, description ? jsx("div", { className: "mb-2.5 text-base", children: description }) : null, accordionItems?.length ? (jsx("ul", { className: "list-none m-0 p-0", children: accordionItems.map((item, i) => (jsx(AccordionItem, { ...item, context: context }, `AccordionItem${i}`))) })) : null] }));
|
|
995
1016
|
});
|
|
996
1017
|
|
|
997
|
-
const BenefitsBlock = JSX(({ className, title, benefits, anchor = null }) => {
|
|
998
|
-
return (jsxs("section", { className: `font-sans text-primary-text bg-white p-12 flex flex-col items-center ${className
|
|
1018
|
+
const BenefitsBlock = JSX(({ className = '', title, benefits, anchor = null }) => {
|
|
1019
|
+
return (jsxs("section", { className: `font-sans text-primary-text bg-white p-12 flex flex-col items-center ${className}`, id: anchor, children: [title ? (jsx(Heading, { headingType: "h2", className: "max-w-[47rem] text-center", title: title })) : null, benefits?.length ? (jsx("div", { className: "grid grid-cols-2 gap-8 mt-9", children: benefits.map(renderStep) })) : null] }));
|
|
999
1020
|
});
|
|
1000
1021
|
const renderStep = (benefit, i) => {
|
|
1001
|
-
return (jsxs("div", { className: "flex items-center gap-5 max-w-[500px]", children: [benefit
|
|
1022
|
+
return (jsxs("div", { className: "flex items-center gap-5 max-w-[500px]", children: [benefit?.icon ? (jsx(Img, { className: "h-[70px] w-[70px] min-w-[70px] min-h-[70px]", image: benefit.icon, width: "70", height: "70" })) : null, jsxs("div", { children: [benefit?.label ? jsx("h3", { className: "font-medium text-xl m-0", children: benefit.label }) : null, benefit?.description ? (jsx("div", { className: "font-normal text-sm mt-2", children: benefit.description })) : null] })] }, String(i)));
|
|
1002
1023
|
};
|
|
1003
1024
|
|
|
1004
1025
|
const Bonus = JSX((props) => {
|
|
@@ -1036,7 +1057,7 @@
|
|
|
1036
1057
|
const cellClasses = `mx-7 h-full ${DIVIDER_CLASSES$1} ${isFillGradient && isFirstRow ? 'border-t' : ''} ${!isLastRow ? 'border-solid' : 'border-b-0'}`;
|
|
1037
1058
|
return (jsx("div", { className: cellWrapperClasses, role: "cell", children: jsx("div", { className: cellClasses, children: cell.map((item, i) => renderCellInner$1(item, i, isFillGradient)) }) }));
|
|
1038
1059
|
});
|
|
1039
|
-
const renderCellInner$1 = ({ label, description }, i, isFillGradient) => (jsxs("div", { className: "first:pt-7 pt-6 last:pb-7", children: [label
|
|
1060
|
+
const renderCellInner$1 = ({ label, description }, i, isFillGradient) => (jsxs("div", { className: "first:pt-7 pt-6 last:pb-7", children: [label ? (jsx("h4", { className: `text-xl font-medium m-0 ${isFillGradient ? 'text-white' : ''}`, children: label })) : null, description ? (jsx("div", { className: `text-sm opacity-80 ${isFillGradient ? 'text-white' : 'text-secondary-text'}`, children: description })) : null] }, String(i)));
|
|
1040
1061
|
|
|
1041
1062
|
const TableRow = JSX(({ row: { header, data }, activeCardIndex, isColoredFirstColumn, isFirstRow, isLastRow }) => (jsxs(TableRowContainer, { children: [header?.title ? (jsx("div", { className: `text-sm py-7 ${DIVIDER_CLASSES$1} ${FIRST_CELL_CLASSES$1} ${!isLastRow ? 'border-solid' : 'border-b-0'}`, children: header.title })) : null, data?.length ? (jsx(TableCarouselContainer, { activeCardIndex: activeCardIndex, columnWidth: COLUMN_WIDTH$1, children: data.map((cell, i) => (jsx(TableCell, { cell: cell, isFirstRow: isFirstRow, isLastRow: isLastRow, isFillGradient: isColoredFirstColumn && i === 0 }, String(i)))) })) : null] })));
|
|
1042
1063
|
|
|
@@ -1717,7 +1738,7 @@
|
|
|
1717
1738
|
|
|
1718
1739
|
const SearchBar = JSX(({ className, context }) => {
|
|
1719
1740
|
const { term, setTerm } = context.useSearch();
|
|
1720
|
-
return (jsxs("form", { className: `relative ${className || ''}`, children: [jsxs("div", { className: "absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none", children: [jsx("div", { className: "w-[24px] h-[24px]", children: jsx(Img, { image: "LoupeIcon", width: "24", height: "24" }) }),
|
|
1741
|
+
return (jsxs("form", { className: `relative ${className || ''}`, children: [jsxs("div", { className: "absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none", children: [jsx("div", { className: "w-[24px] h-[24px]", children: jsx(Img, { image: "LoupeIcon", width: "24", height: "24" }) }), term ? null : (jsx("label", { htmlFor: "search-bar-input", className: "font-sans font-light text-base text-secondary-text", children: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u0430\u0439\u0442\u0443" }))] }), jsx("input", { id: "search-bar-input", className: 'h-12 pl-12 w-full peer font-sans font-light text-base text-black border border-solid rounded h-full box-border outline-none pr-[6%] border-main-divider focus:border-primary-text', value: term, onChange: (e) => setTerm(e.target.value), type: "text", name: "search-bar-input" }), jsx(Button, { version: "primary", text: "\u041D\u0430\u0439\u0442\u0438", className: "invisible peer-focus:visible absolute top-1 right-1", onClick: (e) => {
|
|
1721
1742
|
e.preventDefault();
|
|
1722
1743
|
console.log('click');
|
|
1723
1744
|
}, children: jsx("div", { className: "font-normal text-sm px-9 py-[9px]", children: "\u041D\u0430\u0439\u0442\u0438" }) })] }));
|
|
@@ -2047,7 +2068,7 @@
|
|
|
2047
2068
|
}
|
|
2048
2069
|
|
|
2049
2070
|
const MobileAppTile = JSX(({ className = '', context, title = 'Мобильное приложение', qr, buttons = [], anchor = null, }) => {
|
|
2050
|
-
return (jsx("section", { className: `bg-white text-primary-text font-sans p-9 box-border ${className} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, id: anchor, children: jsx(BaseTile, { context: context, title: title
|
|
2071
|
+
return (jsx("section", { className: `bg-white text-primary-text font-sans p-9 box-border ${className} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, id: anchor, children: jsx(BaseTile, { context: context, title: title ? (jsx(Heading, { headingType: "h3", title: title, className: `whitespace-pre-wrap max-w-[600px] mb-[30px]` })) : null, buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex mt-[30px] gap-4" })) : null, children: jsxs("div", { className: "flex items-center", children: [qr?.src && qr?.href && (jsx("a", { href: qr.href, target: "_blank", "aria-label": title, children: jsx("img", { src: qr.src, alt: title, title: title, width: "164", height: "164", className: "w-[92px] h-[92px] min-w-[92px] min-h-[92px] bg-secondary-light" }) })), jsx("span", { className: "font-light text-secondary-text ml-4", children: "\u041D\u0430\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u0430\u043C\u0435\u0440\u0443 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430 \u043D\u0430 QR-\u043A\u043E\u0434 \u0438 \u0441\u043A\u0430\u0447\u0430\u0439\u0442\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" })] }) }) }));
|
|
2051
2072
|
});
|
|
2052
2073
|
|
|
2053
2074
|
const NavigationItem = JSX(({ className, text, onClick, href, target, isActive }) => (jsx("a", { className: `bg-inherit no-underline px-4 py-2.5 cursor-pointer rounded text-sm border border-solid hover:text-primary-main ${className || ''} ${isActive ? 'border-primary-main text-primary-main' : 'border-white text-secondary-text'}`, onClick: onClick, href: href, target: target, children: text })));
|
|
@@ -2085,36 +2106,51 @@
|
|
|
2085
2106
|
return (jsx(NavigatorTabItem, { active: active, ...useLink({ router, handlerDecorator }, tab) }, tab.href));
|
|
2086
2107
|
};
|
|
2087
2108
|
|
|
2088
|
-
const
|
|
2089
|
-
|
|
2090
|
-
return (jsx("div", { className: "transition-all duration-300 max-h-0 overflow-hidden", children: jsx("div", { className: `box-border w-full p-9 ${columns > 1 ? 'flex flex-wrap' : ''}`, children: renderBlocksList({ context, className, columns, blocks }) }) }));
|
|
2091
|
-
});
|
|
2092
|
-
|
|
2093
|
-
const useActiveHandler = ({ context, blocks, initialState = false }) => {
|
|
2109
|
+
const foldableBlockClassNames = 'transition-all duration-300 max-h-0 overflow-hidden';
|
|
2110
|
+
const useActiveHandler = ({ context, initialState = false }) => {
|
|
2094
2111
|
const [isActive, setIsActive] = context.useState(initialState);
|
|
2095
|
-
const hasContent = blocks?.length;
|
|
2096
2112
|
const icon = isActive ? 'ArrowUpIcon' : 'ArrowDownIcon';
|
|
2097
|
-
const getContentBlock = ({ currentTarget }) => currentTarget.previousSibling;
|
|
2098
2113
|
const handleToggle = (e) => {
|
|
2099
|
-
|
|
2114
|
+
const currentTarget = e.currentTarget;
|
|
2115
|
+
if (!currentTarget) {
|
|
2100
2116
|
return;
|
|
2101
2117
|
}
|
|
2102
2118
|
setIsActive(!isActive);
|
|
2103
|
-
const
|
|
2119
|
+
const wrapperBlock = currentTarget.previousSibling;
|
|
2120
|
+
const contentBlock = wrapperBlock.getElementsByClassName(foldableBlockClassNames)[0];
|
|
2104
2121
|
contentBlock.style.maxHeight = contentBlock.style.maxHeight
|
|
2105
|
-
?
|
|
2122
|
+
? ''
|
|
2106
2123
|
: `${contentBlock.scrollHeight}px`;
|
|
2107
2124
|
};
|
|
2108
|
-
return {
|
|
2125
|
+
return { icon, handleToggle, isActive };
|
|
2126
|
+
};
|
|
2127
|
+
|
|
2128
|
+
const Foldable = JSX(({ blocks = [], context, hiddenBlocksNum = 0, foldButtonClasses, foldButtonLabel, foldButtonDataTheme, isUnfolded, render = (_) => _, }) => {
|
|
2129
|
+
const blocksToHide = clamp(hiddenBlocksNum, 0, blocks.length);
|
|
2130
|
+
const { icon, handleToggle, isActive } = useActiveHandler({
|
|
2131
|
+
context,
|
|
2132
|
+
initialState: isUnfolded,
|
|
2133
|
+
});
|
|
2134
|
+
return blocks ? (jsxs("div", { children: [renderBlocks(blocks, render, { blocksToHide, isActive }), hiddenBlocksNum ? (jsxs("button", { className: foldButtonClasses ||
|
|
2135
|
+
'border-none bg-primary-main px-0 py-[26px] mb-[1px] w-full font-sans text-white text-base flex justify-center cursor-pointer', "data-theme": foldButtonDataTheme, onClick: handleToggle, children: [jsx("span", { className: "pr-3", children: isActive ? 'Скрыть' : foldButtonLabel }), jsx(Icon, { name: icon, width: "20", height: "20", asSVG: true })] })) : null] })) : null;
|
|
2136
|
+
});
|
|
2137
|
+
const renderBlocks = (blocks, render, { blocksToHide, isActive }) => {
|
|
2138
|
+
const visibleBlocks = blocks.slice(0, blocks.length - blocksToHide);
|
|
2139
|
+
const hiddenBlocks = blocks.slice(-blocksToHide);
|
|
2140
|
+
return render(jsxs("div", { children: [visibleBlocks, jsx("div", { className: foldableBlockClassNames, children: hiddenBlocks })] }), isActive);
|
|
2109
2141
|
};
|
|
2110
2142
|
|
|
2111
|
-
const OtherProductsItem = JSX(({ label,
|
|
2112
|
-
const
|
|
2143
|
+
const OtherProductsItem = JSX(({ label, blocks, columns = 1, context, dataTheme, isUnfolded }) => {
|
|
2144
|
+
const foldableBlocks = renderBlocksList({
|
|
2113
2145
|
context,
|
|
2146
|
+
className: 'box-border p-5',
|
|
2147
|
+
columns,
|
|
2114
2148
|
blocks,
|
|
2115
|
-
initialState: isExpanded,
|
|
2116
2149
|
});
|
|
2117
|
-
return (
|
|
2150
|
+
return (jsx("div", { className: "border-0 border-b border-solid border-main-divider", children: blocks?.length ? (jsx(Foldable, { foldButtonDataTheme: dataTheme, hiddenBlocksNum: blocks?.length, blocks: foldableBlocks, isUnfolded: isUnfolded, context: context, foldButtonLabel: label, render: (children, isActive) => (jsx(Wrapper$1, { columns: columns, isActive: isActive, children: children })) })) : null }));
|
|
2151
|
+
});
|
|
2152
|
+
const Wrapper$1 = JSX(({ columns, children, isActive }) => {
|
|
2153
|
+
return (jsx("div", { className: `box-border w-full ${isActive ? 'p-9' : ''} ${columns > 1 ? 'flex flex-wrap' : ''}`, children: children }));
|
|
2118
2154
|
});
|
|
2119
2155
|
|
|
2120
2156
|
const OtherProducts = JSX(({ blockItems, colorPalette, context, className = '' }) => {
|
|
@@ -2224,7 +2260,7 @@
|
|
|
2224
2260
|
const isUseSlider = cardsCount > CARD_FULL_VIEW_COUNT;
|
|
2225
2261
|
const showNextButton = isUseSlider && cardsCount - activeCardIndex > CARD_FULL_VIEW_COUNT;
|
|
2226
2262
|
const showPrevButton = isUseSlider && activeCardIndex > 0;
|
|
2227
|
-
return (jsxs("div", { children: [showPrevButton
|
|
2263
|
+
return (jsxs("div", { children: [showPrevButton ? (jsx(ArrowButton, { className: "absolute top-1/2 left-8 z-10 mt-6", onClick: handlePrevClick, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E" })) : null, showNextButton ? (jsx(ArrowButton, { className: "absolute top-1/2 right-8 z-10 mt-6 rotate-180", onClick: handleNextClick, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E" })) : null] }));
|
|
2228
2264
|
};
|
|
2229
2265
|
|
|
2230
2266
|
const StepsBlock = JSX(({ className = '', title, showLines = true, steps = [], button, anchor = null }) => {
|
|
@@ -2262,7 +2298,7 @@
|
|
|
2262
2298
|
return (jsxs(TableRowContainer, { children: [jsx("div", { className: `text-sm py-5 ${FIRST_CELL_CLASSES} ${DIVIDER_CLASSES} ${!isLastRow ? 'border-solid' : ''}`, children: jsxs("div", { className: "flex items-center text-primary-text", children: [header?.icon ? (jsx(Img, { className: "mr-[14px] max-w-6 max-h-6", image: header.icon, width: "24px", height: "24px", asSVG: true })) : null, header?.title] }) }), data?.length ? (jsx(TableCarouselContainer, { activeCardIndex: activeCardIndex, columnWidth: COLUMN_WIDTH, version: "tariff", children: data.map((cell, i) => (jsx(TariffsTableCell, { cell: cell, isLastRow: isLastRow }, String(i)))) })) : null] }));
|
|
2263
2299
|
});
|
|
2264
2300
|
|
|
2265
|
-
const TariffsTable = JSX(({ className, context, title, description, rowHeaders, columns, anchor = null }) => {
|
|
2301
|
+
const TariffsTable = JSX(({ className, context, title, description, rowHeaders, columns, anchor = null, hiddenRowsNum = 0, }) => {
|
|
2266
2302
|
const [activeCardIndex, setActiveCardIndex] = context.useState(0);
|
|
2267
2303
|
const colData = getColData(columns);
|
|
2268
2304
|
const rowData = getRowData(rowHeaders, colData);
|
|
@@ -2272,14 +2308,18 @@
|
|
|
2272
2308
|
activeCardIndex,
|
|
2273
2309
|
setActiveCardIndex,
|
|
2274
2310
|
});
|
|
2275
|
-
const {
|
|
2276
|
-
return (jsxs("section", { className: `bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${className || ''}`, id: anchor, children: [title ? (jsx(Heading, { headingType: "h2", className: `text-center ${description ? 'mb-2.5' : 'mb-9'}`, title: title })) : null, description ? jsx("div", { className: "mb-9 text-center text-m-base", children: description }) : null, rowData?.length ? (
|
|
2311
|
+
const foldableBlocks = rowData?.map((row, i, { length }) => (jsx(TariffsTableRow, { row: row, isLastRow: i + 1 === length, activeCardIndex: activeCardIndex }, String(i))));
|
|
2312
|
+
return (jsxs("section", { className: `bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${className || ''}`, id: anchor, children: [title ? (jsx(Heading, { headingType: "h2", className: `text-center ${description ? 'mb-2.5' : 'mb-9'}`, title: title })) : null, description ? jsx("div", { className: "mb-9 text-center text-m-base", children: description }) : null, rowData?.length ? (jsx(Foldable, { blocks: foldableBlocks, hiddenBlocksNum: hiddenRowsNum, context: context, render: (children) => (jsx(Wrapper, { tableArrowScrollControlProps: tableArrowScrollControlProps, children: children })), foldButtonLabel: "\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C" })) : null] }));
|
|
2277
2313
|
});
|
|
2278
2314
|
const getColData = (columns) => columns?.map(({ data }) => data) || [];
|
|
2279
2315
|
const getRowData = (rowHeaders, colData) => rowHeaders?.map((header, i) => ({
|
|
2280
2316
|
header,
|
|
2281
2317
|
data: colData.map((col) => col?.[i] || [{}]),
|
|
2282
2318
|
}));
|
|
2319
|
+
const Wrapper = JSX(({ children, tableArrowScrollControlProps }) => {
|
|
2320
|
+
const { isScrollAvailable } = tableArrowScrollControlProps;
|
|
2321
|
+
return (jsxs("div", { role: "table", children: [jsxs("div", { className: "relative", children: [children, jsx(TableArrowScrollControl, { ...tableArrowScrollControlProps })] }), isScrollAvailable ? (jsx("div", { className: "absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white" })) : null] }));
|
|
2322
|
+
});
|
|
2283
2323
|
|
|
2284
2324
|
const GroupBlockTabs = JSX((props) => {
|
|
2285
2325
|
const { tabs, currentTag, onTabClick, className = '', isShowCounter = true } = props;
|
|
@@ -2333,6 +2373,26 @@
|
|
|
2333
2373
|
return (jsxs("section", { id: anchor, className: `box-border gap-1 h-12 ${className}`, children: [tabsNewMap?.length ? (jsx(GroupBlockTabs, { currentTag: currentTag, onTabClick: setCurrentTag, tabs: tabsNewMap })) : null, groupBlocks.length ? (jsx(GroupBlocksItem, { context: context, groupBlocks: filteredBlocks })) : null] }));
|
|
2334
2374
|
});
|
|
2335
2375
|
|
|
2376
|
+
function getElementsColsValue(className = '') {
|
|
2377
|
+
const colSpan = getColSpan(className);
|
|
2378
|
+
if (colSpan <= 6) {
|
|
2379
|
+
return 'grid-cols-2';
|
|
2380
|
+
}
|
|
2381
|
+
else if (colSpan <= 8) {
|
|
2382
|
+
return 'grid-cols-3';
|
|
2383
|
+
}
|
|
2384
|
+
else {
|
|
2385
|
+
return 'grid-cols-4';
|
|
2386
|
+
}
|
|
2387
|
+
}
|
|
2388
|
+
|
|
2389
|
+
const BonusBenefitsBlock = JSX(({ className = '', title, subtitle, bonusBenefits, anchor = null }) => {
|
|
2390
|
+
return (jsxs("section", { className: `font-sans text-primary-text bg-white p-50 flex flex-col ${className}`, id: anchor, children: [title ? (jsx(Heading, { headingType: "h3", className: "text-center mb-[10px]", title: title })) : null, subtitle ? jsx("span", { className: "text-md font-normal text-center", children: subtitle }) : null, bonusBenefits?.length ? (jsx("div", { className: `grid gap-1 ${getElementsColsValue(className)}`, children: bonusBenefits.map(renderBonusBenefit) })) : null] }));
|
|
2391
|
+
});
|
|
2392
|
+
const renderBonusBenefit = (bonusBenefit, i) => {
|
|
2393
|
+
return (jsxs("div", { className: "flex flex-col items-center max-w-[292px]", children: [bonusBenefit?.icon ? (jsx(Img, { className: "h-[180px] w-[160px] min-w-[160px] min-h-[160px]", image: bonusBenefit.icon, width: "160", height: "180" })) : null, jsx("div", { children: bonusBenefit?.label ? (jsx("span", { className: "title-2xs text-center m-0", children: bonusBenefit.label })) : null })] }, String(i)));
|
|
2394
|
+
};
|
|
2395
|
+
|
|
2336
2396
|
const Blocks = {
|
|
2337
2397
|
Accordion,
|
|
2338
2398
|
BenefitsBlock,
|
|
@@ -2365,6 +2425,7 @@
|
|
|
2365
2425
|
Navigation,
|
|
2366
2426
|
Placeholder,
|
|
2367
2427
|
GroupBlock,
|
|
2428
|
+
BonusBenefitsBlock,
|
|
2368
2429
|
};
|
|
2369
2430
|
|
|
2370
2431
|
const changeHashOnScroll = (router, blocks) => {
|
|
@@ -2407,7 +2468,7 @@
|
|
|
2407
2468
|
const sectionsWithAnchors = globalThis.document.querySelectorAll('section[id]');
|
|
2408
2469
|
globalThis.document.addEventListener('scroll', () => changeHashOnScroll(router, sectionsWithAnchors));
|
|
2409
2470
|
});
|
|
2410
|
-
return (jsxs("section", { className: `relative ${style2className(pageStyle)} ${className}`, "data-theme": colorPalette, children: [header?.blocks?.length ? (jsx("div", { className: `${style2className(header?.style)}`, children: header.blocks.map((block, i) => renderBlock({ block, blockDecorator, blocksRegistry, context }, i)) })) : null, blocks?.length ? (jsx("div", { className: "container grid grid-cols-12 gap-1", children: blocks.map((block, i) => renderBlock({ block, blockDecorator, blocksRegistry, context }, i)) })) : null, likeControl
|
|
2471
|
+
return (jsxs("section", { className: `relative ${style2className(pageStyle)} ${className}`, "data-theme": colorPalette, children: [header?.blocks?.length ? (jsx("div", { className: `${style2className(header?.style)}`, children: header.blocks.map((block, i) => renderBlock({ block, blockDecorator, blocksRegistry, context }, i)) })) : null, blocks?.length ? (jsx("div", { className: "container grid grid-cols-12 gap-1", children: blocks.map((block, i) => renderBlock({ block, blockDecorator, blocksRegistry, context }, i)) })) : null, likeControl ? (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-lg sticky bottom-0 pointer-events-auto", context: context }, "LikeControl") })) : null] }));
|
|
2411
2472
|
});
|
|
2412
2473
|
function renderBlock({ block, blockDecorator, blocksRegistry, context }, i) {
|
|
2413
2474
|
const { type } = block;
|