@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTable.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTable.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,
|
|
1
|
+
{"version":3,"file":"TariffsTable.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTable.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,0DAAuD;AACvD,2CAAqD;AACrD,uDAAoD;AACpD,0GAAuG;AAQvG,uFAAoF;AAIvE,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,EAAE;IAClE,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAElE,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC;IACpC,MAAM,OAAO,GAAG,UAAU,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IAEhD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,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;AAEzC,MAAM,UAAU,GAAG,CACjB,UAA+C,EAC/C,OAAoB,EACP,EAAE,CACf,UAAU,EAAE,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAC9B,MAAM;IACN,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;CAC7C,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { UniBlockProps } from '../../types';
|
|
2
|
+
import type { TariffsTableContent } from './TariffsTableContent';
|
|
3
|
+
export interface TariffsTableProps extends TariffsTableContent, UniBlockProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const TariffsTable: (props: import("@redneckz/uni-jsx").PropsWithChildren<TariffsTableProps, any>, context?: any) => any;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.TariffsTable = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
6
|
+
const TariffsTableVertical_1 = require("./TariffsTableVertical");
|
|
7
|
+
const TariffsTableHorizontal_1 = require("./TariffsTableHorizontal");
|
|
8
|
+
exports.TariffsTable = (0, uni_jsx_1.JSX)(({ className, context, title, description, columns, rowHeaders, orientation = 'vertical' }) => {
|
|
9
|
+
const colData = getColData(columns);
|
|
10
|
+
const tiles = getTiles(rowHeaders, colData);
|
|
11
|
+
return ((0, jsx_runtime_1.jsxs)("section", { className: `px-4 py-6 bg-white font-sans text-primary-text ${className}`, children: [title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h2", className: `text-center ${description ? 'mb-2' : 'mb-5'}`, title: title })) : null, description ? (0, jsx_runtime_1.jsx)("div", { className: "mb-5 text-center text-m-md", children: description }) : null, tiles?.length ? renderOrientationTable(orientation, tiles, context) : null] }));
|
|
12
|
+
});
|
|
13
|
+
function renderOrientationTable(orientation, tiles, context) {
|
|
14
|
+
return orientation === 'vertical' ? ((0, jsx_runtime_1.jsx)(TariffsTableVertical_1.TariffsTableVertical, { tiles: tiles })) : ((0, jsx_runtime_1.jsx)(TariffsTableHorizontal_1.TariffsTableHorizontal, { context: context, tiles: tiles }));
|
|
15
|
+
}
|
|
16
|
+
const getColData = (columns) => columns?.[0].data ? columns[0].data : [];
|
|
17
|
+
const getTiles = (rowHeaders, colData) => rowHeaders?.map((header, i) => ({
|
|
18
|
+
header,
|
|
19
|
+
data: colData?.[i] || [{}],
|
|
20
|
+
}));
|
|
21
|
+
//# sourceMappingURL=TariffsTable.mobile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TariffsTable.mobile.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTable.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAQxC,0DAAuD;AACvD,iEAA8D;AAC9D,qEAAkE;AAIrD,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,UAAU,EAAE,WAAW,GAAG,UAAU,EAAE,EAAE,EAAE;IAC5F,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC;IACpC,MAAM,KAAK,GAAG,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IAE5C,OAAO,CACL,qCAAS,SAAS,EAAE,kDAAkD,SAAS,EAAE,aAC9E,KAAK,CAAC,CAAC,CAAC,CACP,uBAAC,iBAAO,IACN,WAAW,EAAC,IAAI,EAChB,SAAS,EAAE,eAAe,W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X)(({ cell, isLastRow }) => {
|
|
10
10
|
const cellWrapperClasses = `first:pl-0 pl-10 w-80 flex-grow flex flex-col border-solid border-main-divider border border-t-0 border-x-0 ${isLastRow ? 'border-t-0 rounded-b-md' : ''}`;
|
|
11
|
-
return ((0, jsx_runtime_1.jsx)("div", { className: cellWrapperClasses, role: "cell", children: (0, jsx_runtime_1.jsx)("div", { children: cell.map(
|
|
11
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: cellWrapperClasses, role: "cell", children: (0, jsx_runtime_1.jsx)("div", { children: cell.map(renderCellInner) }) }));
|
|
12
12
|
});
|
|
13
|
-
const renderCellInner = ({ label, description, list, image, buttons }, i) => ((0, jsx_runtime_1.jsxs)("div", { className: "first:pt-5 last:pb-5", children: [i > 0 && ((0, jsx_runtime_1.jsx)("div", { className: "border-main-divider border border-solid border-t-0 border-x-0 my-4" })), label
|
|
13
|
+
const renderCellInner = ({ label, description, list, image, buttons }, i) => ((0, jsx_runtime_1.jsxs)("div", { className: "first:pt-5 last:pb-5", children: [i > 0 && ((0, jsx_runtime_1.jsx)("div", { className: "border-main-divider border border-solid border-t-0 border-x-0 my-4" })), label ? (0, jsx_runtime_1.jsx)("div", { className: "text-xl font-medium m-0", children: label }) : null, description ? (0, jsx_runtime_1.jsx)("div", { className: "text-sm text-secondary-text", children: description }) : null, list?.items?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-col justify-between items-start", children: (0, jsx_runtime_1.jsx)("div", { role: "list", children: list.items.map((text, idx) => ((0, jsx_runtime_1.jsx)(BlockItem_1.BlockItem, { className: "text-sm", text: text, version: "gray", isDotted: list.isDotted ?? true }, String(idx)))) }) })) : null, image && (0, jsx_runtime_1.jsx)(Img_1.Img, { image: image }), buttons?.length
|
|
14
14
|
? buttons.map(({ icon, ...buttonProps }, idx) => ((0, jsx_runtime_1.jsx)(Button_1.Button, { className: `${idx > 0 ? 'ml-3' : ''} w-12 h-12`, appendLeft: icon && (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: icon, width: "24px", height: "24px", asSVG: true }), ...buttonProps }, String(idx))))
|
|
15
15
|
: null] }, String(i)));
|
|
16
16
|
//# sourceMappingURL=TariffsTableCell.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTableCell.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableCell.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,gEAA6D;AAC7D,uDAAoD;AACpD,iDAA8C;AAC9C,8CAA2C;AAQ9B,QAAA,gBAAgB,GAAG,IAAA,aAAG,EAAwB,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE;IACjF,MAAM,kBAAkB,GAAG,+GACzB,SAAS,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,EAC1C,EAAE,CAAC;IAEH,OAAO,CACL,gCAAK,SAAS,EAAE,kBAAkB,EAAE,IAAI,EAAC,MAAM,YAC7C,0CAAM,IAAI,CAAC,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"TariffsTableCell.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableCell.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,gEAA6D;AAC7D,uDAAoD;AACpD,iDAA8C;AAC9C,8CAA2C;AAQ9B,QAAA,gBAAgB,GAAG,IAAA,aAAG,EAAwB,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE;IACjF,MAAM,kBAAkB,GAAG,+GACzB,SAAS,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,EAC1C,EAAE,CAAC;IAEH,OAAO,CACL,gCAAK,SAAS,EAAE,kBAAkB,EAAE,IAAI,EAAC,MAAM,YAC7C,0CAAM,IAAI,CAAC,GAAG,CAAC,eAAe,CAAC,GAAO,GAClC,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,eAAe,GAAG,CACtB,EAAE,KAAK,EAAE,WAAW,EAA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MAAM,EAAC,KAAK,SAAG,KACrE,WAAW,IAFV,MAAM,CAAC,GAAG,CAAC,CAGhB,CACH,CAAC;YACJ,CAAC,CAAC,IAAI,KA/BA,MAAM,CAAC,CAAC,CAAC,CAgCb,CACP,CAAC"}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import type { IconName } from '../../icons/IconName';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
2
|
+
import type { CellData } from '../ComparisonTable/ComparisonTableContent';
|
|
3
|
+
import type { ListOrientation } from '../../model/ListOrientation';
|
|
4
|
+
import type { ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
5
|
+
import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
|
|
6
|
+
import type { ListContent } from '../../ui-kit/List/ListContent';
|
|
7
|
+
import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
|
|
8
|
+
import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
|
|
5
9
|
/**
|
|
6
10
|
* @title Ряд
|
|
7
11
|
*/
|
|
@@ -19,35 +23,35 @@ export interface TariffsTableColumn {
|
|
|
19
23
|
/**
|
|
20
24
|
* @title Список
|
|
21
25
|
*/
|
|
22
|
-
export
|
|
26
|
+
export declare type TariffsTableList = ListContent & {
|
|
23
27
|
/** @title Маркеры */
|
|
24
28
|
isDotted?: boolean;
|
|
25
|
-
|
|
26
|
-
items?: string[];
|
|
27
|
-
}
|
|
29
|
+
};
|
|
28
30
|
/**
|
|
29
31
|
* @title Ячейка
|
|
30
32
|
*/
|
|
31
|
-
export
|
|
33
|
+
export declare type TariffsTableCellData = CellData & ImageContent & ButtonContent & {
|
|
32
34
|
list?: TariffsTableList;
|
|
33
|
-
|
|
34
|
-
/** @title Кнопки */
|
|
35
|
-
buttons?: ButtonWithIconProps[];
|
|
36
|
-
}
|
|
35
|
+
};
|
|
37
36
|
/**
|
|
38
37
|
* @title Параметр
|
|
39
38
|
*/
|
|
40
|
-
export
|
|
39
|
+
export declare type TariffsTableRowHeader = HeadingContent & {
|
|
41
40
|
icon?: IconName;
|
|
42
|
-
}
|
|
41
|
+
};
|
|
43
42
|
/**
|
|
44
43
|
* @title Таблица тарифов
|
|
45
44
|
*/
|
|
46
|
-
export
|
|
47
|
-
/** @title Заголовок */
|
|
48
|
-
title?: string;
|
|
45
|
+
export declare type TariffsTableContent = HeadingContent & DescriptionContent & {
|
|
49
46
|
/** @title Колонки */
|
|
50
47
|
columns?: TariffsTableColumn[];
|
|
51
48
|
/** @title Параметры */
|
|
52
49
|
rowHeaders?: TariffsTableRowHeader[];
|
|
53
|
-
|
|
50
|
+
/** @title Направление таблицы (моб.) */
|
|
51
|
+
orientation?: ListOrientation;
|
|
52
|
+
};
|
|
53
|
+
/** @hidden */
|
|
54
|
+
export declare type TariffsTableTileCellProps = {
|
|
55
|
+
header: TariffsTableRowHeader;
|
|
56
|
+
data: TariffsTableCellData[];
|
|
57
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ContentPageContext } from '../ContentPage/ContentPageContext';
|
|
2
|
+
import type { TariffsTableTileCellProps } from './TariffsTableContent';
|
|
3
|
+
export declare const TariffsTableHorizontal: (props: import("@redneckz/uni-jsx").PropsWithChildren<{
|
|
4
|
+
context: ContentPageContext;
|
|
5
|
+
tiles: TariffsTableTileCellProps[];
|
|
6
|
+
}, any>, context?: any) => any;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.TariffsTableHorizontal = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const SwipeListControl_1 = require("../../ui-kit/SwipeListControl/SwipeListControl");
|
|
6
|
+
const TariffsTableTileCell_1 = require("./TariffsTableTileCell");
|
|
7
|
+
exports.TariffsTableHorizontal = (0, uni_jsx_1.JSX)(({ tiles, context }) => ((0, jsx_runtime_1.jsx)(SwipeListControl_1.SwipeListControl, { context: context, children: tiles.map((tile, i) => ((0, jsx_runtime_1.jsx)(TariffsTableTileCell_1.TariffsTableTileCell, { ...tile }, String(i)))) })));
|
|
8
|
+
//# sourceMappingURL=TariffsTableHorizontal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TariffsTableHorizontal.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableHorizontal.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,qFAAkF;AAClF,iEAA8D;AAIjD,QAAA,sBAAsB,GAAG,IAAA,aAAG,EAGtC,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CACzB,uBAAC,mCAAgB,IAAC,OAAO,EAAE,OAAO,YAC/B,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,uBAAC,2CAAoB,OAAqB,IAAI,IAAnB,MAAM,CAAC,CAAC,CAAC,CAAc,CACnD,CAAC,GACe,CACpB,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.TariffsTableTileCell = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const TableTileHeader_1 = require("./TableTileHeader");
|
|
6
|
+
const BlockItem_1 = require("../../ui-kit/BlockItem/BlockItem");
|
|
7
|
+
const Img_1 = require("../../ui-kit/Img/Img");
|
|
8
|
+
const Button_1 = require("../../ui-kit/Button/Button");
|
|
9
|
+
const Icon_1 = require("../../ui-kit/Icon/Icon");
|
|
10
|
+
exports.TariffsTableTileCell = (0, uni_jsx_1.JSX)(({ header, data }) => {
|
|
11
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "rounded-md border-main-stroke h-full box-border border p-4", children: [(0, jsx_runtime_1.jsx)(TableTileHeader_1.TableTileHeader, { ...header }), data?.length ? data.map(renderCellInner) : null] }));
|
|
12
|
+
});
|
|
13
|
+
const renderCellInner = ({ label, description, list, image, buttons }, i) => ((0, jsx_runtime_1.jsxs)("div", { children: [i > 0 && ((0, jsx_runtime_1.jsx)("div", { className: "border-main-divider border border-solid border-t-0 border-x-0 my-2" })), label ? (0, jsx_runtime_1.jsx)("div", { className: "text-m-sm m-0", children: label }) : null, description ? ((0, jsx_runtime_1.jsx)("div", { className: "text-m-sm text-secondary-text mt-[3px]", children: description })) : null, list?.items?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-col justify-between items-start", children: (0, jsx_runtime_1.jsx)("div", { role: "list", children: list.items.map((text, idx) => ((0, jsx_runtime_1.jsx)(BlockItem_1.BlockItem, { className: "text-m-sm", text: text, version: "gray", isDotted: list.isDotted ?? true }, String(idx)))) }) })) : null, image && (0, jsx_runtime_1.jsx)(Img_1.Img, { image: { ...image, className: 'm-0' } }), buttons?.length ? ((0, jsx_runtime_1.jsx)("div", { children: buttons.map(({ icon, rounded, ...buttonProps }, idx) => ((0, jsx_runtime_1.jsx)(Button_1.Button, { className: `mt-3 ${idx > 0 && rounded ? 'ml-2.5' : ''} ${icon ? 'w-12 h-12' : ''}`, rounded: rounded, appendLeft: icon && (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: icon, width: "24px", height: "24px", asSVG: true }), ...buttonProps, "aria-label": icon }, String(idx)))) })) : null] }, String(i)));
|
|
14
|
+
//# sourceMappingURL=TariffsTableTileCell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TariffsTableTileCell.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableTileCell.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoD;AACpD,gEAA6D;AAC7D,8CAA2C;AAC3C,uDAAoD;AACpD,iDAA8C;AAGjC,QAAA,oB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AAE,KAAK,EAAE,GAAI,EACvD,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CACjB,0CACG,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,WAAW,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CACvD,uBAAC,eAAM,IACL,SAAS,EAAE,QAAQ,GAAG,GAAG,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,EAAE,EAElF,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,IAAI,IAAI,uBAAC,WAAI,IAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,EAAC,KAAK,SAAG,KACrE,WAAW,gBACH,IAAI,IAJX,MAAM,CAAC,GAAG,CAAC,CAKhB,CACH,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,KArCA,MAAM,CAAC,CAAC,CAAC,CAsCb,CACP,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.TariffsTableVertical = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const TariffsTableTileCell_1 = require("./TariffsTableTileCell");
|
|
6
|
+
exports.TariffsTableVertical = (0, uni_jsx_1.JSX)(({ tiles }) => ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-col gap-3.5", children: tiles.map((tile, i) => ((0, jsx_runtime_1.jsx)(TariffsTableTileCell_1.TariffsTableTileCell, { ...tile }, String(i)))) })));
|
|
7
|
+
//# sourceMappingURL=TariffsTableVertical.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TariffsTableVertical.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableVertical.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iEAA8D;AAGjD,QAAA,oBAAoB,GAAG,IAAA,aAAG,EAAyC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAC7F,gCAAK,SAAS,EAAC,uBAAuB,YACnC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,uBAAC,2CAAoB,OAAqB,IAAI,IAAnB,MAAM,CAAC,CAAC,CAAC,CAAc,CACnD,CAAC,GACE,CACP,CAAC,CAAC"}
|
|
@@ -26,7 +26,7 @@ const textBlockStyleMaps = {
|
|
|
26
26
|
};
|
|
27
27
|
exports.TextBlock = (0, uni_jsx_1.JSX)(({ title, description, blockVersion = 'primary', iconVersion, image, className = '', items, isDotted = true, }) => {
|
|
28
28
|
const textBlockStyleMap = textBlockStyleMaps[blockVersion];
|
|
29
|
-
return ((0, jsx_runtime_1.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, (0, jsx_runtime_1.jsxs)("div", { className: "py-0.5", children: [title ? ((0, jsx_runtime_1.jsx)("div", { className: `font-medium text-base mb-1 ${textBlockStyleMap.title}`, children: title })) : null, description ? ((0, jsx_runtime_1.jsx)("div", { className: `text-sm ${textBlockStyleMap.description}`, children: description })) : null, items?.length ? ((0, jsx_runtime_1.jsx)(List_1.List, { items: items, isDotted: isDotted, version:
|
|
29
|
+
return ((0, jsx_runtime_1.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, (0, jsx_runtime_1.jsxs)("div", { className: "py-0.5", children: [title ? ((0, jsx_runtime_1.jsx)("div", { className: `font-medium text-base mb-1 ${textBlockStyleMap.title}`, children: title })) : null, description ? ((0, jsx_runtime_1.jsx)("div", { className: `text-sm ${textBlockStyleMap.description}`, children: description })) : null, items?.length ? ((0, jsx_runtime_1.jsx)(List_1.List, { className: "mt-1", items: items, isDotted: isDotted, version: blockVersion.indexOf('secondary') !== -1 ? 'secondary' : 'gray' })) : null] })] }));
|
|
30
30
|
});
|
|
31
31
|
function renderIcon(className) {
|
|
32
32
|
return ((0, jsx_runtime_1.jsx)("div", { className: "mb-3", children: (0, jsx_runtime_1.jsx)("div", { className: `rounded-full h-4 w-4 text-center text-xs ${className}`, children: "i" }) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextBlock.mobile.js","sourceRoot":"","sources":["../../../src/components/TextBlock/TextBlock.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,8CAA2C;AAC3C,iDAA8C;AAK9C,MAAM,kBAAkB,GAAqD;IAC3E,OAAO,EAAE;QACP,UAAU,EAAE,UAAU;QACtB,IAAI,EAAE,4BAA4B;QAClC,KAAK,EAAE,mBAAmB;QAC1B,WAAW,EAAE,qBAAqB;KACnC;IACD,SAAS,EAAE;QACT,UAAU,EAAE,iBAAiB;QAC7B,IAAI,EAAE,4BAA4B;QAClC,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,YAAY;KAC1B;IACD,iBAAiB,EAAE;QACjB,UAAU,EAAE,oBAAoB;QAChC,IAAI,EAAE,4BAA4B;QAClC,KAAK,EAAE,mBAAmB;QAC1B,WAAW,EAAE,qBAAqB;KACnC;CACF,CAAC;AAEW,QAAA,SAAS,GAAG,IAAA,aAAG,EAC1B,CAAC,EACC,KAAK,EACL,WAAW,EACX,YAAY,GAAG,SAAS,EACxB,WAAW,EACX,KAAK,EACL,SAAS,GAAG,EAAE,EACd,KAAK,EACL,QAAQ,GAAG,IAAI,GAChB,EAAE,EAAE;IACH,MAAM,iBAAiB,GAAG,kBAAkB,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AC;AAEF,SAAS,UAAU,CAAC,SAAiB;IACnC,OAAO,CACL,gCAAK,SAAS,EAAC,MAAM,YACnB,gCAAK,SAAS,EAAE,4CAA4C,SAAS,EAAE,kBAAS,GAC5E,CACP,CAAC;AACJ,CAAC;AAED,SAAS,WAAW,CAAC,KAAe;IAClC,OAAO,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,SAAS,EAAC,cAAc,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,CAAC;AAC5E,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TableArrowScrollControlProps } from '../ui-kit/TableArrowScrollControl/TableArrowScrollControlProps';
|
|
2
|
+
export declare const useTableArrowScrollControl: ({ columnsLength, colsLengthForScroll, activeCardIndex, setActiveCardIndex, }: {
|
|
3
|
+
columnsLength: number;
|
|
4
|
+
colsLengthForScroll: number;
|
|
5
|
+
activeCardIndex: number;
|
|
6
|
+
setActiveCardIndex: (_: number) => void;
|
|
7
|
+
}) => Required<TableArrowScrollControlProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.useTableArrowScrollControl = void 0;
|
|
3
|
+
const useTableArrowScrollControl = ({ columnsLength, colsLengthForScroll, activeCardIndex, setActiveCardIndex, }) => {
|
|
4
|
+
const onNextClick = () => setActiveCardIndex(activeCardIndex + 1);
|
|
5
|
+
const onPrevClick = () => setActiveCardIndex(activeCardIndex - 1);
|
|
6
|
+
const isScrollAvailable = columnsLength > colsLengthForScroll;
|
|
7
|
+
const showNextButton = isScrollAvailable && columnsLength - activeCardIndex > colsLengthForScroll;
|
|
8
|
+
const showPrevButton = Boolean(isScrollAvailable && activeCardIndex > 0);
|
|
9
|
+
return { onNextClick, onPrevClick, isScrollAvailable, showNextButton, showPrevButton };
|
|
10
|
+
};
|
|
11
|
+
exports.useTableArrowScrollControl = useTableArrowScrollControl;
|
|
12
|
+
//# sourceMappingURL=useTableArrowScrollControl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTableArrowScrollControl.js","sourceRoot":"","sources":["../../src/hooks/useTableArrowScrollControl.ts"],"names":[],"mappings":";;AAEO,MAAM,0BAA0B,GAAG,CAAC,EACzC,aAAa,EACb,mBAAmB,EACnB,eAAe,EACf,kBAAkB,GAMnB,EAA0C,EAAE;IAC3C,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,kBAAkB,CAAC,eAAe,GAAG,CAAC,CAAC,CAAC;IAClE,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,kBAAkB,CAAC,eAAe,GAAG,CAAC,CAAC,CAAC;IAElE,MAAM,iBAAiB,GAAG,aAAa,GAAG,mBAAmB,CAAC;IAC9D,MAAM,cAAc,GAAG,iBAAiB,IAAI,aAAa,GAAG,eAAe,GAAG,mBAAmB,CAAC;IAClG,MAAM,cAAc,GAAG,OAAO,CAAC,iBAAiB,IAAI,eAAe,GAAG,CAAC,CAAC,CAAC;IAEzE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,iBAAiB,EAAE,cAAc,EAAE,cAAc,EAAE,CAAC;AACzF,CAAC,CAAC;AAnBW,QAAA,0BAA0B,8BAmBrC"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @title Цвет
|
|
2
|
+
* @title Цвет блока
|
|
3
3
|
* @enumNames ["Основная", "Второстепенная"]
|
|
4
4
|
*/
|
|
5
5
|
export declare type BlockVersion = 'primary' | 'secondary';
|
|
6
|
+
/**
|
|
7
|
+
* @title Цвет блока
|
|
8
|
+
* @enumNames ["Прозрачная", Основная", "Второстепенная"]
|
|
9
|
+
*/
|
|
10
|
+
export declare type BlockVersionWithTransparent = 'transparent' | 'primary' | 'secondary';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListOrientation.js","sourceRoot":"","sources":["../../src/model/ListOrientation.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { LinkProps } from './LinkProps';
|
|
2
|
+
import { IconName } from '../icons/IconName';
|
|
2
3
|
/**
|
|
3
4
|
* @title Меню
|
|
4
5
|
* @required ["text", "href"]
|
|
@@ -7,7 +8,17 @@ export interface TopMenuItem extends LinkProps {
|
|
|
7
8
|
/** @title Ссылки */
|
|
8
9
|
items?: LinkProps[];
|
|
9
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* @title Ссылка дополнительного меню
|
|
13
|
+
* @required ["text", "href"]
|
|
14
|
+
*/
|
|
15
|
+
export interface DispositionItem extends LinkProps {
|
|
16
|
+
/** @hidden */
|
|
17
|
+
icon?: IconName;
|
|
18
|
+
}
|
|
10
19
|
export interface SitemapProps {
|
|
11
20
|
/** @title Дополнительное меню */
|
|
12
21
|
topItems?: TopMenuItem[];
|
|
22
|
+
/** @title Дополнительное меню */
|
|
23
|
+
dispositions?: DispositionItem[];
|
|
13
24
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { LinkProps } from '../../model/LinkProps';
|
|
2
|
+
import { IconName } from '../../icons/IconName';
|
|
2
3
|
/**
|
|
3
4
|
* @title Ссылка
|
|
4
5
|
* @required ["text", "href"]
|
|
@@ -7,7 +8,17 @@ export interface TopMenuItem extends LinkProps {
|
|
|
7
8
|
/** @hidden */
|
|
8
9
|
items?: LinkProps[];
|
|
9
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* @title Ссылка дополнительного меню
|
|
13
|
+
* @required ["text", "href"]
|
|
14
|
+
*/
|
|
15
|
+
export interface DispositionItem extends LinkProps {
|
|
16
|
+
/** @hidden */
|
|
17
|
+
icon?: IconName;
|
|
18
|
+
}
|
|
10
19
|
export interface SitemapProps {
|
|
11
|
-
/** @title
|
|
20
|
+
/** @title Основное меню */
|
|
12
21
|
topItems?: TopMenuItem[];
|
|
22
|
+
/** @title Дополнительное меню */
|
|
23
|
+
dispositions?: DispositionItem[];
|
|
13
24
|
}
|
|
@@ -2,3 +2,4 @@ import type { ButtonProps, ButtonWithIconProps } from './ButtonProps';
|
|
|
2
2
|
export interface ButtonCommonProps extends ButtonProps, ButtonWithIconProps {
|
|
3
3
|
}
|
|
4
4
|
export declare const Button: (props: import("@redneckz/uni-jsx").PropsWithChildren<ButtonCommonProps, any>, context?: any) => any;
|
|
5
|
+
export declare const RegularButton: (props: import("@redneckz/uni-jsx").PropsWithChildren<ButtonCommonProps, any>, context?: any) => any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.Button = void 0;
|
|
2
|
+
exports.RegularButton = exports.Button = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const ButtonInner_1 = require("./ButtonInner");
|
|
@@ -13,27 +13,12 @@ const buttonDisabledStyleMap = {
|
|
|
13
13
|
secondary: 'bg-secondary-light text-secondary-text',
|
|
14
14
|
link: '',
|
|
15
15
|
};
|
|
16
|
-
const
|
|
17
|
-
exports.Button = (0, uni_jsx_1.JSX)((
|
|
16
|
+
const buttonStyle = 'text-center font-sans select-none';
|
|
17
|
+
exports.Button = (0, uni_jsx_1.JSX)((props) => {
|
|
18
|
+
const { text, aboveText, appendLeft, children, disabled, rounded } = props;
|
|
18
19
|
const buttonInner = children ?? ((0, jsx_runtime_1.jsx)(ButtonInner_1.ButtonInner, { text: text, aboveText: aboveText, appendLeft: appendLeft, rounded: rounded }));
|
|
19
|
-
return disabled
|
|
20
|
-
? renderDisabledButton({ buttonInner, ariaLabel, className, version, rounded })
|
|
21
|
-
: renderButton({
|
|
22
|
-
buttonInner,
|
|
23
|
-
ariaLabel,
|
|
24
|
-
className,
|
|
25
|
-
version,
|
|
26
|
-
rounded,
|
|
27
|
-
href,
|
|
28
|
-
target,
|
|
29
|
-
onClick,
|
|
30
|
-
rest,
|
|
31
|
-
});
|
|
20
|
+
return disabled ? ((0, jsx_runtime_1.jsx)(DisabledButton, { ...props, children: buttonInner })) : ((0, jsx_runtime_1.jsx)(exports.RegularButton, { ...props, children: buttonInner }));
|
|
32
21
|
});
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
function renderDisabledButton({ className, buttonInner, ariaLabel, version, rounded }) {
|
|
37
|
-
return ((0, jsx_runtime_1.jsx)("div", { role: "button", "aria-disabled": "true", "aria-label": ariaLabel, tabIndex: "-1", className: `inline-block ${styleButton} ${buttonDisabledStyleMap[version] || ''} ${rounded ? 'rounded-full' : 'rounded-md'} ${className || ''}`, children: buttonInner }));
|
|
38
|
-
}
|
|
22
|
+
exports.RegularButton = (0, uni_jsx_1.JSX)(({ className, ariaLabel, version = 'none', rounded, href, target, children, onClick, ...rest }) => ((0, jsx_runtime_1.jsx)("a", { className: `${buttonStyle} inline-block cursor-pointer no-underline ${buttonStyleMap[version] || ''} ${rounded ? 'rounded-full' : 'rounded-md'} ${className || ''}`, href: href, target: target, onClick: onClick, "aria-label": ariaLabel, role: href ? 'link' : 'button', ...rest, children: children })));
|
|
23
|
+
const DisabledButton = (0, uni_jsx_1.JSX)(({ className, children, ariaLabel, version = 'none', rounded }) => ((0, jsx_runtime_1.jsx)("div", { role: "button", "aria-disabled": "true", "aria-label": ariaLabel, tabIndex: "-1", className: `inline-block ${buttonStyle} ${buttonDisabledStyleMap[version] || ''} ${rounded ? 'rounded-full' : 'rounded-md'} ${className || ''}`, children: children })));
|
|
39
24
|
//# sourceMappingURL=Button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/Button.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,+CAA4C;AAG5C,MAAM,cAAc,GAAkC;IACpD,OAAO,EAAE,4EAA4E;IACrF,SAAS,EACP,0FAA0F;IAC5F,IAAI,E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OAAO,GAAG,MAAM,EAChB,OAAO,EACP,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,OAAO,EACP,GAAG,IAAI,EACR,EAAE,EAAE,CAAC,CACJ,8BACE,SAAS,EAAE,GAAG,WAAW,6CACvB,cAAc,CAAC,OAAO,CAAC,IAAI,EAC7B,IAAI,OAAO,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,YAAY,IAAI,SAAS,IAAI,EAAE,EAAE,EAChE,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,gBACJ,SAAS,EACrB,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,KAC1B,IAAI,YAEP,QAAQ,GACP,CACL,CACF,CAAC;AAEF,MAAM,cAAc,GAAG,IAAA,aAAG,EACxB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,GAAG,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CACjE,gCACE,IAAI,EAAC,QAAQ,mBACC,MAAM,gBACR,SAAS,EACrB,QAAQ,EAAC,IAAI,EACb,SAAS,EAAE,gBAAgB,WAAW,IAAI,sBAAsB,CAAC,OAAO,CAAC,IAAI,EAAE,IAC7E,OAAO,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,YAC7B,IAAI,SAAS,IAAI,EAAE,EAAE,YAEpB,QAAQ,GACL,CACP,CACF,CAAC"}
|
|
@@ -2,15 +2,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.ButtonInner = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
exports.ButtonInner = (0, uni_jsx_1.JSX)((
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
? `flex items-center justify-center
|
|
9
|
-
${withoutText ? 'h-12 w-12' : `px-8 gap-2 ${aboveText ? 'py-2' : 'py-3.5'}`} ${rounded ? 'rounded-full' : ''}`
|
|
10
|
-
: null;
|
|
11
|
-
return renderButtonInner({ buttonInnerClasses, appendLeft, withoutText, aboveText, text });
|
|
5
|
+
exports.ButtonInner = (0, uni_jsx_1.JSX)((props) => {
|
|
6
|
+
const { text, aboveText, appendLeft } = props;
|
|
7
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: getButtonStyle(props), children: [appendLeft ? appendLeft : null, isWithText(props) ? ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { className: "text-m-2xs text-left", children: aboveText }), (0, jsx_runtime_1.jsx)("div", { className: "text-m-button font-medium text-left", children: text })] })) : null] }));
|
|
12
8
|
});
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
const getButtonStyle = (props) => {
|
|
10
|
+
const { version, aboveText, rounded } = props;
|
|
11
|
+
if (version === 'link') {
|
|
12
|
+
return '';
|
|
13
|
+
}
|
|
14
|
+
const withTextStyle = `px-8 gap-2 ${aboveText ? 'py-2' : 'py-3.5'}`;
|
|
15
|
+
return [
|
|
16
|
+
'flex items-center justify-center',
|
|
17
|
+
isWithText(props) ? withTextStyle : 'h-12 w-12',
|
|
18
|
+
rounded ? 'rounded-full' : '',
|
|
19
|
+
].join(' ');
|
|
20
|
+
};
|
|
21
|
+
const isWithText = ({ text, aboveText, appendLeft }) => Boolean(text || aboveText || !appendLeft);
|
|
16
22
|
//# sourceMappingURL=ButtonInner.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonInner.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/ButtonInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAQ3B,QAAA,WAAW,GAAG,IAAA,aAAG,
|
|
1
|
+
{"version":3,"file":"ButtonInner.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/ButtonInner.tsx"],"names":[],"mappings":";;;A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/jsx-runtime");
|
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
exports.Description = (0, uni_jsx_1.JSX)((props) => {
|
|
6
6
|
const { className = '', description } = props;
|
|
7
|
-
return (0, jsx_runtime_1.jsx)("div", { className: `font-normal text-
|
|
7
|
+
return (0, jsx_runtime_1.jsx)("div", { className: `font-normal text-base ${className}`, children: description });
|
|
8
8
|
});
|
|
9
9
|
//# sourceMappingURL=Description.js.map
|
package/dist/ui-kit/Img/Img.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Picture, ImgSource } from '../../model/Picture';
|
|
2
2
|
export interface ImageProps {
|
|
3
3
|
className?: string;
|
|
4
|
+
imageClassName?: string;
|
|
4
5
|
image: Picture;
|
|
5
6
|
}
|
|
6
7
|
export declare const Img: (props: import("@redneckz/uni-jsx").PropsWithChildren<ImageProps, any>, context?: any) => any;
|
package/dist/ui-kit/Img/Img.js
CHANGED
|
@@ -2,14 +2,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.formatToMimeType = exports.Img = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
exports.Img = (0, uni_jsx_1.JSX)(({ className = '', image: { size, ...image } }) => {
|
|
5
|
+
exports.Img = (0, uni_jsx_1.JSX)(({ className = '', image: { size, ...image }, imageClassName = '' }) => {
|
|
6
6
|
const style = {
|
|
7
7
|
width: size?.width ? `${size?.width}px` : '100%',
|
|
8
8
|
height: size?.height ? `${size?.height}px` : '100%',
|
|
9
9
|
};
|
|
10
10
|
return ((0, jsx_runtime_1.jsxs)("picture", { className: `flex-none ${className}`, children: [image.sources?.length
|
|
11
11
|
? image.sources.map(({ src, format }, index) => ((0, jsx_runtime_1.jsx)("source", { srcSet: src, type: formatToMimeType(format) }, `${index}_${src}`)))
|
|
12
|
-
: null, (0, jsx_runtime_1.jsx)("img", { className:
|
|
12
|
+
: null, (0, jsx_runtime_1.jsx)("img", { className: imageClassName, src: image.src, alt: image.alt || image.title, title: image.title, style: style, ...size })] }));
|
|
13
13
|
});
|
|
14
14
|
function formatToMimeType(format) {
|
|
15
15
|
return format ? `image/${String(format)}` : undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Img.js","sourceRoot":"","sources":["../../../src/ui-kit/Img/Img.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"Img.js","sourceRoot":"","sources":["../../../src/ui-kit/Img/Img.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAS3B,QAAA,GAAG,GAAG,IAAA,aAAG,EACpB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,GAAG,EAAE,EAAE,EAAE,EAAE;IACrE,MAAM,KAAK,GAAG;QACZ,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,EAAE,KAAK,IAAI,CAAC,CAAC,CAAC,MAAM;QAChD,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,GAAG,IAAI,EAAE,MAAM,IAAI,CAAC,CAAC,CAAC,MAAM;KACpD,CAAC;IAEF,OAAO,CACL,qCAAS,SAAS,EAAE,aAAa,SAAS,EAAE,aACzC,KAAK,CAAC,OAAO,EAAE,MAAM;gBACpB,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,EAAE,CAAC,CAC5C,mCAAgC,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,gBAAgB,CAAC,MAAM,CAAC,IAA9D,GAAG,KAAK,IAAI,GAAG,EAAE,CAAiD,CAChF,CAAC;gBACJ,CAAC,CAAC,IAAI,EACR,gCACE,SAAS,EAAE,cAAc,EACzB,GAAG,EAAE,KAAK,CAAC,GAAG,EACd,GAAG,EAAE,KAAK,CAAC,GAAG,IAAI,KAAK,CAAC,KAAK,EAC7B,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,KAAK,EAAE,KAAK,KACR,IAAI,GACR,IACM,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAgB,gBAAgB,CAAC,MAA2B;IAC1D,OAAO,MAAM,CAAC,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AACxD,CAAC;AAFD,4CAEC"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import type { ImgSource } from '../../model/Picture';
|
|
2
|
-
|
|
1
|
+
import type { Picture, ImgSource } from '../../model/Picture';
|
|
2
|
+
export interface ImageProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
imageClassName?: string;
|
|
5
|
+
image: Picture;
|
|
6
|
+
}
|
|
3
7
|
export declare const Img: (props: import("@redneckz/uni-jsx").PropsWithChildren<ImageProps, any>, context?: any) => any;
|
|
4
8
|
export declare function formatToMimeType(format: ImgSource['format']): string | undefined;
|
|
@@ -2,18 +2,23 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.formatToMimeType = exports.Img = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
exports.Img = (0, uni_jsx_1.JSX)(({ className = '', image }) => {
|
|
5
|
+
exports.Img = (0, uni_jsx_1.JSX)(({ className = '', image, imageClassName }) => {
|
|
6
6
|
if (!image) {
|
|
7
7
|
return null;
|
|
8
8
|
}
|
|
9
|
+
return ((0, jsx_runtime_1.jsxs)("picture", { className: className, children: [image.sources?.length
|
|
10
|
+
? image.sources.map(({ src, format }, index) => ((0, jsx_runtime_1.jsx)("source", { srcSet: src, type: formatToMimeType(format) }, `${index}_${src}`)))
|
|
11
|
+
: null, renderImg(image, imageClassName)] }));
|
|
12
|
+
});
|
|
13
|
+
const renderImg = (image, imageClassName = '') => {
|
|
9
14
|
const style = {
|
|
10
15
|
width: image.size?.width ? `${image.size?.width}px` : '100%',
|
|
11
16
|
height: image.size?.height ? `${image.size?.height}px` : '100%',
|
|
12
17
|
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
18
|
+
const title = image.title || '';
|
|
19
|
+
const alt = image.alt || image.title;
|
|
20
|
+
return ((0, jsx_runtime_1.jsx)("img", { src: image.src, className: `m-auto ${imageClassName}`, alt: alt, title: title, style: style, ...image.size }));
|
|
21
|
+
};
|
|
17
22
|
function formatToMimeType(format) {
|
|
18
23
|
return format ? `image/${String(format)}` : undefined;
|
|
19
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Img.mobile.js","sourceRoot":"","sources":["../../../src/ui-kit/Img/Img.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"Img.mobile.js","sourceRoot":"","sources":["../../../src/ui-kit/Img/Img.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAS3B,QAAA,GAAG,GAAG,IAAA,aAAG,EAAa,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE,EAAE,EAAE;IAC/E,IAAI,CAAC,KAAK,EAAE;QACV,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,qCAAS,SAAS,EAAE,SAAS,aAC1B,KAAK,CAAC,OAAO,EAAE,MAAM;gBACpB,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,EAAE,CAAC,CAC5C,mCAAgC,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,gBAAgB,CAAC,MAAM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