@redneckz/wildless-cms-uni-blocks 0.4.3 → 0.4.4
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/bin/migrate.js +40 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +306 -258
- package/bundle/bundle.umd.min.js +1 -1
- package/cosmos-static/icons/CardTickIcon.svg +1 -1
- package/cosmos-static/icons/DocDownload.svg +1 -0
- package/dist/EventBus/EventMap.d.ts +2 -0
- package/dist/components/Accordion/AccordionItem.js +1 -1
- 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/BaseTile/BaseTile.js +1 -1
- package/dist/components/BaseTile/BaseTile.js.map +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
- package/dist/components/BlockContent.d.ts +2 -3
- package/dist/components/Blocks.d.ts +1 -3
- package/dist/components/Blocks.js +0 -4
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Calculator/Calculator.js +1 -1
- package/dist/components/Calculator/Calculator.js.map +1 -1
- package/dist/components/Calculator/useCalculatorParams.js +2 -5
- package/dist/components/Calculator/useCalculatorParams.js.map +1 -1
- package/dist/components/Calculator/useCreditCalculatorParams.js +1 -2
- package/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -1
- package/dist/components/Catalog/CatalogCard.js +12 -6
- package/dist/components/Catalog/CatalogCard.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTableContent.d.ts +7 -1
- package/dist/components/ComparisonTable/ComparisonTableRows.d.ts +2 -2
- package/dist/components/ComparisonTable/ComparisonTableRows.js +1 -1
- package/dist/components/ComparisonTable/ComparisonTableRows.js.map +1 -1
- package/dist/components/ContentPage/normalizePage.js +1 -1
- package/dist/components/ContentPage/normalizePage.js.map +1 -1
- package/dist/components/ContentPage/normalizePage.mobile.js +1 -1
- package/dist/components/ContentPage/normalizePage.mobile.js.map +1 -1
- package/dist/components/Gallery/Gallery.mobile.js +2 -5
- package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
- package/dist/components/Gallery/GalleryCardInner.d.ts +2 -2
- package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/dist/components/Gallery/GalleryContainer.d.ts +2 -2
- package/dist/components/Gallery/GalleryContainer.js +3 -2
- package/dist/components/Gallery/GalleryContainer.js.map +1 -1
- package/dist/components/Gallery/GalleryContent.d.ts +4 -4
- package/dist/components/Gallery/GalleryProps.d.ts +1 -1
- package/dist/components/Gallery/constants.d.ts +0 -2
- package/dist/components/Gallery/constants.js +1 -5
- package/dist/components/Gallery/constants.js.map +1 -1
- package/dist/components/GracePeriod/GracePeriodContent.d.ts +2 -2
- package/dist/components/Header/Header.js +3 -2
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/Header/HeaderSecondaryMenu.js +1 -1
- package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +4 -3
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js +4 -6
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +1 -0
- package/dist/components/Navigation/Navigation.d.ts +1 -1
- package/dist/components/OtherProducts/OtherProductsContent.d.ts +1 -4
- package/dist/components/PictureText/PictureText.js +2 -5
- package/dist/components/PictureText/PictureText.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlock.js +2 -5
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlock.mobile.js +2 -5
- package/dist/components/ProductBlock/ProductBlock.mobile.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +14 -2
- package/dist/components/ProductGallery/ProductGallery.js +4 -11
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/ProductGallery/ProductGalleryBlock.js +2 -5
- package/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/dist/components/ProductTile/ProductTile.js +14 -14
- package/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/dist/components/PromoTile/PromoTile.js +2 -5
- package/dist/components/PromoTile/PromoTile.js.map +1 -1
- package/dist/components/PromoTile/PromoTileContent.d.ts +2 -2
- package/dist/components/Recommendation/RecommendationContent.d.ts +4 -4
- package/dist/components/SafeDepositRental/SafeDepositRental.js +4 -0
- package/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalForm.js +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/dist/components/Tabs/Tabs.d.ts +4 -4
- package/dist/components/Tabs/Tabs.js +10 -3
- package/dist/components/Tabs/Tabs.js.map +1 -1
- package/dist/components/Tabs/TabsContent.d.ts +13 -11
- package/dist/components/Tabs/renderGroupTab.d.ts +3 -3
- package/dist/components/Tabs/renderGroupTab.js.map +1 -1
- package/dist/components/Tabs/renderTab.d.ts +1 -1
- package/dist/components/Tabs/renderTab.js +19 -8
- package/dist/components/Tabs/renderTab.js.map +1 -1
- package/dist/components/TariffsTable/EmbeddableCellData.d.ts +14 -0
- package/dist/components/TariffsTable/EmbeddableCellData.js +35 -0
- package/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -0
- package/dist/components/TariffsTable/EmbeddableCellData.mobile.d.ts +15 -0
- package/dist/components/TariffsTable/EmbeddableCellData.mobile.js +21 -0
- package/dist/components/TariffsTable/EmbeddableCellData.mobile.js.map +1 -0
- package/dist/components/TariffsTable/TariffsTable.js +10 -11
- package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTable.mobile.js +2 -2
- package/dist/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableCell.d.ts +6 -3
- package/dist/components/TariffsTable/TariffsTableCell.js +18 -10
- package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableContent.d.ts +80 -26
- package/dist/components/TariffsTable/TariffsTableHorizontal.d.ts +5 -5
- package/dist/components/TariffsTable/TariffsTableHorizontal.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableRow.d.ts +5 -4
- package/dist/components/TariffsTable/TariffsTableRow.js +3 -3
- package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableRowContainer.d.ts +7 -0
- package/dist/components/TariffsTable/TariffsTableRowContainer.js +15 -0
- package/dist/components/TariffsTable/TariffsTableRowContainer.js.map +1 -0
- package/dist/components/TariffsTable/TariffsTableTileCell.d.ts +7 -1
- package/dist/components/TariffsTable/TariffsTableTileCell.js +15 -9
- package/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableVertical.d.ts +5 -3
- package/dist/components/TariffsTable/TariffsTableVertical.js.map +1 -1
- package/dist/components/TariffsTable/dataFixture.d.ts +5 -0
- package/dist/components/TariffsTable/dataFixture.js +140 -0
- package/dist/components/TariffsTable/dataFixture.js.map +1 -0
- package/dist/components/Tile/Tile.js +6 -9
- package/dist/components/Tile/Tile.js.map +1 -1
- package/dist/components/Tile/TileContent.d.ts +4 -2
- package/dist/hooks/useExchangeRates.js +9 -18
- package/dist/hooks/useExchangeRates.js.map +1 -1
- package/dist/hooks/useTariffsInnerTableData.d.ts +1 -0
- package/dist/hooks/useTariffsInnerTableData.js +16 -0
- package/dist/hooks/useTariffsInnerTableData.js.map +1 -0
- package/dist/icons/IconName.d.ts +4 -2
- package/dist/icons/IconName.js +2 -0
- package/dist/icons/IconName.js.map +1 -1
- package/dist/model/BlockVersion.d.ts +1 -0
- package/dist/model/BlockVersion.js +5 -0
- package/dist/model/BlockVersion.js.map +1 -1
- package/dist/model/HeadlineType.d.ts +3 -3
- package/dist/model/LinkProps.d.ts +6 -4
- package/dist/services/sitemap/useSitemap.js +2 -8
- package/dist/services/sitemap/useSitemap.js.map +1 -1
- package/dist/ui-kit/BenefitItem/BenefitItem.js +2 -2
- package/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/dist/ui-kit/BlocksList/renderBlocksList.d.ts +1 -2
- package/dist/ui-kit/Button/Button.d.ts +2 -4
- package/dist/ui-kit/Button/Button.js +1 -1
- package/dist/ui-kit/Button/Button.js.map +1 -1
- package/dist/ui-kit/Button/Button.mobile.d.ts +2 -4
- package/dist/ui-kit/Button/Button.mobile.js.map +1 -1
- package/dist/ui-kit/Button/ButtonInner.d.ts +1 -1
- package/dist/ui-kit/Description/Description.d.ts +3 -3
- package/dist/ui-kit/Description/Description.js.map +1 -1
- package/dist/ui-kit/Foldable/Foldable.js +1 -1
- package/dist/ui-kit/Foldable/Foldable.js.map +1 -1
- package/dist/ui-kit/Heading/HeadingProps.d.ts +5 -2
- package/dist/ui-kit/InnerTable/InnerTable.d.ts +5 -0
- package/dist/ui-kit/InnerTable/InnerTable.js +17 -0
- package/dist/ui-kit/InnerTable/InnerTable.js.map +1 -0
- package/dist/ui-kit/InnerTable/InnerTableBody.d.ts +7 -0
- package/dist/ui-kit/InnerTable/InnerTableBody.js +18 -0
- package/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -0
- package/dist/ui-kit/InnerTable/InnerTableBodyItem.d.ts +6 -0
- package/dist/ui-kit/InnerTable/InnerTableBodyItem.js +33 -0
- package/dist/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -0
- package/dist/ui-kit/InnerTable/InnerTableButton.d.ts +6 -0
- package/dist/ui-kit/InnerTable/InnerTableButton.js +14 -0
- package/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -0
- package/dist/ui-kit/InnerTable/InnerTableHeader.d.ts +7 -0
- package/dist/ui-kit/InnerTable/InnerTableHeader.js +8 -0
- package/dist/ui-kit/InnerTable/InnerTableHeader.js.map +1 -0
- package/dist/ui-kit/InnerTable/InnerTableProps.d.ts +24 -0
- package/dist/{components/GroupBlock/BlocksTypeProps.js → ui-kit/InnerTable/InnerTableProps.js} +1 -1
- package/dist/ui-kit/InnerTable/InnerTableProps.js.map +1 -0
- package/dist/ui-kit/List/List.js +6 -2
- package/dist/ui-kit/List/List.js.map +1 -1
- package/dist/ui-kit/List/ListProps.d.ts +9 -1
- package/dist/ui-kit/Logo/Logo.js +6 -2
- package/dist/ui-kit/Logo/Logo.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/dist/ui-kit/TopItem/TopItem.d.ts +1 -1
- package/dist/ui-kit/TopItem/TopItem.js +2 -2
- package/dist/ui-kit/TopItem/TopItem.js.map +1 -1
- package/dist/utils/assertUnreachable.d.ts +1 -0
- package/dist/utils/assertUnreachable.js +7 -0
- package/dist/utils/assertUnreachable.js.map +1 -0
- package/dist/utils/fetchJSON.d.ts +2 -0
- package/dist/utils/fetchJSON.js +24 -0
- package/dist/utils/fetchJSON.js.map +1 -0
- package/dist/utils/roundTo.d.ts +1 -1
- package/dist/utils/roundTo.js +1 -1
- package/dist/utils/roundTo.js.map +1 -1
- package/lib/EventBus/EventMap.d.ts +2 -0
- package/lib/common.css +1 -1
- package/lib/components/Accordion/AccordionItem.js +1 -1
- 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/BaseTile/BaseTile.js +1 -1
- package/lib/components/BaseTile/BaseTile.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
- package/lib/components/BlockContent.d.ts +2 -3
- package/lib/components/Blocks.d.ts +1 -3
- package/lib/components/Blocks.js +0 -4
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Calculator/Calculator.js +1 -1
- package/lib/components/Calculator/Calculator.js.map +1 -1
- package/lib/components/Calculator/useCalculatorParams.js +2 -5
- package/lib/components/Calculator/useCalculatorParams.js.map +1 -1
- package/lib/components/Calculator/useCreditCalculatorParams.js +1 -2
- package/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -1
- package/lib/components/Catalog/CatalogCard.js +12 -6
- package/lib/components/Catalog/CatalogCard.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTableContent.d.ts +7 -1
- package/lib/components/ComparisonTable/ComparisonTableRows.d.ts +2 -2
- package/lib/components/ComparisonTable/ComparisonTableRows.js +1 -1
- package/lib/components/ComparisonTable/ComparisonTableRows.js.map +1 -1
- package/lib/components/ContentPage/normalizePage.js +1 -1
- package/lib/components/ContentPage/normalizePage.js.map +1 -1
- package/lib/components/ContentPage/normalizePage.mobile.js +1 -1
- package/lib/components/ContentPage/normalizePage.mobile.js.map +1 -1
- package/lib/components/Gallery/Gallery.mobile.js +2 -5
- package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
- package/lib/components/Gallery/GalleryCardInner.d.ts +2 -2
- package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/lib/components/Gallery/GalleryContainer.d.ts +2 -2
- package/lib/components/Gallery/GalleryContainer.js +4 -3
- package/lib/components/Gallery/GalleryContainer.js.map +1 -1
- package/lib/components/Gallery/GalleryContent.d.ts +4 -4
- package/lib/components/Gallery/GalleryProps.d.ts +1 -1
- package/lib/components/Gallery/constants.d.ts +0 -2
- package/lib/components/Gallery/constants.js +0 -4
- package/lib/components/Gallery/constants.js.map +1 -1
- package/lib/components/GracePeriod/GracePeriodContent.d.ts +2 -2
- package/lib/components/Header/Header.js +3 -2
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/HeaderSecondaryMenu.js +1 -1
- package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +4 -3
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js +4 -6
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +1 -0
- package/lib/components/Navigation/Navigation.d.ts +1 -1
- package/lib/components/OtherProducts/OtherProductsContent.d.ts +1 -4
- package/lib/components/PictureText/PictureText.js +2 -5
- package/lib/components/PictureText/PictureText.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.js +2 -5
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.mobile.js +2 -5
- package/lib/components/ProductBlock/ProductBlock.mobile.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +14 -2
- package/lib/components/ProductGallery/ProductGallery.js +4 -11
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/ProductGallery/ProductGalleryBlock.js +2 -5
- package/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/lib/components/ProductTile/ProductTile.fixture.d.ts +1 -0
- package/lib/components/ProductTile/ProductTile.js +14 -14
- package/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/lib/components/PromoTile/PromoTile.js +2 -5
- package/lib/components/PromoTile/PromoTile.js.map +1 -1
- package/lib/components/PromoTile/PromoTileContent.d.ts +2 -2
- package/lib/components/Recommendation/RecommendationContent.d.ts +4 -4
- package/lib/components/SafeDepositRental/SafeDepositRental.js +4 -0
- package/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalForm.js +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/lib/components/Tabs/Tabs.d.ts +4 -4
- package/lib/components/Tabs/Tabs.js +10 -3
- package/lib/components/Tabs/Tabs.js.map +1 -1
- package/lib/components/Tabs/TabsContent.d.ts +13 -11
- package/lib/components/Tabs/renderGroupTab.d.ts +3 -3
- package/lib/components/Tabs/renderGroupTab.js.map +1 -1
- package/lib/components/Tabs/renderTab.d.ts +1 -1
- package/lib/components/Tabs/renderTab.js +19 -8
- package/lib/components/Tabs/renderTab.js.map +1 -1
- package/lib/components/TariffsTable/EmbeddableCellData.d.ts +14 -0
- package/lib/components/TariffsTable/EmbeddableCellData.js +33 -0
- package/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -0
- package/lib/components/TariffsTable/EmbeddableCellData.mobile.d.ts +14 -0
- package/lib/components/TariffsTable/EmbeddableCellData.mobile.js +19 -0
- package/lib/components/TariffsTable/EmbeddableCellData.mobile.js.map +1 -0
- package/lib/components/TariffsTable/TariffsTable.fixture.d.ts +1 -0
- package/lib/components/TariffsTable/TariffsTable.js +10 -11
- package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTable.mobile.js +2 -2
- package/lib/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableCell.d.ts +6 -3
- package/lib/components/TariffsTable/TariffsTableCell.js +18 -10
- package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableContent.d.ts +80 -26
- package/lib/components/TariffsTable/TariffsTableHorizontal.d.ts +5 -5
- package/lib/components/TariffsTable/TariffsTableHorizontal.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableRow.d.ts +5 -4
- package/lib/components/TariffsTable/TariffsTableRow.js +3 -3
- package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableRowContainer.d.ts +7 -0
- package/lib/components/TariffsTable/TariffsTableRowContainer.js +13 -0
- package/lib/components/TariffsTable/TariffsTableRowContainer.js.map +1 -0
- package/lib/components/TariffsTable/TariffsTableTileCell.d.ts +7 -1
- package/lib/components/TariffsTable/TariffsTableTileCell.js +15 -9
- package/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableVertical.d.ts +5 -3
- package/lib/components/TariffsTable/TariffsTableVertical.js.map +1 -1
- package/lib/components/TariffsTable/dataFixture.d.ts +5 -0
- package/lib/components/TariffsTable/dataFixture.js +138 -0
- package/lib/components/TariffsTable/dataFixture.js.map +1 -0
- package/lib/components/TextBlock/TextBlock.fixture.d.ts +1 -1
- package/lib/components/TextBlock/TextBlock.fixture.mobile.d.ts +1 -1
- package/lib/components/Tile/Tile.js +6 -9
- package/lib/components/Tile/Tile.js.map +1 -1
- package/lib/components/Tile/TileContent.d.ts +4 -2
- package/lib/hooks/useExchangeRates.js +9 -18
- package/lib/hooks/useExchangeRates.js.map +1 -1
- package/lib/hooks/useTariffsInnerTableData.d.ts +1 -0
- package/lib/hooks/useTariffsInnerTableData.js +13 -0
- package/lib/hooks/useTariffsInnerTableData.js.map +1 -0
- package/lib/icons/IconName.d.ts +4 -2
- package/lib/icons/IconName.js +2 -0
- package/lib/icons/IconName.js.map +1 -1
- package/lib/model/BlockVersion.d.ts +1 -0
- package/lib/model/BlockVersion.js +4 -1
- package/lib/model/BlockVersion.js.map +1 -1
- package/lib/model/HeadlineType.d.ts +3 -3
- package/lib/model/LinkProps.d.ts +6 -4
- package/lib/services/sitemap/useSitemap.js +2 -8
- package/lib/services/sitemap/useSitemap.js.map +1 -1
- package/lib/ui-kit/BenefitItem/BenefitItem.js +2 -2
- package/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/lib/ui-kit/BlocksList/renderBlocksList.d.ts +1 -2
- package/lib/ui-kit/Button/Button.d.ts +2 -4
- package/lib/ui-kit/Button/Button.js +1 -1
- package/lib/ui-kit/Button/Button.js.map +1 -1
- package/lib/ui-kit/Button/Button.mobile.d.ts +2 -4
- package/lib/ui-kit/Button/Button.mobile.js.map +1 -1
- package/lib/ui-kit/Button/ButtonInner.d.ts +1 -1
- package/lib/ui-kit/Description/Description.d.ts +3 -3
- package/lib/ui-kit/Description/Description.js.map +1 -1
- package/lib/ui-kit/Foldable/Foldable.js +1 -1
- package/lib/ui-kit/Foldable/Foldable.js.map +1 -1
- package/lib/ui-kit/Heading/HeadingProps.d.ts +5 -2
- package/lib/ui-kit/InnerTable/InnerTable.d.ts +5 -0
- package/lib/ui-kit/InnerTable/InnerTable.js +15 -0
- package/lib/ui-kit/InnerTable/InnerTable.js.map +1 -0
- package/lib/ui-kit/InnerTable/InnerTableBody.d.ts +7 -0
- package/lib/ui-kit/InnerTable/InnerTableBody.js +16 -0
- package/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -0
- package/lib/ui-kit/InnerTable/InnerTableBodyItem.d.ts +6 -0
- package/lib/ui-kit/InnerTable/InnerTableBodyItem.js +31 -0
- package/lib/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -0
- package/lib/ui-kit/InnerTable/InnerTableButton.d.ts +6 -0
- package/lib/ui-kit/InnerTable/InnerTableButton.js +12 -0
- package/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -0
- package/lib/ui-kit/InnerTable/InnerTableHeader.d.ts +7 -0
- package/lib/ui-kit/InnerTable/InnerTableHeader.js +6 -0
- package/lib/ui-kit/InnerTable/InnerTableHeader.js.map +1 -0
- package/lib/ui-kit/InnerTable/InnerTableProps.d.ts +24 -0
- package/lib/ui-kit/InnerTable/InnerTableProps.js +2 -0
- package/lib/ui-kit/InnerTable/InnerTableProps.js.map +1 -0
- package/lib/ui-kit/List/List.js +6 -2
- package/lib/ui-kit/List/List.js.map +1 -1
- package/lib/ui-kit/List/ListProps.d.ts +9 -1
- package/lib/ui-kit/Logo/Logo.js +6 -2
- package/lib/ui-kit/Logo/Logo.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/lib/ui-kit/TopItem/TopItem.d.ts +1 -1
- package/lib/ui-kit/TopItem/TopItem.js +2 -2
- package/lib/ui-kit/TopItem/TopItem.js.map +1 -1
- package/lib/utils/assertUnreachable.d.ts +1 -0
- package/lib/utils/assertUnreachable.js +4 -0
- package/lib/utils/assertUnreachable.js.map +1 -0
- package/lib/utils/fetchJSON.d.ts +2 -0
- package/lib/utils/fetchJSON.js +20 -0
- package/lib/utils/fetchJSON.js.map +1 -0
- package/lib/utils/roundTo.d.ts +1 -1
- package/lib/utils/roundTo.js +1 -1
- package/lib/utils/roundTo.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +84 -60
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/EventBus/EventMap.d.ts +2 -0
- package/mobile/dist/components/Accordion/AccordionItem.js +1 -1
- package/mobile/dist/components/Accordion/AccordionItem.js.map +1 -1
- package/mobile/dist/components/BaseTile/BaseTile.js +1 -1
- package/mobile/dist/components/BaseTile/BaseTile.js.map +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
- package/mobile/dist/components/BlockContent.d.ts +2 -3
- package/mobile/dist/components/Calculator/Calculator.js +1 -1
- package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
- package/mobile/dist/components/Calculator/useCalculatorParams.js +2 -5
- package/mobile/dist/components/Calculator/useCalculatorParams.js.map +1 -1
- package/mobile/dist/components/Calculator/useCreditCalculatorParams.js +1 -2
- package/mobile/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -1
- package/mobile/dist/components/Catalog/CatalogCard.js +12 -6
- package/mobile/dist/components/Catalog/CatalogCard.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/ComparisonTableContent.d.ts +7 -1
- package/mobile/dist/components/ComparisonTable/ComparisonTableRows.d.ts +2 -2
- package/mobile/dist/components/ComparisonTable/ComparisonTableRows.js +1 -1
- package/mobile/dist/components/ComparisonTable/ComparisonTableRows.js.map +1 -1
- package/mobile/dist/components/ContentPage/normalizePage.js +1 -1
- package/mobile/dist/components/ContentPage/normalizePage.js.map +1 -1
- package/mobile/dist/components/Gallery/Gallery.js +2 -5
- package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryCardInner.d.ts +2 -2
- package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryContainer.d.ts +2 -2
- package/mobile/dist/components/Gallery/GalleryContainer.js +3 -2
- package/mobile/dist/components/Gallery/GalleryContainer.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryContent.d.ts +4 -4
- package/mobile/dist/components/Gallery/GalleryProps.d.ts +1 -1
- package/mobile/dist/components/Gallery/constants.d.ts +0 -2
- package/mobile/dist/components/Gallery/constants.js +1 -5
- package/mobile/dist/components/Gallery/constants.js.map +1 -1
- package/mobile/dist/components/GracePeriod/GracePeriodContent.d.ts +2 -2
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js +1 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +4 -3
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +1 -0
- package/mobile/dist/components/Navigation/Navigation.d.ts +1 -1
- package/mobile/dist/components/OtherProducts/OtherProductsContent.d.ts +1 -4
- package/mobile/dist/components/PictureText/PictureText.js +2 -5
- package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlock.js +2 -5
- package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +14 -2
- package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js +2 -5
- package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTile.js +14 -14
- package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/dist/components/PromoTile/PromoTile.js +2 -5
- package/mobile/dist/components/PromoTile/PromoTile.js.map +1 -1
- package/mobile/dist/components/PromoTile/PromoTileContent.d.ts +2 -2
- package/mobile/dist/components/Recommendation/RecommendationContent.d.ts +4 -4
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js +4 -0
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.js +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/components/Tabs/Tabs.d.ts +4 -4
- package/mobile/dist/components/Tabs/Tabs.js +10 -3
- package/mobile/dist/components/Tabs/Tabs.js.map +1 -1
- package/mobile/dist/components/Tabs/TabsContent.d.ts +13 -11
- package/mobile/dist/components/Tabs/renderGroupTab.d.ts +3 -3
- package/mobile/dist/components/Tabs/renderGroupTab.js.map +1 -1
- package/mobile/dist/components/Tabs/renderTab.d.ts +1 -1
- package/mobile/dist/components/Tabs/renderTab.js +19 -8
- package/mobile/dist/components/Tabs/renderTab.js.map +1 -1
- package/mobile/dist/components/TariffsTable/EmbeddableCellData.d.ts +15 -0
- package/mobile/dist/components/TariffsTable/EmbeddableCellData.js +21 -0
- package/mobile/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -0
- package/mobile/dist/components/TariffsTable/TariffsTable.js +2 -2
- package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableCell.d.ts +6 -3
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js +18 -10
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +80 -26
- package/mobile/dist/components/TariffsTable/TariffsTableHorizontal.d.ts +5 -5
- package/mobile/dist/components/TariffsTable/TariffsTableHorizontal.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRow.d.ts +5 -4
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js +3 -3
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRowContainer.d.ts +7 -0
- package/mobile/dist/components/TariffsTable/TariffsTableRowContainer.js +15 -0
- package/mobile/dist/components/TariffsTable/TariffsTableRowContainer.js.map +1 -0
- package/mobile/dist/components/TariffsTable/TariffsTableTileCell.d.ts +7 -1
- package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js +15 -9
- package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableVertical.d.ts +5 -3
- package/mobile/dist/components/TariffsTable/TariffsTableVertical.js.map +1 -1
- package/mobile/dist/components/TariffsTable/dataFixture.d.ts +5 -0
- package/mobile/dist/components/TariffsTable/dataFixture.js +140 -0
- package/mobile/dist/components/TariffsTable/dataFixture.js.map +1 -0
- package/mobile/dist/components/Tile/Tile.js +6 -9
- package/mobile/dist/components/Tile/Tile.js.map +1 -1
- package/mobile/dist/components/Tile/TileContent.d.ts +4 -2
- package/mobile/dist/hooks/useExchangeRates.js +9 -18
- package/mobile/dist/hooks/useExchangeRates.js.map +1 -1
- package/mobile/dist/hooks/useTariffsInnerTableData.d.ts +1 -0
- package/mobile/dist/hooks/useTariffsInnerTableData.js +16 -0
- package/mobile/dist/hooks/useTariffsInnerTableData.js.map +1 -0
- package/mobile/dist/icons/IconName.d.ts +4 -2
- package/mobile/dist/icons/IconName.js +2 -0
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/model/BlockVersion.d.ts +1 -0
- package/mobile/dist/model/BlockVersion.js +5 -0
- package/mobile/dist/model/BlockVersion.js.map +1 -1
- package/mobile/dist/model/HeadlineType.d.ts +3 -3
- package/mobile/dist/model/LinkProps.d.ts +6 -4
- package/mobile/dist/services/sitemap/useSitemap.js +2 -8
- package/mobile/dist/services/sitemap/useSitemap.js.map +1 -1
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js +2 -2
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/mobile/dist/ui-kit/BlocksList/renderBlocksList.d.ts +1 -2
- package/mobile/dist/ui-kit/Button/Button.d.ts +2 -4
- package/mobile/dist/ui-kit/Button/Button.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.d.ts +1 -1
- package/mobile/dist/ui-kit/Description/Description.d.ts +3 -3
- package/mobile/dist/ui-kit/Description/Description.js.map +1 -1
- package/mobile/dist/ui-kit/Foldable/Foldable.js +1 -1
- package/mobile/dist/ui-kit/Foldable/Foldable.js.map +1 -1
- package/mobile/dist/ui-kit/Heading/HeadingProps.d.ts +5 -2
- package/mobile/dist/ui-kit/InnerTable/InnerTable.d.ts +5 -0
- package/mobile/dist/ui-kit/InnerTable/InnerTable.js +17 -0
- package/mobile/dist/ui-kit/InnerTable/InnerTable.js.map +1 -0
- package/mobile/dist/ui-kit/InnerTable/InnerTableBody.d.ts +7 -0
- package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js +18 -0
- package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -0
- package/mobile/dist/ui-kit/InnerTable/InnerTableBodyItem.d.ts +6 -0
- package/mobile/dist/ui-kit/InnerTable/InnerTableBodyItem.js +33 -0
- package/mobile/dist/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -0
- package/mobile/dist/ui-kit/InnerTable/InnerTableButton.d.ts +6 -0
- package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js +14 -0
- package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -0
- package/mobile/dist/ui-kit/InnerTable/InnerTableHeader.d.ts +7 -0
- package/mobile/dist/ui-kit/InnerTable/InnerTableHeader.js +8 -0
- package/mobile/dist/ui-kit/InnerTable/InnerTableHeader.js.map +1 -0
- package/mobile/dist/ui-kit/InnerTable/InnerTableProps.d.ts +24 -0
- package/mobile/dist/{components/GroupBlock/BlocksTypeProps.js → ui-kit/InnerTable/InnerTableProps.js} +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableProps.js.map +1 -0
- package/mobile/dist/ui-kit/List/List.js +6 -2
- package/mobile/dist/ui-kit/List/List.js.map +1 -1
- package/mobile/dist/ui-kit/List/ListProps.d.ts +9 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/dist/ui-kit/TopItem/TopItem.d.ts +1 -1
- package/mobile/dist/ui-kit/TopItem/TopItem.js +2 -2
- package/mobile/dist/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/dist/utils/assertUnreachable.d.ts +1 -0
- package/mobile/dist/utils/assertUnreachable.js +7 -0
- package/mobile/dist/utils/assertUnreachable.js.map +1 -0
- package/mobile/dist/utils/fetchJSON.d.ts +2 -0
- package/mobile/dist/utils/fetchJSON.js +24 -0
- package/mobile/dist/utils/fetchJSON.js.map +1 -0
- package/mobile/dist/utils/roundTo.d.ts +1 -1
- package/mobile/dist/utils/roundTo.js +1 -1
- package/mobile/dist/utils/roundTo.js.map +1 -1
- package/mobile/lib/EventBus/EventMap.d.ts +2 -0
- package/mobile/lib/components/Accordion/AccordionItem.js +1 -1
- package/mobile/lib/components/Accordion/AccordionItem.js.map +1 -1
- package/mobile/lib/components/BaseTile/BaseTile.js +1 -1
- package/mobile/lib/components/BaseTile/BaseTile.js.map +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
- package/mobile/lib/components/BlockContent.d.ts +2 -3
- package/mobile/lib/components/Calculator/Calculator.js +1 -1
- package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
- package/mobile/lib/components/Calculator/useCalculatorParams.js +2 -5
- package/mobile/lib/components/Calculator/useCalculatorParams.js.map +1 -1
- package/mobile/lib/components/Calculator/useCreditCalculatorParams.js +1 -2
- package/mobile/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -1
- package/mobile/lib/components/Catalog/CatalogCard.js +12 -6
- package/mobile/lib/components/Catalog/CatalogCard.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/ComparisonTableContent.d.ts +7 -1
- package/mobile/lib/components/ComparisonTable/ComparisonTableRows.d.ts +2 -2
- package/mobile/lib/components/ComparisonTable/ComparisonTableRows.js +1 -1
- package/mobile/lib/components/ComparisonTable/ComparisonTableRows.js.map +1 -1
- package/mobile/lib/components/ContentPage/normalizePage.js +1 -1
- package/mobile/lib/components/ContentPage/normalizePage.js.map +1 -1
- package/mobile/lib/components/Gallery/Gallery.js +2 -5
- package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryCardInner.d.ts +2 -2
- package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryContainer.d.ts +2 -2
- package/mobile/lib/components/Gallery/GalleryContainer.js +4 -3
- package/mobile/lib/components/Gallery/GalleryContainer.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryContent.d.ts +4 -4
- package/mobile/lib/components/Gallery/GalleryProps.d.ts +1 -1
- package/mobile/lib/components/Gallery/constants.d.ts +0 -2
- package/mobile/lib/components/Gallery/constants.js +0 -4
- package/mobile/lib/components/Gallery/constants.js.map +1 -1
- package/mobile/lib/components/GracePeriod/GracePeriodContent.d.ts +2 -2
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js +1 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +4 -3
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +1 -0
- package/mobile/lib/components/Navigation/Navigation.d.ts +1 -1
- package/mobile/lib/components/OtherProducts/OtherProductsContent.d.ts +1 -4
- package/mobile/lib/components/PictureText/PictureText.js +2 -5
- package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlock.js +2 -5
- package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +14 -2
- package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js +2 -5
- package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTile.js +14 -14
- package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/lib/components/PromoTile/PromoTile.js +2 -5
- package/mobile/lib/components/PromoTile/PromoTile.js.map +1 -1
- package/mobile/lib/components/PromoTile/PromoTileContent.d.ts +2 -2
- package/mobile/lib/components/Recommendation/RecommendationContent.d.ts +4 -4
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js +4 -0
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.js +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/components/Tabs/Tabs.d.ts +4 -4
- package/mobile/lib/components/Tabs/Tabs.js +10 -3
- package/mobile/lib/components/Tabs/Tabs.js.map +1 -1
- package/mobile/lib/components/Tabs/TabsContent.d.ts +13 -11
- package/mobile/lib/components/Tabs/renderGroupTab.d.ts +3 -3
- package/mobile/lib/components/Tabs/renderGroupTab.js.map +1 -1
- package/mobile/lib/components/Tabs/renderTab.d.ts +1 -1
- package/mobile/lib/components/Tabs/renderTab.js +19 -8
- package/mobile/lib/components/Tabs/renderTab.js.map +1 -1
- package/mobile/lib/components/TariffsTable/EmbeddableCellData.d.ts +15 -0
- package/mobile/lib/components/TariffsTable/EmbeddableCellData.js +19 -0
- package/mobile/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -0
- package/mobile/lib/components/TariffsTable/TariffsTable.js +2 -2
- package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableCell.d.ts +6 -3
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js +18 -10
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +80 -26
- package/mobile/lib/components/TariffsTable/TariffsTableHorizontal.d.ts +5 -5
- package/mobile/lib/components/TariffsTable/TariffsTableHorizontal.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRow.d.ts +5 -4
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js +3 -3
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRowContainer.d.ts +7 -0
- package/mobile/lib/components/TariffsTable/TariffsTableRowContainer.js +13 -0
- package/mobile/lib/components/TariffsTable/TariffsTableRowContainer.js.map +1 -0
- package/mobile/lib/components/TariffsTable/TariffsTableTileCell.d.ts +7 -1
- package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js +15 -9
- package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableVertical.d.ts +5 -3
- package/mobile/lib/components/TariffsTable/TariffsTableVertical.js.map +1 -1
- package/mobile/lib/components/TariffsTable/dataFixture.d.ts +5 -0
- package/mobile/lib/components/TariffsTable/dataFixture.js +138 -0
- package/mobile/lib/components/TariffsTable/dataFixture.js.map +1 -0
- package/mobile/lib/components/Tile/Tile.js +6 -9
- package/mobile/lib/components/Tile/Tile.js.map +1 -1
- package/mobile/lib/components/Tile/TileContent.d.ts +4 -2
- package/mobile/lib/hooks/useExchangeRates.js +9 -18
- package/mobile/lib/hooks/useExchangeRates.js.map +1 -1
- package/mobile/lib/hooks/useTariffsInnerTableData.d.ts +1 -0
- package/mobile/lib/hooks/useTariffsInnerTableData.js +13 -0
- package/mobile/lib/hooks/useTariffsInnerTableData.js.map +1 -0
- package/mobile/lib/icons/IconName.d.ts +4 -2
- package/mobile/lib/icons/IconName.js +2 -0
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/model/BlockVersion.d.ts +1 -0
- package/mobile/lib/model/BlockVersion.js +4 -1
- package/mobile/lib/model/BlockVersion.js.map +1 -1
- package/mobile/lib/model/HeadlineType.d.ts +3 -3
- package/mobile/lib/model/LinkProps.d.ts +6 -4
- package/mobile/lib/services/sitemap/useSitemap.js +2 -8
- package/mobile/lib/services/sitemap/useSitemap.js.map +1 -1
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js +2 -2
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/mobile/lib/ui-kit/BlocksList/renderBlocksList.d.ts +1 -2
- package/mobile/lib/ui-kit/Button/Button.d.ts +2 -4
- package/mobile/lib/ui-kit/Button/Button.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.d.ts +1 -1
- package/mobile/lib/ui-kit/Description/Description.d.ts +3 -3
- package/mobile/lib/ui-kit/Description/Description.js.map +1 -1
- package/mobile/lib/ui-kit/Foldable/Foldable.js +1 -1
- package/mobile/lib/ui-kit/Foldable/Foldable.js.map +1 -1
- package/mobile/lib/ui-kit/Heading/HeadingProps.d.ts +5 -2
- package/mobile/lib/ui-kit/InnerTable/InnerTable.d.ts +5 -0
- package/mobile/lib/ui-kit/InnerTable/InnerTable.js +15 -0
- package/mobile/lib/ui-kit/InnerTable/InnerTable.js.map +1 -0
- package/mobile/lib/ui-kit/InnerTable/InnerTableBody.d.ts +7 -0
- package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js +16 -0
- package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -0
- package/mobile/lib/ui-kit/InnerTable/InnerTableBodyItem.d.ts +6 -0
- package/mobile/lib/ui-kit/InnerTable/InnerTableBodyItem.js +31 -0
- package/mobile/lib/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -0
- package/mobile/lib/ui-kit/InnerTable/InnerTableButton.d.ts +6 -0
- package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js +12 -0
- package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -0
- package/mobile/lib/ui-kit/InnerTable/InnerTableHeader.d.ts +7 -0
- package/mobile/lib/ui-kit/InnerTable/InnerTableHeader.js +6 -0
- package/mobile/lib/ui-kit/InnerTable/InnerTableHeader.js.map +1 -0
- package/mobile/lib/ui-kit/InnerTable/InnerTableProps.d.ts +24 -0
- package/mobile/lib/ui-kit/InnerTable/InnerTableProps.js +2 -0
- package/mobile/lib/ui-kit/InnerTable/InnerTableProps.js.map +1 -0
- package/mobile/lib/ui-kit/List/List.js +6 -2
- package/mobile/lib/ui-kit/List/List.js.map +1 -1
- package/mobile/lib/ui-kit/List/ListProps.d.ts +9 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/lib/ui-kit/TopItem/TopItem.d.ts +1 -1
- package/mobile/lib/ui-kit/TopItem/TopItem.js +2 -2
- package/mobile/lib/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/lib/utils/assertUnreachable.d.ts +1 -0
- package/mobile/lib/utils/assertUnreachable.js +4 -0
- package/mobile/lib/utils/assertUnreachable.js.map +1 -0
- package/mobile/lib/utils/fetchJSON.d.ts +2 -0
- package/mobile/lib/utils/fetchJSON.js +20 -0
- package/mobile/lib/utils/fetchJSON.js.map +1 -0
- package/mobile/lib/utils/roundTo.d.ts +1 -1
- package/mobile/lib/utils/roundTo.js +1 -1
- package/mobile/lib/utils/roundTo.js.map +1 -1
- package/mobile/src/EventBus/EventMap.ts +2 -1
- package/mobile/src/components/Accordion/AccordionItem.tsx +4 -2
- package/mobile/src/components/BaseTile/BaseTile.tsx +2 -2
- package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +2 -2
- package/mobile/src/components/BlockContent.ts +3 -5
- package/mobile/src/components/Calculator/Calculator.tsx +1 -1
- package/mobile/src/components/Calculator/useCalculatorParams.ts +2 -10
- package/mobile/src/components/Calculator/useCreditCalculatorParams.ts +1 -3
- package/mobile/src/components/Catalog/CatalogCard.tsx +13 -6
- package/mobile/src/components/ComparisonTable/ComparisonTableContent.ts +8 -1
- package/mobile/src/components/ComparisonTable/ComparisonTableRows.tsx +3 -3
- package/mobile/src/components/ContentPage/ContentPage.page.json +1 -34
- package/mobile/src/components/ContentPage/normalizePage.ts +1 -1
- package/mobile/src/components/Gallery/Gallery.tsx +8 -13
- package/mobile/src/components/Gallery/GalleryCardInner.tsx +8 -4
- package/mobile/src/components/Gallery/GalleryContainer.tsx +6 -5
- package/mobile/src/components/Gallery/GalleryContent.ts +4 -4
- package/mobile/src/components/Gallery/GalleryProps.ts +1 -1
- package/mobile/src/components/Gallery/constants.ts +0 -6
- package/mobile/src/components/GracePeriod/GracePeriod.example.json +5 -0
- package/mobile/src/components/GracePeriod/GracePeriodContent.ts +2 -2
- package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +3 -3
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +2 -2
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +6 -5
- package/mobile/src/components/MobileAppTile/MobileAppTile.example.json +1 -2
- package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +1 -0
- package/mobile/src/components/Navigation/Navigation.tsx +1 -1
- package/mobile/src/components/OtherProducts/OtherProductsContent.ts +1 -4
- package/mobile/src/components/PictureText/PictureText.tsx +2 -6
- package/mobile/src/components/ProductBlock/ProductBlock.tsx +2 -9
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +14 -3
- package/mobile/src/components/ProductGallery/ProductGallery.example.json +34 -2
- package/mobile/src/components/ProductGallery/ProductGalleryBlock.tsx +2 -7
- package/mobile/src/components/ProductTile/ProductTile.tsx +39 -50
- package/mobile/src/components/PromoTile/PromoTile.tsx +12 -19
- package/mobile/src/components/PromoTile/PromoTileContent.ts +2 -2
- package/mobile/src/components/Recommendation/RecommendationContent.ts +4 -4
- package/mobile/src/components/SafeDepositRental/SafeDepositRental.tsx +4 -0
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalForm.tsx +1 -1
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +1 -1
- package/mobile/src/components/Tabs/Tabs.example.json +3 -0
- package/mobile/src/components/Tabs/Tabs.tsx +15 -7
- package/mobile/src/components/Tabs/TabsContent.ts +15 -11
- package/mobile/src/components/Tabs/renderGroupTab.tsx +3 -3
- package/mobile/src/components/Tabs/renderTab.tsx +18 -7
- package/mobile/src/components/TariffsTable/EmbeddableCellData.tsx +67 -0
- package/mobile/src/components/TariffsTable/TariffsTable.example.json +30 -29
- package/mobile/src/components/TariffsTable/TariffsTable.tsx +12 -7
- package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +50 -55
- package/mobile/src/components/TariffsTable/TariffsTableContent.ts +101 -37
- package/mobile/src/components/TariffsTable/TariffsTableHorizontal.tsx +6 -7
- package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +19 -11
- package/mobile/src/components/TariffsTable/TariffsTableRowContainer.tsx +36 -0
- package/mobile/src/components/TariffsTable/TariffsTableTileCell.tsx +35 -53
- package/mobile/src/components/TariffsTable/TariffsTableVertical.tsx +7 -3
- package/mobile/src/components/TariffsTable/dataFixture.ts +158 -0
- package/mobile/src/components/Tile/Tile.example.json +1 -0
- package/mobile/src/components/Tile/Tile.tsx +17 -13
- package/mobile/src/components/Tile/TileContent.ts +4 -2
- package/mobile/src/components/__snapshots__/Blocks.spec.tsx.snap +36 -48
- package/mobile/src/hooks/useExchangeRates.ts +9 -20
- package/mobile/src/hooks/useTariffsInnerTableData.ts +20 -0
- package/mobile/src/icons/CardTickIcon.svg +7 -1
- package/mobile/src/icons/DocDownload.svg +8 -0
- package/mobile/src/icons/IconName.ts +4 -4
- package/mobile/src/model/BlockVersion.ts +5 -0
- package/mobile/src/model/HeadlineType.ts +3 -3
- package/mobile/src/model/LinkProps.ts +7 -4
- package/mobile/src/services/sitemap/useSitemap.ts +5 -11
- package/mobile/src/ui-kit/BenefitItem/BenefitItem.tsx +2 -2
- package/mobile/src/ui-kit/BlocksList/renderBlocksList.tsx +1 -1
- package/mobile/src/ui-kit/Button/Button.tsx +2 -4
- package/mobile/src/ui-kit/Button/ButtonInner.tsx +1 -1
- package/mobile/src/ui-kit/Description/Description.tsx +3 -3
- package/mobile/src/ui-kit/Foldable/Foldable.tsx +1 -2
- package/mobile/src/ui-kit/HeaderItem/HeaderItem.tsx +1 -1
- package/mobile/src/ui-kit/Heading/HeadingProps.ts +5 -2
- package/mobile/src/ui-kit/InnerTable/InnerTable.tsx +32 -0
- package/mobile/src/ui-kit/InnerTable/InnerTableBody.tsx +53 -0
- package/mobile/src/ui-kit/InnerTable/InnerTableBodyItem.tsx +86 -0
- package/mobile/src/ui-kit/InnerTable/InnerTableButton.tsx +36 -0
- package/mobile/src/ui-kit/InnerTable/InnerTableHeader.tsx +42 -0
- package/mobile/src/ui-kit/InnerTable/InnerTableProps.ts +31 -0
- package/mobile/src/ui-kit/List/List.tsx +18 -3
- package/mobile/src/ui-kit/List/ListProps.ts +10 -1
- package/mobile/src/ui-kit/Logo/Logo.tsx +1 -1
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +1 -1
- package/mobile/src/ui-kit/TopItem/TopItem.tsx +3 -3
- package/mobile/src/utils/assertUnreachable.ts +3 -0
- package/mobile/src/utils/fetchJSON.ts +24 -0
- package/mobile/src/utils/roundTo.ts +2 -2
- package/package.json +5 -2
- package/src/EventBus/EventMap.ts +2 -1
- package/src/components/Accordion/AccordionItem.mobile.tsx +4 -2
- package/src/components/Accordion/AccordionItem.tsx +7 -1
- package/src/components/BaseTile/BaseTile.tsx +2 -2
- package/src/components/BenefitsBlock/BenefitsBlockContent.ts +2 -2
- package/src/components/BlockContent.ts +3 -5
- package/src/components/Blocks.ts +0 -4
- package/src/components/Calculator/Calculator.tsx +1 -1
- package/src/components/Calculator/useCalculatorParams.ts +2 -10
- package/src/components/Calculator/useCreditCalculatorParams.ts +1 -3
- package/src/components/Catalog/Catalog.fixture.tsx +5 -2
- package/src/components/Catalog/CatalogCard.tsx +13 -6
- package/src/components/ComparisonTable/ComparisonTableContent.ts +8 -1
- package/src/components/ComparisonTable/ComparisonTableRows.tsx +3 -3
- package/src/components/ContentPage/ContentPage.page.json +1 -34
- package/src/components/ContentPage/normalizePage.mobile.ts +1 -1
- package/src/components/ContentPage/normalizePage.ts +1 -1
- package/src/components/Gallery/Gallery.fixture.mobile.tsx +6 -6
- package/src/components/Gallery/Gallery.fixture.tsx +3 -3
- package/src/components/Gallery/Gallery.mobile.tsx +8 -13
- package/src/components/Gallery/GalleryCardInner.tsx +8 -4
- package/src/components/Gallery/GalleryContainer.tsx +6 -5
- package/src/components/Gallery/GalleryContent.ts +4 -4
- package/src/components/Gallery/GalleryProps.ts +1 -1
- package/src/components/Gallery/constants.ts +0 -6
- package/src/components/GracePeriod/GracePeriod.example.json +5 -0
- package/src/components/GracePeriod/GracePeriodContent.ts +2 -2
- package/src/components/Header/Header.tsx +3 -2
- package/src/components/Header/HeaderSecondaryMenu.tsx +3 -3
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.tsx +2 -2
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +2 -2
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +6 -5
- package/src/components/MobileAppTile/MobileAppTile.example.json +1 -2
- package/src/components/MobileAppTile/MobileAppTile.tsx +8 -12
- package/src/components/MobileAppTile/MobileAppTileContent.ts +1 -0
- package/src/components/Navigation/Navigation.tsx +1 -1
- package/src/components/OtherProducts/OtherProductsContent.ts +1 -4
- package/src/components/PictureText/PictureText.fixture.tsx +1 -1
- package/src/components/PictureText/PictureText.tsx +2 -6
- package/src/components/ProductBlock/ProductBlock.mobile.tsx +2 -9
- package/src/components/ProductBlock/ProductBlock.tsx +3 -7
- package/src/components/ProductBlock/ProductBlockContent.ts +14 -3
- package/src/components/ProductGallery/ProductGallery.example.json +34 -2
- package/src/components/ProductGallery/ProductGallery.tsx +6 -15
- package/src/components/ProductGallery/ProductGalleryBlock.tsx +2 -7
- package/src/components/ProductTile/ProductTile.fixture.tsx +35 -1
- package/src/components/ProductTile/ProductTile.tsx +39 -50
- package/src/components/PromoTile/PromoTile.tsx +12 -19
- package/src/components/PromoTile/PromoTileContent.ts +2 -2
- package/src/components/Recommendation/RecommendationContent.ts +4 -4
- package/src/components/SafeDepositRental/SafeDepositRental.tsx +4 -0
- package/src/components/SafeDepositRental/SafeDepositRentalForm.tsx +1 -1
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +1 -1
- package/src/components/Tabs/Tabs.example.json +3 -0
- package/src/components/Tabs/Tabs.fixture.tsx +3 -3
- package/src/components/Tabs/Tabs.tsx +15 -7
- package/src/components/Tabs/TabsContent.ts +15 -11
- package/src/components/Tabs/renderGroupTab.tsx +3 -3
- package/src/components/Tabs/renderTab.tsx +18 -7
- package/src/components/TariffsTable/EmbeddableCellData.mobile.tsx +67 -0
- package/src/components/TariffsTable/EmbeddableCellData.tsx +82 -0
- package/src/components/TariffsTable/TariffsTable.example.json +30 -29
- package/src/components/TariffsTable/TariffsTable.fixture.mobile.tsx +3 -111
- package/src/components/TariffsTable/TariffsTable.fixture.tsx +24 -151
- package/src/components/TariffsTable/TariffsTable.mobile.tsx +12 -7
- package/src/components/TariffsTable/TariffsTable.tsx +25 -29
- package/src/components/TariffsTable/TariffsTableCell.tsx +50 -55
- package/src/components/TariffsTable/TariffsTableContent.ts +101 -37
- package/src/components/TariffsTable/TariffsTableHorizontal.tsx +6 -7
- package/src/components/TariffsTable/TariffsTableRow.tsx +19 -11
- package/src/components/TariffsTable/TariffsTableRowContainer.tsx +36 -0
- package/src/components/TariffsTable/TariffsTableTileCell.tsx +35 -53
- package/src/components/TariffsTable/TariffsTableVertical.tsx +7 -3
- package/src/components/TariffsTable/dataFixture.ts +158 -0
- package/src/components/TextBlock/TextBlock.fixture.mobile.tsx +1 -1
- package/src/components/TextBlock/TextBlock.fixture.tsx +1 -1
- package/src/components/Tile/Tile.example.json +1 -0
- package/src/components/Tile/Tile.fixture.tsx +7 -6
- package/src/components/Tile/Tile.tsx +17 -13
- package/src/components/Tile/TileContent.ts +4 -2
- package/src/components/__snapshots__/Blocks.spec.tsx.snap +36 -48
- package/src/cosmos.decorator.tsx +1 -1
- package/src/hooks/useExchangeRates.ts +9 -20
- package/src/hooks/useTariffsInnerTableData.ts +20 -0
- package/src/icons/CardTickIcon.svg +7 -1
- package/src/icons/DocDownload.svg +8 -0
- package/src/icons/IconName.ts +4 -1
- package/src/model/BlockVersion.ts +5 -0
- package/src/model/HeadlineType.ts +3 -3
- package/src/model/LinkProps.ts +7 -4
- package/src/services/sitemap/useSitemap.ts +5 -11
- package/src/ui-kit/BenefitItem/BenefitItem.tsx +2 -2
- package/src/ui-kit/BlocksList/renderBlocksList.tsx +1 -1
- package/src/ui-kit/Button/Button.mobile.tsx +2 -4
- package/src/ui-kit/Button/Button.tsx +5 -7
- package/src/ui-kit/Button/ButtonInner.tsx +1 -1
- package/src/ui-kit/Description/Description.tsx +3 -3
- package/src/ui-kit/Foldable/Foldable.tsx +1 -2
- package/src/ui-kit/HeaderItem/HeaderItem.mobile.tsx +1 -1
- package/src/ui-kit/HeaderItem/HeaderItem.tsx +1 -1
- package/src/ui-kit/Heading/HeadingProps.ts +5 -2
- package/src/ui-kit/InnerTable/InnerTable.tsx +32 -0
- package/src/ui-kit/InnerTable/InnerTableBody.tsx +53 -0
- package/src/ui-kit/InnerTable/InnerTableBodyItem.tsx +86 -0
- package/src/ui-kit/InnerTable/InnerTableButton.tsx +36 -0
- package/src/ui-kit/InnerTable/InnerTableHeader.tsx +42 -0
- package/src/ui-kit/InnerTable/InnerTableProps.ts +31 -0
- package/src/ui-kit/List/List.tsx +18 -3
- package/src/ui-kit/List/ListProps.ts +10 -1
- package/src/ui-kit/Logo/Logo.mobile.tsx +1 -1
- package/src/ui-kit/Logo/Logo.tsx +8 -3
- package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +1 -1
- package/src/ui-kit/TopItem/TopItem.tsx +3 -3
- package/src/utils/assertUnreachable.ts +3 -0
- package/src/utils/fetchJSON.ts +24 -0
- package/src/utils/roundTo.ts +2 -2
- package/dist/components/GroupBlock/BlocksTypeProps.d.ts +0 -36
- package/dist/components/GroupBlock/BlocksTypeProps.js.map +0 -1
- package/dist/components/GroupBlock/EmbeddableGroupBlocks.d.ts +0 -4
- package/dist/components/GroupBlock/EmbeddableGroupBlocks.js +0 -9
- package/dist/components/GroupBlock/EmbeddableGroupBlocks.js.map +0 -1
- package/dist/components/GroupBlock/GroupBlock.d.ts +0 -9
- package/dist/components/GroupBlock/GroupBlock.js +0 -21
- package/dist/components/GroupBlock/GroupBlock.js.map +0 -1
- package/dist/components/GroupBlock/GroupBlockContent.d.ts +0 -21
- package/dist/components/GroupBlock/GroupBlockContent.js +0 -2
- package/dist/components/GroupBlock/GroupBlockContent.js.map +0 -1
- package/dist/components/GroupBlock/GroupBlockTabs.d.ts +0 -9
- package/dist/components/GroupBlock/GroupBlockTabs.js +0 -20
- package/dist/components/GroupBlock/GroupBlockTabs.js.map +0 -1
- package/dist/components/GroupBlock/GroupBlocksItem.d.ts +0 -9
- package/dist/components/GroupBlock/GroupBlocksItem.js +0 -20
- package/dist/components/GroupBlock/GroupBlocksItem.js.map +0 -1
- package/dist/components/GroupBlock/filterBlocksByTag.d.ts +0 -2
- package/dist/components/GroupBlock/filterBlocksByTag.js +0 -7
- package/dist/components/GroupBlock/filterBlocksByTag.js.map +0 -1
- package/dist/components/GroupBlock/renderBlocksTypes.d.ts +0 -10
- package/dist/components/GroupBlock/renderBlocksTypes.js +0 -19
- package/dist/components/GroupBlock/renderBlocksTypes.js.map +0 -1
- package/dist/components/NavigatorTabs/NavigatorTabItem.d.ts +0 -7
- package/dist/components/NavigatorTabs/NavigatorTabItem.js +0 -16
- package/dist/components/NavigatorTabs/NavigatorTabItem.js.map +0 -1
- package/dist/components/NavigatorTabs/NavigatorTabs.d.ts +0 -5
- package/dist/components/NavigatorTabs/NavigatorTabs.js +0 -19
- package/dist/components/NavigatorTabs/NavigatorTabs.js.map +0 -1
- package/dist/components/NavigatorTabs/NavigatorTabsContent.d.ts +0 -11
- package/dist/components/NavigatorTabs/NavigatorTabsContent.js +0 -2
- package/dist/components/NavigatorTabs/NavigatorTabsContent.js.map +0 -1
- package/dist/hooks/useSafeDepositRental.d.ts +0 -1
- package/dist/hooks/useSafeDepositRental.js +0 -24
- package/dist/hooks/useSafeDepositRental.js.map +0 -1
- package/lib/components/GroupBlock/BlocksTypeProps.d.ts +0 -36
- package/lib/components/GroupBlock/BlocksTypeProps.js +0 -2
- package/lib/components/GroupBlock/BlocksTypeProps.js.map +0 -1
- package/lib/components/GroupBlock/EmbeddableGroupBlocks.d.ts +0 -4
- package/lib/components/GroupBlock/EmbeddableGroupBlocks.js +0 -7
- package/lib/components/GroupBlock/EmbeddableGroupBlocks.js.map +0 -1
- package/lib/components/GroupBlock/GroupBlock.d.ts +0 -9
- package/lib/components/GroupBlock/GroupBlock.fixture.d.ts +0 -6
- package/lib/components/GroupBlock/GroupBlock.js +0 -19
- package/lib/components/GroupBlock/GroupBlock.js.map +0 -1
- package/lib/components/GroupBlock/GroupBlockContent.d.ts +0 -21
- package/lib/components/GroupBlock/GroupBlockContent.js +0 -2
- package/lib/components/GroupBlock/GroupBlockContent.js.map +0 -1
- package/lib/components/GroupBlock/GroupBlockTabs.d.ts +0 -9
- package/lib/components/GroupBlock/GroupBlockTabs.js +0 -18
- package/lib/components/GroupBlock/GroupBlockTabs.js.map +0 -1
- package/lib/components/GroupBlock/GroupBlocksItem.d.ts +0 -9
- package/lib/components/GroupBlock/GroupBlocksItem.js +0 -17
- package/lib/components/GroupBlock/GroupBlocksItem.js.map +0 -1
- package/lib/components/GroupBlock/filterBlocksByTag.d.ts +0 -2
- package/lib/components/GroupBlock/filterBlocksByTag.js +0 -4
- package/lib/components/GroupBlock/filterBlocksByTag.js.map +0 -1
- package/lib/components/GroupBlock/renderBlocksTypes.d.ts +0 -10
- package/lib/components/GroupBlock/renderBlocksTypes.js +0 -16
- package/lib/components/GroupBlock/renderBlocksTypes.js.map +0 -1
- package/lib/components/NavigatorTabs/NavigatorTabItem.d.ts +0 -7
- package/lib/components/NavigatorTabs/NavigatorTabItem.js +0 -14
- package/lib/components/NavigatorTabs/NavigatorTabItem.js.map +0 -1
- package/lib/components/NavigatorTabs/NavigatorTabs.d.ts +0 -5
- package/lib/components/NavigatorTabs/NavigatorTabs.fixture.d.ts +0 -5
- package/lib/components/NavigatorTabs/NavigatorTabs.js +0 -17
- package/lib/components/NavigatorTabs/NavigatorTabs.js.map +0 -1
- package/lib/components/NavigatorTabs/NavigatorTabsContent.d.ts +0 -11
- package/lib/components/NavigatorTabs/NavigatorTabsContent.js +0 -2
- package/lib/components/NavigatorTabs/NavigatorTabsContent.js.map +0 -1
- package/lib/hooks/useSafeDepositRental.d.ts +0 -1
- package/lib/hooks/useSafeDepositRental.js +0 -21
- package/lib/hooks/useSafeDepositRental.js.map +0 -1
- package/mobile/dist/components/GroupBlock/BlocksTypeProps.d.ts +0 -36
- package/mobile/dist/components/GroupBlock/BlocksTypeProps.js.map +0 -1
- package/mobile/dist/components/GroupBlock/EmbeddableGroupBlocks.d.ts +0 -4
- package/mobile/dist/components/GroupBlock/EmbeddableGroupBlocks.js +0 -9
- package/mobile/dist/components/GroupBlock/EmbeddableGroupBlocks.js.map +0 -1
- package/mobile/dist/components/GroupBlock/GroupBlock.d.ts +0 -9
- package/mobile/dist/components/GroupBlock/GroupBlock.js +0 -21
- package/mobile/dist/components/GroupBlock/GroupBlock.js.map +0 -1
- package/mobile/dist/components/GroupBlock/GroupBlockContent.d.ts +0 -21
- package/mobile/dist/components/GroupBlock/GroupBlockContent.js +0 -2
- package/mobile/dist/components/GroupBlock/GroupBlockContent.js.map +0 -1
- package/mobile/dist/components/GroupBlock/GroupBlockTabs.d.ts +0 -9
- package/mobile/dist/components/GroupBlock/GroupBlockTabs.js +0 -20
- package/mobile/dist/components/GroupBlock/GroupBlockTabs.js.map +0 -1
- package/mobile/dist/components/GroupBlock/GroupBlocksItem.d.ts +0 -9
- package/mobile/dist/components/GroupBlock/GroupBlocksItem.js +0 -20
- package/mobile/dist/components/GroupBlock/GroupBlocksItem.js.map +0 -1
- package/mobile/dist/components/GroupBlock/filterBlocksByTag.d.ts +0 -2
- package/mobile/dist/components/GroupBlock/filterBlocksByTag.js +0 -7
- package/mobile/dist/components/GroupBlock/filterBlocksByTag.js.map +0 -1
- package/mobile/dist/components/GroupBlock/renderBlocksTypes.d.ts +0 -10
- package/mobile/dist/components/GroupBlock/renderBlocksTypes.js +0 -19
- package/mobile/dist/components/GroupBlock/renderBlocksTypes.js.map +0 -1
- package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.d.ts +0 -7
- package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.js +0 -16
- package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.js.map +0 -1
- package/mobile/dist/components/NavigatorTabs/NavigatorTabs.d.ts +0 -5
- package/mobile/dist/components/NavigatorTabs/NavigatorTabs.js +0 -19
- package/mobile/dist/components/NavigatorTabs/NavigatorTabs.js.map +0 -1
- package/mobile/dist/components/NavigatorTabs/NavigatorTabsContent.d.ts +0 -11
- package/mobile/dist/components/NavigatorTabs/NavigatorTabsContent.js +0 -2
- package/mobile/dist/components/NavigatorTabs/NavigatorTabsContent.js.map +0 -1
- package/mobile/dist/hooks/useSafeDepositRental.d.ts +0 -1
- package/mobile/dist/hooks/useSafeDepositRental.js +0 -24
- package/mobile/dist/hooks/useSafeDepositRental.js.map +0 -1
- package/mobile/lib/components/GroupBlock/BlocksTypeProps.d.ts +0 -36
- package/mobile/lib/components/GroupBlock/BlocksTypeProps.js +0 -2
- package/mobile/lib/components/GroupBlock/BlocksTypeProps.js.map +0 -1
- package/mobile/lib/components/GroupBlock/EmbeddableGroupBlocks.d.ts +0 -4
- package/mobile/lib/components/GroupBlock/EmbeddableGroupBlocks.js +0 -7
- package/mobile/lib/components/GroupBlock/EmbeddableGroupBlocks.js.map +0 -1
- package/mobile/lib/components/GroupBlock/GroupBlock.d.ts +0 -9
- package/mobile/lib/components/GroupBlock/GroupBlock.js +0 -19
- package/mobile/lib/components/GroupBlock/GroupBlock.js.map +0 -1
- package/mobile/lib/components/GroupBlock/GroupBlockContent.d.ts +0 -21
- package/mobile/lib/components/GroupBlock/GroupBlockContent.js +0 -2
- package/mobile/lib/components/GroupBlock/GroupBlockContent.js.map +0 -1
- package/mobile/lib/components/GroupBlock/GroupBlockTabs.d.ts +0 -9
- package/mobile/lib/components/GroupBlock/GroupBlockTabs.js +0 -18
- package/mobile/lib/components/GroupBlock/GroupBlockTabs.js.map +0 -1
- package/mobile/lib/components/GroupBlock/GroupBlocksItem.d.ts +0 -9
- package/mobile/lib/components/GroupBlock/GroupBlocksItem.js +0 -17
- package/mobile/lib/components/GroupBlock/GroupBlocksItem.js.map +0 -1
- package/mobile/lib/components/GroupBlock/filterBlocksByTag.d.ts +0 -2
- package/mobile/lib/components/GroupBlock/filterBlocksByTag.js +0 -4
- package/mobile/lib/components/GroupBlock/filterBlocksByTag.js.map +0 -1
- package/mobile/lib/components/GroupBlock/renderBlocksTypes.d.ts +0 -10
- package/mobile/lib/components/GroupBlock/renderBlocksTypes.js +0 -16
- package/mobile/lib/components/GroupBlock/renderBlocksTypes.js.map +0 -1
- package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.d.ts +0 -7
- package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.js +0 -14
- package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.js.map +0 -1
- package/mobile/lib/components/NavigatorTabs/NavigatorTabs.d.ts +0 -5
- package/mobile/lib/components/NavigatorTabs/NavigatorTabs.js +0 -17
- package/mobile/lib/components/NavigatorTabs/NavigatorTabs.js.map +0 -1
- package/mobile/lib/components/NavigatorTabs/NavigatorTabsContent.d.ts +0 -11
- package/mobile/lib/components/NavigatorTabs/NavigatorTabsContent.js +0 -2
- package/mobile/lib/components/NavigatorTabs/NavigatorTabsContent.js.map +0 -1
- package/mobile/lib/hooks/useSafeDepositRental.d.ts +0 -1
- package/mobile/lib/hooks/useSafeDepositRental.js +0 -21
- package/mobile/lib/hooks/useSafeDepositRental.js.map +0 -1
- package/mobile/src/components/GroupBlock/BlocksTypeProps.ts +0 -39
- package/mobile/src/components/GroupBlock/EmbeddableGroupBlocks.tsx +0 -7
- package/mobile/src/components/GroupBlock/GroupBlock.example.json +0 -97
- package/mobile/src/components/GroupBlock/GroupBlock.tsx +0 -50
- package/mobile/src/components/GroupBlock/GroupBlockContent.ts +0 -23
- package/mobile/src/components/GroupBlock/GroupBlockTabs.tsx +0 -55
- package/mobile/src/components/GroupBlock/GroupBlocksItem.tsx +0 -31
- package/mobile/src/components/GroupBlock/filterBlocksByTag.ts +0 -5
- package/mobile/src/components/GroupBlock/renderBlocksTypes.tsx +0 -34
- package/mobile/src/components/NavigatorTabs/NavigatorTabItem.tsx +0 -31
- package/mobile/src/components/NavigatorTabs/NavigatorTabs.example.json +0 -7
- package/mobile/src/components/NavigatorTabs/NavigatorTabs.tsx +0 -41
- package/mobile/src/components/NavigatorTabs/NavigatorTabsContent.ts +0 -12
- package/mobile/src/hooks/useSafeDepositRental.ts +0 -25
- package/src/components/GroupBlock/BlocksTypeProps.ts +0 -39
- package/src/components/GroupBlock/EmbeddableGroupBlocks.tsx +0 -7
- package/src/components/GroupBlock/GroupBlock.example.json +0 -97
- package/src/components/GroupBlock/GroupBlock.fixture.tsx +0 -67
- package/src/components/GroupBlock/GroupBlock.tsx +0 -50
- package/src/components/GroupBlock/GroupBlockContent.ts +0 -23
- package/src/components/GroupBlock/GroupBlockTabs.tsx +0 -55
- package/src/components/GroupBlock/GroupBlocksItem.tsx +0 -31
- package/src/components/GroupBlock/filterBlocksByTag.ts +0 -5
- package/src/components/GroupBlock/renderBlocksTypes.tsx +0 -34
- package/src/components/NavigatorTabs/NavigatorTabItem.tsx +0 -31
- package/src/components/NavigatorTabs/NavigatorTabs.example.json +0 -7
- package/src/components/NavigatorTabs/NavigatorTabs.fixture.tsx +0 -16
- package/src/components/NavigatorTabs/NavigatorTabs.tsx +0 -41
- package/src/components/NavigatorTabs/NavigatorTabsContent.ts +0 -12
- package/src/hooks/useSafeDepositRental.ts +0 -25
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
2
|
-
import type {
|
|
2
|
+
import type { HeadlineCommonProps, TitleProps } from '../../model/HeadlineType';
|
|
3
|
+
import type { LinkCommonProps } from '../../model/LinkProps';
|
|
3
4
|
import type { ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
4
5
|
import type { ListContent } from '../../ui-kit/List/ListContent';
|
|
5
|
-
import type { HeadlineCommonProps, TitleProp } from '../../model/HeadlineType';
|
|
6
6
|
export interface RecommendationCardTypes extends HeadlineCommonProps, ListContent, ImageContent {
|
|
7
7
|
/**
|
|
8
8
|
* @title Соц сети
|
|
9
9
|
* @minItems 3
|
|
10
10
|
*/
|
|
11
|
-
socialMedia?:
|
|
11
|
+
socialMedia?: LinkCommonProps[];
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
14
|
* @title Рекомендации
|
|
15
15
|
*/
|
|
16
|
-
export interface RecommendationContent extends
|
|
16
|
+
export interface RecommendationContent extends TitleProps {
|
|
17
17
|
/** @title Карточки */
|
|
18
18
|
recommendations?: RecommendationCardTypes[];
|
|
19
19
|
version?: BlockVersion;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SafeDepositRental.js","sourceRoot":"","sources":["../../../src/components/SafeDepositRental/SafeDepositRental.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAuD;AAEvD,4DAAyD;AAEzD,mEAAgE;AAChE,qEAAkE;AAIlE,MAAM,YAAY,GAAG,EAAE,CAAC;AAExB,MAAM,IAAI,GAAG;IACX,MAAM,EAAE;QACN;YACE,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP;oBACE,MAAM,EAAE,aAAa;oBACrB,IAAI,EAAE,CAAC;iBACR;gBACD;oBACE,MAAM,EAAE,aAAa;oBACrB,IAAI,EAAE,CAAC;iBACR;gBACD;oBACE,MAAM,EAAE,aAAa;oBACrB,IAAI,EAAE,CAAC;iBACR;aACF;SACF;QACD;YACE,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE;gBACP;oBACE,MAAM,EAAE,gBAAgB;oBACxB,IAAI,EAAE,CAAC;iBACR;gBACD;oBACE,MAAM,EAAE,gBAAgB;oBACxB,IAAI,EAAE,CAAC;iBACR;gBACD;oBACE,MAAM,EAAE,gBAAgB;oBACxB,IAAI,EAAE,CAAC;iBACR;aACF;SACF;KACF;IACD,cAAc,EAAE;QACd;YACE,SAAS,EAAE,WAAW;SACvB;QACD;YACE,SAAS,EAAE,SAAS;SACrB;QACD;YACE,SAAS,EAAE,SAAS;SACrB;KACF;IACD,WAAW,EAAE;QACX;YACE,MAAM,EAAE,aAAa;SACtB;QACD;YACE,MAAM,EAAE,aAAa;SACtB;QACD;YACE,MAAM,EAAE,aAAa;SACtB;KACF;CACF,CAAC;AAEW,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAClC,CAAC,EAAE,OAAO,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACvC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,IAAA,gBAAQ,EAAC,YAAY,CAAC,CAAC;IAC/C,MAAM,IAAI,GAAG,IAAI,CAAC;IAElB,OAAO,CACL,wBAAC,2BAAY,IAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,uBAAuB,SAAS,EAAE,KAAM,IAAI,aACrF,iCAAK,SAAS,EAAC,qCAAqC,aACjD,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CACtB,uBAAC,6CAAqB,OAAK,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,GAAI,CAClE,CAAC,CAAC,CAAC,IAAI,EACR,uBAAC,+CAAsB,IAAC,IAAI,EAAE,IAAI,GAAI,IAClC,EACN,8BAAG,SAAS,EAAC,kCAAkC,goBAG3C,IACS,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"SafeDepositRental.js","sourceRoot":"","sources":["../../../src/components/SafeDepositRental/SafeDepositRental.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAuD;AAEvD,4DAAyD;AAEzD,mEAAgE;AAChE,qEAAkE;AAIlE,MAAM,YAAY,GAAG,EAAE,CAAC;AAExB,MAAM,IAAI,GAAG;IACX,MAAM,EAAE;QACN;YACE,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP;oBACE,MAAM,EAAE,oBAAoB;oBAC5B,IAAI,EAAE,IAAI;iBACX;gBACD;oBACE,MAAM,EAAE,aAAa;oBACrB,IAAI,EAAE,CAAC;iBACR;gBACD;oBACE,MAAM,EAAE,aAAa;oBACrB,IAAI,EAAE,CAAC;iBACR;gBACD;oBACE,MAA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AC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -66,7 +66,7 @@ const renderRentalPeriod = (days, setDays) => {
|
|
|
66
66
|
exports.renderRentalPeriod = renderRentalPeriod;
|
|
67
67
|
// TODO: В качестве компонента не годится
|
|
68
68
|
const RadioButtons = (0, uni_jsx_1.JSX)(() => {
|
|
69
|
-
const [selected, setSelected] = (0, hooks_1.useState)('
|
|
69
|
+
const [selected, setSelected] = (0, hooks_1.useState)('option2');
|
|
70
70
|
const onChange = (_) => setSelected(_.target.value);
|
|
71
71
|
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(Radio_1.Radio, { className: "mb-2", name: "contractType", text: "\u041F\u0440\u043E\u0441\u0442\u043E\u0435 \u0445\u0440\u0430\u043D\u0435\u043D\u0438\u0435", value: "option1", checked: selected === 'option1', onChange: onChange }), (0, jsx_runtime_1.jsx)(Radio_1.Radio, { name: "contractType", text: "\u0421\u0434\u0435\u043B\u043A\u0430 \u0441 \u043D\u0435\u0434\u0432\u0438\u0436\u0438\u043C\u043E\u0441\u0442\u044C\u044E", value: "option2", checked: selected === 'option2', onChange: onChange })] }));
|
|
72
72
|
});
|
|
@@ -23,7 +23,7 @@ const renderStepTitle = (size, version, showLines) => (step, i, steps) => {
|
|
|
23
23
|
const isLastStep = steps.length - 1 === i;
|
|
24
24
|
const margin = size === 'normal' ? 'ml-[34px]' : 'ml-6';
|
|
25
25
|
const styleMap = StepsBlockStyleMaps_1.STEPS_BLOCK_STYLE_MAPS[version];
|
|
26
|
-
return ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-row text-center relative", children: [(0, jsx_runtime_1.jsxs)("div", { className: "overflow-hidden", children: [renderIconArea(size, version)(step, i), isLastStep ? null : ((0, jsx_runtime_1.jsx)("div", { className: `min-h-8 h-full w-[2px] ${showLines ? styleMap.iconConnector : ''} ${margin}` }))] }), (0, jsx_runtime_1.jsxs)("div", { className: `flex flex-col justify-center h-fit ${STEPS_TILE_DESCRIPTION_HEIGHT_MAP[size]}`, children: [step.label ? ((0, jsx_runtime_1.jsx)("div", { className: "text-m-title-xs font-medium m-0 text-left mb-1", children: step.label })) : null, step.description ? ((0, jsx_runtime_1.jsx)("div", { className: `text-s ${styleMap.description} text-left`, children: step.description })) : null] })] }) }, String(i)));
|
|
26
|
+
return ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-row text-center relative", children: [(0, jsx_runtime_1.jsxs)("div", { className: "overflow-hidden flex-shrink-0", children: [renderIconArea(size, version)(step, i), isLastStep ? null : ((0, jsx_runtime_1.jsx)("div", { className: `min-h-8 h-full w-[2px] ${showLines ? styleMap.iconConnector : ''} ${margin}` }))] }), (0, jsx_runtime_1.jsxs)("div", { className: `flex flex-col justify-center h-fit ${STEPS_TILE_DESCRIPTION_HEIGHT_MAP[size]}`, children: [step.label ? ((0, jsx_runtime_1.jsx)("div", { className: "text-m-title-xs font-medium m-0 text-left mb-1", children: step.label })) : null, step.description ? ((0, jsx_runtime_1.jsx)("div", { className: `text-s ${styleMap.description} text-left`, children: step.description })) : null] })] }) }, String(i)));
|
|
27
27
|
};
|
|
28
28
|
const renderIconArea = (size, version) => (step, i) => {
|
|
29
29
|
const styleMap = StepsBlockStyleMaps_1.STEPS_BLOCK_STYLE_MAPS[version];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepsBlock.js","sourceRoot":"","sources":["../../../src/components/StepsBlock/StepsBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAKxC,0DAAuD;AACvD,8CAA2C;AAC3C,6EAA0E;AAC1E,+DAA+D;AAI/D,MAAM,cAAc,GAAgC;IAClD,MAAM,EAAE,6CAA6C;IACrD,KAAK,EAAE,6CAA6C;CACrD,CAAC;AAEF,MAAM,iCAAiC,GAAgC;IACrE,MAAM,EAAE,cAAc;IACtB,KAAK,EAAE,cAAc;CACtB,CAAC;AAEW,QAAA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ActivationEvent {
|
|
4
|
-
type?:
|
|
4
|
+
type?: Tab['type'];
|
|
5
5
|
label?: string;
|
|
6
6
|
}
|
|
7
|
-
export interface
|
|
7
|
+
export interface TabsBlockProps extends TabsContent, UniBlockProps {
|
|
8
8
|
}
|
|
9
|
-
export declare const Tabs: import("@redneckz/uni-jsx").UNIComponent<
|
|
9
|
+
export declare const Tabs: import("@redneckz/uni-jsx").UNIComponent<TabsBlockProps, any, any>;
|
|
@@ -9,10 +9,17 @@ const renderTab_1 = require("./renderTab");
|
|
|
9
9
|
exports.Tabs = (0, uni_jsx_1.JSX)((props) => {
|
|
10
10
|
const { context, className, tabs, page, showCounter } = props;
|
|
11
11
|
const [currentTab, setCurrentTab] = (0, hooks_1.useState)(tabs ? tabs[0] : undefined);
|
|
12
|
-
(0, hooks_1.useEffect)(() =>
|
|
12
|
+
(0, hooks_1.useEffect)(() => {
|
|
13
|
+
if (currentTab?.type === 'group') {
|
|
14
|
+
return EventBus_1.EventBus.inst.subject('tab', { label: currentTab.ref });
|
|
15
|
+
}
|
|
16
|
+
return undefined;
|
|
17
|
+
}, [currentTab]);
|
|
13
18
|
const handleClick = (selectedTab) => {
|
|
14
|
-
|
|
15
|
-
|
|
19
|
+
if (selectedTab?.type === 'group') {
|
|
20
|
+
EventBus_1.EventBus.inst.fire('tab', { type: selectedTab.type, label: selectedTab.ref });
|
|
21
|
+
setCurrentTab(selectedTab);
|
|
22
|
+
}
|
|
16
23
|
};
|
|
17
24
|
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { context: context, className: `mb-2 box-border flex gap-x-1 ${className}`, role: "tablist", children: tabs?.map((0, renderTab_1.renderTab)({ onClick: handleClick, currentTab, page, showCounter, context })) }));
|
|
18
25
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.js","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAkE;AAClE,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EAAE,EACtD,IAAI,EAAC,SAAS,YAEb,IAAI,EAAE,GAAG,CAAC,IAAA,qBAAS,EAAC,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,CAAC,GAC1E,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
/** @title Тег или ссылка */
|
|
1
|
+
import type { LinkProps } from '../../model/LinkProps';
|
|
2
|
+
export interface GroupTab {
|
|
3
|
+
/** @default group */
|
|
4
|
+
type: 'group';
|
|
5
|
+
/** @title Тег */
|
|
7
6
|
ref?: string;
|
|
8
|
-
/**
|
|
9
|
-
* @title Тип
|
|
10
|
-
* @enumNames ['Группирующий', 'Ссылочный']
|
|
11
|
-
*/
|
|
12
|
-
type?: TabType;
|
|
13
7
|
/** @title Название */
|
|
14
8
|
title?: string;
|
|
15
9
|
}
|
|
10
|
+
export declare type LinkTab = LinkProps & {
|
|
11
|
+
/** @default link */
|
|
12
|
+
type: 'link';
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* @title Таб
|
|
16
|
+
*/
|
|
17
|
+
export declare type Tab = GroupTab | LinkTab;
|
|
16
18
|
/**
|
|
17
19
|
* @title Вкладки
|
|
18
20
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { RenderTabProps } from './renderTab';
|
|
3
|
-
import {
|
|
4
|
-
export declare const renderGroupTab: ({ onClick, currentTab, showCounter, page }: RenderTabProps) => (tab:
|
|
2
|
+
import type { RenderTabProps } from './renderTab';
|
|
3
|
+
import type { GroupTab } from './TabsContent';
|
|
4
|
+
export declare const renderGroupTab: ({ onClick, currentTab, showCounter, page }: RenderTabProps) => (tab: GroupTab, i: number) => JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderGroupTab.js","sourceRoot":"","sources":["../../../src/components/Tabs/renderGroupTab.tsx"],"names":[],"mappings":";;;AACA,qDAO0B;AAG1B,MAAM,aAAa,GAAG,0DAA0D,CAAC;AACjF,MAAM,oBAAoB,GAAG,wBAAwB,CAAC;AACtD,MAAM,sBAAsB,GAAG,mEAAmE,CAAC;AAE5F,MAAM,cAAc,GACzB,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,IAAI,EAAkB,EAAE,EAAE,CAC/D,CAAC,
|
|
1
|
+
{"version":3,"file":"renderGroupTab.js","sourceRoot":"","sources":["../../../src/components/Tabs/renderGroupTab.tsx"],"names":[],"mappings":";;;AACA,qDAO0B;AAG1B,MAAM,aAAa,GAAG,0DAA0D,CAAC;AACjF,MAAM,oBAAoB,GAAG,wBAAwB,CAAC;AACtD,MAAM,sBAAsB,GAAG,mEAAmE,CAAC;AAE5F,MAAM,cAAc,GACzB,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,IAAI,EAAkB,EAAE,EAAE,CAC/D,CAAC,GAAa,EAAE,CAAS,EAAE,EAAE;IAC3B,MAAM,MAAM,GAAG,UAAU,KAAK,GAAG,CAAC;IAElC,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG;QACnB,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,GAAG,CAAC,GAAa,CAAC,CAAC,CAAC,MAAM;QACpF,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC;IAEzB,OAAO,CACL,gCAEE,SAAS,EAAE,GAAG,6BAAY,IAAI,MAAM,CAAC,CAAC,CAAC,oCAAmB,CAAC,CAAC,CAAC,sCAAqB,EAAE,EACpF,IAAI,EAAC,KAAK,mBACK,MAAM,EACrB,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,YAE3B,iCAAK,SAAS,EAAC,yCAAyC,aACrD,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,WAAW,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,EAClD,WAAW,IAAI,KAAK,CAAC,CAAC,CAAC,WAAW,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,IACrD,IATD,MAAM,CAAC,CAAC,CAAC,CAUV,CACP,CAAC;AACJ,CAAC,CAAC;AAvBS,QAAA,cAAc,kBAuBvB;AAEJ,MAAM,WAAW,GAAG,CAAC,KAAa,EAAE,MAAe,EAAE,EAAE,CAAC,CACtD,+BAAI,SAAS,EAAE,GAAG,6BAAY,IAAI,MAAM,CAAC,CAAC,CAAC,oCAAmB,CAAC,CAAC,CAAC,sCAAqB,EAAE,YACrF,KAAK,GACH,CACN,CAAC;AAEF,MAAM,WAAW,GAAG,CAAC,KAAa,EAAE,MAAe,EAAE,EAAE,CAAC,CACtD,gCAAK,SAAS,EAAE,GAAG,aAAa,IAAI,MAAM,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,sBAAsB,EAAE,YACzF,KAAK,GACF,CACP,CAAC"}
|
|
@@ -9,4 +9,4 @@ export interface RenderTabProps {
|
|
|
9
9
|
showCounter?: boolean;
|
|
10
10
|
context: ContentPageContext;
|
|
11
11
|
}
|
|
12
|
-
export declare const renderTab: ({ onClick, currentTab, showCounter, page, context }: RenderTabProps) => (tab: Tab, i: number) => JSX.Element;
|
|
12
|
+
export declare const renderTab: ({ onClick, currentTab, showCounter, page, context }: RenderTabProps) => (tab: Tab, i: number) => JSX.Element | null;
|
|
@@ -1,19 +1,30 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.renderTab = void 0;
|
|
3
3
|
const useLink_1 = require("../../hooks/useLink");
|
|
4
|
-
const
|
|
4
|
+
const assertUnreachable_1 = require("../../utils/assertUnreachable");
|
|
5
5
|
const renderGroupTab_1 = require("./renderGroupTab");
|
|
6
6
|
const renderLinkTab_1 = require("./renderLinkTab");
|
|
7
|
-
const renderTab = ({ onClick, currentTab, showCounter, page, context }) =>
|
|
7
|
+
const renderTab = ({ onClick, currentTab, showCounter, page, context }) =>
|
|
8
|
+
// Linter doesn't understand that switch processes all cases
|
|
9
|
+
// eslint-disable-next-line consistent-return
|
|
10
|
+
(tab, i) => {
|
|
8
11
|
const { useRouter, handlerDecorator } = context;
|
|
9
12
|
const router = useRouter();
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
const type = tab.type;
|
|
14
|
+
if (!(type === 'group' || type === 'link')) {
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
switch (type) {
|
|
18
|
+
case 'group':
|
|
19
|
+
return (0, renderGroupTab_1.renderGroupTab)({ onClick, currentTab, showCounter, page, context })(tab, i);
|
|
20
|
+
case 'link':
|
|
21
|
+
return (0, renderLinkTab_1.renderLinkTab)({
|
|
22
|
+
...(0, useLink_1.useLink)({ router, handlerDecorator }, tab),
|
|
23
|
+
i,
|
|
24
|
+
});
|
|
25
|
+
default:
|
|
26
|
+
(0, assertUnreachable_1.assertUnreachable)(type);
|
|
15
27
|
}
|
|
16
|
-
return (0, renderGroupTab_1.renderGroupTab)({ onClick, currentTab, showCounter, page, context })(tab, i);
|
|
17
28
|
};
|
|
18
29
|
exports.renderTab = renderTab;
|
|
19
30
|
//# sourceMappingURL=renderTab.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderTab.js","sourceRoot":"","sources":["../../../src/components/Tabs/renderTab.tsx"],"names":[],"mappings":";;AAAA,iDAA8C;AAE9C,
|
|
1
|
+
{"version":3,"file":"renderTab.js","sourceRoot":"","sources":["../../../src/components/Tabs/renderTab.tsx"],"names":[],"mappings":";;AAAA,iDAA8C;AAE9C,qEAAkE;AAElE,qDAAkD;AAClD,mDAAgD;AAWzC,MAAM,SAAS,GACpB,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAkB,EAAE,EAAE;AACxE,4DAA4D;AAC5D,6CAA6C;AAC7C,CAAC,GAAQ,EAAE,CAAS,EAAE,EAAE;IACtB,MAAM,EAAE,SAAS,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC;IAChD,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAE3B,MAAM,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC;IAEtB,IAAI,CAAC,CAAC,IAAI,KAAK,OAAO,IAAI,IAAI,KAAK,MAAM,CAAC,EAAE;QAC1C,OAAO,IAAI,CAAC;KACb;IAED,QAAQ,IAAI,EAAE;QACZ,KAAK,OAAO;YACV,OAAO,IAAA,+BAAc,EAAC,EAAE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;QACrF,KAAK,MAAM;YACT,OAAO,IAAA,6BAAa,EAAC;gBACnB,GAAG,IAAA,iBAAO,EAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,GAAG,CAAC;gBAC7C,CAAC;aACF,CAAC,CAAC;QACL;YACE,IAAA,qCAAiB,EAAC,IAAI,CAAC,CAAC;KAC3B;AACH,CAAC,CAAC;AAzBS,QAAA,SAAS,aAyBlB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
|
|
3
|
+
import type { ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
4
|
+
import type { ListProps } from '../../ui-kit/List/ListProps';
|
|
5
|
+
import type { LabelDescriptionCell } from './TariffsTableContent';
|
|
6
|
+
export interface LabelProps {
|
|
7
|
+
label?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare type EmbeddableCellDataType = ButtonContent | LabelDescriptionCell | ImageContent | ListProps;
|
|
10
|
+
export declare const EmbeddableCellData: {
|
|
11
|
+
Buttons: ({ buttons }: ButtonContent) => JSX.Element | null;
|
|
12
|
+
Img: ({ image }: ImageContent) => JSX.Element | null;
|
|
13
|
+
List: ({ isDotted, ...rest }: ListProps) => JSX.Element;
|
|
14
|
+
LabelDescription: ({ label, description }: LabelDescriptionCell) => JSX.Element;
|
|
15
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.EmbeddableCellData = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const Button_1 = require("../../ui-kit/Button/Button");
|
|
5
|
+
const Img_1 = require("../../ui-kit/Img/Img");
|
|
6
|
+
const List_1 = require("../../ui-kit/List/List");
|
|
7
|
+
const getButtonAriaLabel_1 = require("./utils/getButtonAriaLabel");
|
|
8
|
+
const renderButtonsCellData = ({ buttons }) => buttons && 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' : ''}`, ariaLabel: (0, getButtonAriaLabel_1.getButtonAriaLabel)(icon), rounded: rounded, appendLeft: icon?.src || icon?.icon ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: icon, width: "24px", height: "24px", asSVG: true }) : null, ...buttonProps, "aria-label": icon }, String(idx)))) })) : null;
|
|
9
|
+
const renderLabelDescriptionCellData = ({ label, description }) => {
|
|
10
|
+
const labelClassName = `text-xl font-medium m-0 ${description ? 'mb-1' : ''}`;
|
|
11
|
+
return ((0, jsx_runtime_1.jsxs)("div", { children: [label ? (0, jsx_runtime_1.jsx)("div", { className: labelClassName, children: label }) : null, description ? (0, jsx_runtime_1.jsx)("div", { className: "text-s text-secondary-text", children: description }) : null] }));
|
|
12
|
+
};
|
|
13
|
+
const renderImgCellData = ({ image }) => image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: { ...image, className: 'm-0' } }) : null;
|
|
14
|
+
const renderListCellData = ({ isDotted, ...rest }) => ((0, jsx_runtime_1.jsx)(List_1.List, { className: "flex flex-col justify-between items-start text-m", version: "gray", isDotted: isDotted ?? true, ...rest }));
|
|
15
|
+
exports.EmbeddableCellData = {
|
|
16
|
+
Buttons: renderButtonsCellData,
|
|
17
|
+
Img: renderImgCellData,
|
|
18
|
+
List: renderListCellData,
|
|
19
|
+
LabelDescription: renderLabelDescriptionCellData,
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=EmbeddableCellData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmbeddableCellData.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/EmbeddableCellData.tsx"],"names":[],"mappings":";;;AAAA,uDAAoD;AAEpD,8CAA2C;AAE3C,iDAA8C;AAG9C,mEAAgE;AAYhE,MAAM,qBAAqB,GAAG,CAAC,EAAE,OAAO,EAAiB,EAAE,EAAE,CAC3D,OAAO,IAAI,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CAC3B,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,SAAS,EAAE,IAAA,uCAAkB,EAAC,IAAI,CAAC,EACnC,OAAO,EAAE,OAAO,EAChB,UAAU,EACR,IAAI,EAAE,GAAG,IAAI,IAAI,EAAE,IAAI,CAAC,CAAC,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BAAgB,EAAE,8BAA8B;CACjD,CAAC"}
|
|
@@ -5,14 +5,14 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
|
5
5
|
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
6
6
|
const TariffsTableHorizontal_1 = require("./TariffsTableHorizontal");
|
|
7
7
|
const TariffsTableVertical_1 = require("./TariffsTableVertical");
|
|
8
|
-
exports.TariffsTable = (0, uni_jsx_1.JSX)(({ className, context, title, description, columns, rowHeaders, orientation = 'vertical' }) => {
|
|
8
|
+
exports.TariffsTable = (0, uni_jsx_1.JSX)(({ className, context, title, description, tariffsColumns: columns, rowHeaders, orientation = 'vertical', }) => {
|
|
9
9
|
const colData = getColData(columns);
|
|
10
10
|
const tiles = getTiles(rowHeaders, colData);
|
|
11
11
|
const headingMargin = description ? 'mb-2' : 'mb-5';
|
|
12
12
|
return ((0, jsx_runtime_1.jsxs)("section", { className: `px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${className}`, children: [title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h2", className: `text-center ${headingMargin}`, title: title })) : null, description ? (0, jsx_runtime_1.jsx)("div", { className: "mb-5 text-center text-m", children: description }) : null, tiles?.length ? renderOrientationTable(orientation, tiles, context) : null] }));
|
|
13
13
|
});
|
|
14
14
|
function renderOrientationTable(orientation, tiles, context) {
|
|
15
|
-
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
|
+
return orientation === 'vertical' ? ((0, jsx_runtime_1.jsx)(TariffsTableVertical_1.TariffsTableVertical, { context: context, tiles: tiles })) : ((0, jsx_runtime_1.jsx)(TariffsTableHorizontal_1.TariffsTableHorizontal, { context: context, tiles: tiles }));
|
|
16
16
|
}
|
|
17
17
|
const getColData = (columns) => columns?.[0].data ? columns[0].data : [];
|
|
18
18
|
const getTiles = (rowHeaders, colData) => rowHeaders?.map((header, i) => ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTable.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTable.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,0DAAuD;AAOvD,qEAAkE;AAClE,iEAA8D;AAIjD,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,
|
|
1
|
+
{"version":3,"file":"TariffsTable.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTable.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,0DAAuD;AAOvD,qEAAkE;AAClE,iEAA8D;AAIjD,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,EACC,SAAS,EACT,OAAO,EACP,KAAK,EACL,WAAW,EACX,cAAc,EAAE,OAAO,EACvB,UAAU,EACV,WAAW,GAAG,UAAU,GACzB,EAAE,EAAE;IACH,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC;IACpC,MAAM,KAAK,GAAG,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IAC5C,MAAM,aAAa,GAAG,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC;IAEpD,OAAO,CACL,qCACE,SAAS,EAAE,oEAAoE,SAAS,EAAE,aAEzF,KAAK,CAAC,CAAC,CAAC,CACP,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,SAAS,EAAE,eAAe,aAAa,EAAE,EAAE,KAAK,EAAE,KAAK,GAAI,CACtF,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAC,yBAAyB,YAAE,WAAW,GAAO,CAAC,CAAC,CAAC,IAAI,EACjF,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,sBAAsB,CAAC,WAAW,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,IACnE,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,sBAAsB,CAAC,WAAW,EAAE,KAAK,EAAE,OAAO;IACzD,OAAO,WAAW,KAAK,UAAU,CAAC,CAAC,CAAC,CAClC,uBAAC,2CAAoB,IAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,GAAI,CACzD,CAAC,CAAC,CAAC,CACF,uBAAC,+CAAsB,IAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,GAAI,CAC3D,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,GAAG,CAAC,OAAyC,EAAE,EAAE,CAC/D,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;AAE3C,MAAM,QAAQ,GAAG,CAAC,UAA+C,EAAE,OAAoB,EAAE,EAAE,CACzF,UAAU,EAAE,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAC9B,MAAM;IACN,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;CAC3B,CAAC,CAAC,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import type { UniBlockProps } from '../../types';
|
|
2
|
+
import type { CellDef } from './TariffsTableContent';
|
|
3
|
+
export interface TariffsTableCellProps extends UniBlockProps {
|
|
4
|
+
rowIdx: number;
|
|
5
|
+
cellIdx: number;
|
|
6
|
+
cells: CellDef[];
|
|
4
7
|
isLastRow: boolean;
|
|
5
8
|
}
|
|
6
9
|
export declare const TariffsTableCell: import("@redneckz/uni-jsx").UNIComponent<TariffsTableCellProps, any, any>;
|
|
@@ -2,15 +2,23 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.TariffsTableCell = 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
|
-
const
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
exports.TariffsTableCell = (0, uni_jsx_1.JSX)(({ cell, isLastRow }) => {
|
|
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(renderCellInner) }) }));
|
|
5
|
+
const EmbeddableCellData_1 = require("./EmbeddableCellData");
|
|
6
|
+
exports.TariffsTableCell = (0, uni_jsx_1.JSX)(({ context, cells, isLastRow, rowIdx, cellIdx }) => {
|
|
7
|
+
const cellWrapperClasses = `first:pl-0 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' : ''}`;
|
|
8
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: cellWrapperClasses, role: "cell", children: cells.map(renderCellInner(rowIdx, context, cellIdx)) }));
|
|
12
9
|
});
|
|
13
|
-
const renderCellInner = (
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
const renderCellInner = (rowIdx, context, cellIdx) => (cell, i) => {
|
|
11
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: cell?.tableCellType === 'Table' ? 'mx-0.5' : `first:pt-5 last:pb-5 pl-10`, children: [i > 0 ? (0, jsx_runtime_1.jsx)("div", { className: "h-5" }) : null, renderCell(cell, context, { rowIdx, cellIdx, fieldIdx: i })] }, String(i)));
|
|
12
|
+
};
|
|
13
|
+
const renderCell = (cell, context, indexes) => {
|
|
14
|
+
if (!cell) {
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
const { tableCellType: type, ...rest } = cell;
|
|
18
|
+
if (!type || !(type in EmbeddableCellData_1.EmbeddableCellData)) {
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
21
|
+
const EmbeddableCellInner = EmbeddableCellData_1.EmbeddableCellData[type];
|
|
22
|
+
return (0, jsx_runtime_1.jsx)(EmbeddableCellInner, { context: context, ...rest, ...indexes });
|
|
23
|
+
};
|
|
16
24
|
//# sourceMappingURL=TariffsTableCell.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTableCell.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableCell.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"TariffsTableCell.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableCell.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,6DAA0D;AAU7C,QAAA,gBAAgB,GAAG,IAAA,aAAG,EACjC,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;IACjD,MAAM,kBAAkB,GAAG,yGACzB,SAAS,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,EAC1C,EAAE,CAAC;IAEH,OAAO,CACL,gCAAK,SAAS,EAAE,kBAAkB,EAAE,IAAI,EAAC,MAAM,YAC5C,KAAK,CAAC,GAAG,CAAC,eAAe,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,GACjD,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,eAAe,GACnB,CAAC,MAAc,EAAE,OAA2B,EAAE,OAAe,EAAE,EAAE,CAAC,CAAC,IAAa,EAAE,CAAS,EAAE,EAAE;IAC7F,OAAO,CACL,iCAEE,SAAS,EAAE,IAAI,EAAE,aAAa,KAAK,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,4BAA4B,aAEnF,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAC,KAAK,GAAG,CAAC,CAAC,CAAC,IAAI,EACtC,UAAU,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC,KAJvD,MAAM,CAAC,CAAC,CAAC,CAKV,CACP,CAAC;AACJ,CAAC,CAAC;AAEJ,MAAM,UAAU,GAAG,CACjB,IAAa,EACb,OAA2B,EAC3B,OAAmC,EACnC,EAAE;IACF,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,IAAI,CAAC;KACb;IAED,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,IAAI,CAAC;IAE9C,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,IAAI,uCAAkB,CAAC,EAAE;QAC1C,OAAO,IAAI,CAAC;KACb;IAED,MAAM,mBAAmB,GAAG,uCAAkB,CAAC,IAAI,CAAC,CAAC;IAErD,OAAO,uBAAC,mBAAmB,IAAC,OAAO,EAAE,OAAO,KAAM,IAAI,KAAM,OAAO,GAAI,CAAC;AAC1E,CAAC,CAAC"}
|
|
@@ -1,49 +1,108 @@
|
|
|
1
|
+
import type { EmptyOption } from '../../model/EmptyOptionType';
|
|
2
|
+
import type { DescriptionProps } from '../../model/HeadlineType';
|
|
1
3
|
import type { ListOrientation } from '../../model/ListOrientation';
|
|
2
4
|
import type { Picture } from '../../model/Picture';
|
|
3
5
|
import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
|
|
6
|
+
import type { HeadingProps } from '../../ui-kit/Heading/HeadingProps';
|
|
4
7
|
import type { ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
7
|
-
|
|
8
|
+
import type { TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTableProps';
|
|
9
|
+
import type { ListProps } from '../../ui-kit/List/ListProps';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export interface TariffsTableCellIndexProps {
|
|
14
|
+
rowIdx: number;
|
|
15
|
+
cellIdx: number;
|
|
16
|
+
fieldIdx: number;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @title Параметр
|
|
20
|
+
*/
|
|
21
|
+
export declare type TariffsTableRowHeader = HeadingProps & {
|
|
22
|
+
/**
|
|
23
|
+
* @default { "format": "webp", "size": { "width": 24, "height": 24 } }
|
|
24
|
+
*/
|
|
25
|
+
icon?: Picture;
|
|
26
|
+
};
|
|
8
27
|
/**
|
|
9
28
|
* @title Ряд
|
|
10
29
|
*/
|
|
11
|
-
export declare type
|
|
30
|
+
export declare type Data = {
|
|
12
31
|
header: TariffsTableRowHeader;
|
|
13
|
-
data:
|
|
32
|
+
data: CellDef[][];
|
|
14
33
|
};
|
|
15
34
|
/**
|
|
16
|
-
* @title
|
|
35
|
+
* @title Изображение
|
|
36
|
+
* @default { "image": { "format": "webp", "size": { "width": 24, "height": 24 } } }
|
|
17
37
|
*/
|
|
18
|
-
export
|
|
19
|
-
/**
|
|
20
|
-
|
|
38
|
+
export declare type ImageCellDef = ImageContent & {
|
|
39
|
+
/**
|
|
40
|
+
* @default Img
|
|
41
|
+
*/
|
|
42
|
+
tableCellType: 'Img';
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* @title Кнопки
|
|
46
|
+
*/
|
|
47
|
+
export declare type ButtonsCellDef = ButtonContent & {
|
|
48
|
+
/**
|
|
49
|
+
* @default Buttons
|
|
50
|
+
*/
|
|
51
|
+
tableCellType: 'Buttons';
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* @title Заголовок и описание
|
|
55
|
+
*/
|
|
56
|
+
export interface LabelDescriptionCell {
|
|
57
|
+
/** @title Заголовок */
|
|
58
|
+
label?: string;
|
|
59
|
+
/** @title Описание */
|
|
60
|
+
description?: string;
|
|
21
61
|
}
|
|
22
62
|
/**
|
|
23
|
-
* @title
|
|
63
|
+
* @title Заголовок и описание
|
|
24
64
|
*/
|
|
25
|
-
export declare type
|
|
26
|
-
/**
|
|
27
|
-
|
|
65
|
+
export declare type LabelDescriptionCellDef = LabelDescriptionCell & {
|
|
66
|
+
/**
|
|
67
|
+
* @default LabelDescription
|
|
68
|
+
*/
|
|
69
|
+
tableCellType: 'LabelDescription';
|
|
28
70
|
};
|
|
29
71
|
/**
|
|
30
|
-
* @title
|
|
72
|
+
* @title Список
|
|
31
73
|
*/
|
|
32
|
-
export declare type
|
|
33
|
-
|
|
74
|
+
export declare type ListBlockDef = ListProps & {
|
|
75
|
+
/**
|
|
76
|
+
* @default List
|
|
77
|
+
*/
|
|
78
|
+
tableCellType: 'List';
|
|
34
79
|
};
|
|
35
80
|
/**
|
|
36
|
-
* @title
|
|
81
|
+
* @title Таблица
|
|
37
82
|
*/
|
|
38
|
-
export declare type
|
|
39
|
-
|
|
83
|
+
export declare type InnerTableBlockDef = TariffsTableInnerContent & {
|
|
84
|
+
/**
|
|
85
|
+
* @default Table
|
|
86
|
+
*/
|
|
87
|
+
tableCellType: 'Table';
|
|
40
88
|
};
|
|
89
|
+
/**
|
|
90
|
+
* @title Содержимое ячейки
|
|
91
|
+
*/
|
|
92
|
+
export declare type CellDef = EmptyOption | ImageCellDef | ButtonsCellDef | LabelDescriptionCellDef | ListBlockDef | InnerTableBlockDef;
|
|
93
|
+
/**
|
|
94
|
+
* @title Колонка
|
|
95
|
+
*/
|
|
96
|
+
export interface TariffsTableColumn {
|
|
97
|
+
/** @title Данные */
|
|
98
|
+
data?: CellDef[][];
|
|
99
|
+
}
|
|
41
100
|
/**
|
|
42
101
|
* @title Таблица тарифов
|
|
43
102
|
*/
|
|
44
|
-
export declare type TariffsTableContent =
|
|
103
|
+
export declare type TariffsTableContent = HeadingProps & DescriptionProps & {
|
|
45
104
|
/** @title Колонки */
|
|
46
|
-
|
|
105
|
+
tariffsColumns?: TariffsTableColumn[];
|
|
47
106
|
/** @title Параметры */
|
|
48
107
|
rowHeaders?: TariffsTableRowHeader[];
|
|
49
108
|
/** @title Отображать элементы в моб. версии (прокрутка shift+mouseScroll) */
|
|
@@ -51,8 +110,3 @@ export declare type TariffsTableContent = HeadlineCommonProps & {
|
|
|
51
110
|
/** @title Скрывать строк */
|
|
52
111
|
hiddenRowsNum?: number;
|
|
53
112
|
};
|
|
54
|
-
/** @hidden */
|
|
55
|
-
export declare type TariffsTableTileCellProps = {
|
|
56
|
-
header: TariffsTableRowHeader;
|
|
57
|
-
data: TariffsTableCellData[];
|
|
58
|
-
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import
|
|
3
|
-
export
|
|
4
|
-
context: ContentPageContext;
|
|
1
|
+
import type { UniBlockProps } from '../../types';
|
|
2
|
+
import { TariffsTableTileCellProps } from './TariffsTableTileCell';
|
|
3
|
+
export interface TariffsTableHorizontalProps extends UniBlockProps {
|
|
5
4
|
tiles: TariffsTableTileCellProps[];
|
|
6
|
-
}
|
|
5
|
+
}
|
|
6
|
+
export declare const TariffsTableHorizontal: import("@redneckz/uni-jsx").UNIComponent<TariffsTableHorizontalProps, any, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTableHorizontal.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableHorizontal.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"TariffsTableHorizontal.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableHorizontal.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,qFAAkF;AAClF,iEAAyF;AAK5E,QAAA,sBAAsB,GAAG,IAAA,aAAG,EAA8B,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAC7F,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"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
row:
|
|
1
|
+
import { UniBlockProps } from '../../types';
|
|
2
|
+
import type { Data } from './TariffsTableContent';
|
|
3
|
+
export interface TariffsTableRowProps extends UniBlockProps {
|
|
4
|
+
row: Data;
|
|
5
5
|
activeCardIndex: number;
|
|
6
6
|
isLastRow: boolean;
|
|
7
|
+
rowIdx: number;
|
|
7
8
|
}
|
|
8
9
|
export declare const TariffsTableRow: import("@redneckz/uni-jsx").UNIComponent<TariffsTableRowProps, any, any>;
|
|
@@ -4,10 +4,10 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
6
6
|
const TableCarouselContainer_1 = require("../ComparisonTable/TableCarouselContainer");
|
|
7
|
-
const TableRowContainer_1 = require("../ComparisonTable/TableRowContainer");
|
|
8
7
|
const constants_1 = require("./constants");
|
|
9
8
|
const TariffsTableCell_1 = require("./TariffsTableCell");
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
const TariffsTableRowContainer_1 = require("./TariffsTableRowContainer");
|
|
10
|
+
exports.TariffsTableRow = (0, uni_jsx_1.JSX)(({ row: { header, data }, activeCardIndex, isLastRow, context, rowIdx }) => {
|
|
11
|
+
return ((0, jsx_runtime_1.jsxs)(TariffsTableRowContainer_1.TariffsTableRowContainer, { context: context, rowIdx: rowIdx, children: [(0, jsx_runtime_1.jsx)("div", { className: `text-s py-5 ${constants_1.FIRST_CELL_CLASSES} ${constants_1.DIVIDER_CLASSES} ${!isLastRow ? 'border-solid' : ''}`, children: (0, jsx_runtime_1.jsxs)("div", { className: "flex items-center text-primary-text", role: "cell", children: [header?.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mr-[14px] max-w-6 max-h-6", image: header.icon, width: "24px", height: "24px", asSVG: true })) : null, header?.title] }) }), data?.length ? ((0, jsx_runtime_1.jsx)(TableCarouselContainer_1.TableCarouselContainer, { activeCardIndex: activeCardIndex, columnWidth: constants_1.COLUMN_WIDTH, version: "tariff", children: data.map((cells, i) => ((0, jsx_runtime_1.jsx)(TariffsTableCell_1.TariffsTableCell, { cells: cells, isLastRow: isLastRow, rowIdx: rowIdx, cellIdx: i, context: context }, String(i)))) })) : null] }));
|
|
12
12
|
});
|
|
13
13
|
//# sourceMappingURL=TariffsTableRow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTableRow.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableRow.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"TariffsTableRow.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableRow.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,8CAA2C;AAC3C,sFAAmF;AACnF,2CAAgF;AAChF,yDAAsD;AAEtD,yEAAsE;AASzD,QAAA,eAAe,GAAG,IAAA,aAAG,EAChC,CAAC,EAAE,GAAG,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,eAAe,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE;IACzE,OAAO,CACL,wBAAC,mDAAwB,IAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,aACxD,gCACE,SAAS,EAAE,eAAe,8BAAkB,IAAI,2BAAe,IAC7D,CAAC,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAChC,EAAE,YAEF,iCAAK,SAAS,EAAC,qCAAqC,EAAC,IAAI,EAAC,MAAM,aAC7D,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,CACd,uBAAC,SAAG,IACF,SAAS,EAAC,2BAA2B,EACrC,KAAK,EAAE,MAAM,CAAC,IAAI,EAClB,KAAK,EAAC,MAAM,EACZ,MAAM,EAAC,MAAM,EACb,KAAK,SACL,CACH,CAAC,CAAC,CAAC,IAAI,EACP,MAAM,EAAE,KAAK,IACV,GACF,EACL,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CACd,uBAAC,+CAAsB,IACrB,eAAe,EAAE,eAAe,EAChC,WAAW,EAAE,wBAAY,EACzB,OAAO,EAAC,QAAQ,YAEf,IAAI,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,uBAAC,mCAAgB,IAEf,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,CAAC,EACV,OAAO,EAAE,OAAO,IALX,MAAM,CAAC,CAAC,CAAC,CAMd,CACH,CAAC,GACqB,CAC1B,CAAC,CAAC,CAAC,IAAI,IACiB,CAC5B,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { VNode } from '../../model/VNode';
|
|
2
|
+
import type { UniBlockProps } from '../../types';
|
|
3
|
+
export interface TariffsTableRowContainerProps extends UniBlockProps {
|
|
4
|
+
children?: VNode;
|
|
5
|
+
rowIdx: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const TariffsTableRowContainer: import("@redneckz/uni-jsx").UNIComponent<TariffsTableRowContainerProps, any, any>;
|