@redneckz/wildless-cms-uni-blocks 0.3.12 → 0.3.15
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 +250 -158
- 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.d.ts +1 -0
- package/dist/components/Blocks.js +2 -0
- package/dist/components/Blocks.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/ContentPage/ContentPageHead.js +1 -1
- package/dist/components/ContentPage/ContentPageHead.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/Headline/Headline.js +3 -8
- package/dist/components/Headline/Headline.js.map +1 -1
- package/dist/components/Headline/Headline.mobile.js +3 -2
- package/dist/components/Headline/Headline.mobile.js.map +1 -1
- package/dist/components/Headline/HeadlineContent.d.ts +2 -2
- package/dist/components/Headline/constants.d.ts +4 -0
- package/dist/components/Headline/constants.js +13 -0
- package/dist/components/Headline/constants.js.map +1 -0
- 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/ProductBlock/ProductBlockInner.js +1 -1
- 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/ProductGallery/ProductGalleryContent.d.ts +1 -1
- package/dist/components/Recommendation/Recommendation.d.ts +5 -0
- package/dist/components/Recommendation/Recommendation.js +34 -0
- package/dist/components/Recommendation/Recommendation.js.map +1 -0
- package/dist/components/Recommendation/RecommendationCard.d.ts +7 -0
- package/dist/components/Recommendation/RecommendationCard.js +13 -0
- package/dist/components/Recommendation/RecommendationCard.js.map +1 -0
- package/dist/components/Recommendation/RecommendationContent.d.ts +14 -0
- package/dist/components/Recommendation/RecommendationContent.js +2 -0
- package/dist/components/Recommendation/RecommendationContent.js.map +1 -0
- 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/BlockVersion.d.ts +6 -1
- 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/Description/Description.js +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.d.ts +1 -0
- package/lib/components/Blocks.js +2 -0
- package/lib/components/Blocks.js.map +1 -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/ContentPage/ContentPageHead.js +1 -1
- package/lib/components/ContentPage/ContentPageHead.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/Headline/Headline.fixture.d.ts +4 -2
- package/lib/components/Headline/Headline.fixture.mobile.d.ts +2 -3
- package/lib/components/Headline/Headline.js +3 -8
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/Headline/Headline.mobile.js +3 -2
- package/lib/components/Headline/Headline.mobile.js.map +1 -1
- package/lib/components/Headline/HeadlineContent.d.ts +2 -2
- package/lib/components/Headline/constants.d.ts +4 -0
- package/lib/components/Headline/constants.js +11 -0
- package/lib/components/Headline/constants.js.map +1 -0
- 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/ProductBlock/ProductBlockInner.js +1 -1
- 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/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/Recommendation/Recommendation.d.ts +5 -0
- package/lib/components/Recommendation/Recommendation.fixture.d.ts +6 -0
- package/lib/components/Recommendation/Recommendation.js +32 -0
- package/lib/components/Recommendation/Recommendation.js.map +1 -0
- package/lib/components/Recommendation/RecommendationCard.d.ts +7 -0
- package/lib/components/Recommendation/RecommendationCard.js +11 -0
- package/lib/components/Recommendation/RecommendationCard.js.map +1 -0
- package/lib/components/Recommendation/RecommendationContent.d.ts +14 -0
- package/lib/components/Recommendation/RecommendationContent.js +2 -0
- package/lib/components/Recommendation/RecommendationContent.js.map +1 -0
- 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/BlockVersion.d.ts +6 -1
- 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/Description/Description.js +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 +268 -143
- 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/ContentPage/ContentPageHead.js +1 -1
- package/mobile/dist/components/ContentPage/ContentPageHead.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/Headline/Headline.js +3 -2
- package/mobile/dist/components/Headline/Headline.js.map +1 -1
- package/mobile/dist/components/Headline/HeadlineContent.d.ts +2 -2
- package/mobile/dist/components/Headline/constants.d.ts +4 -0
- package/mobile/dist/components/Headline/constants.js +13 -0
- package/mobile/dist/components/Headline/constants.js.map +1 -0
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -0
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/mobile/dist/components/ProductGallery/ProductGalleryContent.d.ts +1 -1
- package/mobile/dist/components/Recommendation/Recommendation.d.ts +5 -0
- package/mobile/dist/components/Recommendation/Recommendation.js +34 -0
- package/mobile/dist/components/Recommendation/Recommendation.js.map +1 -0
- package/mobile/dist/components/Recommendation/RecommendationCard.d.ts +7 -0
- package/mobile/dist/components/Recommendation/RecommendationCard.js +13 -0
- package/mobile/dist/components/Recommendation/RecommendationCard.js.map +1 -0
- package/mobile/dist/components/Recommendation/RecommendationContent.d.ts +14 -0
- package/mobile/dist/components/Recommendation/RecommendationContent.js +2 -0
- package/mobile/dist/components/Recommendation/RecommendationContent.js.map +1 -0
- 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/BlockVersion.d.ts +6 -1
- 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/Description/Description.js +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/ContentPage/ContentPageHead.js +1 -1
- package/mobile/lib/components/ContentPage/ContentPageHead.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/Headline/Headline.js +3 -2
- package/mobile/lib/components/Headline/Headline.js.map +1 -1
- package/mobile/lib/components/Headline/HeadlineContent.d.ts +2 -2
- package/mobile/lib/components/Headline/constants.d.ts +4 -0
- package/mobile/lib/components/Headline/constants.js +11 -0
- package/mobile/lib/components/Headline/constants.js.map +1 -0
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -0
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/mobile/lib/components/ProductGallery/ProductGalleryContent.d.ts +1 -1
- package/mobile/lib/components/Recommendation/Recommendation.d.ts +5 -0
- package/mobile/lib/components/Recommendation/Recommendation.js +32 -0
- package/mobile/lib/components/Recommendation/Recommendation.js.map +1 -0
- package/mobile/lib/components/Recommendation/RecommendationCard.d.ts +7 -0
- package/mobile/lib/components/Recommendation/RecommendationCard.js +11 -0
- package/mobile/lib/components/Recommendation/RecommendationCard.js.map +1 -0
- package/mobile/lib/components/Recommendation/RecommendationContent.d.ts +14 -0
- package/mobile/lib/components/Recommendation/RecommendationContent.js +2 -0
- package/mobile/lib/components/Recommendation/RecommendationContent.js.map +1 -0
- 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/BlockVersion.d.ts +6 -1
- 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/Description/Description.js +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/ContentPage/ContentPage.page.json +74 -0
- package/mobile/src/components/ContentPage/ContentPageHead.tsx +1 -1
- 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/Headline/Headline.example.json +1 -1
- package/mobile/src/components/Headline/Headline.tsx +20 -4
- package/mobile/src/components/Headline/HeadlineContent.ts +2 -3
- package/mobile/src/components/Headline/constants.ts +14 -0
- package/mobile/src/components/MiniGallery/MiniGallery.example.json +8 -4
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +1 -0
- package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +3 -1
- 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/Recommendation/Recommendation.example.json +38 -0
- package/mobile/src/components/Recommendation/Recommendation.tsx +105 -0
- package/mobile/src/components/Recommendation/RecommendationCard.tsx +33 -0
- package/mobile/src/components/Recommendation/RecommendationContent.ts +19 -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/BlockVersion.ts +7 -1
- 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/Description/Description.tsx +1 -1
- 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/Blocks.ts +2 -0
- 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/ContentPage/ContentPage.page.json +74 -0
- package/src/components/ContentPage/ContentPageHead.tsx +1 -1
- 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/Headline/Headline.example.json +1 -1
- package/src/components/Headline/Headline.fixture.mobile.tsx +39 -15
- package/src/components/Headline/Headline.fixture.tsx +20 -17
- package/src/components/Headline/Headline.mobile.tsx +20 -4
- package/src/components/Headline/Headline.tsx +9 -12
- package/src/components/Headline/HeadlineContent.ts +2 -3
- package/src/components/Headline/constants.ts +14 -0
- 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/ProductBlock/ProductBlockInner.mobile.tsx +3 -1
- package/src/components/ProductBlock/ProductBlockInner.tsx +1 -1
- 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/Recommendation/Recommendation.example.json +38 -0
- package/src/components/Recommendation/Recommendation.fixture.tsx +73 -0
- package/src/components/Recommendation/Recommendation.tsx +105 -0
- package/src/components/Recommendation/RecommendationCard.tsx +33 -0
- package/src/components/Recommendation/RecommendationContent.ts +19 -0
- 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/BlockVersion.ts +7 -1
- 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/Description/Description.tsx +1 -1
- 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
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { TableArrowScrollControlProps } from '../ui-kit/TableArrowScrollControl/TableArrowScrollControlProps';
|
|
2
|
+
|
|
3
|
+
export const useTableArrowScrollControl = ({
|
|
4
|
+
columnsLength,
|
|
5
|
+
colsLengthForScroll,
|
|
6
|
+
activeCardIndex,
|
|
7
|
+
setActiveCardIndex,
|
|
8
|
+
}: {
|
|
9
|
+
columnsLength: number;
|
|
10
|
+
colsLengthForScroll: number;
|
|
11
|
+
activeCardIndex: number;
|
|
12
|
+
setActiveCardIndex: (_: number) => void;
|
|
13
|
+
}): Required<TableArrowScrollControlProps> => {
|
|
14
|
+
const onNextClick = () => setActiveCardIndex(activeCardIndex + 1);
|
|
15
|
+
const onPrevClick = () => setActiveCardIndex(activeCardIndex - 1);
|
|
16
|
+
|
|
17
|
+
const isScrollAvailable = columnsLength > colsLengthForScroll;
|
|
18
|
+
const showNextButton = isScrollAvailable && columnsLength - activeCardIndex > colsLengthForScroll;
|
|
19
|
+
const showPrevButton = Boolean(isScrollAvailable && activeCardIndex > 0);
|
|
20
|
+
|
|
21
|
+
return { onNextClick, onPrevClick, isScrollAvailable, showNextButton, showPrevButton };
|
|
22
|
+
};
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @title Цвет
|
|
2
|
+
* @title Цвет блока
|
|
3
3
|
* @enumNames ["Основная", "Второстепенная"]
|
|
4
4
|
*/
|
|
5
5
|
export type BlockVersion = 'primary' | 'secondary';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @title Цвет блока
|
|
9
|
+
* @enumNames ["Прозрачная", Основная", "Второстепенная"]
|
|
10
|
+
*/
|
|
11
|
+
export type BlockVersionWithTransparent = 'transparent' | 'primary' | 'secondary';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { LinkProps } from './LinkProps';
|
|
2
|
+
import { IconName } from '../icons/IconName';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* @title Меню
|
|
@@ -9,7 +10,18 @@ export interface TopMenuItem extends LinkProps {
|
|
|
9
10
|
items?: LinkProps[];
|
|
10
11
|
}
|
|
11
12
|
|
|
13
|
+
/**
|
|
14
|
+
* @title Ссылка дополнительного меню
|
|
15
|
+
* @required ["text", "href"]
|
|
16
|
+
*/
|
|
17
|
+
export interface DispositionItem extends LinkProps {
|
|
18
|
+
/** @hidden */
|
|
19
|
+
icon?: IconName;
|
|
20
|
+
}
|
|
21
|
+
|
|
12
22
|
export interface SitemapProps {
|
|
13
23
|
/** @title Дополнительное меню */
|
|
14
24
|
topItems?: TopMenuItem[];
|
|
25
|
+
/** @title Дополнительное меню */
|
|
26
|
+
dispositions?: DispositionItem[];
|
|
15
27
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { LinkProps } from '../../model/LinkProps';
|
|
2
|
+
import { IconName } from '../../icons/IconName';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* @title Ссылка
|
|
@@ -9,7 +10,18 @@ export interface TopMenuItem extends LinkProps {
|
|
|
9
10
|
items?: LinkProps[];
|
|
10
11
|
}
|
|
11
12
|
|
|
13
|
+
/**
|
|
14
|
+
* @title Ссылка дополнительного меню
|
|
15
|
+
* @required ["text", "href"]
|
|
16
|
+
*/
|
|
17
|
+
export interface DispositionItem extends LinkProps {
|
|
18
|
+
/** @hidden */
|
|
19
|
+
icon?: IconName;
|
|
20
|
+
}
|
|
21
|
+
|
|
12
22
|
export interface SitemapProps {
|
|
13
|
-
/** @title
|
|
23
|
+
/** @title Основное меню */
|
|
14
24
|
topItems?: TopMenuItem[];
|
|
25
|
+
/** @title Дополнительное меню */
|
|
26
|
+
dispositions?: DispositionItem[];
|
|
15
27
|
}
|
|
@@ -6,32 +6,36 @@ interface ButtonInnerProps extends ButtonWithIconProps {
|
|
|
6
6
|
version?: ButtonVersion;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
export const ButtonInner = JSX<ButtonInnerProps>(
|
|
10
|
-
|
|
11
|
-
const withoutText = !text && !aboveText && Boolean(appendLeft);
|
|
12
|
-
|
|
13
|
-
const buttonInnerClasses =
|
|
14
|
-
version !== 'link'
|
|
15
|
-
? `flex items-center justify-center
|
|
16
|
-
${withoutText ? 'h-12 w-12' : `px-8 gap-2 ${aboveText ? 'py-2' : 'py-3.5'}`} ${
|
|
17
|
-
rounded ? 'rounded-full' : ''
|
|
18
|
-
}`
|
|
19
|
-
: null;
|
|
20
|
-
|
|
21
|
-
return renderButtonInner({ buttonInnerClasses, appendLeft, withoutText, aboveText, text });
|
|
22
|
-
},
|
|
23
|
-
);
|
|
24
|
-
|
|
25
|
-
function renderButtonInner({ buttonInnerClasses, appendLeft, withoutText, aboveText, text }) {
|
|
9
|
+
export const ButtonInner = JSX<ButtonInnerProps>((props) => {
|
|
10
|
+
const { text, aboveText, appendLeft } = props;
|
|
26
11
|
return (
|
|
27
|
-
<div className={
|
|
12
|
+
<div className={getButtonStyle(props)}>
|
|
28
13
|
{appendLeft ? appendLeft : null}
|
|
29
|
-
{
|
|
14
|
+
{isWithText(props) ? (
|
|
30
15
|
<div>
|
|
31
16
|
<div className="text-m-2xs text-left">{aboveText}</div>
|
|
32
17
|
<div className="text-m-button font-medium text-left">{text}</div>
|
|
33
18
|
</div>
|
|
34
|
-
)}
|
|
19
|
+
) : null}
|
|
35
20
|
</div>
|
|
36
21
|
);
|
|
37
|
-
}
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
const getButtonStyle = (props: ButtonInnerProps) => {
|
|
25
|
+
const { version, aboveText, rounded } = props;
|
|
26
|
+
|
|
27
|
+
if (version === 'link') {
|
|
28
|
+
return '';
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const withTextStyle = `px-8 gap-2 ${aboveText ? 'py-2' : 'py-3.5'}`;
|
|
32
|
+
|
|
33
|
+
return [
|
|
34
|
+
'flex items-center justify-center',
|
|
35
|
+
isWithText(props) ? withTextStyle : 'h-12 w-12',
|
|
36
|
+
rounded ? 'rounded-full' : '',
|
|
37
|
+
].join(' ');
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
const isWithText = ({ text, aboveText, appendLeft }: ButtonInnerProps) =>
|
|
41
|
+
Boolean(text || aboveText || !appendLeft);
|
|
@@ -8,5 +8,5 @@ export interface DescriptionProps extends DescriptionContent {
|
|
|
8
8
|
export const Description = JSX<DescriptionProps>((props) => {
|
|
9
9
|
const { className = '', description } = props;
|
|
10
10
|
|
|
11
|
-
return <div className={`font-normal text-
|
|
11
|
+
return <div className={`font-normal text-base ${className}`}>{description}</div>;
|
|
12
12
|
});
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type { ImgSource } from '../../model/Picture';
|
|
3
|
-
import { ImageProps } from './ImgProps';
|
|
2
|
+
import type { Picture, ImgSource } from '../../model/Picture';
|
|
4
3
|
|
|
5
|
-
export
|
|
4
|
+
export interface ImageProps {
|
|
5
|
+
className?: string;
|
|
6
|
+
imageClassName?: string;
|
|
7
|
+
image: Picture;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export const Img = JSX<ImageProps>(({ className = '', image, imageClassName }) => {
|
|
6
11
|
if (!image) {
|
|
7
12
|
return null;
|
|
8
13
|
}
|
|
9
|
-
const style = {
|
|
10
|
-
width: image.size?.width ? `${image.size?.width}px` : '100%',
|
|
11
|
-
height: image.size?.height ? `${image.size?.height}px` : '100%',
|
|
12
|
-
};
|
|
13
14
|
|
|
14
15
|
return (
|
|
15
16
|
<picture className={className}>
|
|
@@ -18,18 +19,31 @@ export const Img = JSX<ImageProps>(({ className = '', image }) => {
|
|
|
18
19
|
<source key={`${index}_${src}`} srcSet={src} type={formatToMimeType(format)} />
|
|
19
20
|
))
|
|
20
21
|
: null}
|
|
21
|
-
|
|
22
|
-
src={image.src}
|
|
23
|
-
className={`m-auto ${image.className || ''}`}
|
|
24
|
-
alt={image.alt || image.title}
|
|
25
|
-
title={image.title}
|
|
26
|
-
style={style}
|
|
27
|
-
{...image.size}
|
|
28
|
-
/>
|
|
22
|
+
{renderImg(image, imageClassName)}
|
|
29
23
|
</picture>
|
|
30
24
|
);
|
|
31
25
|
});
|
|
32
26
|
|
|
27
|
+
const renderImg = (image, imageClassName = '') => {
|
|
28
|
+
const style = {
|
|
29
|
+
width: image.size?.width ? `${image.size?.width}px` : '100%',
|
|
30
|
+
height: image.size?.height ? `${image.size?.height}px` : '100%',
|
|
31
|
+
};
|
|
32
|
+
const title = image.title || '';
|
|
33
|
+
const alt = image.alt || image.title;
|
|
34
|
+
|
|
35
|
+
return (
|
|
36
|
+
<img
|
|
37
|
+
src={image.src}
|
|
38
|
+
className={`m-auto ${imageClassName}`}
|
|
39
|
+
alt={alt}
|
|
40
|
+
title={title}
|
|
41
|
+
style={style}
|
|
42
|
+
{...image.size}
|
|
43
|
+
/>
|
|
44
|
+
);
|
|
45
|
+
};
|
|
46
|
+
|
|
33
47
|
export function formatToMimeType(format: ImgSource['format']): string | undefined {
|
|
34
48
|
return format ? `image/${String(format)}` : undefined;
|
|
35
49
|
}
|
|
@@ -2,9 +2,9 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
2
2
|
import { DEFAULT_GAP, DEFAULT_PADDING } from './constants';
|
|
3
3
|
import { SwipeListControlDots } from './SwipeListControlDots';
|
|
4
4
|
import { SwipeListControlList } from './SwipeListControlList';
|
|
5
|
-
import type { SwipeListControlProps } from './SwipeListControlProps';
|
|
6
5
|
import { getIndexParts } from './utils/getIndexParts';
|
|
7
6
|
import { getScrollPoints } from './utils/getScrollPoints';
|
|
7
|
+
import type { SwipeListControlProps } from './SwipeListControlProps';
|
|
8
8
|
|
|
9
9
|
export const SwipeListControl = JSX<SwipeListControlProps>(
|
|
10
10
|
({
|
|
@@ -19,6 +19,13 @@ export const SwipeListControl = JSX<SwipeListControlProps>(
|
|
|
19
19
|
const [activeIndex, setActiveIndex] = context.useState<number>(0);
|
|
20
20
|
const [indexFraction, setIndexFraction] = context.useState<number>(0);
|
|
21
21
|
|
|
22
|
+
const dotsProps = {
|
|
23
|
+
activeIndex,
|
|
24
|
+
indexFraction,
|
|
25
|
+
showDots,
|
|
26
|
+
children,
|
|
27
|
+
};
|
|
28
|
+
|
|
22
29
|
const handleScroll = (e: UIEvent) => {
|
|
23
30
|
const { scrollLeft, clientWidth, childElementCount, scrollWidth, children } =
|
|
24
31
|
e.currentTarget as HTMLElement;
|
|
@@ -45,26 +52,16 @@ export const SwipeListControl = JSX<SwipeListControlProps>(
|
|
|
45
52
|
|
|
46
53
|
return (
|
|
47
54
|
<div className={className}>
|
|
48
|
-
|
|
49
|
-
|
|
55
|
+
<SwipeListControlList
|
|
56
|
+
gap={gap}
|
|
57
|
+
padding={padding}
|
|
58
|
+
activeIndex={activeIndex}
|
|
59
|
+
onScroll={handleScroll}
|
|
60
|
+
>
|
|
61
|
+
{children}
|
|
62
|
+
</SwipeListControlList>
|
|
63
|
+
<SwipeListControlDots {...dotsProps} />
|
|
50
64
|
</div>
|
|
51
65
|
);
|
|
52
66
|
},
|
|
53
67
|
);
|
|
54
|
-
|
|
55
|
-
const renderSwipeList = ({ gap, padding, activeIndex, handleScroll, children }) => (
|
|
56
|
-
<SwipeListControlList
|
|
57
|
-
gap={gap}
|
|
58
|
-
padding={padding}
|
|
59
|
-
activeIndex={activeIndex}
|
|
60
|
-
onScroll={handleScroll}
|
|
61
|
-
>
|
|
62
|
-
{children}
|
|
63
|
-
</SwipeListControlList>
|
|
64
|
-
);
|
|
65
|
-
|
|
66
|
-
const renderSwipelistDots = ({ activeIndex, indexFraction, showDots, children }) => (
|
|
67
|
-
<SwipeListControlDots activeIndex={activeIndex} indexFraction={indexFraction} showDots={showDots}>
|
|
68
|
-
{children}
|
|
69
|
-
</SwipeListControlDots>
|
|
70
|
-
);
|
|
@@ -14,11 +14,23 @@ export interface SwipeListControlDotsProps {
|
|
|
14
14
|
|
|
15
15
|
export const SwipeListControlDots = JSX<SwipeListControlDotsProps>(
|
|
16
16
|
({ children, activeIndex, indexFraction, showDots }) => {
|
|
17
|
+
const handleClick = (idx: number) => (e: Event) => {
|
|
18
|
+
if (idx === activeIndex) {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const contentContainer = (e.currentTarget as HTMLElement).parentElement
|
|
23
|
+
?.previousElementSibling;
|
|
24
|
+
|
|
25
|
+
contentContainer?.children[idx]?.scrollIntoView({ behavior: 'smooth' });
|
|
26
|
+
};
|
|
27
|
+
|
|
17
28
|
return showDots && children?.length ? (
|
|
18
29
|
<div className="flex gap-2 mx-auto mt-5 w-fit">
|
|
19
30
|
{children?.map((_, idx) => (
|
|
20
31
|
<div
|
|
21
32
|
key={String(idx)}
|
|
33
|
+
onClick={handleClick(idx)}
|
|
22
34
|
className={`${DOT_STYLES}`}
|
|
23
35
|
style={getDotStyles(idx, activeIndex, indexFraction)}
|
|
24
36
|
aria-hidden
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { ArrowButton } from '../Button/ArrowButton';
|
|
3
|
+
import type { TableArrowScrollControlProps } from './TableArrowScrollControlProps';
|
|
4
|
+
|
|
5
|
+
export const TableArrowScrollControl = JSX<TableArrowScrollControlProps>(
|
|
6
|
+
({ isScrollAvailable, onNextClick, onPrevClick, showNextButton, showPrevButton }) => {
|
|
7
|
+
return isScrollAvailable ? (
|
|
8
|
+
<div>
|
|
9
|
+
<div className="absolute top-7 right-7 z-10">
|
|
10
|
+
<ArrowButton
|
|
11
|
+
onClick={onNextClick}
|
|
12
|
+
disabled={!showNextButton}
|
|
13
|
+
ariaLabel="Пролистать вправо"
|
|
14
|
+
data-block-control="scroll-right"
|
|
15
|
+
/>
|
|
16
|
+
<ArrowButton
|
|
17
|
+
className="mt-4 rotate-180"
|
|
18
|
+
onClick={onPrevClick}
|
|
19
|
+
disabled={!showPrevButton}
|
|
20
|
+
ariaLabel="Пролистать влево"
|
|
21
|
+
data-block-control="scroll-left"
|
|
22
|
+
/>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
) : null;
|
|
26
|
+
},
|
|
27
|
+
);
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { Icon } from '../../ui-kit/Icon/Icon';
|
|
3
|
+
import type { Tab, TabClickHandler, TabsProps } from './TabsProps';
|
|
4
|
+
|
|
5
|
+
const TAB_STYLE = 'px-2 h-14 pb-2 pt-3 border border-b-0 border-main-stroke';
|
|
6
|
+
const ACTIVE_TAB_STYLE = 'px-2 h-16 pt-4 pb-2 text-white bg-primary-main';
|
|
7
|
+
|
|
8
|
+
export const Tabs = JSX<TabsProps>(({ tabs, currentTabIndex, onTabClick }) => {
|
|
9
|
+
return (
|
|
10
|
+
<div className="flex items-end border-b border-main-stroke" role="tablist">
|
|
11
|
+
{tabs?.map(renderTab(currentTabIndex, onTabClick))}
|
|
12
|
+
</div>
|
|
13
|
+
);
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
const renderTab =
|
|
17
|
+
(currentTabIndex: number, onTabClick: TabClickHandler) => (tab: Tab, index: number) => {
|
|
18
|
+
const isActive = currentTabIndex === index;
|
|
19
|
+
return (
|
|
20
|
+
<div
|
|
21
|
+
key={String(index)}
|
|
22
|
+
className={`flex h-full flex-1 cursor-pointer mr-2 last:mr-0 ${
|
|
23
|
+
isActive ? ACTIVE_TAB_STYLE : TAB_STYLE
|
|
24
|
+
}`}
|
|
25
|
+
role="tab"
|
|
26
|
+
onClick={() => onTabClick(index)}
|
|
27
|
+
aria-selected={String(isActive)}
|
|
28
|
+
>
|
|
29
|
+
{tab?.icon ? renderIcon(tab, isActive) : null}
|
|
30
|
+
<div>
|
|
31
|
+
{tab?.title ? <h3 className="font-medium m-0 text-base">{tab?.title}</h3> : null}
|
|
32
|
+
{tab?.description ? (
|
|
33
|
+
<span className={`font-light text-xs ${isActive ? '' : 'text-secondary-text'}`}>
|
|
34
|
+
{tab?.description}
|
|
35
|
+
</span>
|
|
36
|
+
) : null}
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
);
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
const renderIcon = (tab: Tab, isActive: boolean) => (
|
|
43
|
+
<div className="h-full mt-1" style={isActive ? { filter: 'invert(1)' } : null}>
|
|
44
|
+
<Icon className="w-5 h-5 mr-3" name={tab?.icon || 'CardIcon'} asSVG={!isActive} />
|
|
45
|
+
</div>
|
|
46
|
+
);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { IconName } from '../../icons/IconName';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @title Вкладка
|
|
5
|
+
*/
|
|
6
|
+
export interface Tab {
|
|
7
|
+
/** @title Имя вкладки */
|
|
8
|
+
title?: string;
|
|
9
|
+
/** @title Описание */
|
|
10
|
+
description?: string;
|
|
11
|
+
icon?: IconName;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type TabClickHandler = (value: number) => void;
|
|
15
|
+
|
|
16
|
+
export interface TabsProps {
|
|
17
|
+
tabs?: Tab[];
|
|
18
|
+
currentTabIndex: number;
|
|
19
|
+
onTabClick: TabClickHandler;
|
|
20
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redneckz/wildless-cms-uni-blocks",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.15",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ЦК",
|
|
@@ -99,14 +99,24 @@
|
|
|
99
99
|
"cosmos:mobile": "cosmos --config cosmos.config.mobile.json",
|
|
100
100
|
"precosmos:export": "npm run build:icons",
|
|
101
101
|
"cosmos:export": "rimraf ./build && cosmos-export && cosmos-export --config cosmos.config.mobile.json",
|
|
102
|
-
"prepare": "husky install && npm run --prefix ./eslint-rules build || exit 0"
|
|
102
|
+
"prepare": "husky install && npm run --prefix ./eslint-rules build || exit 0",
|
|
103
|
+
"e2e": "cypress open",
|
|
104
|
+
"e2e:run": "cypress run --browser chrome --env type=actual",
|
|
105
|
+
"e2e:test": "npm run clean:diff && npm run e2e:run",
|
|
106
|
+
"e2e:base": "npm run create:base && npm run clean:diff && npm run clean:actual",
|
|
107
|
+
"create:base": "cypress run --browser chrome --env type=base --config screenshotsFolder=cypress/snapshots/base",
|
|
108
|
+
"clean:diff": "rimraf ./cypress/snapshots/diff || exit 0",
|
|
109
|
+
"clean:actual": "rimraf ./cypress/snapshots/actual || exit 0"
|
|
103
110
|
},
|
|
104
111
|
"peerDependencies": {
|
|
112
|
+
"cypress": "^10.4.0",
|
|
113
|
+
"cypress-visual-regression": "^1.7.0",
|
|
105
114
|
"react": ">=16.8.0",
|
|
106
115
|
"react-dom": ">=16.8.0"
|
|
107
116
|
},
|
|
108
117
|
"dependencies": {
|
|
109
118
|
"@redneckz/uni-jsx": "^0.1.6",
|
|
119
|
+
"cypress-visual-regression": "^1.7.0",
|
|
110
120
|
"glob": "^8.0.3",
|
|
111
121
|
"remark-html": "^15.0.1",
|
|
112
122
|
"remark-parse": "^10.0.1",
|
|
@@ -58,8 +58,10 @@ const propsTextBlock: AccordionProps = {
|
|
|
58
58
|
],
|
|
59
59
|
};
|
|
60
60
|
|
|
61
|
-
export default
|
|
62
|
-
|
|
63
|
-
<
|
|
64
|
-
|
|
65
|
-
|
|
61
|
+
export default {
|
|
62
|
+
default: (
|
|
63
|
+
<div className="container grid grid-cols-12">
|
|
64
|
+
<Accordion className="col-span-12" {...propsTextBlock} />
|
|
65
|
+
</div>
|
|
66
|
+
),
|
|
67
|
+
};
|
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
import { context } from '../../setup-fixture';
|
|
2
|
+
import { defaultProps as GALLERY } from '../Gallery/Gallery.fixture';
|
|
2
3
|
import { HEADLINE } from '../Headline/Headline.fixture';
|
|
3
4
|
import { linkDocsContentExample } from '../LinkDocs/linkDocsContentExample';
|
|
5
|
+
import { defaultProps as MINI_GALLERY } from '../MiniGallery/MiniGallery.fixture';
|
|
4
6
|
import { PICTURE_TEXT } from '../PictureText/PictureText.fixture';
|
|
7
|
+
import { PRODUCT_BLOCK } from '../ProductBlock/ProductBlock.fixture';
|
|
8
|
+
import { PRODUCT_TILE, PRODUCT_PENSION_TILE } from '../ProductTile/ProductTile.fixture';
|
|
5
9
|
import { TEXT_BLOCK } from '../TextBlock/TextBlock.fixture';
|
|
6
|
-
import { TILE } from '../Tile/Tile.fixture';
|
|
7
|
-
import { PRODUCT_TILE } from '../ProductTile/ProductTile.fixture';
|
|
8
|
-
import { defaultProps as GALLERY } from '../Gallery/Gallery.fixture';
|
|
9
|
-
import { defaultProps as MINI_GALLERY } from '../MiniGallery/MiniGallery.fixture';
|
|
10
|
+
import { TILE, TILE_PREMIUM } from '../Tile/Tile.fixture';
|
|
10
11
|
import type { AccordionProps } from './Accordion';
|
|
11
12
|
import { Accordion } from './Accordion';
|
|
12
13
|
import type {
|
|
14
|
+
GalleryAccordionBlockDef,
|
|
13
15
|
HeadlineAccordionBlockDef,
|
|
14
16
|
LinkDocsAccordionBlockDef,
|
|
17
|
+
MiniGalleryAccordionBlockDef,
|
|
15
18
|
PictureTextAccordionBlockDef,
|
|
19
|
+
ProductBlockAccordionBlockDef,
|
|
20
|
+
ProductTileAccordionBlockDef,
|
|
16
21
|
TextBlockAccordionBlockDef,
|
|
17
22
|
TileAccordionBlockDef,
|
|
18
|
-
ProductTileAccordionBlockDef,
|
|
19
|
-
GalleryAccordionBlockDef,
|
|
20
|
-
MiniGalleryAccordionBlockDef,
|
|
21
23
|
} from './AccordionContent';
|
|
22
24
|
|
|
23
25
|
const TEXT_BLOCK_ACCORDION_BLOCK: TextBlockAccordionBlockDef = {
|
|
@@ -35,6 +37,11 @@ const PICTURE_TEXT_ACCORDION_BLOCK: PictureTextAccordionBlockDef = {
|
|
|
35
37
|
...PICTURE_TEXT,
|
|
36
38
|
};
|
|
37
39
|
|
|
40
|
+
const PRODUCT_BLOCK_ACCORDION_BLOCK: ProductBlockAccordionBlockDef = {
|
|
41
|
+
accordionBlockType: 'ProductBlock',
|
|
42
|
+
...PRODUCT_BLOCK,
|
|
43
|
+
};
|
|
44
|
+
|
|
38
45
|
const LINK_DOCS_ACCORDION_BLOCK: LinkDocsAccordionBlockDef = {
|
|
39
46
|
accordionBlockType: 'LinkDocs',
|
|
40
47
|
...linkDocsContentExample,
|
|
@@ -46,11 +53,21 @@ const TILES_ACCORDION_BLOCK: TileAccordionBlockDef = {
|
|
|
46
53
|
...TILE,
|
|
47
54
|
};
|
|
48
55
|
|
|
56
|
+
const TILES_PREMIUM_ACCORDION_BLOCK: TileAccordionBlockDef = {
|
|
57
|
+
accordionBlockType: 'Tile',
|
|
58
|
+
...TILE_PREMIUM,
|
|
59
|
+
};
|
|
60
|
+
|
|
49
61
|
const PRODUCT_TILES_ACCORDION_BLOCK: ProductTileAccordionBlockDef = {
|
|
50
62
|
accordionBlockType: 'ProductTile',
|
|
51
63
|
...PRODUCT_TILE,
|
|
52
64
|
};
|
|
53
65
|
|
|
66
|
+
const PRODUCT_PENSION_TILES__ACCORDION_BLOCK: ProductTileAccordionBlockDef = {
|
|
67
|
+
accordionBlockType: 'ProductTile',
|
|
68
|
+
...PRODUCT_PENSION_TILE,
|
|
69
|
+
};
|
|
70
|
+
|
|
54
71
|
const GALLERY_ACCORDION_BLOCK: GalleryAccordionBlockDef = {
|
|
55
72
|
accordionBlockType: 'Gallery',
|
|
56
73
|
...GALLERY,
|
|
@@ -61,8 +78,7 @@ const MINI_GALLERY_ACCORDION_BLOCK: MiniGalleryAccordionBlockDef = {
|
|
|
61
78
|
...MINI_GALLERY,
|
|
62
79
|
};
|
|
63
80
|
|
|
64
|
-
const
|
|
65
|
-
title: 'Accordion title',
|
|
81
|
+
const propsBlock: AccordionProps = {
|
|
66
82
|
context,
|
|
67
83
|
accordionItems: [
|
|
68
84
|
{
|
|
@@ -100,8 +116,58 @@ const propsTextBlock: AccordionProps = {
|
|
|
100
116
|
],
|
|
101
117
|
};
|
|
102
118
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
119
|
+
const propsTwoColumns: AccordionProps = {
|
|
120
|
+
context,
|
|
121
|
+
accordionItems: [
|
|
122
|
+
{
|
|
123
|
+
label: 'Другие продукты Россельхозбанка 1',
|
|
124
|
+
blocks: [
|
|
125
|
+
TILES_PREMIUM_ACCORDION_BLOCK,
|
|
126
|
+
TILES_PREMIUM_ACCORDION_BLOCK,
|
|
127
|
+
TILES_ACCORDION_BLOCK,
|
|
128
|
+
TILES_ACCORDION_BLOCK,
|
|
129
|
+
],
|
|
130
|
+
columns: 2,
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
label: 'Другие продукты Россельхозбанка 2',
|
|
134
|
+
blocks: [
|
|
135
|
+
PRODUCT_TILES_ACCORDION_BLOCK,
|
|
136
|
+
PRODUCT_TILES_ACCORDION_BLOCK,
|
|
137
|
+
PRODUCT_PENSION_TILES__ACCORDION_BLOCK,
|
|
138
|
+
PRODUCT_PENSION_TILES__ACCORDION_BLOCK,
|
|
139
|
+
],
|
|
140
|
+
columns: 2,
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
label: 'Другие продукты Россельхозбанка 3',
|
|
144
|
+
blocks: [PRODUCT_BLOCK_ACCORDION_BLOCK, PRODUCT_BLOCK_ACCORDION_BLOCK],
|
|
145
|
+
columns: 2,
|
|
146
|
+
},
|
|
147
|
+
|
|
148
|
+
{
|
|
149
|
+
label: 'Другие продукты Россельхозбанка 4',
|
|
150
|
+
blocks: [
|
|
151
|
+
TEXT_BLOCK_ACCORDION_BLOCK,
|
|
152
|
+
TEXT_BLOCK_ACCORDION_BLOCK,
|
|
153
|
+
TEXT_BLOCK_ACCORDION_BLOCK,
|
|
154
|
+
TEXT_BLOCK_ACCORDION_BLOCK,
|
|
155
|
+
],
|
|
156
|
+
columns: 2,
|
|
157
|
+
},
|
|
158
|
+
],
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
export default {
|
|
162
|
+
default: (
|
|
163
|
+
<div className="container grid grid-cols-12">
|
|
164
|
+
<Accordion className="col-span-12" {...propsBlock} />
|
|
165
|
+
</div>
|
|
166
|
+
),
|
|
167
|
+
|
|
168
|
+
'two columns': (
|
|
169
|
+
<div className="container grid grid-cols-12">
|
|
170
|
+
<Accordion className="col-span-12" {...propsTwoColumns} />
|
|
171
|
+
</div>
|
|
172
|
+
),
|
|
173
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Headline } from '../Headline/Headline';
|
|
2
2
|
import { LinkDocs } from '../LinkDocs/LinkDocs';
|
|
3
3
|
import { PictureText } from '../PictureText/PictureText';
|
|
4
|
+
import { ProductBlock } from '../ProductBlock/ProductBlock';
|
|
4
5
|
import { TextBlock } from '../TextBlock/TextBlock';
|
|
5
6
|
import { Tile } from '../Tile/Tile';
|
|
6
7
|
import { ProductTile } from '../ProductTile/ProductTile';
|
|
@@ -13,6 +14,7 @@ export const AccordionBlocks = {
|
|
|
13
14
|
LinkDocs,
|
|
14
15
|
TextBlock,
|
|
15
16
|
PictureText,
|
|
17
|
+
ProductBlock,
|
|
16
18
|
Tile,
|
|
17
19
|
ProductTile,
|
|
18
20
|
Gallery,
|