@redneckz/wildless-cms-uni-blocks 0.2.116 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +356 -286
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/Accordion/Accordion.js +1 -1
- package/dist/components/Accordion/Accordion.js.map +1 -1
- package/dist/components/Accordion/Accordion.mobile.js +1 -1
- package/dist/components/Accordion/Accordion.mobile.js.map +1 -1
- package/dist/components/Accordion/AccordionBlocks.d.ts +4 -0
- package/dist/components/Accordion/AccordionBlocks.js +8 -0
- package/dist/components/Accordion/AccordionBlocks.js.map +1 -1
- package/dist/components/Accordion/AccordionContent.d.ts +30 -18
- 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 +2 -5
- package/dist/components/BaseTile/BaseTile.js.map +1 -1
- package/dist/components/BaseTile/BaseTileProps.d.ts +3 -6
- package/dist/components/BaseTile/getTileHeadingType.d.ts +1 -0
- package/dist/components/BaseTile/{getHeadingType.js → getTileHeadingType.js} +4 -4
- package/dist/components/BaseTile/getTileHeadingType.js.map +1 -0
- package/dist/components/BaseTile/getTileMinHeight.d.ts +1 -0
- package/dist/components/BaseTile/getTileMinHeight.js +17 -0
- package/dist/components/BaseTile/getTileMinHeight.js.map +1 -0
- package/dist/components/BaseTile/getTileRightPadding.d.ts +1 -0
- package/dist/components/BaseTile/getTileRightPadding.js +17 -0
- package/dist/components/BaseTile/getTileRightPadding.js.map +1 -0
- package/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +6 -4
- package/dist/components/ComparisonTable/ComparisonTable.js +1 -1
- package/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/dist/components/ComparisonTable/HeaderCell.js +2 -2
- package/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/dist/components/ContentPage/ContentPage.js +2 -4
- package/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/dist/components/ContentPage/isBlockInRegistry.d.ts +2 -0
- package/dist/components/ContentPage/isBlockInRegistry.js +7 -0
- package/dist/components/ContentPage/isBlockInRegistry.js.map +1 -0
- package/dist/components/ContentPage/normalizeBlock.d.ts +8 -0
- package/dist/components/ContentPage/normalizeBlock.js +9 -0
- package/dist/components/ContentPage/normalizeBlock.js.map +1 -0
- package/dist/components/ContentPage/normalizeBlock.mobile.d.ts +2 -0
- package/dist/components/ContentPage/normalizeBlock.mobile.js +8 -0
- package/dist/components/ContentPage/normalizeBlock.mobile.js.map +1 -0
- package/dist/components/ContentPage/normalizePage.d.ts +2 -0
- package/dist/components/ContentPage/normalizePage.js +28 -0
- package/dist/components/ContentPage/normalizePage.js.map +1 -0
- package/dist/components/ContentPage/normalizePage.mobile.d.ts +2 -0
- package/dist/components/ContentPage/normalizePage.mobile.js +30 -0
- package/dist/components/ContentPage/normalizePage.mobile.js.map +1 -0
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js +12 -6
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -4
- package/dist/components/Gallery/Gallery.mobile.js +18 -7
- package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
- package/dist/components/Gallery/GalleryCardInner.js +4 -4
- package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/dist/components/Gallery/GalleryContainer.js +4 -5
- package/dist/components/Gallery/GalleryContainer.js.map +1 -1
- package/dist/components/Gallery/GalleryContent.d.ts +8 -3
- package/dist/components/Gallery/GalleryInner.js +1 -1
- package/dist/components/Gallery/GalleryInner.js.map +1 -1
- package/dist/components/Gallery/constants.js +2 -2
- package/dist/components/Gallery/constants.js.map +1 -1
- package/dist/components/Header/HeaderSecondaryMenu.js +1 -1
- package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/dist/components/Headline/Headline.js +1 -1
- package/dist/components/Headline/Headline.js.map +1 -1
- package/dist/components/Headline/Headline.mobile.js +2 -2
- package/dist/components/Headline/Headline.mobile.js.map +1 -1
- package/dist/components/Headline/HeadlineContent.d.ts +6 -6
- package/dist/components/LinkDocs/LinkDocs.js +1 -1
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.mobile.js +3 -3
- package/dist/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsContent.d.ts +1 -1
- package/dist/components/LinkDocs/LinkDocsList.d.ts +1 -1
- package/dist/components/LinkDocs/LinkDocsListItem.js +1 -1
- package/dist/components/LinkDocs/LinkDocsListItem.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsListItem.mobile.js +1 -1
- package/dist/components/LinkDocs/LinkDocsListItem.mobile.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsListItemBase.d.ts +1 -1
- package/dist/components/LinkDocs/LinkDocsVerticalList.d.ts +1 -1
- package/dist/components/LinkDocs/linkDocsContentExample.js +0 -1
- package/dist/components/LinkDocs/linkDocsContentExample.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.d.ts +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js +8 -3
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +5 -11
- package/dist/components/PictureText/PictureText.js +4 -4
- package/dist/components/PictureText/PictureText.js.map +1 -1
- package/dist/components/PictureText/PictureTextContent.d.ts +4 -2
- package/dist/components/Placeholder/PlaceholderContent.d.ts +2 -3
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +10 -4
- package/dist/components/ProductBlock/ProductBlockInner.d.ts +2 -2
- package/dist/components/ProductBlock/ProductBlockInner.js +7 -3
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.mobile.d.ts +2 -3
- package/dist/components/ProductBlock/ProductBlockInner.mobile.js +7 -3
- package/dist/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
- package/dist/components/ProductBlock/renderBenefit.js +1 -1
- package/dist/components/ProductBlock/renderBenefit.js.map +1 -1
- package/dist/components/ProductBlock/renderBenefit.mobile.js +1 -1
- package/dist/components/ProductBlock/renderBenefit.mobile.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/ProductGallery/ProductGalleryBlock.d.ts +3 -3
- package/dist/components/ProductGallery/ProductGalleryBlock.js +1 -1
- package/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/dist/components/ProductGallery/ProductGalleryBlock.mobile.d.ts +3 -3
- package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js +1 -1
- package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js.map +1 -1
- package/dist/components/ProductGallery/ProductGalleryContent.d.ts +2 -2
- package/dist/components/ProductTile/ProductTile.js +14 -4
- package/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/dist/components/ProductTile/ProductTileContent.d.ts +10 -5
- package/dist/components/PromoTile/PromoTile.js +12 -3
- package/dist/components/PromoTile/PromoTile.js.map +1 -1
- package/dist/components/PromoTile/PromoTileContent.d.ts +7 -3
- package/dist/components/StepsBlock/StepsBlock.js +1 -1
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js +2 -2
- package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTable.js +1 -1
- package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableCell.js +2 -2
- package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableContent.d.ts +5 -11
- package/dist/components/TariffsTable/TariffsTableRow.js +1 -1
- package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/dist/components/TextBlock/TextBlock.js +1 -1
- package/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/dist/components/TextBlock/TextBlock.mobile.js +4 -7
- package/dist/components/TextBlock/TextBlock.mobile.js.map +1 -1
- package/dist/components/TextBlock/TextBlockContent.d.ts +2 -1
- package/dist/components/Tile/Tile.js +10 -27
- package/dist/components/Tile/Tile.js.map +1 -1
- package/dist/components/Tile/TileContent.d.ts +9 -2
- package/dist/content-page-repository/ContentPageRepository.d.ts +0 -2
- package/dist/content-page-repository/ContentPageRepository.js +0 -10
- package/dist/content-page-repository/ContentPageRepository.js.map +1 -1
- package/dist/icons/IconName.d.ts +3 -2
- package/dist/icons/IconName.js +1 -0
- package/dist/icons/IconName.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/model/ButtonVersion.d.ts +1 -1
- package/dist/types.d.ts +5 -5
- package/dist/ui-kit/BlockItem/BlockItem.d.ts +1 -1
- package/dist/ui-kit/BlockItem/BlockItem.js +8 -9
- package/dist/ui-kit/BlockItem/BlockItem.js.map +1 -1
- package/dist/ui-kit/BlockItem/BlockItemProps.d.ts +2 -2
- package/dist/ui-kit/Button/Button.d.ts +0 -2
- package/dist/ui-kit/Button/Button.js +24 -13
- package/dist/ui-kit/Button/Button.js.map +1 -1
- package/dist/ui-kit/Button/Button.mobile.d.ts +0 -2
- package/dist/ui-kit/Button/Button.mobile.js +6 -8
- package/dist/ui-kit/Button/Button.mobile.js.map +1 -1
- package/dist/ui-kit/Button/ButtonInner.d.ts +7 -0
- package/dist/ui-kit/Button/ButtonInner.js +16 -0
- package/dist/ui-kit/Button/ButtonInner.js.map +1 -0
- package/dist/ui-kit/Button/ButtonProps.d.ts +10 -0
- package/dist/ui-kit/Button/ButtonSection.d.ts +5 -0
- package/dist/ui-kit/Button/ButtonSection.js +18 -0
- package/dist/ui-kit/Button/ButtonSection.js.map +1 -0
- package/dist/ui-kit/Description/Description.d.ts +2 -0
- package/dist/ui-kit/Description/Description.js +9 -0
- package/dist/ui-kit/Description/Description.js.map +1 -0
- package/dist/ui-kit/Description/DescriptionProps.d.ts +7 -0
- package/dist/ui-kit/Description/DescriptionProps.js +2 -0
- package/dist/ui-kit/Description/DescriptionProps.js.map +1 -0
- package/dist/ui-kit/Heading/Heading.d.ts +4 -1
- package/dist/ui-kit/Heading/Heading.js +7 -4
- package/dist/ui-kit/Heading/Heading.js.map +1 -1
- package/dist/ui-kit/Heading/Heading.mobile.d.ts +4 -1
- package/dist/ui-kit/Heading/Heading.mobile.js +6 -3
- package/dist/ui-kit/Heading/Heading.mobile.js.map +1 -1
- package/{lib/ui-kit/Heading/HeadingProps.d.ts → dist/ui-kit/Heading/HeadingContent.d.ts} +6 -4
- package/dist/ui-kit/Heading/HeadingContent.js +2 -0
- package/dist/ui-kit/Heading/HeadingContent.js.map +1 -0
- package/dist/ui-kit/Icon/Icon.js +6 -2
- package/dist/ui-kit/Icon/Icon.js.map +1 -1
- package/dist/ui-kit/Icon/IconProps.d.ts +6 -0
- package/dist/ui-kit/{Img.d.ts → Img/Img.d.ts} +1 -1
- package/dist/ui-kit/{Img.js → Img/Img.js} +0 -0
- package/dist/ui-kit/Img/Img.js.map +1 -0
- package/dist/ui-kit/{Img.mobile.d.ts → Img/Img.mobile.d.ts} +2 -5
- package/dist/ui-kit/{Img.mobile.js → Img/Img.mobile.js} +7 -4
- package/dist/ui-kit/Img/Img.mobile.js.map +1 -0
- package/dist/ui-kit/Img/ImgProps.d.ts +7 -0
- package/dist/ui-kit/{Heading/HeadingProps.js → Img/ImgProps.js} +1 -1
- package/dist/ui-kit/Img/ImgProps.js.map +1 -0
- package/dist/ui-kit/List/List.d.ts +2 -0
- package/dist/ui-kit/List/List.js +12 -0
- package/dist/ui-kit/List/List.js.map +1 -0
- package/dist/ui-kit/List/ListContent.d.ts +4 -0
- package/{mobile/dist/ui-kit/Heading/HeadingProps.js → dist/ui-kit/List/ListContent.js} +1 -1
- package/dist/ui-kit/List/ListContent.js.map +1 -0
- package/dist/ui-kit/List/ListItem.d.ts +11 -0
- package/dist/ui-kit/List/ListItem.js +23 -0
- package/dist/ui-kit/List/ListItem.js.map +1 -0
- package/dist/ui-kit/List/ListProps.d.ts +14 -0
- package/dist/ui-kit/List/ListProps.js +2 -0
- package/dist/ui-kit/List/ListProps.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/Accordion/Accordion.js +1 -1
- package/lib/components/Accordion/Accordion.js.map +1 -1
- package/lib/components/Accordion/Accordion.mobile.js +1 -1
- package/lib/components/Accordion/Accordion.mobile.js.map +1 -1
- package/lib/components/Accordion/AccordionBlocks.d.ts +4 -0
- package/lib/components/Accordion/AccordionBlocks.js +8 -0
- package/lib/components/Accordion/AccordionBlocks.js.map +1 -1
- package/lib/components/Accordion/AccordionContent.d.ts +30 -18
- 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 +2 -5
- package/lib/components/BaseTile/BaseTile.js.map +1 -1
- package/lib/components/BaseTile/BaseTileProps.d.ts +3 -6
- package/lib/components/BaseTile/getTileHeadingType.d.ts +1 -0
- package/lib/components/BaseTile/{getHeadingType.js → getTileHeadingType.js} +2 -2
- package/lib/components/BaseTile/getTileHeadingType.js.map +1 -0
- package/lib/components/BaseTile/getTileMinHeight.d.ts +1 -0
- package/lib/components/BaseTile/getTileMinHeight.js +14 -0
- package/lib/components/BaseTile/getTileMinHeight.js.map +1 -0
- package/lib/components/BaseTile/getTileRightPadding.d.ts +1 -0
- package/lib/components/BaseTile/getTileRightPadding.js +14 -0
- package/lib/components/BaseTile/getTileRightPadding.js.map +1 -0
- package/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +6 -4
- package/lib/components/ComparisonTable/ComparisonTable.js +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/lib/components/ComparisonTable/HeaderCell.js +2 -2
- package/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/lib/components/ContentPage/ContentPage.js +2 -4
- package/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/lib/components/ContentPage/isBlockInRegistry.d.ts +2 -0
- package/lib/components/ContentPage/isBlockInRegistry.js +4 -0
- package/lib/components/ContentPage/isBlockInRegistry.js.map +1 -0
- package/lib/components/ContentPage/normalizeBlock.d.ts +8 -0
- package/lib/components/ContentPage/normalizeBlock.js +6 -0
- package/lib/components/ContentPage/normalizeBlock.js.map +1 -0
- package/lib/components/ContentPage/normalizeBlock.mobile.d.ts +2 -0
- package/lib/components/ContentPage/normalizeBlock.mobile.js +5 -0
- package/lib/components/ContentPage/normalizeBlock.mobile.js.map +1 -0
- package/lib/components/ContentPage/normalizePage.d.ts +2 -0
- package/lib/components/ContentPage/normalizePage.js +25 -0
- package/lib/components/ContentPage/normalizePage.js.map +1 -0
- package/lib/components/ContentPage/normalizePage.mobile.d.ts +2 -0
- package/lib/components/ContentPage/{toMobilePage.js → normalizePage.mobile.js} +11 -15
- package/lib/components/ContentPage/normalizePage.mobile.js.map +1 -0
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js +12 -6
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -4
- package/lib/components/Gallery/Gallery.fixture.d.ts +2 -0
- package/lib/components/Gallery/Gallery.fixture.mobile.d.ts +5 -0
- package/lib/components/Gallery/Gallery.mobile.js +18 -7
- package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
- package/lib/components/Gallery/GalleryCardInner.js +4 -4
- package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/lib/components/Gallery/GalleryContainer.js +5 -6
- package/lib/components/Gallery/GalleryContainer.js.map +1 -1
- package/lib/components/Gallery/GalleryContent.d.ts +8 -3
- package/lib/components/Gallery/GalleryInner.js +1 -1
- package/lib/components/Gallery/GalleryInner.js.map +1 -1
- package/lib/components/Gallery/constants.js +2 -2
- package/lib/components/Gallery/constants.js.map +1 -1
- package/lib/components/Header/HeaderSecondaryMenu.js +1 -1
- package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/lib/components/Headline/Headline.js +1 -1
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/Headline/Headline.mobile.js +2 -2
- package/lib/components/Headline/Headline.mobile.js.map +1 -1
- package/lib/components/Headline/HeadlineContent.d.ts +6 -6
- package/lib/components/LinkDocs/LinkDocs.js +1 -1
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.mobile.js +3 -3
- package/lib/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsContent.d.ts +1 -1
- package/lib/components/LinkDocs/LinkDocsList.d.ts +1 -1
- package/lib/components/LinkDocs/LinkDocsListItem.js +1 -1
- package/lib/components/LinkDocs/LinkDocsListItem.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsListItem.mobile.js +1 -1
- package/lib/components/LinkDocs/LinkDocsListItem.mobile.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsListItemBase.d.ts +1 -1
- package/lib/components/LinkDocs/LinkDocsVerticalList.d.ts +1 -1
- package/lib/components/LinkDocs/linkDocsContentExample.js +0 -1
- package/lib/components/LinkDocs/linkDocsContentExample.js.map +1 -1
- package/lib/components/MiniGallery/MiniGallery.fixture.d.ts +2 -0
- package/lib/components/MobileAppTile/MobileAppTile.d.ts +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js +8 -3
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +5 -11
- package/lib/components/PictureText/PictureText.js +4 -4
- package/lib/components/PictureText/PictureText.js.map +1 -1
- package/lib/components/PictureText/PictureTextContent.d.ts +4 -2
- package/lib/components/Placeholder/PlaceholderContent.d.ts +2 -3
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +10 -4
- package/lib/components/ProductBlock/ProductBlockInner.d.ts +2 -2
- package/lib/components/ProductBlock/ProductBlockInner.js +7 -3
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.mobile.d.ts +2 -3
- package/lib/components/ProductBlock/ProductBlockInner.mobile.js +7 -3
- package/lib/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
- package/lib/components/ProductBlock/renderBenefit.js +1 -1
- package/lib/components/ProductBlock/renderBenefit.js.map +1 -1
- package/lib/components/ProductBlock/renderBenefit.mobile.js +1 -1
- package/lib/components/ProductBlock/renderBenefit.mobile.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/ProductGallery/ProductGalleryBlock.d.ts +3 -3
- package/lib/components/ProductGallery/ProductGalleryBlock.js +1 -1
- package/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/lib/components/ProductGallery/ProductGalleryBlock.mobile.d.ts +3 -3
- package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js +1 -1
- package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js.map +1 -1
- package/lib/components/ProductGallery/ProductGalleryContent.d.ts +2 -2
- package/lib/components/ProductTile/ProductTile.fixture.d.ts +2 -0
- package/lib/components/ProductTile/ProductTile.js +14 -4
- package/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/lib/components/ProductTile/ProductTileContent.d.ts +10 -5
- package/lib/components/PromoTile/PromoTile.js +12 -3
- package/lib/components/PromoTile/PromoTile.js.map +1 -1
- package/lib/components/PromoTile/PromoTileContent.d.ts +7 -3
- package/lib/components/StepsBlock/StepsBlock.js +1 -1
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js +2 -2
- package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTable.js +1 -1
- package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableCell.js +2 -2
- package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableContent.d.ts +5 -11
- package/lib/components/TariffsTable/TariffsTableRow.js +1 -1
- package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/lib/components/TextBlock/TextBlock.js +1 -1
- package/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/lib/components/TextBlock/TextBlock.mobile.js +4 -7
- package/lib/components/TextBlock/TextBlock.mobile.js.map +1 -1
- package/lib/components/TextBlock/TextBlockContent.d.ts +2 -1
- package/lib/components/Tile/Tile.fixture.d.ts +2 -0
- package/lib/components/Tile/Tile.js +11 -28
- package/lib/components/Tile/Tile.js.map +1 -1
- package/lib/components/Tile/TileContent.d.ts +9 -2
- package/lib/content-page-repository/ContentPageRepository.d.ts +0 -2
- package/lib/content-page-repository/ContentPageRepository.js +0 -10
- package/lib/content-page-repository/ContentPageRepository.js.map +1 -1
- package/lib/icons/IconName.d.ts +3 -2
- package/lib/icons/IconName.js +1 -0
- package/lib/icons/IconName.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/model/ButtonVersion.d.ts +1 -1
- package/lib/types.d.ts +5 -5
- package/lib/ui-kit/BlockItem/BlockItem.d.ts +1 -1
- package/lib/ui-kit/BlockItem/BlockItem.js +8 -9
- package/lib/ui-kit/BlockItem/BlockItem.js.map +1 -1
- package/lib/ui-kit/BlockItem/BlockItemProps.d.ts +2 -2
- package/lib/ui-kit/Button/Button.d.ts +0 -2
- package/lib/ui-kit/Button/Button.js +23 -12
- package/lib/ui-kit/Button/Button.js.map +1 -1
- package/lib/ui-kit/Button/Button.mobile.d.ts +0 -2
- package/lib/ui-kit/Button/Button.mobile.js +6 -8
- package/lib/ui-kit/Button/Button.mobile.js.map +1 -1
- package/lib/ui-kit/Button/ButtonInner.d.ts +7 -0
- package/lib/ui-kit/Button/ButtonInner.js +14 -0
- package/lib/ui-kit/Button/ButtonInner.js.map +1 -0
- package/lib/ui-kit/Button/ButtonProps.d.ts +10 -0
- package/lib/ui-kit/Button/ButtonSection.d.ts +5 -0
- package/lib/ui-kit/Button/ButtonSection.js +16 -0
- package/lib/ui-kit/Button/ButtonSection.js.map +1 -0
- package/lib/ui-kit/Description/Description.d.ts +2 -0
- package/lib/ui-kit/Description/Description.js +7 -0
- package/lib/ui-kit/Description/Description.js.map +1 -0
- package/lib/ui-kit/Description/DescriptionProps.d.ts +7 -0
- package/lib/ui-kit/Description/DescriptionProps.js +2 -0
- package/lib/ui-kit/Description/DescriptionProps.js.map +1 -0
- package/lib/ui-kit/Heading/Heading.d.ts +4 -1
- package/lib/ui-kit/Heading/Heading.js +7 -4
- package/lib/ui-kit/Heading/Heading.js.map +1 -1
- package/lib/ui-kit/Heading/Heading.mobile.d.ts +4 -1
- package/lib/ui-kit/Heading/Heading.mobile.js +6 -3
- package/lib/ui-kit/Heading/Heading.mobile.js.map +1 -1
- package/{mobile/dist/ui-kit/Heading/HeadingProps.d.ts → lib/ui-kit/Heading/HeadingContent.d.ts} +6 -4
- package/lib/ui-kit/Heading/HeadingContent.js +2 -0
- package/lib/ui-kit/Heading/HeadingContent.js.map +1 -0
- package/lib/ui-kit/Icon/Icon.fixture.d.ts +2 -1
- package/lib/ui-kit/Icon/Icon.js +6 -2
- package/lib/ui-kit/Icon/Icon.js.map +1 -1
- package/lib/ui-kit/Icon/IconProps.d.ts +6 -0
- package/{mobile/dist/ui-kit → lib/ui-kit/Img}/Img.d.ts +1 -1
- package/lib/ui-kit/{Img.js → Img/Img.js} +0 -0
- package/lib/ui-kit/Img/Img.js.map +1 -0
- package/lib/ui-kit/{Img.mobile.d.ts → Img/Img.mobile.d.ts} +2 -5
- package/lib/ui-kit/{Img.mobile.js → Img/Img.mobile.js} +7 -4
- package/lib/ui-kit/Img/Img.mobile.js.map +1 -0
- package/lib/ui-kit/Img/ImgProps.d.ts +7 -0
- package/lib/ui-kit/Img/ImgProps.js +2 -0
- package/lib/ui-kit/Img/ImgProps.js.map +1 -0
- package/lib/ui-kit/List/List.d.ts +2 -0
- package/lib/ui-kit/List/List.js +10 -0
- package/lib/ui-kit/List/List.js.map +1 -0
- package/lib/ui-kit/List/ListContent.d.ts +4 -0
- package/lib/ui-kit/List/ListContent.js +2 -0
- package/lib/ui-kit/List/ListContent.js.map +1 -0
- package/lib/ui-kit/List/ListItem.d.ts +11 -0
- package/lib/ui-kit/List/ListItem.js +21 -0
- package/lib/ui-kit/List/ListItem.js.map +1 -0
- package/lib/ui-kit/List/ListProps.d.ts +14 -0
- package/lib/ui-kit/List/ListProps.js +2 -0
- package/lib/ui-kit/List/ListProps.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +346 -200
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/Accordion/Accordion.js +1 -1
- package/mobile/dist/components/Accordion/Accordion.js.map +1 -1
- package/mobile/dist/components/Accordion/AccordionBlocks.d.ts +4 -0
- package/mobile/dist/components/Accordion/AccordionBlocks.js +8 -0
- package/mobile/dist/components/Accordion/AccordionBlocks.js.map +1 -1
- package/mobile/dist/components/Accordion/AccordionContent.d.ts +30 -18
- 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 +2 -11
- package/mobile/dist/components/BaseTile/BaseTile.js.map +1 -1
- package/mobile/dist/components/BaseTile/BaseTileProps.d.ts +3 -6
- package/mobile/dist/components/BaseTile/getTileHeadingType.d.ts +1 -0
- package/mobile/dist/components/BaseTile/{getHeadingType.js → getTileHeadingType.js} +4 -4
- package/mobile/dist/components/BaseTile/getTileHeadingType.js.map +1 -0
- package/mobile/dist/components/BaseTile/getTileMinHeight.d.ts +1 -0
- package/mobile/dist/components/BaseTile/getTileMinHeight.js +17 -0
- package/mobile/dist/components/BaseTile/getTileMinHeight.js.map +1 -0
- package/mobile/dist/components/BaseTile/getTileRightPadding.d.ts +1 -0
- package/mobile/dist/components/BaseTile/getTileRightPadding.js +17 -0
- package/mobile/dist/components/BaseTile/getTileRightPadding.js.map +1 -0
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +6 -4
- package/mobile/dist/components/ComparisonTable/ComparisonTable.js +1 -1
- package/mobile/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/HeaderCell.js +2 -2
- package/mobile/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.js +2 -4
- package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/dist/components/ContentPage/isBlockInRegistry.d.ts +2 -0
- package/mobile/dist/components/ContentPage/isBlockInRegistry.js +7 -0
- package/mobile/dist/components/ContentPage/isBlockInRegistry.js.map +1 -0
- package/mobile/dist/components/ContentPage/normalizeBlock.d.ts +2 -0
- package/mobile/dist/components/ContentPage/normalizeBlock.js +8 -0
- package/mobile/dist/components/ContentPage/normalizeBlock.js.map +1 -0
- package/mobile/dist/components/ContentPage/normalizePage.d.ts +2 -0
- package/mobile/dist/components/ContentPage/normalizePage.js +30 -0
- package/mobile/dist/components/ContentPage/normalizePage.js.map +1 -0
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +12 -6
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -4
- package/mobile/dist/components/Gallery/Gallery.js +18 -7
- package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryCardInner.js +4 -4
- package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryContainer.js +4 -5
- package/mobile/dist/components/Gallery/GalleryContainer.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryContent.d.ts +8 -3
- package/mobile/dist/components/Gallery/GalleryInner.js +1 -1
- package/mobile/dist/components/Gallery/GalleryInner.js.map +1 -1
- package/mobile/dist/components/Gallery/constants.js +2 -2
- package/mobile/dist/components/Gallery/constants.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js +1 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/dist/components/Headline/Headline.js +2 -2
- package/mobile/dist/components/Headline/Headline.js.map +1 -1
- package/mobile/dist/components/Headline/HeadlineContent.d.ts +6 -6
- package/mobile/dist/components/LinkDocs/LinkDocs.js +3 -3
- package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsList.d.ts +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsListItem.js +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsListItem.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.d.ts +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.d.ts +1 -1
- package/mobile/dist/components/LinkDocs/linkDocsContentExample.js +0 -1
- package/mobile/dist/components/LinkDocs/linkDocsContentExample.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +5 -11
- package/mobile/dist/components/PictureText/PictureText.js +4 -4
- package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
- package/mobile/dist/components/PictureText/PictureTextContent.d.ts +4 -2
- package/mobile/dist/components/Placeholder/PlaceholderContent.d.ts +2 -3
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +10 -4
- package/mobile/dist/components/ProductBlock/ProductBlockInner.d.ts +2 -3
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js +7 -3
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/mobile/dist/components/ProductBlock/renderBenefit.js +1 -1
- package/mobile/dist/components/ProductBlock/renderBenefit.js.map +1 -1
- package/mobile/dist/components/ProductGallery/ProductGalleryBlock.d.ts +3 -3
- package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js +1 -1
- package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/mobile/dist/components/ProductGallery/ProductGalleryContent.d.ts +2 -2
- package/mobile/dist/components/ProductTile/ProductTile.js +14 -4
- package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +10 -5
- package/mobile/dist/components/PromoTile/PromoTile.js +12 -3
- package/mobile/dist/components/PromoTile/PromoTile.js.map +1 -1
- package/mobile/dist/components/PromoTile/PromoTileContent.d.ts +7 -3
- package/mobile/dist/components/StepsBlock/StepsBlock.js +2 -2
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTable.js +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js +2 -2
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +5 -11
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/dist/components/TextBlock/TextBlock.js +4 -7
- package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/dist/components/TextBlock/TextBlockContent.d.ts +2 -1
- package/mobile/dist/components/Tile/Tile.js +10 -27
- package/mobile/dist/components/Tile/Tile.js.map +1 -1
- package/mobile/dist/components/Tile/TileContent.d.ts +9 -2
- package/mobile/dist/content-page-repository/ContentPageRepository.d.ts +0 -2
- package/mobile/dist/content-page-repository/ContentPageRepository.js +0 -10
- package/mobile/dist/content-page-repository/ContentPageRepository.js.map +1 -1
- package/mobile/dist/icons/IconName.d.ts +3 -2
- package/mobile/dist/icons/IconName.js +1 -0
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/index.d.ts +1 -1
- package/mobile/dist/index.js +3 -3
- package/mobile/dist/index.js.map +1 -1
- package/mobile/dist/model/ButtonVersion.d.ts +1 -1
- package/mobile/dist/types.d.ts +5 -5
- package/mobile/dist/ui-kit/BlockItem/BlockItem.d.ts +1 -1
- package/mobile/dist/ui-kit/BlockItem/BlockItem.js +8 -9
- package/mobile/dist/ui-kit/BlockItem/BlockItem.js.map +1 -1
- package/mobile/dist/ui-kit/BlockItem/BlockItemProps.d.ts +2 -2
- package/mobile/dist/ui-kit/Button/Button.d.ts +0 -2
- package/mobile/dist/ui-kit/Button/Button.js +6 -8
- package/mobile/dist/ui-kit/Button/Button.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.d.ts +7 -0
- package/mobile/dist/ui-kit/Button/ButtonInner.js +16 -0
- package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -0
- package/mobile/dist/ui-kit/Button/ButtonProps.d.ts +10 -0
- package/mobile/dist/ui-kit/Button/ButtonSection.d.ts +5 -0
- package/mobile/dist/ui-kit/Button/ButtonSection.js +18 -0
- package/mobile/dist/ui-kit/Button/ButtonSection.js.map +1 -0
- package/mobile/dist/ui-kit/Description/Description.d.ts +2 -0
- package/mobile/dist/ui-kit/Description/Description.js +9 -0
- package/mobile/dist/ui-kit/Description/Description.js.map +1 -0
- package/mobile/dist/ui-kit/Description/DescriptionProps.d.ts +7 -0
- package/mobile/dist/ui-kit/Description/DescriptionProps.js +2 -0
- package/mobile/dist/ui-kit/Description/DescriptionProps.js.map +1 -0
- package/mobile/dist/ui-kit/Heading/Heading.d.ts +4 -1
- package/mobile/dist/ui-kit/Heading/Heading.js +6 -3
- package/mobile/dist/ui-kit/Heading/Heading.js.map +1 -1
- package/{dist/ui-kit/Heading/HeadingProps.d.ts → mobile/dist/ui-kit/Heading/HeadingContent.d.ts} +6 -4
- package/mobile/dist/ui-kit/Heading/HeadingContent.js +2 -0
- package/mobile/dist/ui-kit/Heading/HeadingContent.js.map +1 -0
- package/mobile/dist/ui-kit/Icon/Icon.js +6 -2
- package/mobile/dist/ui-kit/Icon/Icon.js.map +1 -1
- package/mobile/dist/ui-kit/Icon/IconProps.d.ts +6 -0
- package/{lib/ui-kit → mobile/dist/ui-kit/Img}/Img.d.ts +2 -5
- package/mobile/dist/ui-kit/{Img.js → Img/Img.js} +7 -4
- package/mobile/dist/ui-kit/Img/Img.js.map +1 -0
- package/mobile/dist/ui-kit/Img/ImgProps.d.ts +7 -0
- package/mobile/dist/ui-kit/Img/ImgProps.js +2 -0
- package/mobile/dist/ui-kit/Img/ImgProps.js.map +1 -0
- package/mobile/dist/ui-kit/List/List.d.ts +2 -0
- package/mobile/dist/ui-kit/List/List.js +12 -0
- package/mobile/dist/ui-kit/List/List.js.map +1 -0
- package/mobile/dist/ui-kit/List/ListContent.d.ts +4 -0
- package/mobile/dist/ui-kit/List/ListContent.js +2 -0
- package/mobile/dist/ui-kit/List/ListContent.js.map +1 -0
- package/mobile/dist/ui-kit/List/ListItem.d.ts +11 -0
- package/mobile/dist/ui-kit/List/ListItem.js +23 -0
- package/mobile/dist/ui-kit/List/ListItem.js.map +1 -0
- package/mobile/dist/ui-kit/List/ListProps.d.ts +14 -0
- package/mobile/dist/ui-kit/List/ListProps.js +2 -0
- package/mobile/dist/ui-kit/List/ListProps.js.map +1 -0
- package/mobile/lib/components/Accordion/Accordion.js +1 -1
- package/mobile/lib/components/Accordion/Accordion.js.map +1 -1
- package/mobile/lib/components/Accordion/AccordionBlocks.d.ts +4 -0
- package/mobile/lib/components/Accordion/AccordionBlocks.js +8 -0
- package/mobile/lib/components/Accordion/AccordionBlocks.js.map +1 -1
- package/mobile/lib/components/Accordion/AccordionContent.d.ts +30 -18
- 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 +2 -11
- package/mobile/lib/components/BaseTile/BaseTile.js.map +1 -1
- package/mobile/lib/components/BaseTile/BaseTileProps.d.ts +3 -6
- package/mobile/lib/components/BaseTile/getTileHeadingType.d.ts +1 -0
- package/mobile/lib/components/BaseTile/{getHeadingType.js → getTileHeadingType.js} +2 -2
- package/mobile/lib/components/BaseTile/getTileHeadingType.js.map +1 -0
- package/mobile/lib/components/BaseTile/getTileMinHeight.d.ts +1 -0
- package/mobile/lib/components/BaseTile/getTileMinHeight.js +14 -0
- package/mobile/lib/components/BaseTile/getTileMinHeight.js.map +1 -0
- package/mobile/lib/components/BaseTile/getTileRightPadding.d.ts +1 -0
- package/mobile/lib/components/BaseTile/getTileRightPadding.js +14 -0
- package/mobile/lib/components/BaseTile/getTileRightPadding.js.map +1 -0
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +6 -4
- package/mobile/lib/components/ComparisonTable/ComparisonTable.js +1 -1
- package/mobile/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/HeaderCell.js +2 -2
- package/mobile/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.js +2 -4
- package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/lib/components/ContentPage/isBlockInRegistry.d.ts +2 -0
- package/mobile/lib/components/ContentPage/isBlockInRegistry.js +4 -0
- package/mobile/lib/components/ContentPage/isBlockInRegistry.js.map +1 -0
- package/mobile/lib/components/ContentPage/normalizeBlock.d.ts +2 -0
- package/mobile/lib/components/ContentPage/normalizeBlock.js +5 -0
- package/mobile/lib/components/ContentPage/normalizeBlock.js.map +1 -0
- package/mobile/lib/components/ContentPage/normalizePage.d.ts +2 -0
- package/mobile/lib/components/ContentPage/{toMobilePage.js → normalizePage.js} +11 -15
- package/mobile/lib/components/ContentPage/normalizePage.js.map +1 -0
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +12 -6
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -4
- package/mobile/lib/components/Gallery/Gallery.js +18 -7
- package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryCardInner.js +4 -4
- package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryContainer.js +5 -6
- package/mobile/lib/components/Gallery/GalleryContainer.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryContent.d.ts +8 -3
- package/mobile/lib/components/Gallery/GalleryInner.js +1 -1
- package/mobile/lib/components/Gallery/GalleryInner.js.map +1 -1
- package/mobile/lib/components/Gallery/constants.js +2 -2
- package/mobile/lib/components/Gallery/constants.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js +1 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/lib/components/Headline/Headline.js +2 -2
- package/mobile/lib/components/Headline/Headline.js.map +1 -1
- package/mobile/lib/components/Headline/HeadlineContent.d.ts +6 -6
- package/mobile/lib/components/LinkDocs/LinkDocs.js +3 -3
- package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsList.d.ts +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsListItem.js +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsListItem.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.d.ts +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.d.ts +1 -1
- package/mobile/lib/components/LinkDocs/linkDocsContentExample.js +0 -1
- package/mobile/lib/components/LinkDocs/linkDocsContentExample.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +5 -11
- package/mobile/lib/components/PictureText/PictureText.js +4 -4
- package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
- package/mobile/lib/components/PictureText/PictureTextContent.d.ts +4 -2
- package/mobile/lib/components/Placeholder/PlaceholderContent.d.ts +2 -3
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +10 -4
- package/mobile/lib/components/ProductBlock/ProductBlockInner.d.ts +2 -3
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js +7 -3
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/mobile/lib/components/ProductBlock/renderBenefit.js +1 -1
- package/mobile/lib/components/ProductBlock/renderBenefit.js.map +1 -1
- package/mobile/lib/components/ProductGallery/ProductGalleryBlock.d.ts +3 -3
- package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js +1 -1
- package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/mobile/lib/components/ProductGallery/ProductGalleryContent.d.ts +2 -2
- package/mobile/lib/components/ProductTile/ProductTile.js +14 -4
- package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +10 -5
- package/mobile/lib/components/PromoTile/PromoTile.js +12 -3
- package/mobile/lib/components/PromoTile/PromoTile.js.map +1 -1
- package/mobile/lib/components/PromoTile/PromoTileContent.d.ts +7 -3
- package/mobile/lib/components/StepsBlock/StepsBlock.js +2 -2
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTable.js +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js +2 -2
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +5 -11
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/lib/components/TextBlock/TextBlock.js +4 -7
- package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/lib/components/TextBlock/TextBlockContent.d.ts +2 -1
- package/mobile/lib/components/Tile/Tile.js +11 -28
- package/mobile/lib/components/Tile/Tile.js.map +1 -1
- package/mobile/lib/components/Tile/TileContent.d.ts +9 -2
- package/mobile/lib/content-page-repository/ContentPageRepository.d.ts +0 -2
- package/mobile/lib/content-page-repository/ContentPageRepository.js +0 -10
- package/mobile/lib/content-page-repository/ContentPageRepository.js.map +1 -1
- package/mobile/lib/icons/IconName.d.ts +3 -2
- package/mobile/lib/icons/IconName.js +1 -0
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/index.d.ts +1 -1
- package/mobile/lib/index.js +1 -1
- package/mobile/lib/index.js.map +1 -1
- package/mobile/lib/model/ButtonVersion.d.ts +1 -1
- package/mobile/lib/types.d.ts +5 -5
- package/mobile/lib/ui-kit/BlockItem/BlockItem.d.ts +1 -1
- package/mobile/lib/ui-kit/BlockItem/BlockItem.js +8 -9
- package/mobile/lib/ui-kit/BlockItem/BlockItem.js.map +1 -1
- package/mobile/lib/ui-kit/BlockItem/BlockItemProps.d.ts +2 -2
- package/mobile/lib/ui-kit/Button/Button.d.ts +0 -2
- package/mobile/lib/ui-kit/Button/Button.js +6 -8
- package/mobile/lib/ui-kit/Button/Button.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.d.ts +7 -0
- package/mobile/lib/ui-kit/Button/ButtonInner.js +14 -0
- package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -0
- package/mobile/lib/ui-kit/Button/ButtonProps.d.ts +10 -0
- package/mobile/lib/ui-kit/Button/ButtonSection.d.ts +5 -0
- package/mobile/lib/ui-kit/Button/ButtonSection.js +16 -0
- package/mobile/lib/ui-kit/Button/ButtonSection.js.map +1 -0
- package/mobile/lib/ui-kit/Description/Description.d.ts +2 -0
- package/mobile/lib/ui-kit/Description/Description.js +7 -0
- package/mobile/lib/ui-kit/Description/Description.js.map +1 -0
- package/mobile/lib/ui-kit/Description/DescriptionProps.d.ts +7 -0
- package/mobile/lib/ui-kit/Description/DescriptionProps.js +2 -0
- package/mobile/lib/ui-kit/Description/DescriptionProps.js.map +1 -0
- package/mobile/lib/ui-kit/Heading/Heading.d.ts +4 -1
- package/mobile/lib/ui-kit/Heading/Heading.js +6 -3
- package/mobile/lib/ui-kit/Heading/Heading.js.map +1 -1
- package/mobile/lib/ui-kit/Heading/{HeadingProps.d.ts → HeadingContent.d.ts} +6 -4
- package/mobile/lib/ui-kit/Heading/HeadingContent.js +2 -0
- package/mobile/lib/ui-kit/Heading/HeadingContent.js.map +1 -0
- package/mobile/lib/ui-kit/Icon/Icon.js +6 -2
- package/mobile/lib/ui-kit/Icon/Icon.js.map +1 -1
- package/mobile/lib/ui-kit/Icon/IconProps.d.ts +6 -0
- package/mobile/lib/ui-kit/{Img.d.ts → Img/Img.d.ts} +2 -5
- package/mobile/lib/ui-kit/{Img.js → Img/Img.js} +7 -4
- package/mobile/lib/ui-kit/Img/Img.js.map +1 -0
- package/mobile/lib/ui-kit/Img/ImgProps.d.ts +7 -0
- package/mobile/lib/ui-kit/Img/ImgProps.js +2 -0
- package/mobile/lib/ui-kit/Img/ImgProps.js.map +1 -0
- package/mobile/lib/ui-kit/List/List.d.ts +2 -0
- package/mobile/lib/ui-kit/List/List.js +10 -0
- package/mobile/lib/ui-kit/List/List.js.map +1 -0
- package/mobile/lib/ui-kit/List/ListContent.d.ts +4 -0
- package/mobile/lib/ui-kit/List/ListContent.js +2 -0
- package/mobile/lib/ui-kit/List/ListContent.js.map +1 -0
- package/mobile/lib/ui-kit/List/ListItem.d.ts +11 -0
- package/mobile/lib/ui-kit/List/ListItem.js +21 -0
- package/mobile/lib/ui-kit/List/ListItem.js.map +1 -0
- package/mobile/lib/ui-kit/List/ListProps.d.ts +14 -0
- package/mobile/lib/ui-kit/List/ListProps.js +2 -0
- package/mobile/lib/ui-kit/List/ListProps.js.map +1 -0
- package/mobile/src/components/Accordion/Accordion.tsx +1 -1
- package/mobile/src/components/Accordion/AccordionBlocks.tsx +8 -0
- package/mobile/src/components/Accordion/AccordionContent.ts +49 -21
- package/mobile/src/components/Accordion/AccordionItem.tsx +1 -1
- package/mobile/src/components/BaseTile/BaseTile.tsx +11 -41
- package/mobile/src/components/BaseTile/BaseTileProps.ts +5 -7
- package/{src/components/BaseTile/getHeadingType.ts → mobile/src/components/BaseTile/getTileHeadingType.ts} +1 -1
- package/mobile/src/components/BaseTile/getTileMinHeight.ts +12 -0
- package/mobile/src/components/BaseTile/getTileRightPadding.ts +12 -0
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +3 -1
- package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +7 -4
- package/mobile/src/components/ComparisonTable/ComparisonTable.tsx +5 -1
- package/mobile/src/components/ComparisonTable/HeaderCell.tsx +2 -2
- package/mobile/src/components/ContentPage/ContentPage.page.json +1620 -133
- package/mobile/src/components/ContentPage/ContentPage.tsx +2 -8
- package/mobile/src/components/ContentPage/isBlockInRegistry.ts +5 -0
- package/mobile/src/components/ContentPage/normalizeBlock.spec.ts +50 -0
- package/mobile/src/components/ContentPage/normalizeBlock.ts +6 -0
- package/mobile/src/components/ContentPage/{toMobilePage.ts → normalizePage.ts} +13 -14
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +60 -36
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +3 -4
- package/mobile/src/components/Gallery/Gallery.tsx +57 -38
- package/mobile/src/components/Gallery/GalleryCardInner.tsx +8 -11
- package/mobile/src/components/Gallery/GalleryContainer.tsx +8 -9
- package/mobile/src/components/Gallery/GalleryContent.ts +9 -3
- package/mobile/src/components/Gallery/GalleryInner.tsx +1 -1
- package/mobile/src/components/Gallery/constants.ts +2 -2
- package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +4 -4
- package/mobile/src/components/Headline/Headline.tsx +2 -2
- package/mobile/src/components/Headline/HeadlineContent.ts +11 -9
- package/mobile/src/components/LinkDocs/LinkDocs.tsx +10 -6
- package/mobile/src/components/LinkDocs/LinkDocsContent.ts +1 -1
- package/mobile/src/components/LinkDocs/LinkDocsList.tsx +1 -1
- package/mobile/src/components/LinkDocs/LinkDocsListItem.tsx +1 -1
- package/mobile/src/components/LinkDocs/LinkDocsListItemBase.tsx +1 -1
- package/mobile/src/components/LinkDocs/LinkDocsVerticalList.tsx +1 -1
- package/mobile/src/components/LinkDocs/linkDocsContentExample.ts +0 -1
- package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +11 -15
- package/mobile/src/components/PictureText/PictureText.tsx +4 -3
- package/mobile/src/components/PictureText/PictureTextContent.ts +5 -2
- package/mobile/src/components/Placeholder/PlaceholderContent.ts +3 -3
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +21 -10
- package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +26 -11
- package/mobile/src/components/ProductBlock/renderBenefit.tsx +1 -0
- package/mobile/src/components/ProductGallery/ProductGalleryBlock.tsx +4 -4
- package/mobile/src/components/ProductGallery/ProductGalleryContent.ts +2 -2
- package/mobile/src/components/ProductTile/ProductTile.tsx +63 -15
- package/mobile/src/components/ProductTile/ProductTileContent.ts +17 -9
- package/mobile/src/components/PromoTile/PromoTile.tsx +41 -14
- package/mobile/src/components/PromoTile/PromoTileContent.ts +11 -5
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +2 -2
- package/mobile/src/components/TariffsTable/TariffsTable.tsx +5 -1
- package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +3 -2
- package/mobile/src/components/TariffsTable/TariffsTableContent.ts +5 -11
- package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +1 -0
- package/mobile/src/components/TextBlock/TextBlock.tsx +20 -16
- package/mobile/src/components/TextBlock/TextBlockContent.ts +4 -1
- package/mobile/src/components/Tile/Tile.tsx +46 -27
- package/mobile/src/components/Tile/TileContent.ts +13 -2
- package/mobile/src/content-page-repository/ContentPageRepository.ts +0 -12
- package/mobile/src/icons/ActualBalanceIcon.svg +0 -2
- package/mobile/src/icons/AtmIcon.svg +5 -5
- package/mobile/src/icons/BankIcon.svg +9 -9
- package/mobile/src/icons/BurgerIcon.svg +1 -1
- package/mobile/src/icons/BurgerIconWhite.svg +1 -1
- package/mobile/src/icons/Calendar2Icon.svg +1 -1
- package/mobile/src/icons/CalendarCircleIcon.svg +1 -1
- package/mobile/src/icons/CalendarIcon.svg +1 -1
- package/mobile/src/icons/CalendarTickIcon.svg +1 -1
- package/mobile/src/icons/CalendarWhiteIcon.svg +1 -1
- package/mobile/src/icons/CardIcon.svg +1 -1
- package/mobile/src/icons/CardPosIcon.svg +1 -1
- package/mobile/src/icons/CardTickIcon.svg +1 -1
- package/mobile/src/icons/CardWithGemIcon.svg +1 -1
- package/mobile/src/icons/ChartSquareIcon.svg +1 -1
- package/mobile/src/icons/ClockIcon.svg +0 -2
- package/mobile/src/icons/CloseIcon.svg +1 -1
- package/mobile/src/icons/ComfortableCompIcon.svg +0 -2
- package/mobile/src/icons/CreditCardsIcon.svg +1 -1
- package/mobile/src/icons/DiscountShapeIcon.svg +1 -1
- package/mobile/src/icons/DocIcon.svg +4 -4
- package/mobile/src/icons/DocIconMonoColor.svg +5 -0
- package/mobile/src/icons/DocumentTextIcon.svg +3 -3
- package/mobile/src/icons/DollarIcon.svg +1 -1
- package/mobile/src/icons/EarthIcon.svg +1 -1
- package/mobile/src/icons/EmptyWalletChangeIcon.svg +1 -1
- package/mobile/src/icons/EmptyWalletIcon.svg +1 -1
- package/mobile/src/icons/EmptyWalletWhiteIcon.svg +1 -1
- package/mobile/src/icons/EuroIcon.svg +1 -1
- package/mobile/src/icons/GeolocationIcon.svg +3 -3
- package/mobile/src/icons/GlobalIcon.svg +1 -1
- package/mobile/src/icons/IconName.ts +3 -3
- package/mobile/src/icons/InterestGrowthIcon.svg +1 -1
- package/mobile/src/icons/InterestIcon.svg +1 -1
- package/mobile/src/icons/JCBIcon.svg +1 -1
- package/mobile/src/icons/MasterCardIcon.svg +1 -1
- package/mobile/src/icons/MinusIcon.svg +1 -1
- package/mobile/src/icons/MirIcon.svg +1 -1
- package/mobile/src/icons/MoneyIcon.svg +1 -1
- package/mobile/src/icons/MoneyInsuranceIcon.svg +1 -1
- package/mobile/src/icons/MonitorMobileIcon.svg +1 -1
- package/mobile/src/icons/NewDocIcon.svg +0 -2
- package/mobile/src/icons/OfficeIcon.svg +1 -1
- package/mobile/src/icons/OkIcon.svg +1 -1
- package/mobile/src/icons/PassSendIcon.svg +0 -2
- package/mobile/src/icons/PercentageRoundIcon.svg +1 -1
- package/mobile/src/icons/PercentageSquareIcon.svg +1 -1
- package/mobile/src/icons/PercentageSquareWhiteIcon.svg +1 -1
- package/mobile/src/icons/PersonalCardIcon.svg +1 -1
- package/mobile/src/icons/PlusIcon.svg +1 -1
- package/mobile/src/icons/Profile2UserIcon.svg +1 -1
- package/mobile/src/icons/RoundRubleIcon.svg +1 -1
- package/mobile/src/icons/SafeIcon.svg +1 -1
- package/mobile/src/icons/ShieldTickIcon.svg +1 -1
- package/mobile/src/icons/SignDocsIcon.svg +0 -2
- package/mobile/src/icons/SmallClockIcon.svg +1 -1
- package/mobile/src/icons/TelegramIcon.svg +2 -1
- package/mobile/src/icons/UnionPayIcon.svg +1 -1
- package/mobile/src/icons/UserTickIcon.svg +1 -1
- package/mobile/src/icons/VKIcon.svg +2 -1
- package/mobile/src/icons/VisaIcon.svg +1 -1
- package/mobile/src/icons/WalletAdd2Icon.svg +1 -1
- package/mobile/src/icons/WalletAddIcon.svg +1 -1
- package/mobile/src/icons/WalletIcon.svg +1 -1
- package/mobile/src/icons/WalletWithMoneyIcon.svg +1 -1
- package/mobile/src/index.ts +1 -1
- package/mobile/src/model/ButtonVersion.ts +1 -1
- package/mobile/src/types.ts +6 -5
- package/mobile/src/ui-kit/BlockItem/BlockItem.tsx +11 -14
- package/mobile/src/ui-kit/BlockItem/BlockItemProps.ts +2 -2
- package/mobile/src/ui-kit/Button/Button.tsx +11 -24
- package/mobile/src/ui-kit/Button/ButtonInner.tsx +37 -0
- package/mobile/src/ui-kit/Button/ButtonProps.ts +11 -0
- package/mobile/src/ui-kit/Button/ButtonSection.tsx +34 -0
- package/mobile/src/ui-kit/Description/Description.tsx +8 -0
- package/mobile/src/ui-kit/Description/DescriptionProps.ts +8 -0
- package/mobile/src/ui-kit/Heading/Heading.tsx +14 -5
- package/mobile/src/ui-kit/Heading/{HeadingProps.ts → HeadingContent.ts} +7 -4
- package/mobile/src/ui-kit/Icon/Icon.tsx +16 -3
- package/mobile/src/ui-kit/Icon/IconProps.ts +7 -0
- package/mobile/src/ui-kit/{Img.tsx → Img/Img.tsx} +9 -10
- package/mobile/src/ui-kit/Img/ImgProps.ts +9 -0
- package/mobile/src/ui-kit/List/List.tsx +24 -0
- package/mobile/src/ui-kit/List/ListContent.ts +4 -0
- package/mobile/src/ui-kit/List/ListItem.tsx +43 -0
- package/mobile/src/ui-kit/List/ListProps.ts +16 -0
- package/package.json +4 -4
- package/src/components/Accordion/Accordion.fixture.mobile.tsx +8 -8
- package/src/components/Accordion/Accordion.fixture.tsx +52 -8
- package/src/components/Accordion/Accordion.mobile.tsx +1 -1
- package/src/components/Accordion/Accordion.tsx +1 -1
- package/src/components/Accordion/AccordionBlocks.tsx +8 -0
- package/src/components/Accordion/AccordionContent.ts +49 -21
- package/src/components/Accordion/AccordionItem.mobile.tsx +1 -1
- package/src/components/Accordion/AccordionItem.tsx +1 -1
- package/src/components/BaseTile/BaseTile.tsx +10 -36
- package/src/components/BaseTile/BaseTileProps.ts +5 -7
- package/{mobile/src/components/BaseTile/getHeadingType.ts → src/components/BaseTile/getTileHeadingType.ts} +1 -1
- package/src/components/BaseTile/getTileMinHeight.ts +12 -0
- package/src/components/BaseTile/getTileRightPadding.ts +12 -0
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +3 -1
- package/src/components/BenefitsBlock/BenefitsBlockContent.ts +7 -4
- package/src/components/ComparisonTable/ComparisonTable.fixture.tsx +1 -0
- package/src/components/ComparisonTable/ComparisonTable.tsx +5 -1
- package/src/components/ComparisonTable/HeaderCell.tsx +2 -2
- package/src/components/ContentPage/ContentPage.fixture.mobile.tsx +3 -3
- package/src/components/ContentPage/ContentPage.fixture.tsx +3 -2
- package/src/components/ContentPage/ContentPage.page.json +1 -1
- package/src/components/ContentPage/ContentPage.tsx +2 -8
- package/src/components/ContentPage/isBlockInRegistry.ts +5 -0
- package/src/components/ContentPage/normalizeBlock.mobile.spec.ts +71 -0
- package/src/components/ContentPage/normalizeBlock.mobile.ts +6 -0
- package/src/components/ContentPage/normalizeBlock.spec.ts +50 -0
- package/src/components/ContentPage/normalizeBlock.ts +7 -0
- package/src/components/ContentPage/{toMobilePage.ts → normalizePage.mobile.ts} +13 -14
- package/src/components/ContentPage/normalizePage.ts +35 -0
- package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +60 -36
- package/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +3 -4
- package/src/components/Gallery/Gallery.fixture.mobile.tsx +103 -0
- package/src/components/Gallery/Gallery.fixture.tsx +5 -4
- package/src/components/Gallery/Gallery.mobile.tsx +57 -38
- package/src/components/Gallery/GalleryCardInner.tsx +8 -11
- package/src/components/Gallery/GalleryContainer.tsx +8 -9
- package/src/components/Gallery/GalleryContent.ts +9 -3
- package/src/components/Gallery/GalleryInner.tsx +1 -1
- package/src/components/Gallery/constants.ts +2 -2
- package/src/components/Header/HeaderSecondaryMenu.tsx +4 -4
- package/src/components/Headline/Headline.mobile.tsx +2 -2
- package/src/components/Headline/Headline.tsx +3 -1
- package/src/components/Headline/HeadlineContent.ts +11 -9
- package/src/components/LinkDocs/LinkDocs.mobile.tsx +10 -6
- package/src/components/LinkDocs/LinkDocs.tsx +4 -4
- package/src/components/LinkDocs/LinkDocsContent.ts +1 -1
- package/src/components/LinkDocs/LinkDocsList.tsx +1 -1
- package/src/components/LinkDocs/LinkDocsListItem.mobile.tsx +1 -1
- package/src/components/LinkDocs/LinkDocsListItem.tsx +1 -1
- package/src/components/LinkDocs/LinkDocsListItemBase.tsx +1 -1
- package/src/components/LinkDocs/LinkDocsVerticalList.tsx +1 -1
- package/src/components/LinkDocs/linkDocsContentExample.ts +0 -1
- package/src/components/MiniGallery/MiniGallery.fixture.tsx +1 -1
- package/src/components/MobileAppTile/MobileAppTile.tsx +47 -20
- package/src/components/MobileAppTile/MobileAppTileContent.ts +11 -15
- package/src/components/PictureText/PictureText.tsx +4 -3
- package/src/components/PictureText/PictureTextContent.ts +5 -2
- package/src/components/Placeholder/PlaceholderContent.ts +3 -3
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +3 -0
- package/src/components/ProductBlock/ProductBlockContent.ts +21 -10
- package/src/components/ProductBlock/ProductBlockInner.mobile.tsx +26 -11
- package/src/components/ProductBlock/ProductBlockInner.tsx +28 -12
- package/src/components/ProductBlock/renderBenefit.mobile.tsx +1 -0
- package/src/components/ProductBlock/renderBenefit.tsx +1 -0
- package/src/components/ProductGallery/ProductGallery.fixture.tsx +4 -0
- package/src/components/ProductGallery/ProductGallery.tsx +2 -2
- package/src/components/ProductGallery/ProductGalleryBlock.mobile.tsx +4 -4
- package/src/components/ProductGallery/ProductGalleryBlock.tsx +4 -4
- package/src/components/ProductGallery/ProductGalleryContent.ts +2 -2
- package/src/components/ProductTile/ProductTile.fixture.tsx +28 -0
- package/src/components/ProductTile/ProductTile.tsx +63 -15
- package/src/components/ProductTile/ProductTileContent.ts +17 -9
- package/src/components/PromoTile/PromoTile.tsx +41 -14
- package/src/components/PromoTile/PromoTileContent.ts +11 -5
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +2 -2
- package/src/components/StepsBlock/StepsBlock.tsx +1 -1
- package/src/components/TariffsTable/TariffsTable.tsx +5 -1
- package/src/components/TariffsTable/TariffsTableCell.tsx +3 -2
- package/src/components/TariffsTable/TariffsTableContent.ts +5 -11
- package/src/components/TariffsTable/TariffsTableRow.tsx +1 -0
- package/src/components/TextBlock/TextBlock.fixture.mobile.tsx +28 -13
- package/src/components/TextBlock/TextBlock.mobile.tsx +20 -16
- package/src/components/TextBlock/TextBlock.tsx +1 -1
- package/src/components/TextBlock/TextBlockContent.ts +4 -1
- package/src/components/Tile/Tile.fixture.tsx +37 -23
- package/src/components/Tile/Tile.tsx +46 -27
- package/src/components/Tile/TileContent.ts +13 -2
- package/src/content-page-repository/ContentPageRepository.ts +0 -12
- package/src/icons/ActualBalanceIcon.svg +0 -2
- package/src/icons/AtmIcon.svg +5 -5
- package/src/icons/BankIcon.svg +9 -9
- package/src/icons/BurgerIcon.svg +1 -1
- package/src/icons/BurgerIconWhite.svg +1 -1
- package/src/icons/Calendar2Icon.svg +1 -1
- package/src/icons/CalendarCircleIcon.svg +1 -1
- package/src/icons/CalendarIcon.svg +1 -1
- package/src/icons/CalendarTickIcon.svg +1 -1
- package/src/icons/CalendarWhiteIcon.svg +1 -1
- package/src/icons/CardIcon.svg +1 -1
- package/src/icons/CardPosIcon.svg +1 -1
- package/src/icons/CardTickIcon.svg +1 -1
- package/src/icons/CardWithGemIcon.svg +1 -1
- package/src/icons/ChartSquareIcon.svg +1 -1
- package/src/icons/ClockIcon.svg +0 -2
- package/src/icons/CloseIcon.svg +1 -1
- package/src/icons/ComfortableCompIcon.svg +0 -2
- package/src/icons/CreditCardsIcon.svg +1 -1
- package/src/icons/DiscountShapeIcon.svg +1 -1
- package/src/icons/DocIcon.svg +4 -4
- package/src/icons/DocIconMonoColor.svg +5 -0
- package/src/icons/DocumentTextIcon.svg +3 -3
- package/src/icons/DollarIcon.svg +1 -1
- package/src/icons/EarthIcon.svg +1 -1
- package/src/icons/EmptyWalletChangeIcon.svg +1 -1
- package/src/icons/EmptyWalletIcon.svg +1 -1
- package/src/icons/EmptyWalletWhiteIcon.svg +1 -1
- package/src/icons/EuroIcon.svg +1 -1
- package/src/icons/GeolocationIcon.svg +3 -3
- package/src/icons/GlobalIcon.svg +1 -1
- package/src/icons/IconName.ts +3 -3
- package/src/icons/InterestGrowthIcon.svg +1 -1
- package/src/icons/InterestIcon.svg +1 -1
- package/src/icons/JCBIcon.svg +1 -1
- package/src/icons/MasterCardIcon.svg +1 -1
- package/src/icons/MinusIcon.svg +1 -1
- package/src/icons/MirIcon.svg +1 -1
- package/src/icons/MoneyIcon.svg +1 -1
- package/src/icons/MoneyInsuranceIcon.svg +1 -1
- package/src/icons/MonitorMobileIcon.svg +1 -1
- package/src/icons/NewDocIcon.svg +0 -2
- package/src/icons/OfficeIcon.svg +1 -1
- package/src/icons/OkIcon.svg +1 -1
- package/src/icons/PassSendIcon.svg +0 -2
- package/src/icons/PercentageRoundIcon.svg +1 -1
- package/src/icons/PercentageSquareIcon.svg +1 -1
- package/src/icons/PercentageSquareWhiteIcon.svg +1 -1
- package/src/icons/PersonalCardIcon.svg +1 -1
- package/src/icons/PlusIcon.svg +1 -1
- package/src/icons/Profile2UserIcon.svg +1 -1
- package/src/icons/RoundRubleIcon.svg +1 -1
- package/src/icons/SafeIcon.svg +1 -1
- package/src/icons/ShieldTickIcon.svg +1 -1
- package/src/icons/SignDocsIcon.svg +0 -2
- package/src/icons/SmallClockIcon.svg +1 -1
- package/src/icons/TelegramIcon.svg +2 -1
- package/src/icons/UnionPayIcon.svg +1 -1
- package/src/icons/UserTickIcon.svg +1 -1
- package/src/icons/VKIcon.svg +2 -1
- package/src/icons/VisaIcon.svg +1 -1
- package/src/icons/WalletAdd2Icon.svg +1 -1
- package/src/icons/WalletAddIcon.svg +1 -1
- package/src/icons/WalletIcon.svg +1 -1
- package/src/icons/WalletWithMoneyIcon.svg +1 -1
- package/src/index.ts +1 -1
- package/src/model/ButtonVersion.ts +1 -1
- package/src/types.ts +6 -5
- package/src/ui-kit/BlockItem/BlockItem.tsx +11 -14
- package/src/ui-kit/BlockItem/BlockItemProps.ts +2 -2
- package/src/ui-kit/Button/Button.fixture.tsx +2 -2
- package/src/ui-kit/Button/Button.mobile.tsx +11 -24
- package/src/ui-kit/Button/Button.tsx +55 -51
- package/src/ui-kit/Button/ButtonInner.tsx +37 -0
- package/src/ui-kit/Button/ButtonProps.ts +11 -0
- package/src/ui-kit/Button/ButtonSection.tsx +34 -0
- package/src/ui-kit/Description/Description.tsx +8 -0
- package/src/ui-kit/Description/DescriptionProps.ts +8 -0
- package/src/ui-kit/Heading/Heading.fixture.mobile.tsx +7 -6
- package/src/ui-kit/Heading/Heading.fixture.tsx +6 -6
- package/src/ui-kit/Heading/Heading.mobile.tsx +14 -5
- package/src/ui-kit/Heading/Heading.tsx +14 -5
- package/src/ui-kit/Heading/{HeadingProps.ts → HeadingContent.ts} +7 -4
- package/src/ui-kit/Icon/Icon.fixture.tsx +13 -2
- package/src/ui-kit/Icon/Icon.tsx +16 -3
- package/src/ui-kit/Icon/IconProps.ts +7 -0
- package/src/ui-kit/{Img.mobile.tsx → Img/Img.mobile.tsx} +9 -10
- package/src/ui-kit/{Img.tsx → Img/Img.tsx} +1 -1
- package/src/ui-kit/Img/ImgProps.ts +9 -0
- package/src/ui-kit/List/List.tsx +24 -0
- package/src/ui-kit/List/ListContent.ts +4 -0
- package/src/ui-kit/List/ListItem.tsx +43 -0
- package/src/ui-kit/List/ListProps.ts +16 -0
- package/dist/components/BaseTile/BaseTile.mobile.d.ts +0 -5
- package/dist/components/BaseTile/BaseTile.mobile.js +0 -17
- package/dist/components/BaseTile/BaseTile.mobile.js.map +0 -1
- package/dist/components/BaseTile/BaseTileInner.d.ts +0 -5
- package/dist/components/BaseTile/BaseTileInner.js +0 -14
- package/dist/components/BaseTile/BaseTileInner.js.map +0 -1
- package/dist/components/BaseTile/BaseTileInner.mobile.d.ts +0 -5
- package/dist/components/BaseTile/BaseTileInner.mobile.js +0 -14
- package/dist/components/BaseTile/BaseTileInner.mobile.js.map +0 -1
- package/dist/components/BaseTile/getHeadingType.d.ts +0 -1
- package/dist/components/BaseTile/getHeadingType.js.map +0 -1
- package/dist/components/BaseTile/renderButton.d.ts +0 -2
- package/dist/components/BaseTile/renderButton.js +0 -12
- package/dist/components/BaseTile/renderButton.js.map +0 -1
- package/dist/components/BaseTile/renderButton.mobile.d.ts +0 -2
- package/dist/components/BaseTile/renderButton.mobile.js +0 -13
- package/dist/components/BaseTile/renderButton.mobile.js.map +0 -1
- package/dist/components/BaseTile/renderItems.d.ts +0 -2
- package/dist/components/BaseTile/renderItems.js +0 -9
- package/dist/components/BaseTile/renderItems.js.map +0 -1
- package/dist/components/BaseTile/renderItems.mobile.d.ts +0 -2
- package/dist/components/BaseTile/renderItems.mobile.js +0 -9
- package/dist/components/BaseTile/renderItems.mobile.js.map +0 -1
- package/dist/components/ContentPage/toMobilePage.d.ts +0 -2
- package/dist/components/ContentPage/toMobilePage.js +0 -34
- package/dist/components/ContentPage/toMobilePage.js.map +0 -1
- package/dist/ui-kit/Heading/HeadingProps.js.map +0 -1
- package/dist/ui-kit/Img.js.map +0 -1
- package/dist/ui-kit/Img.mobile.js.map +0 -1
- package/lib/components/BaseTile/BaseTile.mobile.d.ts +0 -5
- package/lib/components/BaseTile/BaseTile.mobile.js +0 -15
- package/lib/components/BaseTile/BaseTile.mobile.js.map +0 -1
- package/lib/components/BaseTile/BaseTileInner.d.ts +0 -5
- package/lib/components/BaseTile/BaseTileInner.js +0 -12
- package/lib/components/BaseTile/BaseTileInner.js.map +0 -1
- package/lib/components/BaseTile/BaseTileInner.mobile.d.ts +0 -5
- package/lib/components/BaseTile/BaseTileInner.mobile.js +0 -12
- package/lib/components/BaseTile/BaseTileInner.mobile.js.map +0 -1
- package/lib/components/BaseTile/getHeadingType.d.ts +0 -1
- package/lib/components/BaseTile/getHeadingType.js.map +0 -1
- package/lib/components/BaseTile/renderButton.d.ts +0 -2
- package/lib/components/BaseTile/renderButton.js +0 -9
- package/lib/components/BaseTile/renderButton.js.map +0 -1
- package/lib/components/BaseTile/renderButton.mobile.d.ts +0 -2
- package/lib/components/BaseTile/renderButton.mobile.js +0 -10
- package/lib/components/BaseTile/renderButton.mobile.js.map +0 -1
- package/lib/components/BaseTile/renderItems.d.ts +0 -2
- package/lib/components/BaseTile/renderItems.js +0 -6
- package/lib/components/BaseTile/renderItems.js.map +0 -1
- package/lib/components/BaseTile/renderItems.mobile.d.ts +0 -2
- package/lib/components/BaseTile/renderItems.mobile.js +0 -6
- package/lib/components/BaseTile/renderItems.mobile.js.map +0 -1
- package/lib/components/ContentPage/toMobilePage.d.ts +0 -2
- package/lib/components/ContentPage/toMobilePage.js.map +0 -1
- package/lib/ui-kit/Heading/HeadingProps.js +0 -2
- package/lib/ui-kit/Heading/HeadingProps.js.map +0 -1
- package/lib/ui-kit/Img.js.map +0 -1
- package/lib/ui-kit/Img.mobile.js.map +0 -1
- package/mobile/dist/components/BaseTile/BaseTileInner.d.ts +0 -5
- package/mobile/dist/components/BaseTile/BaseTileInner.js +0 -14
- package/mobile/dist/components/BaseTile/BaseTileInner.js.map +0 -1
- package/mobile/dist/components/BaseTile/getHeadingType.d.ts +0 -1
- package/mobile/dist/components/BaseTile/getHeadingType.js.map +0 -1
- package/mobile/dist/components/BaseTile/renderButton.d.ts +0 -2
- package/mobile/dist/components/BaseTile/renderButton.js +0 -13
- package/mobile/dist/components/BaseTile/renderButton.js.map +0 -1
- package/mobile/dist/components/BaseTile/renderItems.d.ts +0 -2
- package/mobile/dist/components/BaseTile/renderItems.js +0 -9
- package/mobile/dist/components/BaseTile/renderItems.js.map +0 -1
- package/mobile/dist/components/ContentPage/toMobilePage.d.ts +0 -2
- package/mobile/dist/components/ContentPage/toMobilePage.js +0 -34
- package/mobile/dist/components/ContentPage/toMobilePage.js.map +0 -1
- package/mobile/dist/ui-kit/Heading/HeadingProps.js.map +0 -1
- package/mobile/dist/ui-kit/Img.js.map +0 -1
- package/mobile/lib/components/BaseTile/BaseTileInner.d.ts +0 -5
- package/mobile/lib/components/BaseTile/BaseTileInner.js +0 -12
- package/mobile/lib/components/BaseTile/BaseTileInner.js.map +0 -1
- package/mobile/lib/components/BaseTile/getHeadingType.d.ts +0 -1
- package/mobile/lib/components/BaseTile/getHeadingType.js.map +0 -1
- package/mobile/lib/components/BaseTile/renderButton.d.ts +0 -2
- package/mobile/lib/components/BaseTile/renderButton.js +0 -10
- package/mobile/lib/components/BaseTile/renderButton.js.map +0 -1
- package/mobile/lib/components/BaseTile/renderItems.d.ts +0 -2
- package/mobile/lib/components/BaseTile/renderItems.js +0 -6
- package/mobile/lib/components/BaseTile/renderItems.js.map +0 -1
- package/mobile/lib/components/ContentPage/toMobilePage.d.ts +0 -2
- package/mobile/lib/components/ContentPage/toMobilePage.js.map +0 -1
- package/mobile/lib/ui-kit/Heading/HeadingProps.js +0 -2
- package/mobile/lib/ui-kit/Heading/HeadingProps.js.map +0 -1
- package/mobile/lib/ui-kit/Img.js.map +0 -1
- package/mobile/src/components/BaseTile/BaseTileInner.tsx +0 -31
- package/mobile/src/components/BaseTile/renderButton.tsx +0 -20
- package/mobile/src/components/BaseTile/renderItems.tsx +0 -12
- package/src/components/BaseTile/BaseTile.mobile.tsx +0 -52
- package/src/components/BaseTile/BaseTileInner.mobile.tsx +0 -31
- package/src/components/BaseTile/BaseTileInner.tsx +0 -37
- package/src/components/BaseTile/renderButton.mobile.tsx +0 -20
- package/src/components/BaseTile/renderButton.tsx +0 -17
- package/src/components/BaseTile/renderItems.mobile.tsx +0 -12
- package/src/components/BaseTile/renderItems.tsx +0 -12
- package/src/components/ContentPage/ContentPage.page.mobile.json +0 -508
package/dist/icons/IconName.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export declare enum IconMap {
|
|
|
21
21
|
CreditCardsIcon = "CreditCardsIcon",
|
|
22
22
|
DiscountShapeIcon = "DiscountShapeIcon",
|
|
23
23
|
DocIcon = "DocIcon",
|
|
24
|
+
DocIconMonoColor = "DocIconMonoColor",
|
|
24
25
|
DocumentTextIcon = "DocumentTextIcon",
|
|
25
26
|
DollarIcon = "DollarIcon",
|
|
26
27
|
EarthIcon = "EarthIcon",
|
|
@@ -75,7 +76,7 @@ export declare enum IconMap {
|
|
|
75
76
|
* @title Иконка
|
|
76
77
|
* @enumNames [
|
|
77
78
|
* "",
|
|
78
|
-
* "Деньги", "Лого «Apple»", "Банкомат", "Банк", "Бургер", "Бургер (белый)", "Календарь 2", "Скруглённый календарь", "Календарь", "Календарь с галочкой", "Календарь белый", "Кред. карта", "Кред. карта под наклоном", "Кред. карта с галочкой", "Карта с драгоценностями", "Деньги внутри кошелька", "Часы", "Крестик", "Кресло", "Кредитные карты", "Скидка", "Документ", "Документ с текстом", "Доллар", "Земля", "Пустой кошелёк с возвратом", "Пустой кошелёк", "Пустой кошелёк (белый)", "Евро", "Геолокация", "Зеркало", "Глобус", "Сетка", "Сетка (белая)", "Диаграмма роста", "Скидка", "JCB", "Лупа", "MasterCard", "Минус", "МИР", "Деньги", "Денежное страхование", "Монитор и мобильный", "Новый документ", "Офис", "Лого «Одноклассники»", "Бизнес", "Проценты (круг.)", "Проценты", "Проценты белые", "Персональная карта", "Лого «PlayMarket»", "Плюс", "Профиль, 2 персоны", "Профиль", "Рубль (круг.)", "Сейф", "Безопасность", "Подписанные документы", "Маленькие часы", "Лого «Telegram»", "UnionPay", "Пользователь", "Visa", "Лого «VK»", "Пополнение карты", "Кошелёк с плюсом", "Кошелёк", "Кошелёк с деньгами"
|
|
79
|
+
* "Деньги", "Лого «Apple»", "Банкомат", "Банк", "Бургер", "Бургер (белый)", "Календарь 2", "Скруглённый календарь", "Календарь", "Календарь с галочкой", "Календарь белый", "Кред. карта", "Кред. карта под наклоном", "Кред. карта с галочкой", "Карта с драгоценностями", "Деньги внутри кошелька", "Часы", "Крестик", "Кресло", "Кредитные карты", "Скидка", "Документ", "Документ (одноцветный)", "Документ с текстом", "Доллар", "Земля", "Пустой кошелёк с возвратом", "Пустой кошелёк", "Пустой кошелёк (белый)", "Евро", "Геолокация", "Зеркало", "Глобус", "Сетка", "Сетка (белая)", "Диаграмма роста", "Скидка", "JCB", "Лупа", "MasterCard", "Минус", "МИР", "Деньги", "Денежное страхование", "Монитор и мобильный", "Новый документ", "Офис", "Лого «Одноклассники»", "Бизнес", "Проценты (круг.)", "Проценты", "Проценты белые", "Персональная карта", "Лого «PlayMarket»", "Плюс", "Профиль, 2 персоны", "Профиль", "Рубль (круг.)", "Сейф", "Безопасность", "Подписанные документы", "Маленькие часы", "Лого «Telegram»", "UnionPay", "Пользователь", "Visa", "Лого «VK»", "Пополнение карты", "Кошелёк с плюсом", "Кошелёк", "Кошелёк с деньгами"
|
|
79
80
|
* ]
|
|
80
81
|
*/
|
|
81
|
-
export declare type IconName = "" | "ActualBalanceIcon" | "AppleIcon" | "AtmIcon" | "BankIcon" | "BurgerIcon" | "BurgerIconWhite" | "Calendar2Icon" | "CalendarCircleIcon" | "CalendarIcon" | "CalendarTickIcon" | "CalendarWhiteIcon" | "CardIcon" | "CardPosIcon" | "CardTickIcon" | "CardWithGemIcon" | "ChartSquareIcon" | "ClockIcon" | "CloseIcon" | "ComfortableCompIcon" | "CreditCardsIcon" | "DiscountShapeIcon" | "DocIcon" | "DocumentTextIcon" | "DollarIcon" | "EarthIcon" | "EmptyWalletChangeIcon" | "EmptyWalletIcon" | "EmptyWalletWhiteIcon" | "EuroIcon" | "GeolocationIcon" | "GlassIcon" | "GlobalIcon" | "GridIcon" | "GridIconWhite" | "InterestGrowthIcon" | "InterestIcon" | "JCBIcon" | "LoupeIcon" | "MasterCardIcon" | "MinusIcon" | "MirIcon" | "MoneyIcon" | "MoneyInsuranceIcon" | "MonitorMobileIcon" | "NewDocIcon" | "OfficeIcon" | "OkIcon" | "PassSendIcon" | "PercentageRoundIcon" | "PercentageSquareIcon" | "PercentageSquareWhiteIcon" | "PersonalCardIcon" | "PlayMarketIcon" | "PlusIcon" | "Profile2UserIcon" | "ProfileIcon" | "RoundRubleIcon" | "SafeIcon" | "ShieldTickIcon" | "SignDocsIcon" | "SmallClockIcon" | "TelegramIcon" | "UnionPayIcon" | "UserTickIcon" | "VisaIcon" | "VKIcon" | "WalletAdd2Icon" | "WalletAddIcon" | "WalletIcon" | "WalletWithMoneyIcon";
|
|
82
|
+
export declare type IconName = "" | "ActualBalanceIcon" | "AppleIcon" | "AtmIcon" | "BankIcon" | "BurgerIcon" | "BurgerIconWhite" | "Calendar2Icon" | "CalendarCircleIcon" | "CalendarIcon" | "CalendarTickIcon" | "CalendarWhiteIcon" | "CardIcon" | "CardPosIcon" | "CardTickIcon" | "CardWithGemIcon" | "ChartSquareIcon" | "ClockIcon" | "CloseIcon" | "ComfortableCompIcon" | "CreditCardsIcon" | "DiscountShapeIcon" | "DocIcon" | "DocIconMonoColor" | "DocumentTextIcon" | "DollarIcon" | "EarthIcon" | "EmptyWalletChangeIcon" | "EmptyWalletIcon" | "EmptyWalletWhiteIcon" | "EuroIcon" | "GeolocationIcon" | "GlassIcon" | "GlobalIcon" | "GridIcon" | "GridIconWhite" | "InterestGrowthIcon" | "InterestIcon" | "JCBIcon" | "LoupeIcon" | "MasterCardIcon" | "MinusIcon" | "MirIcon" | "MoneyIcon" | "MoneyInsuranceIcon" | "MonitorMobileIcon" | "NewDocIcon" | "OfficeIcon" | "OkIcon" | "PassSendIcon" | "PercentageRoundIcon" | "PercentageSquareIcon" | "PercentageSquareWhiteIcon" | "PersonalCardIcon" | "PlayMarketIcon" | "PlusIcon" | "Profile2UserIcon" | "ProfileIcon" | "RoundRubleIcon" | "SafeIcon" | "ShieldTickIcon" | "SignDocsIcon" | "SmallClockIcon" | "TelegramIcon" | "UnionPayIcon" | "UserTickIcon" | "VisaIcon" | "VKIcon" | "WalletAdd2Icon" | "WalletAddIcon" | "WalletIcon" | "WalletWithMoneyIcon";
|
package/dist/icons/IconName.js
CHANGED
|
@@ -25,6 +25,7 @@ var IconMap;
|
|
|
25
25
|
IconMap["CreditCardsIcon"] = "CreditCardsIcon";
|
|
26
26
|
IconMap["DiscountShapeIcon"] = "DiscountShapeIcon";
|
|
27
27
|
IconMap["DocIcon"] = "DocIcon";
|
|
28
|
+
IconMap["DocIconMonoColor"] = "DocIconMonoColor";
|
|
28
29
|
IconMap["DocumentTextIcon"] = "DocumentTextIcon";
|
|
29
30
|
IconMap["DollarIcon"] = "DollarIcon";
|
|
30
31
|
IconMap["EarthIcon"] = "EarthIcon";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconName.js","sourceRoot":"","sources":["../../src/icons/IconName.ts"],"names":[],"mappings":"AACA,0BAA0B;;;AAE1B,IAAY,OAEX;AAFD,WAAY,OAAO;IACjB,kDAAuC,CAAA;IAAE,kCAAuB,CAAA;IAAE,8BAAmB,CAAA;IAAE,gCAAqB,CAAA;IAAE,oCAAyB,CAAA;IAAE,8CAAmC,CAAA;IAAE,0CAA+B,CAAA;IAAE,oDAAyC,CAAA;IAAE,wCAA6B,CAAA;IAAE,gDAAqC,CAAA;IAAE,kDAAuC,CAAA;IAAE,gCAAqB,CAAA;IAAE,sCAA2B,CAAA;IAAE,wCAA6B,CAAA;IAAE,8CAAmC,CAAA;IAAE,8CAAmC,CAAA;IAAE,kCAAuB,CAAA;IAAE,kCAAuB,CAAA;IAAE,sDAA2C,CAAA;IAAE,8CAAmC,CAAA;IAAE,kDAAuC,CAAA;IAAE,8BAAmB,CAAA;IAAE,gDAAqC,CAAA;IAAE,oCAAyB,CAAA;IAAE,kCAAuB,CAAA;IAAE,0DAA+C,CAAA;IAAE,8CAAmC,CAAA;IAAE,wDAA6C,CAAA;IAAE,gCAAqB,CAAA;IAAE,8CAAmC,CAAA;IAAE,kCAAuB,CAAA;IAAE,oCAAyB,CAAA;IAAE,gCAAqB,CAAA;IAAE,0CAA+B,CAAA;IAAE,oDAAyC,CAAA;IAAE,wCAA6B,CAAA;IAAE,8BAAmB,CAAA;IAAE,kCAAuB,CAAA;IAAE,4CAAiC,CAAA;IAAE,kCAAuB,CAAA;IAAE,8BAAmB,CAAA;IAAE,kCAAuB,CAAA;IAAE,oDAAyC,CAAA;IAAE,kDAAuC,CAAA;IAAE,oCAAyB,CAAA;IAAE,oCAAyB,CAAA;IAAE,4BAAiB,CAAA;IAAE,wCAA6B,CAAA;IAAE,sDAA2C,CAAA;IAAE,wDAA6C,CAAA;IAAE,kEAAuD,CAAA;IAAE,gDAAqC,CAAA;IAAE,4CAAiC,CAAA;IAAE,gCAAqB,CAAA;IAAE,gDAAqC,CAAA;IAAE,sCAA2B,CAAA;IAAE,4CAAiC,CAAA;IAAE,gCAAqB,CAAA;IAAE,4CAAiC,CAAA;IAAE,wCAA6B,CAAA;IAAE,4CAAiC,CAAA;IAAE,wCAA6B,CAAA;IAAE,wCAA6B,CAAA;IAAE,wCAA6B,CAAA;IAAE,gCAAqB,CAAA;IAAE,4BAAiB,CAAA;IAAE,4CAAiC,CAAA;IAAE,0CAA+B,CAAA;IAAE,oCAAyB,CAAA;IAAE,sDAA2C,CAAA;
|
|
1
|
+
{"version":3,"file":"IconName.js","sourceRoot":"","sources":["../../src/icons/IconName.ts"],"names":[],"mappings":"AACA,0BAA0B;;;AAE1B,IAAY,OAEX;AAFD,WAAY,OAAO;IACjB,kDAAuC,CAAA;IAAE,kCAAuB,CAAA;IAAE,8BAAmB,CAAA;IAAE,gCAAqB,CAAA;IAAE,oCAAyB,CAAA;IAAE,8CAAmC,CAAA;IAAE,0CAA+B,CAAA;IAAE,oDAAyC,CAAA;IAAE,wCAA6B,CAAA;IAAE,gDAAqC,CAAA;IAAE,kDAAuC,CAAA;IAAE,gCAAqB,CAAA;IAAE,sCAA2B,CAAA;IAAE,wCAA6B,CAAA;IAAE,8CAAmC,CAAA;IAAE,8CAAmC,CAAA;IAAE,kCAAuB,CAAA;IAAE,kCAAuB,CAAA;IAAE,sDAA2C,CAAA;IAAE,8CAAmC,CAAA;IAAE,kDAAuC,CAAA;IAAE,8BAAmB,CAAA;IAAE,gDAAqC,CAAA;IAAE,gDAAqC,CAAA;IAAE,oCAAyB,CAAA;IAAE,kCAAuB,CAAA;IAAE,0DAA+C,CAAA;IAAE,8CAAmC,CAAA;IAAE,wDAA6C,CAAA;IAAE,gCAAqB,CAAA;IAAE,8CAAmC,CAAA;IAAE,kCAAuB,CAAA;IAAE,oCAAyB,CAAA;IAAE,gCAAqB,CAAA;IAAE,0CAA+B,CAAA;IAAE,oDAAyC,CAAA;IAAE,wCAA6B,CAAA;IAAE,8BAAmB,CAAA;IAAE,kCAAuB,CAAA;IAAE,4CAAiC,CAAA;IAAE,kCAAuB,CAAA;IAAE,8BAAmB,CAAA;IAAE,kCAAuB,CAAA;IAAE,oDAAyC,CAAA;IAAE,kDAAuC,CAAA;IAAE,oCAAyB,CAAA;IAAE,oCAAyB,CAAA;IAAE,4BAAiB,CAAA;IAAE,wCAA6B,CAAA;IAAE,sDAA2C,CAAA;IAAE,wDAA6C,CAAA;IAAE,kEAAuD,CAAA;IAAE,gDAAqC,CAAA;IAAE,4CAAiC,CAAA;IAAE,gCAAqB,CAAA;IAAE,gDAAqC,CAAA;IAAE,sCAA2B,CAAA;IAAE,4CAAiC,CAAA;IAAE,gCAAqB,CAAA;IAAE,4CAAiC,CAAA;IAAE,wCAA6B,CAAA;IAAE,4CAAiC,CAAA;IAAE,wCAA6B,CAAA;IAAE,wCAA6B,CAAA;IAAE,wCAA6B,CAAA;IAAE,gCAAqB,CAAA;IAAE,4BAAiB,CAAA;IAAE,4CAAiC,CAAA;IAAE,0CAA+B,CAAA;IAAE,oCAAyB,CAAA;IAAE,sDAA2C,CAAA;AACjwE,CAAC,EAFW,OAAO,GAAP,eAAO,KAAP,eAAO,QAElB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export { ContentPage } from './components/ContentPage/ContentPage';
|
|
|
7
7
|
export type { BlockDecorator } from './components/ContentPage/ContentPage';
|
|
8
8
|
export type { AsyncDataHook, ContentPageContext, GeolocationHook, HandlerDecorator, LikeService, Router, Search, } from './components/ContentPage/ContentPageContext';
|
|
9
9
|
export { ContentPageHead } from './components/ContentPage/ContentPageHead';
|
|
10
|
-
export {
|
|
10
|
+
export { normalizePage } from './components/ContentPage/normalizePage';
|
|
11
11
|
export { Header } from './components/Header/Header';
|
|
12
12
|
export type { Img, ImgSource, Picture } from './model/Picture';
|
|
13
13
|
export { projectSettings } from './ProjectSettings';
|
package/dist/index.js
CHANGED
|
@@ -22,7 +22,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
22
22
|
return result;
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.url = exports.joinList = exports.Icon = exports.projectSettings = exports.Header = exports.
|
|
25
|
+
exports.url = exports.joinList = exports.Icon = exports.projectSettings = exports.Header = exports.normalizePage = exports.ContentPageHead = exports.ContentPage = exports.Blocks = exports.LikeAPI = exports.DaDataAPI = exports.setup = void 0;
|
|
26
26
|
var uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
27
27
|
Object.defineProperty(exports, "setup", { enumerable: true, get: function () { return uni_jsx_1.setup; } });
|
|
28
28
|
var DaDataAPI_1 = require("./api/DaDataAPI");
|
|
@@ -35,8 +35,8 @@ var ContentPage_1 = require("./components/ContentPage/ContentPage");
|
|
|
35
35
|
Object.defineProperty(exports, "ContentPage", { enumerable: true, get: function () { return ContentPage_1.ContentPage; } });
|
|
36
36
|
var ContentPageHead_1 = require("./components/ContentPage/ContentPageHead");
|
|
37
37
|
Object.defineProperty(exports, "ContentPageHead", { enumerable: true, get: function () { return ContentPageHead_1.ContentPageHead; } });
|
|
38
|
-
var
|
|
39
|
-
Object.defineProperty(exports, "
|
|
38
|
+
var normalizePage_1 = require("./components/ContentPage/normalizePage");
|
|
39
|
+
Object.defineProperty(exports, "normalizePage", { enumerable: true, get: function () { return normalizePage_1.normalizePage; } });
|
|
40
40
|
var Header_1 = require("./components/Header/Header");
|
|
41
41
|
Object.defineProperty(exports, "Header", { enumerable: true, get: function () { return Header_1.Header; } });
|
|
42
42
|
var ProjectSettings_1 = require("./ProjectSettings");
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA0C;AAAjC,gGAAA,KAAK,OAAA;AACd,6CAA4C;AAAnC,sGAAA,SAAS,OAAA;AAClB,yCAAwC;AAA/B,kGAAA,OAAO,OAAA;AAEhB,8CAA6C;AAApC,gGAAA,MAAM,OAAA;AACf,oEAAmE;AAA1D,0GAAA,WAAW,OAAA;AAWpB,4EAA2E;AAAlE,kHAAA,eAAe,OAAA;AACxB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA0C;AAAjC,gGAAA,KAAK,OAAA;AACd,6CAA4C;AAAnC,sGAAA,SAAS,OAAA;AAClB,yCAAwC;AAA/B,kGAAA,OAAO,OAAA;AAEhB,8CAA6C;AAApC,gGAAA,MAAM,OAAA;AACf,oEAAmE;AAA1D,0GAAA,WAAW,OAAA;AAWpB,4EAA2E;AAAlE,kHAAA,eAAe,OAAA;AACxB,wEAAuE;AAA9D,8GAAA,aAAa,OAAA;AACtB,qDAAoD;AAA3C,gGAAA,MAAM,OAAA;AAEf,qDAAoD;AAA3C,kHAAA,eAAe,OAAA;AAWxB,2CAA0C;AAAjC,4FAAA,IAAI,OAAA;AACb,6CAA4C;AAAnC,oGAAA,QAAQ,OAAA;AACjB,mDAAmC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -2,15 +2,15 @@ import type { BlockContent } from './components/BlockContent';
|
|
|
2
2
|
import type { ContentPageContext } from './components/ContentPage/ContentPageContext';
|
|
3
3
|
import type { BlockVersion } from './model/BlockVersion';
|
|
4
4
|
export declare type ColorPalette = 'pc' | 'bc' | 'eo' | 'eo2' | 'eo3' | 'eo4';
|
|
5
|
-
export interface
|
|
5
|
+
export interface BaseBlockDef {
|
|
6
6
|
type: string;
|
|
7
7
|
style?: string[];
|
|
8
8
|
content?: BlockContent;
|
|
9
9
|
version?: BlockVersion;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
hidden?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface BlockDef extends BaseBlockDef {
|
|
13
|
+
mobile?: BaseBlockDef;
|
|
14
14
|
}
|
|
15
15
|
export interface Slot {
|
|
16
16
|
style?: string[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BlockItemProps } from './BlockItemProps';
|
|
1
|
+
import type { BlockItemProps } from './BlockItemProps';
|
|
2
2
|
export declare const BlockItem: (props: import("@redneckz/uni-jsx").PropsWithChildren<BlockItemProps, any>, context?: any) => any;
|
|
@@ -5,20 +5,19 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
|
5
5
|
const LIST_STYLE_CLASSES = 'rounded-full inline-block mr-3';
|
|
6
6
|
const TEXT_STYLE_MAP = {
|
|
7
7
|
primary: 'text-primary-text',
|
|
8
|
-
secondary: '',
|
|
8
|
+
secondary: 'text-white',
|
|
9
|
+
gray: 'text-secondary-text',
|
|
9
10
|
};
|
|
10
11
|
const LIST_STYLE_MAP = {
|
|
11
12
|
primary: 'bg-primary-main',
|
|
12
13
|
secondary: 'bg-white',
|
|
14
|
+
gray: 'bg-secondary-text',
|
|
13
15
|
};
|
|
14
|
-
exports.BlockItem = (0, uni_jsx_1.JSX)(({ className = '', isDotted = true, text, children, version = 'primary'
|
|
15
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: `font-sans flex items-
|
|
16
|
+
exports.BlockItem = (0, uni_jsx_1.JSX)(({ className = '', isDotted = true, text, children, version = 'primary' }) => {
|
|
17
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: `font-sans flex items-center ${className}`, role: "listitem", children: [isDotted && (0, jsx_runtime_1.jsx)("div", { className: getListStyle(version) }), (0, jsx_runtime_1.jsx)("span", { className: TEXT_STYLE_MAP[version], children: text || children })] }));
|
|
16
18
|
});
|
|
17
|
-
const getListStyle = (version
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
? 'w-2 h-2 min-w-2 min-h-2 mt-2'
|
|
21
|
-
: 'w-[6px] h-[6px] min-w-[6px] min-h-[6px] mt-2.5';
|
|
22
|
-
return `${LIST_STYLE_CLASSES} ${color} ${size}`;
|
|
19
|
+
const getListStyle = (version) => {
|
|
20
|
+
const size = version === 'gray' ? 'w-[6px] h-[6px] min-w-[6px] min-h-[6px]' : 'w-2 h-2 min-w-2 min-h-2';
|
|
21
|
+
return `${LIST_STYLE_CLASSES} ${LIST_STYLE_MAP[version]} ${size}`;
|
|
23
22
|
};
|
|
24
23
|
//# sourceMappingURL=BlockItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockItem.js","sourceRoot":"","sources":["../../../src/ui-kit/BlockItem/BlockItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"BlockItem.js","sourceRoot":"","sources":["../../../src/ui-kit/BlockItem/BlockItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,MAAM,kBAAkB,GAAG,gCAAgC,CAAC;AAE5D,MAAM,cAAc,GAAqC;IACvD,OAAO,EAAE,mBAAmB;IAC5B,SAAS,EAAE,YAAY;IACvB,IAAI,EAAE,qBAAqB;CAC5B,CAAC;AAEF,MAAM,cAAc,GAAqC;IACvD,OAAO,EAAE,iBAAiB;IAC1B,SAAS,EAAE,UAAU;IACrB,IAAI,EAAE,mBAAmB;CAC1B,CAAC;AAEW,QAAA,SAAS,GAAG,IAAA,aAAG,EAC1B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,GAAG,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,GAAG,SAAS,EAAE,EAAE,EAAE;IAC3E,OAAO,CACL,iCAAK,SAAS,EAAE,+BAA+B,SAAS,EAAE,EAAE,IAAI,EAAC,UAAU,aACxE,QAAQ,IAAI,gCAAK,SAAS,EAAE,YAAY,CAAC,OAAO,CAAC,GAAI,EACtD,iCAAM,SAAS,EAAE,cAAc,CAAC,OAAO,CAAC,YAAG,IAAI,IAAI,QAAQ,GAAQ,IAC/D,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,OAAyB,EAAE,EAAE;IACjD,MAAM,IAAI,GACR,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,yCAAyC,CAAC,CAAC,CAAC,yBAAyB,CAAC;IAC7F,OAAO,GAAG,kBAAkB,IAAI,cAAc,CAAC,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC;AACpE,CAAC,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @title Версия списка
|
|
3
|
+
* @enumNames ["Основной", "Второстепенный", "Белый"]
|
|
3
4
|
*/
|
|
4
|
-
export declare type BlockItemVersion = 'primary' | 'secondary';
|
|
5
|
+
export declare type BlockItemVersion = 'primary' | 'secondary' | 'gray';
|
|
5
6
|
/**
|
|
6
7
|
* @title Содержимое элемента блока
|
|
7
8
|
*/
|
|
@@ -15,7 +16,6 @@ export interface BlockItemContent {
|
|
|
15
16
|
export interface BlockItemProps extends BlockItemContent {
|
|
16
17
|
className?: string;
|
|
17
18
|
version?: BlockItemVersion;
|
|
18
|
-
white?: boolean;
|
|
19
19
|
/** @title Маркер */
|
|
20
20
|
isDotted?: boolean;
|
|
21
21
|
}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import type { ButtonProps, ButtonWithIconProps } from './ButtonProps';
|
|
2
2
|
export interface ButtonCommonProps extends ButtonProps, ButtonWithIconProps {
|
|
3
3
|
}
|
|
4
|
-
export declare type ButtonInner = Pick<ButtonCommonProps, 'text' | 'aboveText' | 'appendLeft' | 'rounded'>;
|
|
5
4
|
export declare const Button: (props: import("@redneckz/uni-jsx").PropsWithChildren<ButtonCommonProps, any>, context?: any) => any;
|
|
6
|
-
export declare const ButtonInner: (props: import("@redneckz/uni-jsx").PropsWithChildren<ButtonInner, any>, context?: any) => any;
|
|
@@ -1,28 +1,39 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.
|
|
2
|
+
exports.Button = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
/* eslint-disable max-lines-per-function */
|
|
5
|
-
/* eslint-disable complexity */
|
|
6
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const ButtonInner_1 = require("./ButtonInner");
|
|
7
6
|
const buttonStyleMap = {
|
|
8
7
|
primary: 'text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active',
|
|
9
8
|
secondary: 'text-primary-main bg-secondary-light hover:bg-secondary-hover active:bg-secondary-active',
|
|
9
|
+
link: '',
|
|
10
10
|
};
|
|
11
11
|
const buttonDisabledStyleMap = {
|
|
12
12
|
primary: 'bg-secondary-dark text-secondary-text',
|
|
13
13
|
secondary: 'bg-secondary-light text-secondary-text',
|
|
14
|
+
link: '',
|
|
14
15
|
};
|
|
15
16
|
const styleButton = 'text-center font-sans select-none';
|
|
16
17
|
exports.Button = (0, uni_jsx_1.JSX)(({ className, text, aboveText, appendLeft, href, target, onClick, children, disabled, rounded, version = 'none', ariaLabel, ...rest }) => {
|
|
17
|
-
const buttonInner = children ?? ((0, jsx_runtime_1.jsx)(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
18
|
+
const buttonInner = children ?? ((0, jsx_runtime_1.jsx)(ButtonInner_1.ButtonInner, { text: text, aboveText: aboveText, appendLeft: appendLeft, rounded: rounded }));
|
|
19
|
+
return disabled
|
|
20
|
+
? renderDisabledButton({ buttonInner, ariaLabel, className, version, rounded })
|
|
21
|
+
: renderButton({
|
|
22
|
+
buttonInner,
|
|
23
|
+
ariaLabel,
|
|
24
|
+
className,
|
|
25
|
+
version,
|
|
26
|
+
rounded,
|
|
27
|
+
href,
|
|
28
|
+
target,
|
|
29
|
+
onClick,
|
|
30
|
+
rest,
|
|
31
|
+
});
|
|
27
32
|
});
|
|
33
|
+
function renderButton({ className, buttonInner, ariaLabel, version, rounded, href, target, onClick, rest, }) {
|
|
34
|
+
return ((0, jsx_runtime_1.jsx)("a", { className: `${styleButton} inline-block cursor-pointer no-underline ${buttonStyleMap[version] || ''} ${rounded ? 'rounded-full' : 'rounded-md'} ${className || ''}`, href: href, target: target, onClick: onClick, "aria-label": ariaLabel, role: !href ? 'button' : 'link', ...rest, children: buttonInner }));
|
|
35
|
+
}
|
|
36
|
+
function renderDisabledButton({ className, buttonInner, ariaLabel, version, rounded }) {
|
|
37
|
+
return ((0, jsx_runtime_1.jsx)("div", { role: "button", "aria-disabled": "true", "aria-label": ariaLabel, tabIndex: "-1", className: `inline-block ${styleButton} ${buttonDisabledStyleMap[version] || ''} ${rounded ? 'rounded-full' : 'rounded-md'} ${className || ''}`, children: buttonInner }));
|
|
38
|
+
}
|
|
28
39
|
//# sourceMappingURL=Button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/Button.tsx"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/Button.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,+CAA4C;AAG5C,MAAM,cAAc,GAAkC;IACpD,OAAO,EAAE,4EAA4E;IACrF,SAAS,EACP,0FAA0F;IAC5F,IAAI,EAAE,EAAE;CACT,CAAC;AAEF,MAAM,sBAAsB,GAAkC;IAC5D,OAAO,EAAE,uCAAuC;IAChD,SAAS,EAAE,wCAAwC;IACnD,IAAI,EAAE,EAAE;CACT,CAAC;AAEF,MAAM,WAAW,GAAG,mCAAmC,CAAC;AAI3C,QAAA,MAAM,GAAG,IAAA,aAAG,EACvB,CAAC,EACC,SAAS,EACT,IAAI,EACJ,SAAS,EACT,UAAU,EACV,IAAI,EACJ,MAAM,EACN,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,OAAO,GAAG,MAAM,EAChB,SAAS,EACT,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,WAAW,GAAG,QAAQ,IAAI,CAC9B,uBAAC,yBAAW,IAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,CAC5F,CAAC;IAEF,OAAO,QAAQ;QACb,CAAC,CAAC,oBAAoB,CAAC,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;QAC/E,CAAC,CAAC,YAAY,CAAC;YACX,WAAW;YACX,SAAS;YACT,SAAS;YACT,OAAO;YACP,OAAO;YACP,IAAI;YACJ,MAAM;YACN,OAAO;YACP,IAAI;SACL,CAAC,CAAC;AACT,CAAC,CACF,CAAC;AAEF,SAAS,YAAY,CAAC,EACpB,SAAS,EACT,WAAW,EACX,SAAS,EACT,OAAO,EACP,OAAO,EACP,IAAI,EACJ,MAAM,EACN,OAAO,EACP,IAAI,GACL;IACC,OAAO,CACL,8BACE,SAAS,EAAE,GAAG,WAAW,6CACvB,cAAc,CAAC,OAAO,CAAC,IAAI,EAC7B,IAAI,OAAO,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,YAAY,IAAI,SAAS,IAAI,EAAE,EAAE,EAChE,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,gBACJ,SAAS,EACrB,IAAI,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,KAC3B,IAAI,YAEP,WAAW,GACV,CACL,CAAC;AACJ,CAAC;AAED,SAAS,oBAAoB,CAAC,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE;IACnF,OAAO,CACL,gCACE,IAAI,EAAC,QAAQ,mBACC,MAAM,gBACR,SAAS,EACrB,QAAQ,EAAC,IAAI,EACb,SAAS,EAAE,gBAAgB,WAAW,IAAI,sBAAsB,CAAC,OAAO,CAAC,IAAI,EAAE,IAC7E,OAAO,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,YAC7B,IAAI,SAAS,IAAI,EAAE,EAAE,YAEpB,WAAW,GACR,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import type { ButtonProps, ButtonWithIconProps } from './ButtonProps';
|
|
2
2
|
export interface ButtonCommonProps extends ButtonProps, ButtonWithIconProps {
|
|
3
3
|
}
|
|
4
|
-
export declare type ButtonInner = Pick<ButtonCommonProps, 'text' | 'aboveText' | 'appendLeft' | 'rounded'>;
|
|
5
4
|
export declare const Button: (props: import("@redneckz/uni-jsx").PropsWithChildren<ButtonCommonProps, any>, context?: any) => any;
|
|
6
|
-
export declare const ButtonInner: (props: import("@redneckz/uni-jsx").PropsWithChildren<ButtonInner, any>, context?: any) => any;
|
|
@@ -1,28 +1,26 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.
|
|
2
|
+
exports.Button = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
/* eslint-disable max-lines-per-function */
|
|
5
5
|
/* eslint-disable complexity */
|
|
6
6
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
7
|
+
const ButtonInner_1 = require("./ButtonInner");
|
|
7
8
|
const buttonStyleMap = {
|
|
8
9
|
primary: 'text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active',
|
|
9
10
|
secondary: 'text-primary-main bg-secondary-light hover:bg-secondary-hover active:bg-secondary-active',
|
|
11
|
+
link: 'text-primary-main',
|
|
10
12
|
};
|
|
11
13
|
const buttonDisabledStyleMap = {
|
|
12
14
|
primary: 'bg-secondary-dark text-secondary-text',
|
|
13
15
|
secondary: 'bg-secondary-light text-secondary-text',
|
|
16
|
+
link: '',
|
|
14
17
|
};
|
|
15
18
|
const styleButton = 'w-full text-center font-sans select-none';
|
|
16
|
-
exports.Button = (0, uni_jsx_1.JSX)(({ className, text, aboveText, appendLeft, href, target, onClick, children, disabled, rounded, version = '
|
|
17
|
-
const buttonInner = children ?? ((0, jsx_runtime_1.jsx)(
|
|
19
|
+
exports.Button = (0, uni_jsx_1.JSX)(({ className, text, aboveText, appendLeft, href, target, onClick, children, disabled, rounded, version = 'primary', ariaLabel, ...rest }) => {
|
|
20
|
+
const buttonInner = children ?? ((0, jsx_runtime_1.jsx)(ButtonInner_1.ButtonInner, { text: text, aboveText: aboveText, appendLeft: appendLeft, rounded: rounded, version: version }));
|
|
18
21
|
if (disabled) {
|
|
19
22
|
return ((0, jsx_runtime_1.jsx)("div", { role: "button", "aria-disabled": "true", "aria-label": ariaLabel, tabIndex: "-1", className: `inline-block ${styleButton} ${buttonDisabledStyleMap[version] || ''} ${rounded ? 'rounded-full' : 'rounded-md'} ${className || ''}`, children: buttonInner }));
|
|
20
23
|
}
|
|
21
24
|
return ((0, jsx_runtime_1.jsx)("a", { className: `${styleButton} inline-block cursor-pointer no-underline ${buttonStyleMap[version] || ''} ${rounded ? 'rounded-full' : 'rounded-md'} ${className || ''}`, href: href, target: target, onClick: onClick, "aria-label": ariaLabel, role: !href ? 'button' : 'link', ...rest, children: buttonInner }));
|
|
22
25
|
});
|
|
23
|
-
exports.ButtonInner = (0, uni_jsx_1.JSX)(({ text, aboveText, appendLeft, rounded }) => {
|
|
24
|
-
const withoutText = !text && !aboveText && Boolean(appendLeft);
|
|
25
|
-
const buttonInnerClasses = `flex items-center justify-center ${withoutText ? 'h-12 w-12' : `px-9 gap-2 ${aboveText ? 'py-2' : 'py-3.5'}`} ${rounded ? 'rounded-full' : ''}`;
|
|
26
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: buttonInnerClasses, children: [appendLeft ? appendLeft : null, withoutText ? null : ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { className: "text-m-2xs text-left", children: aboveText }), (0, jsx_runtime_1.jsx)("div", { className: "text-m-button font-medium text-left", children: text })] }))] }));
|
|
27
|
-
});
|
|
28
26
|
//# sourceMappingURL=Button.mobile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.mobile.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/Button.mobile.tsx"],"names":[],"mappings":";;;AAAA,2CAA2C;AAC3C,+BAA+B;AAE/B,+CAAwC;
|
|
1
|
+
{"version":3,"file":"Button.mobile.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/Button.mobile.tsx"],"names":[],"mappings":";;;AAAA,2CAA2C;AAC3C,+BAA+B;AAE/B,+CAAwC;AAGxC,+CAA4C;AAE5C,MAAM,cAAc,GAAkC;IACpD,OAAO,EAAE,4EAA4E;IACrF,SAAS,EACP,0FAA0F;IAC5F,IAAI,EAAE,mBAAmB;CAC1B,CAAC;AAEF,MAAM,sBAAsB,GAAkC;IAC5D,OAAO,EAAE,uCAAuC;IAChD,SAAS,EAAE,wCAAwC;IACnD,IAAI,EAAE,EAAE;CACT,CAAC;AAEF,MAAM,WAAW,GAAG,0CAA0C,CAAC;AAIlD,QAAA,MAAM,GAAG,IAAA,aAAG,EACvB,CAAC,EACC,SAAS,EACT,IAAI,EACJ,SAAS,EACT,UAAU,EACV,IAAI,EACJ,MAAM,EACN,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,OAAO,GAAG,SAAS,EACnB,SAAS,EACT,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,WAAW,GAAG,QAAQ,IAAI,CAC9B,uBAAC,yBAAW,IACV,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,GAChB,CACH,CAAC;IAEF,IAAI,QAAQ,EAAE;QACZ,OAAO,CACL,gCACE,IAAI,EAAC,QAAQ,mBACC,MAAM,gBACR,SAAS,EACrB,QAAQ,EAAC,IAAI,EACb,SAAS,EAAE,gBAAgB,WAAW,IAAI,sBAAsB,CAAC,OAAO,CAAC,IAAI,EAAE,IAC7E,OAAO,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,YAC7B,IAAI,SAAS,IAAI,EAAE,EAAE,YAEpB,WAAW,GACR,CACP,CAAC;KACH;IAED,OAAO,CACL,8BACE,SAAS,EAAE,GAAG,WAAW,6CACvB,cAAc,CAAC,OAAO,CAAC,IAAI,EAC7B,IAAI,OAAO,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,YAAY,IAAI,SAAS,IAAI,EAAE,EAAE,EAChE,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,gBACJ,SAAS,EACrB,IAAI,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,KAC3B,IAAI,YAEP,WAAW,GACV,CACL,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ButtonVersion } from '../../model/ButtonVersion';
|
|
2
|
+
import type { ButtonWithIconProps } from './ButtonProps';
|
|
3
|
+
interface ButtonInnerProps extends ButtonWithIconProps {
|
|
4
|
+
version?: ButtonVersion;
|
|
5
|
+
}
|
|
6
|
+
export declare const ButtonInner: (props: import("@redneckz/uni-jsx").PropsWithChildren<ButtonInnerProps, any>, context?: any) => any;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.ButtonInner = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
exports.ButtonInner = (0, uni_jsx_1.JSX)(({ text, aboveText, appendLeft, rounded, version }) => {
|
|
6
|
+
const withoutText = !text && !aboveText && Boolean(appendLeft);
|
|
7
|
+
const buttonInnerClasses = version !== 'link'
|
|
8
|
+
? `flex items-center justify-center
|
|
9
|
+
${withoutText ? 'h-12 w-12' : `px-8 gap-2 ${aboveText ? 'py-2' : 'py-3.5'}`} ${rounded ? 'rounded-full' : ''}`
|
|
10
|
+
: null;
|
|
11
|
+
return renderButtonInner({ buttonInnerClasses, appendLeft, withoutText, aboveText, text });
|
|
12
|
+
});
|
|
13
|
+
function renderButtonInner({ buttonInnerClasses, appendLeft, withoutText, aboveText, text }) {
|
|
14
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: buttonInnerClasses, children: [appendLeft ? appendLeft : null, withoutText ? null : ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { className: "text-m-2xs text-left", children: aboveText }), (0, jsx_runtime_1.jsx)("div", { className: "text-m-button font-medium text-left", children: text })] }))] }));
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=ButtonInner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonInner.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/ButtonInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAQ3B,QAAA,WAAW,GAAG,IAAA,aAAG,EAC5B,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE;IACpD,MAAM,WAAW,GAAG,CAAC,IAAI,IAAI,CAAC,SAAS,IAAI,OAAO,CAAC,UAAU,CAAC,CAAC;IAE/D,MAAM,kBAAkB,GACtB,OAAO,KAAK,MAAM;QAChB,CAAC,CAAC;YACE,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,cAAc,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,EAAE,IACzE,OAAO,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAC7B,EAAE;QACJ,CAAC,CAAC,IAAI,CAAC;IAEX,OAAO,iBAAiB,CAAC,EAAE,kBAAkB,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;AAC7F,CAAC,CACF,CAAC;AAEF,SAAS,iBAAiB,CAAC,EAAE,kBAAkB,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,EAAE;IACzF,OAAO,CACL,iCAAK,SAAS,EAAE,kBAAkB,aAC/B,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,EAC9B,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CACpB,4CACE,gCAAK,SAAS,EAAC,sBAAsB,YAAE,SAAS,GAAO,EACvD,gCAAK,SAAS,EAAC,qCAAqC,YAAE,IAAI,GAAO,IAC7D,CACP,IACG,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ButtonVersion } from '../../model/ButtonVersion';
|
|
2
2
|
import type { LinkProps } from '../../model/LinkProps';
|
|
3
|
+
import type { IconName } from '../Icon/IconProps';
|
|
3
4
|
/**
|
|
4
5
|
* @hidden
|
|
5
6
|
*/
|
|
@@ -19,6 +20,8 @@ export interface ButtonProps extends ButtonAdditionalProps, LinkProps {
|
|
|
19
20
|
version?: ButtonVersion;
|
|
20
21
|
}
|
|
21
22
|
export interface ButtonWithIconProps extends ButtonProps {
|
|
23
|
+
/** @title Иконка */
|
|
24
|
+
icon?: IconName;
|
|
22
25
|
/** @title Верхний текст */
|
|
23
26
|
aboveText?: string;
|
|
24
27
|
/** @hidden */
|
|
@@ -28,3 +31,10 @@ export interface ButtonWithIconProps extends ButtonProps {
|
|
|
28
31
|
/** @hidden */
|
|
29
32
|
asSVG?: boolean;
|
|
30
33
|
}
|
|
34
|
+
export interface ButtonContent {
|
|
35
|
+
/**
|
|
36
|
+
* @title Кнопки
|
|
37
|
+
* @maxItems 4
|
|
38
|
+
*/
|
|
39
|
+
buttons?: ButtonWithIconProps[];
|
|
40
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { UniBlockProps } from '../../types';
|
|
2
|
+
import type { ButtonContent } from './ButtonProps';
|
|
3
|
+
export interface ButtonSectionProps extends ButtonContent, UniBlockProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const ButtonSection: (props: import("@redneckz/uni-jsx").PropsWithChildren<ButtonSectionProps, any>, context?: any) => any;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.ButtonSection = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const useLink_1 = require("../../hooks/useLink");
|
|
6
|
+
const Icon_1 = require("../Icon/Icon");
|
|
7
|
+
const Button_1 = require("./Button");
|
|
8
|
+
exports.ButtonSection = (0, uni_jsx_1.JSX)(({ context, className = '', buttons }) => {
|
|
9
|
+
const { handlerDecorator } = context;
|
|
10
|
+
const router = context.useRouter();
|
|
11
|
+
return buttons?.length ? ((0, jsx_runtime_1.jsx)("div", { className: `${className}`, children: buttons.map((button, index) => renderButton((0, useLink_1.useLink)({ router, handlerDecorator }, button), index)) })) : null;
|
|
12
|
+
});
|
|
13
|
+
function renderButton({ icon, ...button }, i) {
|
|
14
|
+
if (!button?.text)
|
|
15
|
+
return;
|
|
16
|
+
return icon ? ((0, jsx_runtime_1.jsx)(Button_1.Button, { appendLeft: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: icon, width: "24", height: "24", asSVG: true }), ...button }, String(i))) : ((0, jsx_runtime_1.jsx)(Button_1.Button, { ...button }, String(i)));
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=ButtonSection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonSection.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/ButtonSection.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAE9C,uCAAoC;AACpC,qCAAkC;AAKrB,QAAA,aAAa,GAAG,IAAA,aAAG,EAAqB,CAAC,EAAE,OAAO,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAC5F,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC;IACrC,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IACnC,OAAO,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CACvB,gCAAK,SAAS,EAAE,GAAG,SAAS,EAAE,YAC3B,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAC7B,YAAY,CAAC,IAAA,iBAAO,EAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,MAAM,CAAC,EAAE,KAAK,CAAC,CACnE,GACG,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC,CAAC;AAEH,SAAS,YAAY,CAAC,EAAE,IAAI,EAAE,GAAG,MAAM,EAAuB,EAAE,CAAS;IACvE,IAAI,CAAC,MAAM,EAAE,IAAI;QAAE,OAAO;IAE1B,OAAO,IAAI,CAAC,CAAC,CAAC,CACZ,uBAAC,eAAM,IAEL,UAAU,EAAE,uBAAC,WAAI,IAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,KACzD,MAAM,IAFL,MAAM,CAAC,CAAC,CAAC,CAGd,CACH,CAAC,CAAC,CAAC,CACF,uBAAC,eAAM,OAAqB,MAAM,IAArB,MAAM,CAAC,CAAC,CAAC,CAAgB,CACvC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.Description = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
exports.Description = (0, uni_jsx_1.JSX)((props) => {
|
|
6
|
+
const { className, description } = props;
|
|
7
|
+
return (0, jsx_runtime_1.jsx)("div", { className: `font-normal text-base ${className || ''}`, children: description });
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=Description.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Description.js","sourceRoot":"","sources":["../../../src/ui-kit/Description/Description.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAG3B,QAAA,WAAW,GAAG,IAAA,aAAG,EAAmB,CAAC,KAAK,EAAE,EAAE;IACzD,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IAEzC,OAAO,gCAAK,SAAS,EAAE,yBAAyB,SAAS,IAAI,EAAE,EAAE,YAAG,WAAW,GAAO,CAAC;AACzF,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DescriptionProps.js","sourceRoot":"","sources":["../../../src/ui-kit/Description/DescriptionProps.ts"],"names":[],"mappings":""}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HeadingContent, HeadingTypeContent } from './HeadingContent';
|
|
2
|
+
export interface HeadingProps extends HeadingContent, HeadingTypeContent {
|
|
3
|
+
className?: string;
|
|
4
|
+
}
|
|
2
5
|
export declare const Heading: (props: import("@redneckz/uni-jsx").PropsWithChildren<HeadingProps, any>, context?: any) => any;
|
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.Heading = 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
|
|
5
|
+
const HEADING_STYLE_MAP = {
|
|
6
6
|
h1: 'text-title-lg tracking-[-0.3px]',
|
|
7
7
|
h2: 'text-title',
|
|
8
8
|
h3: 'text-title-sm',
|
|
@@ -11,8 +11,11 @@ const HeadingClass = {
|
|
|
11
11
|
h6: 'text-title-2xs tracking-[0.2px]',
|
|
12
12
|
};
|
|
13
13
|
exports.Heading = (0, uni_jsx_1.JSX)((props) => {
|
|
14
|
-
const { className,
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
const { className, headingType, title } = props;
|
|
15
|
+
if (!headingType) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
const Tag = headingType;
|
|
19
|
+
return ((0, jsx_runtime_1.jsx)(Tag, { className: `font-sans font-medium ${HEADING_STYLE_MAP[headingType]} ${className || ''}`, children: title }));
|
|
17
20
|
});
|
|
18
21
|
//# sourceMappingURL=Heading.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Heading.js","sourceRoot":"","sources":["../../../src/ui-kit/Heading/Heading.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"Heading.js","sourceRoot":"","sources":["../../../src/ui-kit/Heading/Heading.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAOxC,MAAM,iBAAiB,GAAgC;IACrD,EAAE,EAAE,iCAAiC;IACrC,EAAE,EAAE,YAAY;IAChB,EAAE,EAAE,eAAe;IACnB,EAAE,EAAE,eAAe;IACnB,EAAE,EAAE,iCAAiC;IACrC,EAAE,EAAE,iCAAiC;CACtC,CAAC;AAEW,QAAA,OAAO,GAAG,IAAA,aAAG,EAAe,CAAC,KAAK,EAAE,EAAE;IACjD,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;IAChD,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO;KACR;IACD,MAAM,GAAG,GAAG,WAAW,CAAC;IAExB,OAAO,CACL,uBAAC,GAAG,IAAC,SAAS,EAAE,yBAAyB,iBAAiB,CAAC,WAAW,CAAC,IAAI,SAAS,IAAI,EAAE,EAAE,YACzF,KAAK,GACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HeadingContent, HeadingTypeContent } from './HeadingContent';
|
|
2
|
+
export interface HeadingProps extends HeadingContent, HeadingTypeContent {
|
|
3
|
+
className?: string;
|
|
4
|
+
}
|
|
2
5
|
export declare const Heading: (props: import("@redneckz/uni-jsx").PropsWithChildren<HeadingProps, any>, context?: any) => any;
|
|
@@ -11,8 +11,11 @@ const HeadingClass = {
|
|
|
11
11
|
h6: 'text-m-title-xs',
|
|
12
12
|
};
|
|
13
13
|
exports.Heading = (0, uni_jsx_1.JSX)((props) => {
|
|
14
|
-
const { className,
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
const { className, headingType, title } = props;
|
|
15
|
+
if (!headingType) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
const Tag = headingType;
|
|
19
|
+
return ((0, jsx_runtime_1.jsx)(Tag, { className: `font-sans font-medium ${HeadingClass[headingType]} ${className || ''}`, children: title }));
|
|
17
20
|
});
|
|
18
21
|
//# sourceMappingURL=Heading.mobile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Heading.mobile.js","sourceRoot":"","sources":["../../../src/ui-kit/Heading/Heading.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"Heading.mobile.js","sourceRoot":"","sources":["../../../src/ui-kit/Heading/Heading.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAOxC,MAAM,YAAY,GAAgC;IAChD,EAAE,EAAE,cAAc;IAClB,EAAE,EAAE,cAAc;IAClB,EAAE,EAAE,iBAAiB;IACrB,EAAE,EAAE,iBAAiB;IACrB,EAAE,EAAE,iBAAiB;IACrB,EAAE,EAAE,iBAAiB;CACtB,CAAC;AAEW,QAAA,OAAO,GAAG,IAAA,aAAG,EAAe,CAAC,KAAK,EAAE,EAAE;IACjD,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;IAChD,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO;KACR;IACD,MAAM,GAAG,GAAG,WAAW,CAAC;IAExB,OAAO,CACL,uBAAC,GAAG,IAAC,SAAS,EAAE,yBAAyB,YAAY,CAAC,WAAW,CAAC,IAAI,SAAS,IAAI,EAAE,EAAE,YACpF,KAAK,GACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -6,8 +6,10 @@
|
|
|
6
6
|
* ]
|
|
7
7
|
*/
|
|
8
8
|
export declare type HeadingType = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
9
|
-
export interface
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
export interface HeadingTypeContent {
|
|
10
|
+
headingType?: HeadingType;
|
|
11
|
+
}
|
|
12
|
+
export interface HeadingContent {
|
|
13
|
+
/** @title Заголовок */
|
|
14
|
+
title?: string;
|
|
13
15
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeadingContent.js","sourceRoot":"","sources":["../../../src/ui-kit/Heading/HeadingContent.ts"],"names":[],"mappings":""}
|
package/dist/ui-kit/Icon/Icon.js
CHANGED
|
@@ -3,10 +3,14 @@ exports.Icon = void 0;
|
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const ProjectSettings_1 = require("../../ProjectSettings");
|
|
6
|
-
|
|
6
|
+
const svgColorsMap = {
|
|
7
|
+
none: '',
|
|
8
|
+
primary: 'text-primary-main',
|
|
9
|
+
};
|
|
10
|
+
exports.Icon = (0, uni_jsx_1.JSX)(({ className = '', name, alt = `Icon ${name}`, title = alt, asSVG, color = 'primary', ...imgProps }) => {
|
|
7
11
|
const href = `${ProjectSettings_1.projectSettings.CDN || ''}icons/${name}.svg`;
|
|
8
12
|
if (asSVG) {
|
|
9
|
-
return ((0, jsx_runtime_1.jsxs)("svg", { className: className
|
|
13
|
+
return ((0, jsx_runtime_1.jsxs)("svg", { className: `${svgColorsMap[color]} ${className}`, ...imgProps, "aria-hidden": "true", children: [title ? (0, jsx_runtime_1.jsx)("title", { children: title }) : null, alt ? (0, jsx_runtime_1.jsx)("desc", { children: alt }) : null, (0, jsx_runtime_1.jsx)("use", { href: `${href}#icon`, xlinkHref: `${href}#icon` })] }));
|
|
10
14
|
}
|
|
11
15
|
return ((0, jsx_runtime_1.jsx)("img", { className: className, src: href, alt: alt, title: title, ...imgProps, "aria-hidden": "true" }));
|
|
12
16
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../../src/ui-kit/Icon/Icon.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,2DAAwD;
|
|
1
|
+
{"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../../src/ui-kit/Icon/Icon.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,2DAAwD;AAGxD,MAAM,YAAY,GAA8B;IAC9C,IAAI,EAAE,EAAE;IACR,OAAO,EAAE,mBAAmB;CAC7B,CAAC;AAEW,QAAA,IAAI,GAAG,IAAA,aAAG,EACrB,CAAC,EACC,SAAS,GAAG,EAAE,EACd,IAAI,EACJ,GAAG,GAAG,QAAQ,IAAI,EAAE,EACpB,KAAK,GAAG,GAAG,EACX,KAAK,EACL,KAAK,GAAG,SAAS,EACjB,GAAG,QAAQ,EACZ,EAAE,EAAE;IACH,MAAM,IAAI,GAAG,GAAG,iCAAe,CAAC,GAAG,IAAI,EAAE,SAAS,IAAI,MAAM,CAAC;IAE7D,IAAI,KAAK,EAAE;QACT,OAAO,CACL,iCAAK,SAAS,EAAE,GAAG,YAAY,CAAC,KAAK,CAAC,IAAI,SAAS,EAAE,KAAM,QAAQ,iBAAc,MAAM,aACpF,KAAK,CAAC,CAAC,CAAC,4CAAQ,KAAK,GAAS,CAAC,CAAC,CAAC,IAAI,EACrC,GAAG,CAAC,CAAC,CAAC,2CAAO,GAAG,GAAQ,CAAC,CAAC,CAAC,IAAI,EAChC,gCAAK,IAAI,EAAE,GAAG,IAAI,OAAO,EAAE,SAAS,EAAE,GAAG,IAAI,OAAO,GAAI,IACpD,CACP,CAAC;KACH;IAED,OAAO,CACL,gCACE,SAAS,EAAE,SAAS,EACpB,GAAG,EAAE,IAAI,EACT,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,KACR,QAAQ,iBACA,MAAM,GAClB,CACH,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import type { IconName } from '../../icons/IconName';
|
|
2
2
|
export type { IconName };
|
|
3
|
+
/**
|
|
4
|
+
* @title Цвет иконки (svg)
|
|
5
|
+
* @enumNames ["Нет", "Основной"]
|
|
6
|
+
*/
|
|
7
|
+
export declare type IconColor = 'none' | 'primary';
|
|
3
8
|
export interface IconProps {
|
|
4
9
|
className?: string;
|
|
5
10
|
name: IconName;
|
|
@@ -8,4 +13,5 @@ export interface IconProps {
|
|
|
8
13
|
width?: string;
|
|
9
14
|
height?: string;
|
|
10
15
|
asSVG?: boolean;
|
|
16
|
+
color?: IconColor;
|
|
11
17
|
}
|