@redneckz/wildless-cms-uni-blocks 0.3.12 → 0.3.13
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/README.md +13 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +208 -153
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/Accordion/AccordionBlocks.d.ts +1 -0
- package/dist/components/Accordion/AccordionBlocks.js +2 -0
- package/dist/components/Accordion/AccordionBlocks.js.map +1 -1
- package/dist/components/Accordion/AccordionContent.d.ts +13 -2
- package/dist/components/Accordion/AccordionItem.js +2 -2
- package/dist/components/Accordion/AccordionItem.js.map +1 -1
- package/dist/components/Accordion/AccordionItem.mobile.js +1 -1
- package/dist/components/Accordion/AccordionItem.mobile.js.map +1 -1
- package/dist/components/Accordion/AccordionItemInner.js +5 -4
- package/dist/components/Accordion/AccordionItemInner.js.map +1 -1
- package/dist/components/Accordion/AccordionItemInner.mobile.js +1 -1
- package/dist/components/Accordion/AccordionItemInner.mobile.js.map +1 -1
- package/dist/components/Blocks.mobile.d.ts +3 -1
- package/dist/components/Blocks.mobile.js +6 -2
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTable.js +7 -25
- package/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTableBody.d.ts +12 -0
- package/dist/components/ComparisonTable/ComparisonTableBody.js +30 -0
- package/dist/components/ComparisonTable/ComparisonTableBody.js.map +1 -0
- package/dist/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +10 -0
- package/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js +13 -0
- package/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -0
- package/dist/components/ComparisonTable/ComparisonTableContent.d.ts +1 -1
- package/dist/components/ComparisonTable/ComparisonTableRows.d.ts +13 -0
- package/dist/components/ComparisonTable/ComparisonTableRows.js +10 -0
- package/dist/components/ComparisonTable/ComparisonTableRows.js.map +1 -0
- package/dist/components/ComparisonTable/TableColumn.js +2 -2
- package/dist/components/ComparisonTable/TableColumn.js.map +1 -1
- package/dist/components/CreditCalculator/CreditCalculator.d.ts +1 -1
- package/dist/components/CreditCalculator/CreditCalculator.js +8 -47
- package/dist/components/CreditCalculator/CreditCalculator.js.map +1 -1
- package/dist/components/CreditCalculator/CreditCalculatorContent.d.ts +10 -2
- package/dist/components/CreditCalculator/CreditCalculatorForm.d.ts +5 -0
- package/dist/components/CreditCalculator/CreditCalculatorForm.js +53 -0
- package/dist/components/CreditCalculator/CreditCalculatorForm.js.map +1 -0
- package/dist/components/CreditCalculator/defaultTabs.d.ts +2 -0
- package/dist/components/CreditCalculator/defaultTabs.js +23 -0
- package/dist/components/CreditCalculator/defaultTabs.js.map +1 -0
- package/dist/components/Footer/Footer.mobile.js +5 -6
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/Footer/FooterContent.d.ts +1 -1
- package/dist/components/Gallery/Gallery.mobile.js +6 -6
- package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
- package/dist/components/Gallery/GalleryContent.d.ts +6 -0
- package/dist/components/Gallery/GalleryInner.js +1 -1
- package/dist/components/Gallery/GalleryInner.js.map +1 -1
- package/dist/components/Header/Header.mobile.js +3 -2
- package/dist/components/Header/Header.mobile.js.map +1 -1
- package/dist/components/Header/HeaderBurger.d.ts +2 -2
- package/dist/components/Header/HeaderBurger.js +1 -1
- package/dist/components/Header/HeaderBurger.js.map +1 -1
- package/dist/components/Header/HeaderContent.d.ts +10 -4
- package/dist/components/Header/HeaderTop.js +1 -1
- package/dist/components/Header/HeaderTop.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -0
- package/dist/components/ProductGallery/ProductGalleryContent.d.ts +1 -1
- package/dist/components/TariffsTable/TableTileHeader.d.ts +2 -0
- package/dist/components/TariffsTable/TableTileHeader.js +10 -0
- package/dist/components/TariffsTable/TableTileHeader.js.map +1 -0
- package/dist/components/TariffsTable/TariffsTable.js +14 -11
- package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTable.mobile.d.ts +5 -0
- package/dist/components/TariffsTable/TariffsTable.mobile.js +21 -0
- package/dist/components/TariffsTable/TariffsTable.mobile.js.map +1 -0
- package/dist/components/TariffsTable/TariffsTableCell.js +2 -2
- package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableContent.d.ts +22 -18
- package/dist/components/TariffsTable/TariffsTableHorizontal.d.ts +6 -0
- package/dist/components/TariffsTable/TariffsTableHorizontal.js +8 -0
- package/dist/components/TariffsTable/TariffsTableHorizontal.js.map +1 -0
- package/dist/components/TariffsTable/TariffsTableTileCell.d.ts +2 -0
- package/dist/components/TariffsTable/TariffsTableTileCell.js +14 -0
- package/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -0
- package/dist/components/TariffsTable/TariffsTableVertical.d.ts +4 -0
- package/dist/components/TariffsTable/TariffsTableVertical.js +7 -0
- package/dist/components/TariffsTable/TariffsTableVertical.js.map +1 -0
- package/dist/components/TextBlock/TextBlock.mobile.js +1 -1
- package/dist/components/TextBlock/TextBlock.mobile.js.map +1 -1
- package/dist/hooks/useTableArrowScrollControl.d.ts +7 -0
- package/dist/hooks/useTableArrowScrollControl.js +12 -0
- package/dist/hooks/useTableArrowScrollControl.js.map +1 -0
- package/dist/model/ListOrientation.d.ts +8 -0
- package/dist/model/ListOrientation.js +2 -0
- package/dist/model/ListOrientation.js.map +1 -0
- package/dist/model/SitemapProps.d.ts +11 -0
- package/dist/services/sitemap/SitemapProps.d.ts +12 -1
- package/dist/ui-kit/Button/Button.d.ts +1 -0
- package/dist/ui-kit/Button/Button.js +7 -22
- package/dist/ui-kit/Button/Button.js.map +1 -1
- package/dist/ui-kit/Button/ButtonInner.js +16 -10
- package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/dist/ui-kit/Img/Img.d.ts +2 -1
- package/dist/ui-kit/Img/Img.js +2 -2
- package/dist/ui-kit/Img/Img.js.map +1 -1
- package/dist/ui-kit/Img/Img.mobile.d.ts +6 -2
- package/dist/ui-kit/Img/Img.mobile.js +10 -5
- package/dist/ui-kit/Img/Img.mobile.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControl.js +7 -3
- package/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +9 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.d.ts +2 -0
- package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +9 -0
- package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -0
- package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +7 -0
- package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.js +2 -0
- package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.js.map +1 -0
- package/dist/ui-kit/Tabs/Tabs.d.ts +2 -0
- package/dist/ui-kit/Tabs/Tabs.js +16 -0
- package/dist/ui-kit/Tabs/Tabs.js.map +1 -0
- package/dist/ui-kit/Tabs/TabsProps.d.ts +17 -0
- package/dist/ui-kit/Tabs/TabsProps.js +2 -0
- package/dist/ui-kit/Tabs/TabsProps.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/Accordion/Accordion.fixture.d.ts +4 -1
- package/lib/components/Accordion/Accordion.fixture.mobile.d.ts +3 -1
- package/lib/components/Accordion/AccordionBlocks.d.ts +1 -0
- package/lib/components/Accordion/AccordionBlocks.js +2 -0
- package/lib/components/Accordion/AccordionBlocks.js.map +1 -1
- package/lib/components/Accordion/AccordionContent.d.ts +13 -2
- package/lib/components/Accordion/AccordionItem.js +2 -2
- package/lib/components/Accordion/AccordionItem.js.map +1 -1
- package/lib/components/Accordion/AccordionItem.mobile.js +1 -1
- package/lib/components/Accordion/AccordionItem.mobile.js.map +1 -1
- package/lib/components/Accordion/AccordionItemInner.js +5 -4
- package/lib/components/Accordion/AccordionItemInner.js.map +1 -1
- package/lib/components/Accordion/AccordionItemInner.mobile.js +1 -1
- package/lib/components/Accordion/AccordionItemInner.mobile.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.fixture.d.ts +3 -1
- package/lib/components/Blocks.mobile.d.ts +3 -1
- package/lib/components/Blocks.mobile.js +6 -2
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.js +8 -26
- package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTableBody.d.ts +12 -0
- package/lib/components/ComparisonTable/ComparisonTableBody.js +28 -0
- package/lib/components/ComparisonTable/ComparisonTableBody.js.map +1 -0
- package/lib/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +10 -0
- package/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js +11 -0
- package/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -0
- package/lib/components/ComparisonTable/ComparisonTableContent.d.ts +1 -1
- package/lib/components/ComparisonTable/ComparisonTableRows.d.ts +13 -0
- package/lib/components/ComparisonTable/ComparisonTableRows.js +8 -0
- package/lib/components/ComparisonTable/ComparisonTableRows.js.map +1 -0
- package/lib/components/ComparisonTable/TableColumn.js +2 -2
- package/lib/components/ComparisonTable/TableColumn.js.map +1 -1
- package/lib/components/CreditCalculator/CreditCalculator.d.ts +1 -1
- package/lib/components/CreditCalculator/CreditCalculator.fixture.d.ts +3 -1
- package/lib/components/CreditCalculator/CreditCalculator.js +8 -47
- package/lib/components/CreditCalculator/CreditCalculator.js.map +1 -1
- package/lib/components/CreditCalculator/CreditCalculatorContent.d.ts +10 -2
- package/lib/components/CreditCalculator/CreditCalculatorForm.d.ts +5 -0
- package/lib/components/CreditCalculator/CreditCalculatorForm.js +51 -0
- package/lib/components/CreditCalculator/CreditCalculatorForm.js.map +1 -0
- package/lib/components/CreditCalculator/defaultTabs.d.ts +2 -0
- package/lib/components/CreditCalculator/defaultTabs.js +21 -0
- package/lib/components/CreditCalculator/defaultTabs.js.map +1 -0
- package/lib/components/Footer/Footer.fixture.d.ts +3 -1
- package/lib/components/Footer/Footer.fixture.mobile.d.ts +3 -1
- package/lib/components/Footer/Footer.mobile.js +5 -6
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/Footer/FooterContent.d.ts +1 -1
- package/lib/components/Gallery/Gallery.mobile.js +6 -6
- package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
- package/lib/components/Gallery/GalleryContent.d.ts +6 -0
- package/lib/components/Gallery/GalleryInner.js +1 -1
- package/lib/components/Gallery/GalleryInner.js.map +1 -1
- package/lib/components/Header/Header.mobile.js +3 -2
- package/lib/components/Header/Header.mobile.js.map +1 -1
- package/lib/components/Header/HeaderBurger.d.ts +2 -2
- package/lib/components/Header/HeaderBurger.js +1 -1
- package/lib/components/Header/HeaderBurger.js.map +1 -1
- package/lib/components/Header/HeaderContent.d.ts +10 -4
- package/lib/components/Header/HeaderTop.js +1 -1
- package/lib/components/Header/HeaderTop.js.map +1 -1
- package/lib/components/LikeControl/LikeControl.fixture.d.ts +3 -1
- package/lib/components/LinkList/LinkList.fixture.d.ts +3 -1
- package/lib/components/MobileAppTile/MobileAppTile.fixture.d.ts +3 -1
- package/lib/components/MobileAppTile/MobileAppTile.fixture.mobile.d.ts +3 -1
- package/lib/components/MobileAppTile/MobileAppTile.js +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/lib/components/Navigation/Navigation.fixture.d.ts +3 -1
- package/lib/components/Placeholder/Placeholder.fixture.d.ts +3 -1
- package/lib/components/ProductBlock/ProductBlock.fixture.d.ts +3 -0
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -0
- package/lib/components/ProductGallery/ProductGallery.fixture.d.ts +3 -1
- package/lib/components/ProductGallery/ProductGalleryContent.d.ts +1 -1
- package/lib/components/ProductTile/ProductTile.fixture.d.ts +2 -1
- package/lib/components/TariffsTable/TableTileHeader.d.ts +2 -0
- package/lib/components/TariffsTable/TableTileHeader.js +8 -0
- package/lib/components/TariffsTable/TableTileHeader.js.map +1 -0
- package/lib/components/TariffsTable/TariffsTable.fixture.mobile.d.ts +5 -0
- package/lib/components/TariffsTable/TariffsTable.js +14 -11
- package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTable.mobile.d.ts +5 -0
- package/lib/components/TariffsTable/TariffsTable.mobile.js +19 -0
- package/lib/components/TariffsTable/TariffsTable.mobile.js.map +1 -0
- package/lib/components/TariffsTable/TariffsTableCell.js +2 -2
- package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableContent.d.ts +22 -18
- package/lib/components/TariffsTable/TariffsTableHorizontal.d.ts +6 -0
- package/lib/components/TariffsTable/TariffsTableHorizontal.js +6 -0
- package/lib/components/TariffsTable/TariffsTableHorizontal.js.map +1 -0
- package/lib/components/TariffsTable/TariffsTableTileCell.d.ts +2 -0
- package/lib/components/TariffsTable/TariffsTableTileCell.js +12 -0
- package/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -0
- package/lib/components/TariffsTable/TariffsTableVertical.d.ts +4 -0
- package/lib/components/TariffsTable/TariffsTableVertical.js +5 -0
- package/lib/components/TariffsTable/TariffsTableVertical.js.map +1 -0
- package/lib/components/TextBlock/TextBlock.fixture.d.ts +3 -1
- package/lib/components/TextBlock/TextBlock.fixture.mobile.d.ts +3 -1
- package/lib/components/TextBlock/TextBlock.mobile.js +1 -1
- package/lib/components/TextBlock/TextBlock.mobile.js.map +1 -1
- package/lib/components/Tile/Tile.fixture.d.ts +1 -0
- package/lib/hooks/useTableArrowScrollControl.d.ts +7 -0
- package/lib/hooks/useTableArrowScrollControl.js +9 -0
- package/lib/hooks/useTableArrowScrollControl.js.map +1 -0
- package/lib/model/ListOrientation.d.ts +8 -0
- package/lib/model/ListOrientation.js +2 -0
- package/lib/model/ListOrientation.js.map +1 -0
- package/lib/model/SitemapProps.d.ts +11 -0
- package/lib/services/sitemap/SitemapProps.d.ts +12 -1
- package/lib/ui-kit/Button/Button.d.ts +1 -0
- package/lib/ui-kit/Button/Button.js +6 -21
- package/lib/ui-kit/Button/Button.js.map +1 -1
- package/lib/ui-kit/Button/ButtonInner.js +16 -10
- package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/lib/ui-kit/Img/Img.d.ts +2 -1
- package/lib/ui-kit/Img/Img.js +2 -2
- package/lib/ui-kit/Img/Img.js.map +1 -1
- package/lib/ui-kit/Img/Img.mobile.d.ts +6 -2
- package/lib/ui-kit/Img/Img.mobile.js +10 -5
- package/lib/ui-kit/Img/Img.mobile.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControl.js +8 -4
- package/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +9 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.d.ts +2 -0
- package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +7 -0
- package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -0
- package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +7 -0
- package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.js +2 -0
- package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.js.map +1 -0
- package/lib/ui-kit/Tabs/Tabs.d.ts +2 -0
- package/lib/ui-kit/Tabs/Tabs.js +14 -0
- package/lib/ui-kit/Tabs/Tabs.js.map +1 -0
- package/lib/ui-kit/Tabs/TabsProps.d.ts +17 -0
- package/lib/ui-kit/Tabs/TabsProps.js +2 -0
- package/lib/ui-kit/Tabs/TabsProps.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +253 -139
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/Accordion/AccordionBlocks.d.ts +1 -0
- package/mobile/dist/components/Accordion/AccordionBlocks.js +2 -0
- package/mobile/dist/components/Accordion/AccordionBlocks.js.map +1 -1
- package/mobile/dist/components/Accordion/AccordionContent.d.ts +13 -2
- package/mobile/dist/components/Accordion/AccordionItem.js +1 -1
- package/mobile/dist/components/Accordion/AccordionItem.js.map +1 -1
- package/mobile/dist/components/Accordion/AccordionItemInner.js +1 -1
- package/mobile/dist/components/Accordion/AccordionItemInner.js.map +1 -1
- package/mobile/dist/components/Blocks.d.ts +3 -1
- package/mobile/dist/components/Blocks.js +6 -2
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/ComparisonTableBody.d.ts +12 -0
- package/mobile/dist/components/ComparisonTable/ComparisonTableBody.js +30 -0
- package/mobile/dist/components/ComparisonTable/ComparisonTableBody.js.map +1 -0
- package/mobile/dist/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +10 -0
- package/mobile/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js +13 -0
- package/mobile/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -0
- package/mobile/dist/components/ComparisonTable/ComparisonTableContent.d.ts +1 -1
- package/mobile/dist/components/ComparisonTable/ComparisonTableRows.d.ts +13 -0
- package/mobile/dist/components/ComparisonTable/ComparisonTableRows.js +10 -0
- package/mobile/dist/components/ComparisonTable/ComparisonTableRows.js.map +1 -0
- package/mobile/dist/components/ComparisonTable/TableColumn.js +2 -2
- package/mobile/dist/components/ComparisonTable/TableColumn.js.map +1 -1
- package/mobile/dist/components/CreditCalculator/CreditCalculator.d.ts +1 -1
- package/mobile/dist/components/CreditCalculator/CreditCalculator.js +8 -47
- package/mobile/dist/components/CreditCalculator/CreditCalculator.js.map +1 -1
- package/mobile/dist/components/CreditCalculator/CreditCalculatorContent.d.ts +10 -2
- package/mobile/dist/components/CreditCalculator/CreditCalculatorForm.d.ts +5 -0
- package/mobile/dist/components/CreditCalculator/CreditCalculatorForm.js +53 -0
- package/mobile/dist/components/CreditCalculator/CreditCalculatorForm.js.map +1 -0
- package/mobile/dist/components/CreditCalculator/defaultTabs.d.ts +2 -0
- package/mobile/dist/components/CreditCalculator/defaultTabs.js +23 -0
- package/mobile/dist/components/CreditCalculator/defaultTabs.js.map +1 -0
- package/mobile/dist/components/Footer/Footer.js +5 -6
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/Footer/FooterContent.d.ts +1 -1
- package/mobile/dist/components/Gallery/Gallery.js +6 -6
- package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryContent.d.ts +6 -0
- package/mobile/dist/components/Gallery/GalleryInner.js +1 -1
- package/mobile/dist/components/Gallery/GalleryInner.js.map +1 -1
- package/mobile/dist/components/Header/Header.js +3 -2
- package/mobile/dist/components/Header/Header.js.map +1 -1
- package/mobile/dist/components/Header/HeaderBurger.d.ts +2 -2
- package/mobile/dist/components/Header/HeaderBurger.js +1 -1
- package/mobile/dist/components/Header/HeaderBurger.js.map +1 -1
- package/mobile/dist/components/Header/HeaderContent.d.ts +10 -4
- package/mobile/dist/components/Header/HeaderTop.js +1 -1
- package/mobile/dist/components/Header/HeaderTop.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -0
- package/mobile/dist/components/ProductGallery/ProductGalleryContent.d.ts +1 -1
- package/mobile/dist/components/TariffsTable/TableTileHeader.d.ts +2 -0
- package/mobile/dist/components/TariffsTable/TableTileHeader.js +10 -0
- package/mobile/dist/components/TariffsTable/TableTileHeader.js.map +1 -0
- package/mobile/dist/components/TariffsTable/TariffsTable.js +14 -18
- package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js +2 -2
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +22 -18
- package/mobile/dist/components/TariffsTable/TariffsTableHorizontal.d.ts +6 -0
- package/mobile/dist/components/TariffsTable/TariffsTableHorizontal.js +8 -0
- package/mobile/dist/components/TariffsTable/TariffsTableHorizontal.js.map +1 -0
- package/mobile/dist/components/TariffsTable/TariffsTableTileCell.d.ts +2 -0
- package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js +14 -0
- package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -0
- package/mobile/dist/components/TariffsTable/TariffsTableVertical.d.ts +4 -0
- package/mobile/dist/components/TariffsTable/TariffsTableVertical.js +7 -0
- package/mobile/dist/components/TariffsTable/TariffsTableVertical.js.map +1 -0
- package/mobile/dist/components/TextBlock/TextBlock.js +1 -1
- package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/dist/hooks/useTableArrowScrollControl.d.ts +7 -0
- package/mobile/dist/hooks/useTableArrowScrollControl.js +12 -0
- package/mobile/dist/hooks/useTableArrowScrollControl.js.map +1 -0
- package/mobile/dist/model/ListOrientation.d.ts +8 -0
- package/mobile/dist/model/ListOrientation.js +2 -0
- package/mobile/dist/model/ListOrientation.js.map +1 -0
- package/mobile/dist/model/SitemapProps.d.ts +11 -0
- package/mobile/dist/services/sitemap/SitemapProps.d.ts +12 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js +16 -10
- package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/dist/ui-kit/Img/Img.d.ts +6 -2
- package/mobile/dist/ui-kit/Img/Img.js +10 -5
- package/mobile/dist/ui-kit/Img/Img.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js +7 -3
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +9 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.d.ts +2 -0
- package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +9 -0
- package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -0
- package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +7 -0
- package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.js +2 -0
- package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.js.map +1 -0
- package/mobile/dist/ui-kit/Tabs/Tabs.d.ts +2 -0
- package/mobile/dist/ui-kit/Tabs/Tabs.js +16 -0
- package/mobile/dist/ui-kit/Tabs/Tabs.js.map +1 -0
- package/mobile/dist/ui-kit/Tabs/TabsProps.d.ts +17 -0
- package/mobile/dist/ui-kit/Tabs/TabsProps.js +2 -0
- package/mobile/dist/ui-kit/Tabs/TabsProps.js.map +1 -0
- package/mobile/lib/components/Accordion/AccordionBlocks.d.ts +1 -0
- package/mobile/lib/components/Accordion/AccordionBlocks.js +2 -0
- package/mobile/lib/components/Accordion/AccordionBlocks.js.map +1 -1
- package/mobile/lib/components/Accordion/AccordionContent.d.ts +13 -2
- package/mobile/lib/components/Accordion/AccordionItem.js +1 -1
- package/mobile/lib/components/Accordion/AccordionItem.js.map +1 -1
- package/mobile/lib/components/Accordion/AccordionItemInner.js +1 -1
- package/mobile/lib/components/Accordion/AccordionItemInner.js.map +1 -1
- package/mobile/lib/components/Blocks.d.ts +3 -1
- package/mobile/lib/components/Blocks.js +6 -2
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/ComparisonTableBody.d.ts +12 -0
- package/mobile/lib/components/ComparisonTable/ComparisonTableBody.js +28 -0
- package/mobile/lib/components/ComparisonTable/ComparisonTableBody.js.map +1 -0
- package/mobile/lib/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +10 -0
- package/mobile/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js +11 -0
- package/mobile/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -0
- package/mobile/lib/components/ComparisonTable/ComparisonTableContent.d.ts +1 -1
- package/mobile/lib/components/ComparisonTable/ComparisonTableRows.d.ts +13 -0
- package/mobile/lib/components/ComparisonTable/ComparisonTableRows.js +8 -0
- package/mobile/lib/components/ComparisonTable/ComparisonTableRows.js.map +1 -0
- package/mobile/lib/components/ComparisonTable/TableColumn.js +2 -2
- package/mobile/lib/components/ComparisonTable/TableColumn.js.map +1 -1
- package/mobile/lib/components/CreditCalculator/CreditCalculator.d.ts +1 -1
- package/mobile/lib/components/CreditCalculator/CreditCalculator.js +8 -47
- package/mobile/lib/components/CreditCalculator/CreditCalculator.js.map +1 -1
- package/mobile/lib/components/CreditCalculator/CreditCalculatorContent.d.ts +10 -2
- package/mobile/lib/components/CreditCalculator/CreditCalculatorForm.d.ts +5 -0
- package/mobile/lib/components/CreditCalculator/CreditCalculatorForm.js +51 -0
- package/mobile/lib/components/CreditCalculator/CreditCalculatorForm.js.map +1 -0
- package/mobile/lib/components/CreditCalculator/defaultTabs.d.ts +2 -0
- package/mobile/lib/components/CreditCalculator/defaultTabs.js +21 -0
- package/mobile/lib/components/CreditCalculator/defaultTabs.js.map +1 -0
- package/mobile/lib/components/Footer/Footer.js +5 -6
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/Footer/FooterContent.d.ts +1 -1
- package/mobile/lib/components/Gallery/Gallery.js +6 -6
- package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryContent.d.ts +6 -0
- package/mobile/lib/components/Gallery/GalleryInner.js +1 -1
- package/mobile/lib/components/Gallery/GalleryInner.js.map +1 -1
- package/mobile/lib/components/Header/Header.js +3 -2
- package/mobile/lib/components/Header/Header.js.map +1 -1
- package/mobile/lib/components/Header/HeaderBurger.d.ts +2 -2
- package/mobile/lib/components/Header/HeaderBurger.js +1 -1
- package/mobile/lib/components/Header/HeaderBurger.js.map +1 -1
- package/mobile/lib/components/Header/HeaderContent.d.ts +10 -4
- package/mobile/lib/components/Header/HeaderTop.js +1 -1
- package/mobile/lib/components/Header/HeaderTop.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -0
- package/mobile/lib/components/ProductGallery/ProductGalleryContent.d.ts +1 -1
- package/mobile/lib/components/TariffsTable/TableTileHeader.d.ts +2 -0
- package/mobile/lib/components/TariffsTable/TableTileHeader.js +8 -0
- package/mobile/lib/components/TariffsTable/TableTileHeader.js.map +1 -0
- package/mobile/lib/components/TariffsTable/TariffsTable.js +14 -18
- package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js +2 -2
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +22 -18
- package/mobile/lib/components/TariffsTable/TariffsTableHorizontal.d.ts +6 -0
- package/mobile/lib/components/TariffsTable/TariffsTableHorizontal.js +6 -0
- package/mobile/lib/components/TariffsTable/TariffsTableHorizontal.js.map +1 -0
- package/mobile/lib/components/TariffsTable/TariffsTableTileCell.d.ts +2 -0
- package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js +12 -0
- package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -0
- package/mobile/lib/components/TariffsTable/TariffsTableVertical.d.ts +4 -0
- package/mobile/lib/components/TariffsTable/TariffsTableVertical.js +5 -0
- package/mobile/lib/components/TariffsTable/TariffsTableVertical.js.map +1 -0
- package/mobile/lib/components/TextBlock/TextBlock.js +1 -1
- package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/lib/hooks/useTableArrowScrollControl.d.ts +7 -0
- package/mobile/lib/hooks/useTableArrowScrollControl.js +9 -0
- package/mobile/lib/hooks/useTableArrowScrollControl.js.map +1 -0
- package/mobile/lib/model/ListOrientation.d.ts +8 -0
- package/mobile/lib/model/ListOrientation.js +2 -0
- package/mobile/lib/model/ListOrientation.js.map +1 -0
- package/mobile/lib/model/SitemapProps.d.ts +11 -0
- package/mobile/lib/services/sitemap/SitemapProps.d.ts +12 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js +16 -10
- package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/lib/ui-kit/Img/Img.d.ts +6 -2
- package/mobile/lib/ui-kit/Img/Img.js +10 -5
- package/mobile/lib/ui-kit/Img/Img.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js +8 -4
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +9 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.d.ts +2 -0
- package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +7 -0
- package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -0
- package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +7 -0
- package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.js +2 -0
- package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.js.map +1 -0
- package/mobile/lib/ui-kit/Tabs/Tabs.d.ts +2 -0
- package/mobile/lib/ui-kit/Tabs/Tabs.js +14 -0
- package/mobile/lib/ui-kit/Tabs/Tabs.js.map +1 -0
- package/mobile/lib/ui-kit/Tabs/TabsProps.d.ts +17 -0
- package/mobile/lib/ui-kit/Tabs/TabsProps.js +2 -0
- package/mobile/lib/ui-kit/Tabs/TabsProps.js.map +1 -0
- package/mobile/src/components/Accordion/AccordionBlocks.tsx +2 -0
- package/mobile/src/components/Accordion/AccordionContent.ts +16 -0
- package/mobile/src/components/Accordion/AccordionItem.tsx +2 -2
- package/mobile/src/components/Accordion/AccordionItemInner.tsx +1 -1
- package/mobile/src/components/Blocks.ts +6 -2
- package/mobile/src/components/ComparisonTable/ComparisonTableBody.tsx +68 -0
- package/mobile/src/components/ComparisonTable/ComparisonTableColumnHeaders.tsx +34 -0
- package/mobile/src/components/ComparisonTable/ComparisonTableContent.ts +1 -1
- package/mobile/src/components/ComparisonTable/ComparisonTableRows.tsx +32 -0
- package/mobile/src/components/ComparisonTable/TableColumn.tsx +6 -2
- package/mobile/src/components/CreditCalculator/CreditCalculator.tsx +19 -81
- package/mobile/src/components/CreditCalculator/CreditCalculatorContent.ts +12 -2
- package/mobile/src/components/CreditCalculator/CreditCalculatorForm.tsx +92 -0
- package/mobile/src/components/CreditCalculator/defaultTabs.ts +22 -0
- package/mobile/src/components/Footer/Footer.tsx +9 -9
- package/mobile/src/components/Footer/FooterContent.ts +1 -1
- package/mobile/src/components/Gallery/Gallery.example.json +4 -0
- package/mobile/src/components/Gallery/Gallery.tsx +19 -9
- package/mobile/src/components/Gallery/GalleryContent.ts +6 -0
- package/mobile/src/components/Gallery/GalleryInner.tsx +2 -0
- package/mobile/src/components/Header/Header.tsx +5 -6
- package/mobile/src/components/Header/HeaderBurger.tsx +11 -6
- package/mobile/src/components/Header/HeaderContent.ts +12 -4
- package/mobile/src/components/Header/HeaderTop.tsx +5 -1
- package/mobile/src/components/MiniGallery/MiniGallery.example.json +8 -4
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +1 -0
- package/mobile/src/components/ProductGallery/ProductGallery.example.json +2 -1
- package/mobile/src/components/ProductGallery/ProductGalleryContent.ts +1 -1
- package/mobile/src/components/ProductTile/ProductTile.example.json +1 -0
- package/mobile/src/components/TariffsTable/TableTileHeader.tsx +15 -0
- package/mobile/src/components/TariffsTable/TariffsTable.example.json +7 -1
- package/mobile/src/components/TariffsTable/TariffsTable.tsx +41 -65
- package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +3 -3
- package/mobile/src/components/TariffsTable/TariffsTableContent.ts +31 -23
- package/mobile/src/components/TariffsTable/TariffsTableHorizontal.tsx +16 -0
- package/mobile/src/components/TariffsTable/TariffsTableTileCell.tsx +61 -0
- package/mobile/src/components/TariffsTable/TariffsTableVertical.tsx +11 -0
- package/mobile/src/components/TextBlock/TextBlock.tsx +2 -2
- package/mobile/src/hooks/useTableArrowScrollControl.ts +22 -0
- package/mobile/src/model/ListOrientation.ts +8 -0
- package/mobile/src/model/SitemapProps.ts +12 -0
- package/mobile/src/services/sitemap/SitemapProps.ts +13 -1
- package/mobile/src/ui-kit/Button/ButtonInner.tsx +25 -21
- package/mobile/src/ui-kit/Img/Img.tsx +29 -15
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControl.tsx +17 -20
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +12 -0
- package/mobile/src/ui-kit/TableArrowScrollControl/TableArrowScrollControl.tsx +27 -0
- package/mobile/src/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.ts +7 -0
- package/mobile/src/ui-kit/Tabs/Tabs.tsx +46 -0
- package/mobile/src/ui-kit/Tabs/TabsProps.ts +20 -0
- package/package.json +12 -2
- package/src/components/Accordion/Accordion.fixture.mobile.tsx +7 -5
- package/src/components/Accordion/Accordion.fixture.tsx +80 -14
- package/src/components/Accordion/AccordionBlocks.tsx +2 -0
- package/src/components/Accordion/AccordionContent.ts +16 -0
- package/src/components/Accordion/AccordionItem.mobile.tsx +2 -2
- package/src/components/Accordion/AccordionItem.tsx +4 -2
- package/src/components/Accordion/AccordionItemInner.mobile.tsx +1 -1
- package/src/components/Accordion/AccordionItemInner.tsx +21 -16
- package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +36 -33
- package/src/components/Blocks.mobile.ts +6 -2
- package/src/components/ComparisonTable/ComparisonTable.tsx +38 -99
- package/src/components/ComparisonTable/ComparisonTableBody.tsx +68 -0
- package/src/components/ComparisonTable/ComparisonTableColumnHeaders.tsx +34 -0
- package/src/components/ComparisonTable/ComparisonTableContent.ts +1 -1
- package/src/components/ComparisonTable/ComparisonTableRows.tsx +32 -0
- package/src/components/ComparisonTable/TableColumn.tsx +6 -2
- package/src/components/CreditCalculator/CreditCalculator.fixture.tsx +30 -10
- package/src/components/CreditCalculator/CreditCalculator.tsx +19 -81
- package/src/components/CreditCalculator/CreditCalculatorContent.ts +12 -2
- package/src/components/CreditCalculator/CreditCalculatorForm.tsx +92 -0
- package/src/components/CreditCalculator/defaultTabs.ts +22 -0
- package/src/components/Footer/Footer.fixture.mobile.tsx +88 -281
- package/src/components/Footer/Footer.fixture.tsx +143 -141
- package/src/components/Footer/Footer.mobile.tsx +9 -9
- package/src/components/Footer/FooterContent.ts +1 -1
- package/src/components/Gallery/Gallery.example.json +4 -0
- package/src/components/Gallery/Gallery.fixture.mobile.tsx +9 -4
- package/src/components/Gallery/Gallery.mobile.tsx +19 -9
- package/src/components/Gallery/GalleryContent.ts +6 -0
- package/src/components/Gallery/GalleryInner.tsx +2 -0
- package/src/components/Header/Header.fixture.mobile.tsx +1 -203
- package/src/components/Header/Header.mobile.tsx +5 -6
- package/src/components/Header/HeaderBurger.tsx +11 -6
- package/src/components/Header/HeaderContent.ts +12 -4
- package/src/components/Header/HeaderTop.tsx +5 -1
- package/src/components/LikeControl/LikeControl.fixture.tsx +7 -5
- package/src/components/LinkList/LinkList.fixture.tsx +8 -10
- package/src/components/MiniGallery/MiniGallery.example.json +8 -4
- package/src/components/MobileAppTile/MobileAppTile.fixture.mobile.tsx +11 -9
- package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +32 -30
- package/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
- package/src/components/Navigation/Navigation.fixture.tsx +26 -24
- package/src/components/Placeholder/Placeholder.fixture.tsx +7 -5
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +27 -11
- package/src/components/ProductBlock/ProductBlockContent.ts +1 -0
- package/src/components/ProductGallery/ProductGallery.example.json +2 -1
- package/src/components/ProductGallery/ProductGallery.fixture.tsx +104 -102
- package/src/components/ProductGallery/ProductGalleryContent.ts +1 -1
- package/src/components/ProductTile/ProductTile.example.json +1 -0
- package/src/components/ProductTile/ProductTile.fixture.tsx +50 -117
- package/src/components/TariffsTable/TableTileHeader.tsx +15 -0
- package/src/components/TariffsTable/TariffsTable.example.json +7 -1
- package/src/components/TariffsTable/TariffsTable.fixture.mobile.tsx +164 -0
- package/src/components/TariffsTable/TariffsTable.fixture.tsx +5 -1
- package/src/components/TariffsTable/TariffsTable.mobile.tsx +54 -0
- package/src/components/TariffsTable/TariffsTable.tsx +51 -47
- package/src/components/TariffsTable/TariffsTableCell.tsx +3 -3
- package/src/components/TariffsTable/TariffsTableContent.ts +31 -23
- package/src/components/TariffsTable/TariffsTableHorizontal.tsx +16 -0
- package/src/components/TariffsTable/TariffsTableTileCell.tsx +61 -0
- package/src/components/TariffsTable/TariffsTableVertical.tsx +11 -0
- package/src/components/TextBlock/TextBlock.fixture.mobile.tsx +105 -93
- package/src/components/TextBlock/TextBlock.fixture.tsx +91 -64
- package/src/components/TextBlock/TextBlock.mobile.tsx +2 -2
- package/src/components/Tile/Tile.fixture.tsx +17 -35
- package/src/hooks/useTableArrowScrollControl.ts +22 -0
- package/src/model/ListOrientation.ts +8 -0
- package/src/model/SitemapProps.ts +12 -0
- package/src/services/sitemap/SitemapProps.ts +13 -1
- package/src/ui-kit/Button/Button.tsx +32 -54
- package/src/ui-kit/Button/ButtonInner.tsx +25 -21
- package/src/ui-kit/Img/Img.mobile.tsx +29 -15
- package/src/ui-kit/Img/Img.tsx +27 -24
- package/src/ui-kit/SwipeListControl/SwipeListControl.fixture.mobile.tsx +1 -1
- package/src/ui-kit/SwipeListControl/SwipeListControl.tsx +17 -20
- package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +12 -0
- package/src/ui-kit/TableArrowScrollControl/TableArrowScrollControl.tsx +27 -0
- package/src/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.ts +7 -0
- package/src/ui-kit/Tabs/Tabs.tsx +46 -0
- package/src/ui-kit/Tabs/TabsProps.ts +20 -0
- package/dist/hooks/useComparisonTableScroll.d.ts +0 -12
- package/dist/hooks/useComparisonTableScroll.js +0 -12
- package/dist/hooks/useComparisonTableScroll.js.map +0 -1
- package/lib/hooks/useComparisonTableScroll.d.ts +0 -12
- package/lib/hooks/useComparisonTableScroll.js +0 -9
- package/lib/hooks/useComparisonTableScroll.js.map +0 -1
- package/mobile/dist/hooks/useComparisonTableScroll.d.ts +0 -12
- package/mobile/dist/hooks/useComparisonTableScroll.js +0 -12
- package/mobile/dist/hooks/useComparisonTableScroll.js.map +0 -1
- package/mobile/lib/hooks/useComparisonTableScroll.d.ts +0 -12
- package/mobile/lib/hooks/useComparisonTableScroll.js +0 -9
- package/mobile/lib/hooks/useComparisonTableScroll.js.map +0 -1
- package/mobile/src/hooks/useComparisonTableScroll.ts +0 -21
- package/src/hooks/useComparisonTableScroll.ts +0 -21
|
@@ -246,18 +246,23 @@
|
|
|
246
246
|
return (jsx("img", { className: className, src: href, alt: alt, title: title, ...imgProps, "aria-hidden": "true" }));
|
|
247
247
|
});
|
|
248
248
|
|
|
249
|
-
const Img = JSX(({ className = '', image }) => {
|
|
249
|
+
const Img = JSX(({ className = '', image, imageClassName }) => {
|
|
250
250
|
if (!image) {
|
|
251
251
|
return null;
|
|
252
252
|
}
|
|
253
|
+
return (jsxs("picture", { className: className, children: [image.sources?.length
|
|
254
|
+
? image.sources.map(({ src, format }, index) => (jsx("source", { srcSet: src, type: formatToMimeType(format) }, `${index}_${src}`)))
|
|
255
|
+
: null, renderImg(image, imageClassName)] }));
|
|
256
|
+
});
|
|
257
|
+
const renderImg = (image, imageClassName = '') => {
|
|
253
258
|
const style = {
|
|
254
259
|
width: image.size?.width ? `${image.size?.width}px` : '100%',
|
|
255
260
|
height: image.size?.height ? `${image.size?.height}px` : '100%',
|
|
256
261
|
};
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
}
|
|
262
|
+
const title = image.title || '';
|
|
263
|
+
const alt = image.alt || image.title;
|
|
264
|
+
return (jsx("img", { src: image.src, className: `m-auto ${imageClassName}`, alt: alt, title: title, style: style, ...image.size }));
|
|
265
|
+
};
|
|
261
266
|
function formatToMimeType(format) {
|
|
262
267
|
return format ? `image/${String(format)}` : undefined;
|
|
263
268
|
}
|
|
@@ -282,7 +287,15 @@
|
|
|
282
287
|
const BASE_DOT_OPACITY = 0.3;
|
|
283
288
|
const ACTIVE_DOT_OPACITY_CHANGE = 0.7;
|
|
284
289
|
const SwipeListControlDots = JSX(({ children, activeIndex, indexFraction, showDots }) => {
|
|
285
|
-
|
|
290
|
+
const handleClick = (idx) => (e) => {
|
|
291
|
+
if (idx === activeIndex) {
|
|
292
|
+
return;
|
|
293
|
+
}
|
|
294
|
+
const contentContainer = e.currentTarget.parentElement
|
|
295
|
+
?.previousElementSibling;
|
|
296
|
+
contentContainer?.children[idx]?.scrollIntoView({ behavior: 'smooth' });
|
|
297
|
+
};
|
|
298
|
+
return showDots && children?.length ? (jsx("div", { className: "flex gap-2 mx-auto mt-5 w-fit", children: children?.map((_, idx) => (jsx("div", { onClick: handleClick(idx), className: `${DOT_STYLES}`, style: getDotStyles(idx, activeIndex, indexFraction), "aria-hidden": true }, String(idx)))) })) : null;
|
|
286
299
|
});
|
|
287
300
|
const getDotStyles = (currentIdx, activeIndex, indexFraction) => {
|
|
288
301
|
if (currentIdx < activeIndex || currentIdx > activeIndex + 1)
|
|
@@ -360,6 +373,12 @@
|
|
|
360
373
|
const SwipeListControl = JSX(({ className, context, children, gap = DEFAULT_GAP, padding = DEFAULT_PADDING, showDots = true, onSlideChange, }) => {
|
|
361
374
|
const [activeIndex, setActiveIndex] = context.useState(0);
|
|
362
375
|
const [indexFraction, setIndexFraction] = context.useState(0);
|
|
376
|
+
const dotsProps = {
|
|
377
|
+
activeIndex,
|
|
378
|
+
indexFraction,
|
|
379
|
+
showDots,
|
|
380
|
+
children,
|
|
381
|
+
};
|
|
363
382
|
const handleScroll = (e) => {
|
|
364
383
|
const { scrollLeft, clientWidth, childElementCount, scrollWidth, children } = e.currentTarget;
|
|
365
384
|
// horizontal PADDING / 2 to compensate padding-margin combo of child container
|
|
@@ -380,10 +399,8 @@
|
|
|
380
399
|
setActiveIndex(index);
|
|
381
400
|
setIndexFraction(fraction);
|
|
382
401
|
};
|
|
383
|
-
return (jsxs("div", { className: className, children: [
|
|
402
|
+
return (jsxs("div", { className: className, children: [jsx(SwipeListControlList, { gap: gap, padding: padding, activeIndex: activeIndex, onScroll: handleScroll, children: children }), jsx(SwipeListControlDots, { ...dotsProps })] }));
|
|
384
403
|
});
|
|
385
|
-
const renderSwipeList = ({ gap, padding, activeIndex, handleScroll, children }) => (jsx(SwipeListControlList, { gap: gap, padding: padding, activeIndex: activeIndex, onScroll: handleScroll, children: children }));
|
|
386
|
-
const renderSwipelistDots = ({ activeIndex, indexFraction, showDots, children }) => (jsx(SwipeListControlDots, { activeIndex: activeIndex, indexFraction: indexFraction, showDots: showDots, children: children }));
|
|
387
404
|
|
|
388
405
|
const LinkDocsListItemBase = JSX(({ className, iconClassName, textClassName, suffixClassName, doc, icon }) => {
|
|
389
406
|
const { text, fileSize, ...linkProps } = doc;
|
|
@@ -427,63 +444,6 @@
|
|
|
427
444
|
return (jsxs("div", { className: "flex flex-row mb-8", children: [benefit.icon && (jsx(Icon, { className: "w-[48px] h-[48px] bg-main rounded-full box-border p-[12px]", name: benefit.icon, width: "48", height: "48", asSVG: true })), jsxs("div", { className: "flex gap-1 flex-col h-full ml-5 max-w-[490px]", children: [benefit.label && (jsx("div", { className: "font-medium text-primary-text text-xl m-0", children: benefit.label })), benefit.description && (jsx("div", { className: "font-normal text-sm text-secondary-text", children: benefit.description }))] })] }, String(i)));
|
|
428
445
|
}
|
|
429
446
|
|
|
430
|
-
const LIST_STYLE_CLASSES$1 = 'rounded-full inline-block mr-3 mt-2';
|
|
431
|
-
const TEXT_STYLE_MAP$1 = {
|
|
432
|
-
primary: 'text-primary-text',
|
|
433
|
-
secondary: 'text-white',
|
|
434
|
-
gray: 'text-secondary-text',
|
|
435
|
-
};
|
|
436
|
-
const LIST_STYLE_MAP$1 = {
|
|
437
|
-
primary: 'bg-primary-main',
|
|
438
|
-
secondary: 'bg-white',
|
|
439
|
-
gray: 'bg-secondary-text',
|
|
440
|
-
};
|
|
441
|
-
const ListItem = JSX(({ className = '', isDotted = true, children, version = 'primary' }) => {
|
|
442
|
-
return (jsxs("div", { className: `font-sans flex items-start ${className}`, role: "listitem", children: [isDotted && jsx("div", { className: getListStyle$1(version) }), jsx("span", { className: `text-m-md ${TEXT_STYLE_MAP$1[version]}`, children: children })] }));
|
|
443
|
-
});
|
|
444
|
-
const getListStyle$1 = (version) => {
|
|
445
|
-
const size = version === 'gray' ? 'w-[6px] h-[6px] min-w-[6px] min-h-[6px]' : 'w-2 h-2 min-w-2 min-h-2';
|
|
446
|
-
return `${LIST_STYLE_CLASSES$1} ${LIST_STYLE_MAP$1[version]} ${size}`;
|
|
447
|
-
};
|
|
448
|
-
|
|
449
|
-
const List = JSX((props) => {
|
|
450
|
-
const { className = '', itemClassName, isDotted, items, version } = props;
|
|
451
|
-
return (jsx("section", { className: `${className}`, role: "list", children: items?.length
|
|
452
|
-
? items.map((_, i) => (jsx(ListItem, { className: itemClassName, isDotted: isDotted, version: version, children: _ }, String(i))))
|
|
453
|
-
: null }));
|
|
454
|
-
});
|
|
455
|
-
|
|
456
|
-
const textBlockStyleMaps = {
|
|
457
|
-
primary: {
|
|
458
|
-
background: 'bg-white',
|
|
459
|
-
icon: 'bg-primary-main text-white',
|
|
460
|
-
title: 'text-primary-text',
|
|
461
|
-
description: 'text-secondary-text',
|
|
462
|
-
},
|
|
463
|
-
secondary: {
|
|
464
|
-
background: 'bg-primary-main',
|
|
465
|
-
icon: 'bg-white text-primary-main',
|
|
466
|
-
title: 'text-white',
|
|
467
|
-
description: 'text-white',
|
|
468
|
-
},
|
|
469
|
-
'secondary-light': {
|
|
470
|
-
background: 'bg-primary-main/10',
|
|
471
|
-
icon: 'bg-primary-main text-white',
|
|
472
|
-
title: 'text-primary-text',
|
|
473
|
-
description: 'text-secondary-text',
|
|
474
|
-
},
|
|
475
|
-
};
|
|
476
|
-
const TextBlock = JSX(({ title, description, blockVersion = 'primary', iconVersion, image, className = '', items, isDotted = true, }) => {
|
|
477
|
-
const textBlockStyleMap = textBlockStyleMaps[blockVersion];
|
|
478
|
-
return (jsxs("section", { className: `font-sans px-4 py-[18px] flex flex-col ${textBlockStyleMap.background} ${className}`, children: [iconVersion === 'small' ? renderIcon(textBlockStyleMap.icon) : null, iconVersion === 'big' ? renderImage$1(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, items?.length ? (jsx(List, { items: items, isDotted: isDotted, version: "gray", className: "mt-1 text-m-sm text-secondary-text" })) : null] })] }));
|
|
479
|
-
});
|
|
480
|
-
function renderIcon(className) {
|
|
481
|
-
return (jsx("div", { className: "mb-3", children: jsx("div", { className: `rounded-full h-4 w-4 text-center text-xs ${className}`, children: "i" }) }));
|
|
482
|
-
}
|
|
483
|
-
function renderImage$1(image) {
|
|
484
|
-
return image?.src ? jsx(Img, { className: "pb-3 mr-auto", image: image }) : null;
|
|
485
|
-
}
|
|
486
|
-
|
|
487
447
|
const isURL = (href) => href?.includes('//');
|
|
488
448
|
const withoutQuery = (href) => (href || '').replace(/\/?\?.*/, '');
|
|
489
449
|
const getOrigin = (href) => {
|
|
@@ -541,17 +501,23 @@
|
|
|
541
501
|
};
|
|
542
502
|
}
|
|
543
503
|
|
|
544
|
-
const ButtonInner = JSX((
|
|
545
|
-
const
|
|
546
|
-
|
|
547
|
-
? `flex items-center justify-center
|
|
548
|
-
${withoutText ? 'h-12 w-12' : `px-8 gap-2 ${aboveText ? 'py-2' : 'py-3.5'}`} ${rounded ? 'rounded-full' : ''}`
|
|
549
|
-
: null;
|
|
550
|
-
return renderButtonInner({ buttonInnerClasses, appendLeft, withoutText, aboveText, text });
|
|
504
|
+
const ButtonInner = JSX((props) => {
|
|
505
|
+
const { text, aboveText, appendLeft } = props;
|
|
506
|
+
return (jsxs("div", { className: getButtonStyle(props), children: [appendLeft ? appendLeft : null, isWithText(props) ? (jsxs("div", { children: [jsx("div", { className: "text-m-2xs text-left", children: aboveText }), jsx("div", { className: "text-m-button font-medium text-left", children: text })] })) : null] }));
|
|
551
507
|
});
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
508
|
+
const getButtonStyle = (props) => {
|
|
509
|
+
const { version, aboveText, rounded } = props;
|
|
510
|
+
if (version === 'link') {
|
|
511
|
+
return '';
|
|
512
|
+
}
|
|
513
|
+
const withTextStyle = `px-8 gap-2 ${aboveText ? 'py-2' : 'py-3.5'}`;
|
|
514
|
+
return [
|
|
515
|
+
'flex items-center justify-center',
|
|
516
|
+
isWithText(props) ? withTextStyle : 'h-12 w-12',
|
|
517
|
+
rounded ? 'rounded-full' : '',
|
|
518
|
+
].join(' ');
|
|
519
|
+
};
|
|
520
|
+
const isWithText = ({ text, aboveText, appendLeft }) => Boolean(text || aboveText || !appendLeft);
|
|
555
521
|
|
|
556
522
|
const buttonStyleMap = {
|
|
557
523
|
primary: 'text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active',
|
|
@@ -575,9 +541,9 @@
|
|
|
575
541
|
const ButtonSection = JSX(({ context, className = '', buttons }) => {
|
|
576
542
|
const { handlerDecorator } = context;
|
|
577
543
|
const router = context.useRouter();
|
|
578
|
-
return buttons?.length ? (jsx("div", { className: `${className}`, children: buttons.map((button, index) => renderButton$
|
|
544
|
+
return buttons?.length ? (jsx("div", { className: `${className}`, children: buttons.map((button, index) => renderButton$3(useLink({ router, handlerDecorator }, button), index)) })) : null;
|
|
579
545
|
});
|
|
580
|
-
function renderButton$
|
|
546
|
+
function renderButton$3({ icon, ...button }, i) {
|
|
581
547
|
if (!button?.text)
|
|
582
548
|
return;
|
|
583
549
|
return icon ? (jsx(Button, { appendLeft: jsx(Icon, { name: icon, width: "24", height: "24", asSVG: true }), ...button }, String(i))) : (jsx(Button, { ...button }, String(i)));
|
|
@@ -588,10 +554,93 @@
|
|
|
588
554
|
return jsx("div", { className: `font-normal text-m-md ${className}`, children: description });
|
|
589
555
|
});
|
|
590
556
|
|
|
557
|
+
const LIST_STYLE_CLASSES$1 = 'rounded-full inline-block mr-3 mt-2';
|
|
558
|
+
const TEXT_STYLE_MAP$1 = {
|
|
559
|
+
primary: 'text-primary-text',
|
|
560
|
+
secondary: 'text-white',
|
|
561
|
+
gray: 'text-secondary-text',
|
|
562
|
+
};
|
|
563
|
+
const LIST_STYLE_MAP$1 = {
|
|
564
|
+
primary: 'bg-primary-main',
|
|
565
|
+
secondary: 'bg-white',
|
|
566
|
+
gray: 'bg-secondary-text',
|
|
567
|
+
};
|
|
568
|
+
const ListItem = JSX(({ className = '', isDotted = true, children, version = 'primary' }) => {
|
|
569
|
+
return (jsxs("div", { className: `font-sans flex items-start ${className}`, role: "listitem", children: [isDotted && jsx("div", { className: getListStyle$1(version) }), jsx("span", { className: `text-m-md ${TEXT_STYLE_MAP$1[version]}`, children: children })] }));
|
|
570
|
+
});
|
|
571
|
+
const getListStyle$1 = (version) => {
|
|
572
|
+
const size = version === 'gray' ? 'w-[6px] h-[6px] min-w-[6px] min-h-[6px]' : 'w-2 h-2 min-w-2 min-h-2';
|
|
573
|
+
return `${LIST_STYLE_CLASSES$1} ${LIST_STYLE_MAP$1[version]} ${size}`;
|
|
574
|
+
};
|
|
575
|
+
|
|
576
|
+
const List = JSX((props) => {
|
|
577
|
+
const { className = '', itemClassName, isDotted, items, version } = props;
|
|
578
|
+
return (jsx("section", { className: `${className}`, role: "list", children: items?.length
|
|
579
|
+
? items.map((_, i) => (jsx(ListItem, { className: itemClassName, isDotted: isDotted, version: version, children: _ }, String(i))))
|
|
580
|
+
: null }));
|
|
581
|
+
});
|
|
582
|
+
|
|
591
583
|
const BaseTile = JSX(({ className = '', title, children, buttons, image }) => {
|
|
592
584
|
return (jsxs("div", { className: `font-sans flex flex-col grow h-full items-start ${className}`, children: [title, jsxs("div", { className: "flex grow w-full justify-between", children: [jsxs("div", { className: "flex flex-col justify-between w-full", children: [jsx("div", { children: children }), buttons?.length ? jsx("div", { children: buttons }) : null] }), image] })] }));
|
|
593
585
|
});
|
|
594
586
|
|
|
587
|
+
const benefitTitleStyleMap = {
|
|
588
|
+
primary: 'text-primary-text',
|
|
589
|
+
secondary: 'text-white',
|
|
590
|
+
};
|
|
591
|
+
const benefitDescStyleMap = {
|
|
592
|
+
primary: 'text-secondary-text',
|
|
593
|
+
secondary: 'text-white',
|
|
594
|
+
};
|
|
595
|
+
function renderBenefit(benefit, i, version) {
|
|
596
|
+
return (jsxs("div", { className: "flex gap-3 items-center mb-2.5 last:mb-0", children: [benefit.icon && (jsx(Icon, { className: "w-6 h-6 rounded-full box-border", name: benefit.icon, width: "24", height: "24", asSVG: true })), jsx("div", { className: `font-medium text-m-title-xs m-0 ${benefitTitleStyleMap[version]}`, children: benefit.label }), benefit.description && (jsx("div", { className: `font-normal text-m-sm ${benefitDescStyleMap[version]}`, children: benefit.description }))] }, String(i)));
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
const ProductBlockInner = JSX(({ className = '', context, title, headingType = 'h2', description, benefits, buttons, image, items, version = 'primary', }) => {
|
|
600
|
+
return (jsxs("div", { className: `w-full text-primary-text ${className}`, children: [jsx("div", { children: jsxs(BaseTile, { context: context, title: title && (jsx(Heading, { headingType: headingType, title: title, className: "whitespace-pre-wrap max-w-[600px]" })), buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex flex-col mt-5 gap-2.5" })) : null, children: [description ? jsx(Description, { className: "mt-3", description: description }) : null, benefits?.filter((items) => items.label)?.length ? (jsx("div", { className: "mt-3", children: benefits.map((_, i) => renderBenefit(_, i, version)) })) : null, items?.length ? jsx(List, { className: "mt-3", items: items }) : null] }) }), renderImage$1(image)] }));
|
|
601
|
+
});
|
|
602
|
+
function renderImage$1(image) {
|
|
603
|
+
return image?.src ? (jsx("div", { className: "mt-5", children: jsx(Img, { image: { className: 'block', ...image } }) })) : null;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
const ProductBlock = JSX(
|
|
607
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
608
|
+
(props /* Get rid of image and benefits */) => {
|
|
609
|
+
const { className } = props;
|
|
610
|
+
return (jsx("section", { className: `font-sans bg-white px-4 py-6 ${className || ''}`, children: jsx(ProductBlockInner, { ...props }) }));
|
|
611
|
+
});
|
|
612
|
+
|
|
613
|
+
const textBlockStyleMaps = {
|
|
614
|
+
primary: {
|
|
615
|
+
background: 'bg-white',
|
|
616
|
+
icon: 'bg-primary-main text-white',
|
|
617
|
+
title: 'text-primary-text',
|
|
618
|
+
description: 'text-secondary-text',
|
|
619
|
+
},
|
|
620
|
+
secondary: {
|
|
621
|
+
background: 'bg-primary-main',
|
|
622
|
+
icon: 'bg-white text-primary-main',
|
|
623
|
+
title: 'text-white',
|
|
624
|
+
description: 'text-white',
|
|
625
|
+
},
|
|
626
|
+
'secondary-light': {
|
|
627
|
+
background: 'bg-primary-main/10',
|
|
628
|
+
icon: 'bg-primary-main text-white',
|
|
629
|
+
title: 'text-primary-text',
|
|
630
|
+
description: 'text-secondary-text',
|
|
631
|
+
},
|
|
632
|
+
};
|
|
633
|
+
const TextBlock = JSX(({ title, description, blockVersion = 'primary', iconVersion, image, className = '', items, isDotted = true, }) => {
|
|
634
|
+
const textBlockStyleMap = textBlockStyleMaps[blockVersion];
|
|
635
|
+
return (jsxs("section", { className: `font-sans px-4 py-[18px] flex flex-col ${textBlockStyleMap.background} ${className}`, children: [iconVersion === 'small' ? renderIcon(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, items?.length ? (jsx(List, { className: "mt-1", items: items, isDotted: isDotted, version: blockVersion.indexOf('secondary') !== -1 ? 'secondary' : 'gray' })) : null] })] }));
|
|
636
|
+
});
|
|
637
|
+
function renderIcon(className) {
|
|
638
|
+
return (jsx("div", { className: "mb-3", children: jsx("div", { className: `rounded-full h-4 w-4 text-center text-xs ${className}`, children: "i" }) }));
|
|
639
|
+
}
|
|
640
|
+
function renderImage(image) {
|
|
641
|
+
return image?.src ? jsx(Img, { className: "pb-3 mr-auto", image: image }) : null;
|
|
642
|
+
}
|
|
643
|
+
|
|
595
644
|
const getColSpan = (className) => {
|
|
596
645
|
const colSpanPrefix = 'col-span-';
|
|
597
646
|
const colSpanStr = className.split(/\s+/).find((_) => _.startsWith(colSpanPrefix));
|
|
@@ -673,23 +722,23 @@
|
|
|
673
722
|
secondary: 'bg-primary-main text-white',
|
|
674
723
|
};
|
|
675
724
|
const Gallery = JSX(({ context, title, description, cards = [], className, isScroll = true }) => {
|
|
676
|
-
return (jsxs("section", { className: `relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${className}`, children: [jsxs("div", { className: "flex flex-col items-center mb-5", children: [jsx(Heading, { headingType: "
|
|
725
|
+
return (jsxs("section", { className: `relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${className}`, children: [jsxs("div", { className: "flex flex-col items-center mb-5", children: [title ? (jsx(Heading, { headingType: "h3", className: `text-center ${description ? 'mb-2' : 'mb-5'}`, title: title })) : null, description ? (jsx("div", { className: "font-normal text-m-md max-w-[600px] text-center mb-5", children: description })) : null] }), renderCardsLayout(isScroll, cards, context)] }));
|
|
677
726
|
});
|
|
678
727
|
function renderCardsLayout(isScroll, cards, context) {
|
|
679
728
|
return isScroll ? (jsx(SwipeListControl, { context: context, children: cards?.map(renderCard$1) })) : (jsx("div", { className: "grid gap-[14px]", children: cards?.map(renderCard$1) }));
|
|
680
729
|
}
|
|
681
730
|
function renderCard$1(card, key) {
|
|
682
|
-
return (jsxs("div", { className: `box-border horizontal-list-item border-solid border rounded-md border-main-stroke p-4 flex flex-col
|
|
683
|
-
${blockStyle[card.version ?? 'primary']}`, children: [jsxs("div", { children: [card.image?.src ? (jsx("div", { className: "flex justify-center", children: jsx(Img, { className: "mb-
|
|
731
|
+
return (jsxs("div", { className: `h-full justify-between box-border horizontal-list-item border-solid border rounded-md border-main-stroke p-4 flex flex-col
|
|
732
|
+
${blockStyle[card.version ?? 'primary']}`, children: [jsxs("div", { children: [card.image?.src ? (jsx("div", { className: "flex justify-center", children: jsx(Img, { className: "mb-3.5", image: card.image }) })) : null, card.title ? jsx("h3", { className: `font-medium text-m-title-xs m-0`, children: card.title }) : null, card.description ? renderDescription(card) : null, card.items?.length ? renderItems$1(card.items, card.version) : null] }), card?.button?.text ? renderButton$2(card.button) : null] }, key));
|
|
684
733
|
}
|
|
685
|
-
function renderButton$
|
|
734
|
+
function renderButton$2(button) {
|
|
686
735
|
return (jsx(Button, { className: "mt-3", appendLeft: button?.icon && jsx(Icon, { name: button?.icon, width: "24px", height: "24px", asSVG: true }), ...button }));
|
|
687
736
|
}
|
|
688
737
|
function renderDescription(card) {
|
|
689
|
-
return (jsx("div", { className: `text-secondary-text mt-
|
|
738
|
+
return (jsx("div", { className: `text-secondary-text mt-1 text-m-sm ${card.version === 'secondary' ? 'text-white opacity-80' : ''}`, children: card.description }));
|
|
690
739
|
}
|
|
691
|
-
function renderItems$1(items) {
|
|
692
|
-
return (jsx("section", { className: "mt-3", children: items.map((item, i) => (jsxs("div", { children: [jsx("span", { className: "text-m-md font-medium", children: item.title }), jsx("span", { className:
|
|
740
|
+
function renderItems$1(items, version = 'primary') {
|
|
741
|
+
return (jsx("section", { className: "mt-3", children: items.map((item, i) => (jsxs("div", { children: [jsx("span", { className: "text-m-md font-medium", children: item.title }), jsx("span", { className: `text-m-sm pl-2 ${version === 'primary' ? 'text-secondary-text' : ''}`, children: item.text })] }, String(i)))) }));
|
|
693
742
|
}
|
|
694
743
|
|
|
695
744
|
const SVG = JSX(({ className, viewBox, fill = 'none', width, height, paths, ...commonOptions }) => {
|
|
@@ -750,9 +799,9 @@
|
|
|
750
799
|
|
|
751
800
|
const GalleryCardInner = JSX(({ title, description, image, items, button, version }) => {
|
|
752
801
|
const titleStyleClasses = getTitleStyle(version, description, items);
|
|
753
|
-
return (jsxs("div", { children: [jsxs("div", { children: [image?.src ? (jsx("div", { className: "flex justify-center", children: jsx(Img, { className: "mb-6", image: image }) })) : null, title ? renderCardTitle(title, titleStyleClasses) : null, description ? (jsx("div", { className: `font-normal text-sm ${title ? 'mt-2' : ''}`, children: description })) : null, items?.length ? renderItems(items, version) : null] }), button?.text ? renderButton(button) : null] }));
|
|
802
|
+
return (jsxs("div", { children: [jsxs("div", { children: [image?.src ? (jsx("div", { className: "flex justify-center", children: jsx(Img, { className: "mb-6", image: image }) })) : null, title ? renderCardTitle(title, titleStyleClasses) : null, description ? (jsx("div", { className: `font-normal text-sm ${title ? 'mt-2' : ''}`, children: description })) : null, items?.length ? renderItems(items, version) : null] }), button?.text ? renderButton$1(button) : null] }));
|
|
754
803
|
});
|
|
755
|
-
function renderButton(button) {
|
|
804
|
+
function renderButton$1(button) {
|
|
756
805
|
return (jsx(Button, { className: "mt-6 w-full", appendLeft: button.icon && jsx(Icon, { name: button.icon, width: "24px", height: "24px", asSVG: true }), ...button }));
|
|
757
806
|
}
|
|
758
807
|
function renderCardTitle(title, className) {
|
|
@@ -789,7 +838,7 @@
|
|
|
789
838
|
const showNextButton = isGalleryScrollAvailable &&
|
|
790
839
|
cards?.length - activeCardIndex > galleryLengthForScrollMap[version];
|
|
791
840
|
const showPrevButton = isGalleryScrollAvailable && activeCardIndex > 0;
|
|
792
|
-
return (jsxs("section", { className: `relative font-sans text-primary-text bg-white p-[50px] overflow-hidden ${className}`, children: [jsx(GalleryContainer, { context: context, cards: cards, version: version, activeCardIndex: activeCardIndex, ...rest }), showPrevButton && (jsx(ArrowButton, { className: "absolute top-1/2 left-8 rotate-180 z-10 mt-[25px]", onClick: handlePrevClick, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E" })), showNextButton && (jsx(ArrowButton, { className: "absolute top-1/2 right-8 z-10 mt-[25px]", onClick: handleNextClick, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E" })), 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" })] }));
|
|
841
|
+
return (jsxs("section", { className: `relative font-sans text-primary-text bg-white p-[50px] overflow-hidden ${className}`, children: [jsx(GalleryContainer, { context: context, cards: cards, version: version, activeCardIndex: activeCardIndex, ...rest }), showPrevButton && (jsx(ArrowButton, { className: "absolute top-1/2 left-8 rotate-180 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" })), showNextButton && (jsx(ArrowButton, { className: "absolute top-1/2 right-8 z-10 mt-[25px]", onClick: handleNextClick, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E", "data-block-control": "scroll-right" })), 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" })] }));
|
|
793
842
|
});
|
|
794
843
|
|
|
795
844
|
const MiniGallery = JSX((props) => (jsx(GalleryInner, { ...props, version: "mini" })));
|
|
@@ -809,6 +858,7 @@
|
|
|
809
858
|
LinkDocs,
|
|
810
859
|
TextBlock,
|
|
811
860
|
PictureText,
|
|
861
|
+
ProductBlock,
|
|
812
862
|
Tile,
|
|
813
863
|
ProductTile,
|
|
814
864
|
Gallery,
|
|
@@ -825,7 +875,7 @@
|
|
|
825
875
|
return null;
|
|
826
876
|
}
|
|
827
877
|
const AccordionBlock = AccordionBlocks[type];
|
|
828
|
-
return (jsx("div", { className: "mb-5 last:mb-0", children: jsx(AccordionBlock, { context: context, ...block, className: "!p-0" }) }, `block_${i}`));
|
|
878
|
+
return (jsx("div", { className: "mb-5 last:mb-0 first:mt-2", children: jsx(AccordionBlock, { context: context, ...block, className: "!p-0" }) }, `block_${i}`));
|
|
829
879
|
};
|
|
830
880
|
|
|
831
881
|
const isActiveHandler = ({ context, blocks }) => {
|
|
@@ -853,13 +903,75 @@
|
|
|
853
903
|
});
|
|
854
904
|
return (jsxs("li", { className: `${bordered ? 'border p-4 rounded mb-4' : 'border-0 border-b last:border-b-0'} border-solid border-main-divider`, children: [jsxs("button", { className: `border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text
|
|
855
905
|
${bordered ? '' : 'py-[14px] px-0'}
|
|
856
|
-
${hasContent ? 'group cursor-pointer' : ''}`, onClick: handleToggle, children: [jsx("span", { className: `text-
|
|
906
|
+
${hasContent ? 'group cursor-pointer' : ''}`, onClick: handleToggle, children: [jsx("span", { className: `text-m-title-xs pr-2.5 font-medium ${hasContent ? 'group-hover:text-primary-main' : ''}`, children: label }), hasContent ? jsx(Icon, { name: icon, width: "24", height: "24", asSVG: true }) : null] }), hasContent ? jsx(AccordionItemInner, { blocks: blocks, context: context }) : null] }));
|
|
857
907
|
});
|
|
858
908
|
|
|
859
909
|
const Accordion = JSX(({ title, description, accordionItems, context, className = '', bordered }) => {
|
|
860
910
|
return (jsxs("section", { className: `py-6 px-4 font-sans bg-white text-primary-text ${className}`, children: [title ? jsx(Heading, { headingType: "h3", className: "mb-2 text-center", title: title }) : null, description ? jsx("div", { className: "mb-5 text-m-md text-center", children: description }) : null, accordionItems?.length ? (jsx("ul", { className: "list-none m-0 p-0", children: accordionItems.map((item, i) => (jsx(AccordionItem, { ...item, context: context, bordered: bordered }, `AccordionItem${i}`))) })) : null] }));
|
|
861
911
|
});
|
|
862
912
|
|
|
913
|
+
const GRADIENT = 'bg-gradient-to-r from-main-gradient-start to-main-gradient-end';
|
|
914
|
+
const DIVIDER_CLASSES = 'border-main-divider border border-t-0 border-x-0';
|
|
915
|
+
|
|
916
|
+
const HeaderCell = JSX(({ icon, image, title, subtitle, isFillGradient }) => (jsxs("div", { role: "columnheader", scope: "col", children: [icon && (jsx(Icon, { className: "h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4", name: icon, width: "63", height: "63" })), image?.src && (jsx("div", { className: "mb-3.5", children: jsx(Img, { image: image }) })), title && (jsx(Heading, { headingType: "h4", className: `${isFillGradient ? 'text-white' : ''}`, title: title })), subtitle && (jsx("div", { className: `text-m-sm mb-3.5 ${isFillGradient ? 'text-white' : 'text-secondary-text/80'}`, children: subtitle }))] })));
|
|
917
|
+
|
|
918
|
+
const TableCell = JSX(({ cell, rowHeader, isFillGradient = false }) => {
|
|
919
|
+
const cellWrapperClasses = `box-border flex flex-col`;
|
|
920
|
+
const cellClasses = `h-full ${DIVIDER_CLASSES}`;
|
|
921
|
+
return (jsx("div", { className: cellWrapperClasses, role: "cell", children: jsx("div", { className: cellClasses, children: cell.map(renderCellInner$1(isFillGradient, rowHeader)) }) }));
|
|
922
|
+
});
|
|
923
|
+
const renderCellInner$1 = (isFillGradient, rowHeader) => ({ label, description }, i) => (jsxs("div", { className: "flex justify-between text-m-sm py-3.5", children: [jsx("div", { className: `${isFillGradient ? 'text-white/80' : 'text-secondary-text'}`, children: rowHeader }), jsxs("div", { className: "basis-1/2", children: [label && (jsx("div", { className: `text-right ${isFillGradient ? 'text-white' : ''}`, children: label })), description && (jsx("div", { className: `text-right ${isFillGradient ? 'text-white/80' : 'text-secondary-text'}`, children: description }))] })] }, String(i)));
|
|
924
|
+
|
|
925
|
+
const TableColumn = JSX(({ header, columnData, visibleRowLength = 0, isFillGradient, showRow, onToggleColumn }) => {
|
|
926
|
+
const columnDataView = columnData.slice(0, showRow ? columnData.length : visibleRowLength);
|
|
927
|
+
const gradientClassName = isFillGradient ? GRADIENT : '';
|
|
928
|
+
const buttonVersion = isFillGradient ? 'secondary' : 'primary';
|
|
929
|
+
return (jsxs("div", { className: `border border-main-stroke rounded-md p-4 mb-3.5 ${gradientClassName}`, role: "row", children: [jsx(HeaderCell, { ...header, isFillGradient: isFillGradient }), columnDataView?.length
|
|
930
|
+
? columnDataView.map(({ rowHeader, cell }, i) => (jsx(TableCell, { cell: cell, rowHeader: rowHeader, isFillGradient: isFillGradient }, String(i))))
|
|
931
|
+
: null, showRow && renderButton({ header, buttonVersion }), renderToggleButton({ onToggleColumn, isFillGradient, showRow })] }));
|
|
932
|
+
});
|
|
933
|
+
const renderButton = ({ header, buttonVersion }) => (jsx(Button, { href: header.link.href, target: header.link.target, version: buttonVersion, className: "font-medium text-m-sm mt-4 py-[11px]", children: header.link.text }));
|
|
934
|
+
const renderToggleButton = ({ onToggleColumn, isFillGradient, showRow }) => (jsx("div", { className: "mt-5", role: "cell", children: jsx("a", { role: "link", onClick: onToggleColumn, className: `font-medium text-m-sm cursor-pointer ${isFillGradient ? 'text-white/80' : 'text-primary-main'}`, children: !showRow ? 'Показать описание' : 'Скрыть' }) }));
|
|
935
|
+
|
|
936
|
+
const ComparisonTable = JSX(({ className, context, title, rowHeaders, columns, visibleRowLength = 0, isColoredFirstColumn = false, useSwiper = false, }) => {
|
|
937
|
+
const tableData = columns?.map(({ data, header }) => ({
|
|
938
|
+
header,
|
|
939
|
+
column: data?.map((cell, i) => ({ cell, rowHeader: rowHeaders?.[i]?.title })),
|
|
940
|
+
})) || [];
|
|
941
|
+
const [columnsViewState, setColumnsViewState] = context.useState(new Array(columns?.length).fill(!visibleRowLength));
|
|
942
|
+
const handleToggleColumn = (i) => {
|
|
943
|
+
columnsViewState[i] = !columnsViewState[i];
|
|
944
|
+
setColumnsViewState([...columnsViewState]);
|
|
945
|
+
};
|
|
946
|
+
return (jsxs("section", { className: `bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${className || ''}`, children: [title && (jsx(Heading, { headingType: "h3", className: "font-medium text-center m-0 mb-5", title: title })), renderColumns({
|
|
947
|
+
tableData,
|
|
948
|
+
context,
|
|
949
|
+
visibleRowLength,
|
|
950
|
+
isColoredFirstColumn,
|
|
951
|
+
columnsViewState,
|
|
952
|
+
handleToggleColumn,
|
|
953
|
+
useSwiper,
|
|
954
|
+
setColumnsViewState,
|
|
955
|
+
})] }));
|
|
956
|
+
});
|
|
957
|
+
const renderColumns = ({ context, tableData, visibleRowLength, isColoredFirstColumn, columnsViewState, handleToggleColumn, useSwiper, setColumnsViewState, }) => (jsx("div", { role: "table", children: tableData?.length ? (useSwiper ? (jsx(SwipeListControl, { context: context, onSlideChange: onSlideChange(columnsViewState, setColumnsViewState), children: tableData.map(renderColumn({
|
|
958
|
+
context,
|
|
959
|
+
visibleRowLength,
|
|
960
|
+
isColoredFirstColumn,
|
|
961
|
+
columnsViewState,
|
|
962
|
+
handleToggleColumn,
|
|
963
|
+
})) })) : (tableData.map(renderColumn({
|
|
964
|
+
context,
|
|
965
|
+
visibleRowLength,
|
|
966
|
+
isColoredFirstColumn,
|
|
967
|
+
columnsViewState,
|
|
968
|
+
handleToggleColumn,
|
|
969
|
+
})))) : null }));
|
|
970
|
+
const renderColumn = ({ context, visibleRowLength, isColoredFirstColumn, columnsViewState, handleToggleColumn }) => (columnData, i) => (jsx(TableColumn, { context: context, visibleRowLength: visibleRowLength, showRow: columnsViewState[i], header: columnData.header, columnData: columnData.column, isFillGradient: i === 0 && isColoredFirstColumn, onToggleColumn: () => handleToggleColumn(i) }, String(i)));
|
|
971
|
+
const onSlideChange = (columnsViewState, setColumnsViewState) => () => {
|
|
972
|
+
setColumnsViewState(new Array(columnsViewState.length).fill(false));
|
|
973
|
+
};
|
|
974
|
+
|
|
863
975
|
function useExchangeRates(useAsyncData) {
|
|
864
976
|
const { data } = useAsyncData(EXCHANGE_RATES_URL, fetchExchangeRates);
|
|
865
977
|
return data || {};
|
|
@@ -1042,12 +1154,22 @@
|
|
|
1042
1154
|
],
|
|
1043
1155
|
}));
|
|
1044
1156
|
|
|
1045
|
-
|
|
1046
|
-
const
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1157
|
+
function useSitemap(useAsyncData) {
|
|
1158
|
+
const { data } = useAsyncData(sitemapURL(), fetchSitemap);
|
|
1159
|
+
return data || {};
|
|
1160
|
+
}
|
|
1161
|
+
async function fetchSitemap() {
|
|
1162
|
+
const response = await fetch(sitemapURL());
|
|
1163
|
+
return await response.json();
|
|
1164
|
+
}
|
|
1165
|
+
function sitemapURL() {
|
|
1166
|
+
return `/wcms-resources/${projectSettings.SITEMAP || 'sitemap'}.json`;
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
const Footer = JSX(({ className = '', documents, relatedEnterprises, contacts, socialMedia, context, horizontalNavigationTitle, }) => {
|
|
1170
|
+
const sitemap = useSitemap(context.useAsyncData);
|
|
1171
|
+
const dispositions = sitemap?.dispositions;
|
|
1172
|
+
return (jsxs("footer", { className: `px-4 py-[26px] bg-white ${className}`, children: [jsx(Contacts, { className: "overflow-hidden", items: contacts, context: context, hasButton: true }), jsx(Accordion, { context: context, className: "!p-0 mb-4", accordionItems: getAccordionItems(sitemap.topItems) }), jsx("div", { children: dispositions?.map(renderSubMenuItem) }), jsx(MobileAppTile, { context: context, title: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435", description: "\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0434\u043B\u044F IOS \u0438 Android" }), jsx(SearchBar, { context: context, className: "grow" }), jsx(SocialMedia, { className: "pb-4", media: socialMedia, context: context }), jsx(HorizontalNavigation, { title: horizontalNavigationTitle, links: relatedEnterprises, context: context }), jsx(TextInformation, { links: documents, context: context })] }));
|
|
1051
1173
|
});
|
|
1052
1174
|
const renderSubMenuItem = (menu, i) => {
|
|
1053
1175
|
const { icon, href, text } = menu;
|
|
@@ -1081,18 +1203,6 @@
|
|
|
1081
1203
|
const subtract = (minuend, subtrahend) => (minuend || []).filter((_) => !subtrahend?.find(cmp(_)));
|
|
1082
1204
|
const mergeTopItems = (left, right) => substitute(left, right).concat(subtract(right, left));
|
|
1083
1205
|
|
|
1084
|
-
function useSitemap(useAsyncData) {
|
|
1085
|
-
const { data } = useAsyncData(sitemapURL(), fetchSitemap);
|
|
1086
|
-
return data || {};
|
|
1087
|
-
}
|
|
1088
|
-
async function fetchSitemap() {
|
|
1089
|
-
const response = await fetch(sitemapURL());
|
|
1090
|
-
return await response.json();
|
|
1091
|
-
}
|
|
1092
|
-
function sitemapURL() {
|
|
1093
|
-
return `/wcms-resources/${projectSettings.SITEMAP || 'sitemap'}.json`;
|
|
1094
|
-
}
|
|
1095
|
-
|
|
1096
1206
|
const TEXT_CLASSES = 'font-sans font-normal text-sm';
|
|
1097
1207
|
const BORDER_CLASSES = 'absolute left-0 -bottom-3 w-full h-[2px]';
|
|
1098
1208
|
const HeaderItem = JSX(({ className, text, href, target, active, onClick, children, bgColor = 'bg-white' }) => {
|
|
@@ -1114,18 +1224,19 @@
|
|
|
1114
1224
|
|
|
1115
1225
|
const HeaderBurger = JSX(({ context, burgerSubMenu, onClick, defaultLocation = '', children }) => {
|
|
1116
1226
|
const [city, getCity] = context.useGeolocation(defaultLocation);
|
|
1117
|
-
return (jsxs("div", { className: "absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20", children: [jsx("button", { className: "absolute top-4 right-4 border-none bg-transparent cursor-pointer", onClick: onClick, children: jsx(Icon, { name: "CloseIcon", width: "24", height: "24", asSVG: true }) }), jsxs("button", { onClick: getCity, className: "flex items-center text-sm text-secondary-text mb-4 bg-transparent cursor-pointer", children: [jsx(Icon, { name: "GeolocationIcon", width: "20", height: "20", className: "text-primary-main box-border mr-2", asSVG: true }), city] }), children, jsx("div", { className: "mb-7", children: burgerSubMenu?.map(renderBurgerSubMenuItem) }), jsx(SearchBar, { context: context, className: "grow" })] }));
|
|
1227
|
+
return (jsxs("div", { className: "absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20", children: [jsx("button", { className: "absolute top-4 right-4 border-none bg-transparent cursor-pointer", onClick: onClick, children: jsx(Icon, { name: "CloseIcon", width: "24", height: "24", asSVG: true }) }), jsxs("button", { onClick: getCity, className: "flex items-center text-sm text-secondary-text p-0 mb-4 bg-transparent cursor-pointer", children: [jsx(Icon, { name: "GeolocationIcon", width: "20", height: "20", className: "text-primary-main box-border mr-2", asSVG: true }), city] }), children, jsx("div", { className: "mb-7", children: burgerSubMenu?.map(renderBurgerSubMenuItem) }), jsx(SearchBar, { context: context, className: "grow" })] }));
|
|
1118
1228
|
});
|
|
1119
1229
|
const renderBurgerSubMenuItem = (menu, i) => {
|
|
1120
1230
|
const { icon, href, text } = menu;
|
|
1121
1231
|
return (jsxs("a", { href: href, className: "flex text-sm mb-4 hover:text-primary-main", children: [icon ? (jsx(Icon, { className: "text-primary-main pr-1", name: icon, width: "24", height: "24", asSVG: true })) : null, jsx("span", { className: "pl-0.5 font-medium", children: text })] }, `headerSubMenu-${i}`));
|
|
1122
1232
|
};
|
|
1123
1233
|
|
|
1124
|
-
const HeaderTop = JSX(({ onClick, bgColor }) => (jsxs("div", { className: "flex items-center justify-between border-0 border-b border-main-divider h-[50px]", children: [jsxs("div", { className: "flex items-center", children: [jsx("button", { className: "pr-4 border-0 bg-transparent cursor-pointer", onClick: onClick, "aria-label": "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043C\u0435\u043D\u044E", children: jsx(Icon, { name: bgColor === 'bg-white' ? 'BurgerIcon' : 'BurgerIconWhite', width: "24", height: "24", asSVG: true }) }), jsx(Logo, { bgColor: bgColor })] }), jsx("button", { className: `${bgColor === 'bg-white' ? 'text-primary-main' : 'text-white'} text-sm border-0 bg-transparent cursor-pointer`, children: "\u0412\u043E\u0439\u0442\u0438" })] })));
|
|
1234
|
+
const HeaderTop = JSX(({ onClick, bgColor }) => (jsxs("div", { className: "flex items-center justify-between border-0 border-b border-main-divider h-[50px]", children: [jsxs("div", { className: "flex items-center", children: [jsx("button", { className: "pl-0 pr-4 border-0 bg-transparent cursor-pointer", onClick: onClick, "aria-label": "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043C\u0435\u043D\u044E", children: jsx(Icon, { name: bgColor === 'bg-white' ? 'BurgerIcon' : 'BurgerIconWhite', width: "24", height: "24", asSVG: true }) }), jsx(Logo, { bgColor: bgColor })] }), jsx("button", { className: `${bgColor === 'bg-white' ? 'text-primary-main' : 'text-white'} text-sm border-0 bg-transparent cursor-pointer`, children: "\u0412\u043E\u0439\u0442\u0438" })] })));
|
|
1125
1235
|
|
|
1126
|
-
const Header = JSX(({ className = '', defaultLocation, bgColor = 'bg-white', context, topItems
|
|
1236
|
+
const Header = JSX(({ className = '', defaultLocation, bgColor = 'bg-white', context, topItems }) => {
|
|
1127
1237
|
const router = context.useRouter();
|
|
1128
1238
|
const sitemap = useSitemap(context.useAsyncData);
|
|
1239
|
+
const dispositions = sitemap?.dispositions;
|
|
1129
1240
|
const { handlerDecorator } = context;
|
|
1130
1241
|
const mergedItems = mergeTopItems(sitemap.topItems, topItems);
|
|
1131
1242
|
const activeTopItem = mergedItems.find(isTopItemActive(router));
|
|
@@ -1137,36 +1248,10 @@
|
|
|
1137
1248
|
...useLink({ router, handlerDecorator }, _),
|
|
1138
1249
|
active: _ === activeSubItem,
|
|
1139
1250
|
bgColor,
|
|
1140
|
-
}, i)) }) })] }), burgerMenuShow ? (jsx(HeaderBurger, { context: context, onClick: toggleBurgerMenu, burgerSubMenu:
|
|
1251
|
+
}, i)) }) })] }), burgerMenuShow ? (jsx(HeaderBurger, { context: context, onClick: toggleBurgerMenu, burgerSubMenu: dispositions, defaultLocation: defaultLocation, children: jsx(Accordion, { context: context, accordionItems: getAccordionItems(sitemap.topItems), className: "!p-0 mb-4" }) })) : null] }));
|
|
1141
1252
|
});
|
|
1142
1253
|
const renderSubItem = (item, i) => (jsx(HeaderItem, { className: "mr-8 whitespace-nowrap text-sm", ...item }, String(i)));
|
|
1143
1254
|
|
|
1144
|
-
const benefitTitleStyleMap = {
|
|
1145
|
-
primary: 'text-primary-text',
|
|
1146
|
-
secondary: 'text-white',
|
|
1147
|
-
};
|
|
1148
|
-
const benefitDescStyleMap = {
|
|
1149
|
-
primary: 'text-secondary-text',
|
|
1150
|
-
secondary: 'text-white',
|
|
1151
|
-
};
|
|
1152
|
-
function renderBenefit(benefit, i, version) {
|
|
1153
|
-
return (jsxs("div", { className: "flex gap-3 items-center mb-2.5 last:mb-0", children: [benefit.icon && (jsx(Icon, { className: "w-6 h-6 rounded-full box-border", name: benefit.icon, width: "24", height: "24", asSVG: true })), jsx("div", { className: `font-medium text-m-title-xs m-0 ${benefitTitleStyleMap[version]}`, children: benefit.label }), benefit.description && (jsx("div", { className: `font-normal text-m-sm ${benefitDescStyleMap[version]}`, children: benefit.description }))] }, String(i)));
|
|
1154
|
-
}
|
|
1155
|
-
|
|
1156
|
-
const ProductBlockInner = JSX(({ className = '', context, title, headingType = 'h2', description, benefits, buttons, image, items, version = 'primary', }) => {
|
|
1157
|
-
return (jsxs("div", { className: `w-full text-primary-text ${className}`, children: [jsx("div", { children: jsxs(BaseTile, { context: context, title: title && (jsx(Heading, { headingType: headingType, title: title, className: "whitespace-pre-wrap max-w-[600px]" })), buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex flex-col mt-5 gap-2.5" })) : null, children: [description ? jsx(Description, { className: "mt-3", description: description }) : null, benefits?.filter((items) => items.label)?.length ? (jsx("div", { className: "mt-3", children: benefits.map((_, i) => renderBenefit(_, i, version)) })) : null, items?.length ? jsx(List, { className: "mt-3", items: items }) : null] }) }), renderImage(image)] }));
|
|
1158
|
-
});
|
|
1159
|
-
function renderImage(image) {
|
|
1160
|
-
return image?.src ? (jsx("div", { className: "mt-5", children: jsx(Img, { image: { className: 'block', ...image } }) })) : null;
|
|
1161
|
-
}
|
|
1162
|
-
|
|
1163
|
-
const ProductBlock = JSX(
|
|
1164
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1165
|
-
(props /* Get rid of image and benefits */) => {
|
|
1166
|
-
const { className } = props;
|
|
1167
|
-
return (jsx("section", { className: `font-sans bg-white px-4 py-6 ${className || ''}`, children: jsx(ProductBlockInner, { ...props }) }));
|
|
1168
|
-
});
|
|
1169
|
-
|
|
1170
1255
|
const ProductGalleryBlock = JSX(({ block, headingType, context }) => {
|
|
1171
1256
|
return (jsx("section", { className: "flex grow-0 shrink-0 basis-full px-4 pt-6", children: jsx("div", { className: "flex grow", children: jsx(ProductBlockInner, { context: context, headingType: headingType || 'h2', ...block }) }) }));
|
|
1172
1257
|
});
|
|
@@ -1194,20 +1279,49 @@
|
|
|
1194
1279
|
return (jsx("div", { className: `${iconAreaSize} bg-secondary-light rounded-full z-10 mr-3 flex justify-center content-center`, children: jsx("span", { className: `font-medium text-secondary-text self-center ${iconTextSize}`, children: (step.icon && jsx(Icon, { name: step.icon, width: iconSize, height: iconSize })) || i + 1 }) }));
|
|
1195
1280
|
};
|
|
1196
1281
|
|
|
1282
|
+
const TableTileHeader = JSX(({ title, icon }) => {
|
|
1283
|
+
return (jsxs("div", { className: "flex gap-2.5 mb-2", children: [title ? jsx(Heading, { headingType: "h3", className: "font-medium", title: title }) : null, icon ? (jsx(Icon, { className: "ml-auto max-w-6 max-h-6", name: icon, width: "24px", height: "24px" })) : null] }));
|
|
1284
|
+
});
|
|
1285
|
+
|
|
1286
|
+
const TariffsTableTileCell = JSX(({ header, data }) => {
|
|
1287
|
+
return (jsxs("div", { className: "rounded-md border-main-stroke h-full box-border border p-4", children: [jsx(TableTileHeader, { ...header }), data?.length ? data.map(renderCellInner) : null] }));
|
|
1288
|
+
});
|
|
1289
|
+
const renderCellInner = ({ label, description, list, image, buttons }, i) => (jsxs("div", { children: [i > 0 && (jsx("div", { className: "border-main-divider border border-solid border-t-0 border-x-0 my-2" })), label ? jsx("div", { className: "text-m-sm m-0", children: label }) : null, description ? (jsx("div", { className: "text-m-sm text-secondary-text mt-[3px]", children: description })) : null, list?.items?.length ? (jsx("div", { className: "flex flex-col justify-between items-start", children: jsx("div", { role: "list", children: list.items.map((text, idx) => (jsx(BlockItem, { className: "text-m-sm", text: text, version: "gray", isDotted: list.isDotted ?? true }, String(idx)))) }) })) : null, image && jsx(Img, { image: { ...image, className: 'm-0' } }), buttons?.length ? (jsx("div", { children: buttons.map(({ icon, rounded, ...buttonProps }, idx) => (jsx(Button, { className: `mt-3 ${idx > 0 && rounded ? 'ml-2.5' : ''} ${icon ? 'w-12 h-12' : ''}`, rounded: rounded, appendLeft: icon && jsx(Icon, { name: icon, width: "24px", height: "24px", asSVG: true }), ...buttonProps, "aria-label": icon }, String(idx)))) })) : null] }, String(i)));
|
|
1290
|
+
|
|
1291
|
+
const TariffsTableVertical = JSX(({ tiles }) => (jsx("div", { className: "flex flex-col gap-3.5", children: tiles.map((tile, i) => (jsx(TariffsTableTileCell, { ...tile }, String(i)))) })));
|
|
1292
|
+
|
|
1293
|
+
const TariffsTableHorizontal = JSX(({ tiles, context }) => (jsx(SwipeListControl, { context: context, children: tiles.map((tile, i) => (jsx(TariffsTableTileCell, { ...tile }, String(i)))) })));
|
|
1294
|
+
|
|
1295
|
+
const TariffsTable = JSX(({ className, context, title, description, columns, rowHeaders, orientation = 'vertical' }) => {
|
|
1296
|
+
const colData = getColData(columns);
|
|
1297
|
+
const tiles = getTiles(rowHeaders, colData);
|
|
1298
|
+
return (jsxs("section", { className: `px-4 py-6 bg-white font-sans text-primary-text ${className}`, children: [title ? (jsx(Heading, { headingType: "h2", className: `text-center ${description ? 'mb-2' : 'mb-5'}`, title: title })) : null, description ? jsx("div", { className: "mb-5 text-center text-m-md", children: description }) : null, tiles?.length ? renderOrientationTable(orientation, tiles, context) : null] }));
|
|
1299
|
+
});
|
|
1300
|
+
function renderOrientationTable(orientation, tiles, context) {
|
|
1301
|
+
return orientation === 'vertical' ? (jsx(TariffsTableVertical, { tiles: tiles })) : (jsx(TariffsTableHorizontal, { context: context, tiles: tiles }));
|
|
1302
|
+
}
|
|
1303
|
+
const getColData = (columns) => columns?.[0].data ? columns[0].data : [];
|
|
1304
|
+
const getTiles = (rowHeaders, colData) => rowHeaders?.map((header, i) => ({
|
|
1305
|
+
header,
|
|
1306
|
+
data: colData?.[i] || [{}],
|
|
1307
|
+
}));
|
|
1308
|
+
|
|
1197
1309
|
const Blocks = {
|
|
1198
1310
|
Accordion,
|
|
1311
|
+
ComparisonTable,
|
|
1199
1312
|
ExchangeRateTile,
|
|
1200
1313
|
Footer,
|
|
1201
1314
|
Gallery,
|
|
1202
1315
|
Header,
|
|
1203
1316
|
Headline,
|
|
1204
1317
|
LinkDocs,
|
|
1318
|
+
LinkList,
|
|
1205
1319
|
MobileAppTile,
|
|
1206
1320
|
ProductBlock,
|
|
1207
1321
|
ProductGallery,
|
|
1208
1322
|
StepsBlock,
|
|
1323
|
+
TariffsTable,
|
|
1209
1324
|
TextBlock,
|
|
1210
|
-
LinkList,
|
|
1211
1325
|
};
|
|
1212
1326
|
|
|
1213
1327
|
const LikeButton = JSX(({ className, onClick, ariaLabel }) => (jsx("button", { type: "button", className: `border-0 w-[36px] bg-inherit cursor-pointer ${className || ''}`, onClick: onClick, "aria-label": ariaLabel, children: renderLikeIcon() })));
|