@redneckz/wildless-cms-uni-blocks 0.2.71 → 0.2.74
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 +1022 -0
- package/bundle/bundle.umd.js +152 -71
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/BaseTile.d.ts +2 -12
- package/dist/BaseTile.js +9 -4
- package/dist/BaseTile.js.map +1 -1
- package/dist/BaseTileContent.d.ts +13 -0
- package/dist/BaseTileContent.js +2 -0
- package/dist/BaseTileContent.js.map +1 -0
- package/dist/BenefitsBlock.d.ts +1 -10
- package/dist/BenefitsBlock.js.map +1 -1
- package/dist/BenefitsBlockContent.d.ts +10 -0
- package/dist/BenefitsBlockContent.js +2 -0
- package/dist/BenefitsBlockContent.js.map +1 -0
- package/dist/BlockContent.d.ts +16 -0
- package/dist/BlockContent.js +2 -0
- package/dist/BlockContent.js.map +1 -0
- package/dist/Blocks.d.ts +2 -15
- package/dist/Blocks.js +11 -7
- package/dist/Blocks.js.map +1 -1
- package/dist/ComparisonTable/ComparisonTable.d.ts +5 -0
- package/dist/ComparisonTable/ComparisonTable.js +34 -0
- package/dist/ComparisonTable/ComparisonTable.js.map +1 -0
- package/dist/ComparisonTable/ComparisonTableContent.d.ts +37 -0
- package/dist/ComparisonTable/ComparisonTableContent.js +2 -0
- package/dist/ComparisonTable/ComparisonTableContent.js.map +1 -0
- package/dist/ComparisonTable/HeaderCell.d.ts +10 -0
- package/dist/ComparisonTable/HeaderCell.js +11 -0
- package/dist/ComparisonTable/HeaderCell.js.map +1 -0
- package/dist/ComparisonTable/TableCarouselContainer.d.ts +4 -0
- package/dist/ComparisonTable/TableCarouselContainer.js +7 -0
- package/dist/ComparisonTable/TableCarouselContainer.js.map +1 -0
- package/dist/ComparisonTable/TableCell.d.ts +8 -0
- package/dist/ComparisonTable/TableCell.js +12 -0
- package/dist/ComparisonTable/TableCell.js.map +1 -0
- package/dist/ComparisonTable/TableRow.d.ts +10 -0
- package/dist/ComparisonTable/TableRow.js +10 -0
- package/dist/ComparisonTable/TableRow.js.map +1 -0
- package/dist/ComparisonTable/TableRowContainer.d.ts +4 -0
- package/dist/ComparisonTable/TableRowContainer.js +6 -0
- package/dist/ComparisonTable/TableRowContainer.js.map +1 -0
- package/dist/ComparisonTable/constants.d.ts +6 -0
- package/dist/ComparisonTable/constants.js +9 -0
- package/dist/ComparisonTable/constants.js.map +1 -0
- package/dist/ComparisonTable/index.d.ts +3 -0
- package/dist/ComparisonTable/index.js +5 -0
- package/dist/ComparisonTable/index.js.map +1 -0
- package/dist/ContentPage.d.ts +1 -1
- package/dist/ExchangeRateTile.d.ts +1 -3
- package/dist/ExchangeRateTile.js +1 -0
- package/dist/ExchangeRateTile.js.map +1 -1
- package/dist/ExchangeRateTileContent.d.ts +3 -0
- package/dist/ExchangeRateTileContent.js +2 -0
- package/dist/ExchangeRateTileContent.js.map +1 -0
- package/dist/Footer/Contacts.d.ts +2 -1
- package/dist/Footer/Contacts.js +1 -1
- package/dist/Footer/Contacts.js.map +1 -1
- package/dist/Footer/Footer.d.ts +2 -8
- package/dist/Footer/Footer.js +1 -1
- package/dist/Footer/Footer.js.map +1 -1
- package/dist/Footer/Footer.mobile.d.ts +1 -1
- package/dist/Footer/FooterContent.d.ts +13 -0
- package/dist/Footer/FooterContent.js +2 -0
- package/dist/Footer/FooterContent.js.map +1 -0
- package/dist/Footer/FooterLink.d.ts +1 -1
- package/dist/Footer/Sitemap.d.ts +2 -1
- package/dist/Footer/Sitemap.js.map +1 -1
- package/dist/Footer/SocialMedia.d.ts +2 -1
- package/dist/Footer/SocialMedia.js +4 -1
- package/dist/Footer/SocialMedia.js.map +1 -1
- package/dist/Gallery.d.ts +2 -13
- package/dist/Gallery.js +2 -32
- package/dist/Gallery.js.map +1 -1
- package/dist/Gallery.mobile.d.ts +1 -1
- package/dist/Gallery.mobile.js +1 -1
- package/dist/Gallery.mobile.js.map +1 -1
- package/dist/GalleryContent.d.ts +13 -0
- package/dist/GalleryContent.js +2 -0
- package/dist/GalleryContent.js.map +1 -0
- package/dist/GalleryInner.d.ts +7 -0
- package/dist/GalleryInner.js +46 -0
- package/dist/GalleryInner.js.map +1 -0
- package/dist/Header/HeaderContent.d.ts +2 -3
- package/dist/Header/isSubItemActive.d.ts +1 -1
- package/dist/Header/isTopItemActive.d.ts +1 -1
- package/dist/MiniGallery.d.ts +5 -0
- package/dist/MiniGallery.js +7 -0
- package/dist/MiniGallery.js.map +1 -0
- package/dist/MobileAppTile.d.ts +1 -9
- package/dist/MobileAppTile.js.map +1 -1
- package/dist/MobileAppTileContent.d.ts +9 -0
- package/dist/MobileAppTileContent.js +2 -0
- package/dist/MobileAppTileContent.js.map +1 -0
- package/dist/MobileBlocks.js +2 -2
- package/dist/MobileBlocks.js.map +1 -1
- package/dist/Placeholder.d.ts +1 -3
- package/dist/Placeholder.js.map +1 -1
- package/dist/PlaceholderContent.d.ts +3 -0
- package/dist/PlaceholderContent.js +2 -0
- package/dist/PlaceholderContent.js.map +1 -0
- package/dist/ProductBlock.d.ts +2 -4
- package/dist/ProductBlock.js.map +1 -1
- package/dist/ProductBlock.mobile.d.ts +1 -1
- package/dist/ProductBlock.mobile.js.map +1 -1
- package/dist/ProductBlockContent.d.ts +5 -0
- package/dist/ProductBlockContent.js +2 -0
- package/dist/ProductBlockContent.js.map +1 -0
- package/dist/ProductBlockInner.d.ts +1 -5
- package/dist/ProductBlockInner.js +3 -3
- package/dist/ProductBlockInner.js.map +1 -1
- package/dist/ProductBlockInnerContent.d.ts +5 -0
- package/dist/ProductBlockInnerContent.js +2 -0
- package/dist/ProductBlockInnerContent.js.map +1 -0
- package/dist/ProductGallery.d.ts +1 -14
- package/dist/ProductGallery.js.map +1 -1
- package/dist/ProductGalleryContent.d.ts +14 -0
- package/dist/ProductGalleryContent.js +2 -0
- package/dist/ProductGalleryContent.js.map +1 -0
- package/dist/ProductTile.d.ts +1 -5
- package/dist/ProductTile.js.map +1 -1
- package/dist/ProductTileContent.d.ts +5 -0
- package/dist/ProductTileContent.js +2 -0
- package/dist/ProductTileContent.js.map +1 -0
- package/dist/PromoTile.d.ts +1 -4
- package/dist/PromoTile.js.map +1 -1
- package/dist/PromoTileContent.d.ts +4 -0
- package/dist/PromoTileContent.js +2 -0
- package/dist/PromoTileContent.js.map +1 -0
- package/dist/StepsBlock.d.ts +1 -10
- package/dist/StepsBlock.js.map +1 -1
- package/dist/StepsBlockContent.d.ts +10 -0
- package/dist/StepsBlockContent.js +2 -0
- package/dist/StepsBlockContent.js.map +1 -0
- package/dist/TextBlock.d.ts +2 -11
- package/dist/TextBlock.js +4 -4
- package/dist/TextBlock.js.map +1 -1
- package/dist/TextBlockContent.d.ts +10 -0
- package/dist/TextBlockContent.js +2 -0
- package/dist/TextBlockContent.js.map +1 -0
- package/dist/Tile.d.ts +2 -2
- package/dist/Tile.js.map +1 -1
- package/dist/TileContent.d.ts +2 -0
- package/dist/TileContent.js +2 -0
- package/dist/TileContent.js.map +1 -0
- package/dist/content-page-repository/transformContentPage.js.map +1 -1
- package/dist/content-page-repository/transformPicture.d.ts +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.js.map +1 -1
- package/dist/mergeTopItems.d.ts +2 -2
- package/dist/mergeTopItems.js.map +1 -1
- package/dist/model/BlockVersion.d.ts +1 -0
- package/dist/model/BlockVersion.js +2 -0
- package/dist/model/BlockVersion.js.map +1 -0
- package/dist/model/ButtonVersion.d.ts +1 -0
- package/dist/model/ButtonVersion.js +2 -0
- package/dist/model/ButtonVersion.js.map +1 -0
- package/dist/model/GalleryVersion.d.ts +1 -0
- package/dist/model/GalleryVersion.js +2 -0
- package/dist/model/GalleryVersion.js.map +1 -0
- package/dist/model/LinkContent.d.ts +5 -0
- package/dist/model/LinkContent.js +2 -0
- package/dist/model/LinkContent.js.map +1 -0
- package/dist/model/Picture.d.ts +17 -0
- package/dist/model/Picture.js +2 -0
- package/dist/model/Picture.js.map +1 -0
- package/dist/model/SitemapContent.d.ts +7 -0
- package/dist/model/SitemapContent.js +2 -0
- package/dist/model/SitemapContent.js.map +1 -0
- package/dist/types.d.ts +2 -32
- package/dist/ui-kit/ArrowButton.d.ts +2 -6
- package/dist/ui-kit/ArrowButton.js +17 -3
- package/dist/ui-kit/ArrowButton.js.map +1 -1
- package/dist/ui-kit/Breadcrumb.d.ts +1 -1
- package/dist/ui-kit/Button.d.ts +2 -8
- package/dist/ui-kit/Button.js +11 -5
- package/dist/ui-kit/Button.js.map +1 -1
- package/dist/ui-kit/ButtonProps.d.ts +21 -0
- package/dist/ui-kit/ButtonProps.js +2 -0
- package/dist/ui-kit/ButtonProps.js.map +1 -0
- package/dist/ui-kit/Icon.d.ts +1 -10
- package/dist/ui-kit/Icon.js.map +1 -1
- package/dist/ui-kit/IconProps.d.ts +32 -0
- package/dist/ui-kit/IconProps.js +26 -0
- package/dist/ui-kit/IconProps.js.map +1 -0
- package/dist/{Img.d.ts → ui-kit/Img.d.ts} +1 -1
- package/dist/{Img.js → ui-kit/Img.js} +0 -0
- package/dist/ui-kit/Img.js.map +1 -0
- package/dist/ui-kit/SVG.d.ts +2 -0
- package/dist/ui-kit/SVG.js +2 -2
- package/dist/ui-kit/SVG.js.map +1 -1
- package/dist/ui-kit/Title.d.ts +1 -10
- package/dist/ui-kit/Title.js +3 -9
- package/dist/ui-kit/Title.js.map +1 -1
- package/dist/ui-kit/TitleProps.d.ts +10 -0
- package/dist/ui-kit/TitleProps.js +10 -0
- package/dist/ui-kit/TitleProps.js.map +1 -0
- package/dist/ui-kit/TopItem.d.ts +1 -1
- package/dist/useLink.d.ts +5 -2
- package/dist/useLink.js.map +1 -1
- package/dist/useSitemap.d.ts +1 -1
- package/lib/BaseTile.d.ts +2 -12
- package/lib/BaseTile.js +9 -4
- package/lib/BaseTile.js.map +1 -1
- package/lib/BaseTileContent.d.ts +13 -0
- package/lib/BaseTileContent.js +2 -0
- package/lib/BaseTileContent.js.map +1 -0
- package/lib/BenefitsBlock.d.ts +1 -10
- package/lib/BenefitsBlock.js.map +1 -1
- package/lib/BenefitsBlockContent.d.ts +10 -0
- package/lib/BenefitsBlockContent.js +2 -0
- package/lib/BenefitsBlockContent.js.map +1 -0
- package/lib/BlockContent.d.ts +16 -0
- package/lib/BlockContent.js +2 -0
- package/lib/BlockContent.js.map +1 -0
- package/lib/Blocks.d.ts +2 -15
- package/lib/Blocks.js +9 -5
- package/lib/Blocks.js.map +1 -1
- package/lib/ComparisonTable/ComparisonTable.d.ts +5 -0
- package/lib/ComparisonTable/ComparisonTable.js +32 -0
- package/lib/ComparisonTable/ComparisonTable.js.map +1 -0
- package/lib/ComparisonTable/ComparisonTableContent.d.ts +37 -0
- package/lib/ComparisonTable/ComparisonTableContent.js +2 -0
- package/lib/ComparisonTable/ComparisonTableContent.js.map +1 -0
- package/lib/ComparisonTable/HeaderCell.d.ts +10 -0
- package/lib/ComparisonTable/HeaderCell.js +9 -0
- package/lib/ComparisonTable/HeaderCell.js.map +1 -0
- package/lib/ComparisonTable/TableCarouselContainer.d.ts +4 -0
- package/lib/ComparisonTable/TableCarouselContainer.js +5 -0
- package/lib/ComparisonTable/TableCarouselContainer.js.map +1 -0
- package/lib/ComparisonTable/TableCell.d.ts +8 -0
- package/lib/ComparisonTable/TableCell.js +10 -0
- package/lib/ComparisonTable/TableCell.js.map +1 -0
- package/lib/ComparisonTable/TableRow.d.ts +10 -0
- package/lib/ComparisonTable/TableRow.js +8 -0
- package/lib/ComparisonTable/TableRow.js.map +1 -0
- package/lib/ComparisonTable/TableRowContainer.d.ts +4 -0
- package/lib/ComparisonTable/TableRowContainer.js +4 -0
- package/lib/ComparisonTable/TableRowContainer.js.map +1 -0
- package/lib/ComparisonTable/constants.d.ts +6 -0
- package/lib/ComparisonTable/constants.js +7 -0
- package/lib/ComparisonTable/constants.js.map +1 -0
- package/lib/ComparisonTable/index.d.ts +3 -0
- package/lib/ComparisonTable/index.js +2 -0
- package/lib/ComparisonTable/index.js.map +1 -0
- package/lib/ContentPage.d.ts +1 -1
- package/lib/ExchangeRateTile.d.ts +1 -3
- package/lib/ExchangeRateTile.js +1 -0
- package/lib/ExchangeRateTile.js.map +1 -1
- package/lib/ExchangeRateTileContent.d.ts +3 -0
- package/lib/ExchangeRateTileContent.js +2 -0
- package/lib/ExchangeRateTileContent.js.map +1 -0
- package/lib/Footer/Contacts.d.ts +2 -1
- package/lib/Footer/Contacts.js +1 -1
- package/lib/Footer/Contacts.js.map +1 -1
- package/lib/Footer/Footer.d.ts +2 -8
- package/lib/Footer/Footer.js +1 -1
- package/lib/Footer/Footer.js.map +1 -1
- package/lib/Footer/Footer.mobile.d.ts +1 -1
- package/lib/Footer/FooterContent.d.ts +13 -0
- package/lib/Footer/FooterContent.js +2 -0
- package/lib/Footer/FooterContent.js.map +1 -0
- package/lib/Footer/FooterLink.d.ts +1 -1
- package/lib/Footer/Sitemap.d.ts +2 -1
- package/lib/Footer/Sitemap.js.map +1 -1
- package/lib/Footer/SocialMedia.d.ts +2 -1
- package/lib/Footer/SocialMedia.js +4 -1
- package/lib/Footer/SocialMedia.js.map +1 -1
- package/lib/Gallery.d.ts +2 -13
- package/lib/Gallery.js +3 -33
- package/lib/Gallery.js.map +1 -1
- package/lib/Gallery.mobile.d.ts +1 -1
- package/lib/Gallery.mobile.js +1 -1
- package/lib/Gallery.mobile.js.map +1 -1
- package/lib/GalleryContent.d.ts +13 -0
- package/lib/GalleryContent.js +2 -0
- package/lib/GalleryContent.js.map +1 -0
- package/lib/GalleryInner.d.ts +7 -0
- package/lib/GalleryInner.js +44 -0
- package/lib/GalleryInner.js.map +1 -0
- package/lib/Header/HeaderContent.d.ts +2 -3
- package/lib/Header/isSubItemActive.d.ts +1 -1
- package/lib/Header/isTopItemActive.d.ts +1 -1
- package/lib/MiniGallery.d.ts +5 -0
- package/lib/MiniGallery.js +5 -0
- package/lib/MiniGallery.js.map +1 -0
- package/lib/MobileAppTile.d.ts +1 -9
- package/lib/MobileAppTile.js.map +1 -1
- package/lib/MobileAppTileContent.d.ts +9 -0
- package/lib/MobileAppTileContent.js +2 -0
- package/lib/MobileAppTileContent.js.map +1 -0
- package/lib/MobileBlocks.js +1 -1
- package/lib/MobileBlocks.js.map +1 -1
- package/lib/Placeholder.d.ts +1 -3
- package/lib/Placeholder.js.map +1 -1
- package/lib/PlaceholderContent.d.ts +3 -0
- package/lib/PlaceholderContent.js +2 -0
- package/lib/PlaceholderContent.js.map +1 -0
- package/lib/ProductBlock.d.ts +2 -4
- package/lib/ProductBlock.js.map +1 -1
- package/lib/ProductBlock.mobile.d.ts +1 -1
- package/lib/ProductBlock.mobile.js.map +1 -1
- package/lib/ProductBlockContent.d.ts +5 -0
- package/lib/ProductBlockContent.js +2 -0
- package/lib/ProductBlockContent.js.map +1 -0
- package/lib/ProductBlockInner.d.ts +1 -5
- package/lib/ProductBlockInner.js +3 -3
- package/lib/ProductBlockInner.js.map +1 -1
- package/lib/ProductBlockInnerContent.d.ts +5 -0
- package/lib/ProductBlockInnerContent.js +2 -0
- package/lib/ProductBlockInnerContent.js.map +1 -0
- package/lib/ProductGallery.d.ts +1 -14
- package/lib/ProductGallery.js.map +1 -1
- package/lib/ProductGalleryContent.d.ts +14 -0
- package/lib/ProductGalleryContent.js +2 -0
- package/lib/ProductGalleryContent.js.map +1 -0
- package/lib/ProductTile.d.ts +1 -5
- package/lib/ProductTile.js.map +1 -1
- package/lib/ProductTileContent.d.ts +5 -0
- package/lib/ProductTileContent.js +2 -0
- package/lib/ProductTileContent.js.map +1 -0
- package/lib/PromoTile.d.ts +1 -4
- package/lib/PromoTile.js.map +1 -1
- package/lib/PromoTileContent.d.ts +4 -0
- package/lib/PromoTileContent.js +2 -0
- package/lib/PromoTileContent.js.map +1 -0
- package/lib/StepsBlock.d.ts +1 -10
- package/lib/StepsBlock.js.map +1 -1
- package/lib/StepsBlockContent.d.ts +10 -0
- package/lib/StepsBlockContent.js +2 -0
- package/lib/StepsBlockContent.js.map +1 -0
- package/lib/TextBlock.d.ts +2 -11
- package/lib/TextBlock.js +4 -4
- package/lib/TextBlock.js.map +1 -1
- package/lib/TextBlockContent.d.ts +10 -0
- package/lib/TextBlockContent.js +2 -0
- package/lib/TextBlockContent.js.map +1 -0
- package/lib/Tile.d.ts +2 -2
- package/lib/Tile.js.map +1 -1
- package/lib/TileContent.d.ts +2 -0
- package/lib/TileContent.js +2 -0
- package/lib/TileContent.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/content-page-repository/transformContentPage.js.map +1 -1
- package/lib/content-page-repository/transformPicture.d.ts +1 -1
- package/lib/index.d.ts +4 -3
- package/lib/index.js.map +1 -1
- package/lib/mergeTopItems.d.ts +2 -2
- package/lib/mergeTopItems.js.map +1 -1
- package/lib/model/BlockVersion.d.ts +1 -0
- package/lib/model/BlockVersion.js +2 -0
- package/lib/model/BlockVersion.js.map +1 -0
- package/lib/model/ButtonVersion.d.ts +1 -0
- package/lib/model/ButtonVersion.js +2 -0
- package/lib/model/ButtonVersion.js.map +1 -0
- package/lib/model/GalleryVersion.d.ts +1 -0
- package/lib/model/GalleryVersion.js +2 -0
- package/lib/model/GalleryVersion.js.map +1 -0
- package/lib/model/LinkContent.d.ts +5 -0
- package/lib/model/LinkContent.js +2 -0
- package/lib/model/LinkContent.js.map +1 -0
- package/lib/model/Picture.d.ts +17 -0
- package/lib/model/Picture.js +2 -0
- package/lib/model/Picture.js.map +1 -0
- package/lib/model/SitemapContent.d.ts +7 -0
- package/lib/model/SitemapContent.js +2 -0
- package/lib/model/SitemapContent.js.map +1 -0
- package/lib/types.d.ts +2 -32
- package/lib/ui-kit/ArrowButton.d.ts +2 -6
- package/lib/ui-kit/ArrowButton.js +18 -4
- package/lib/ui-kit/ArrowButton.js.map +1 -1
- package/lib/ui-kit/Breadcrumb.d.ts +1 -1
- package/lib/ui-kit/Button.d.ts +2 -8
- package/lib/ui-kit/Button.js +11 -5
- package/lib/ui-kit/Button.js.map +1 -1
- package/lib/ui-kit/ButtonProps.d.ts +21 -0
- package/lib/ui-kit/ButtonProps.js +2 -0
- package/lib/ui-kit/ButtonProps.js.map +1 -0
- package/lib/ui-kit/Icon.d.ts +1 -10
- package/lib/ui-kit/Icon.js.map +1 -1
- package/lib/ui-kit/IconProps.d.ts +32 -0
- package/lib/ui-kit/IconProps.js +24 -0
- package/lib/ui-kit/IconProps.js.map +1 -0
- package/lib/{Img.d.ts → ui-kit/Img.d.ts} +1 -1
- package/lib/{Img.js → ui-kit/Img.js} +0 -0
- package/lib/ui-kit/Img.js.map +1 -0
- package/lib/ui-kit/SVG.d.ts +2 -0
- package/lib/ui-kit/SVG.js +2 -2
- package/lib/ui-kit/SVG.js.map +1 -1
- package/lib/ui-kit/Title.d.ts +1 -10
- package/lib/ui-kit/Title.js +1 -7
- package/lib/ui-kit/Title.js.map +1 -1
- package/lib/ui-kit/TitleProps.d.ts +10 -0
- package/lib/ui-kit/TitleProps.js +8 -0
- package/lib/ui-kit/TitleProps.js.map +1 -0
- package/lib/ui-kit/TopItem.d.ts +1 -1
- package/lib/useLink.d.ts +5 -2
- package/lib/useLink.js.map +1 -1
- package/lib/useSitemap.d.ts +1 -1
- package/package.json +5 -2
- package/src/BaseTile.tsx +21 -17
- package/src/BaseTileContent.ts +14 -0
- package/src/BenefitsBlock.tsx +2 -12
- package/src/BenefitsBlockContent.ts +12 -0
- package/src/BlockContent.ts +32 -0
- package/src/Blocks.ts +16 -30
- package/src/ComparisonTable/ComparisonTable.fixture.tsx +265 -0
- package/src/ComparisonTable/ComparisonTable.tsx +126 -0
- package/src/ComparisonTable/ComparisonTableContent.ts +43 -0
- package/src/ComparisonTable/HeaderCell.tsx +50 -0
- package/src/ComparisonTable/TableCarouselContainer.tsx +19 -0
- package/src/ComparisonTable/TableCell.tsx +43 -0
- package/src/ComparisonTable/TableRow.tsx +44 -0
- package/src/ComparisonTable/TableRowContainer.tsx +7 -0
- package/src/ComparisonTable/constants.ts +6 -0
- package/src/ComparisonTable/index.ts +3 -0
- package/src/ContentPage.page.json +463 -1
- package/src/ContentPage.tsx +1 -1
- package/src/ExchangeRateTile.tsx +3 -5
- package/src/ExchangeRateTileContent.ts +3 -0
- package/src/Footer/Contacts.tsx +3 -1
- package/src/Footer/Footer.mobile.tsx +1 -1
- package/src/Footer/Footer.tsx +3 -10
- package/src/Footer/FooterContent.ts +15 -0
- package/src/Footer/FooterLink.ts +1 -1
- package/src/Footer/HorizontalNavigation.tsx +2 -2
- package/src/Footer/Sitemap.tsx +3 -2
- package/src/Footer/SocialMedia.tsx +13 -7
- package/src/Footer/TextInformation.tsx +1 -1
- package/src/Gallery.fixture.tsx +1 -1
- package/src/Gallery.mobile.tsx +3 -2
- package/src/Gallery.tsx +4 -133
- package/src/GalleryContent.ts +15 -0
- package/src/GalleryInner.tsx +135 -0
- package/src/Header/HeaderContent.ts +2 -3
- package/src/Header/isSubItemActive.ts +1 -1
- package/src/Header/isTopItemActive.ts +1 -1
- package/src/MiniGallery.fixture.tsx +90 -0
- package/src/MiniGallery.tsx +10 -0
- package/src/MobileAppTile.tsx +1 -11
- package/src/MobileAppTileContent.ts +11 -0
- package/src/MobileBlocks.ts +1 -1
- package/src/Placeholder.tsx +1 -4
- package/src/PlaceholderContent.ts +3 -0
- package/src/ProductBlock.fixture.tsx +1 -1
- package/src/ProductBlock.mobile.tsx +1 -1
- package/src/ProductBlock.tsx +3 -5
- package/src/ProductBlockContent.ts +6 -0
- package/src/ProductBlockInner.tsx +5 -9
- package/src/ProductBlockInnerContent.ts +6 -0
- package/src/ProductGallery.fixture.tsx +1 -1
- package/src/ProductGallery.tsx +2 -16
- package/src/ProductGalleryContent.ts +16 -0
- package/src/ProductTile.fixture.tsx +1 -1
- package/src/ProductTile.tsx +3 -7
- package/src/ProductTileContent.ts +6 -0
- package/src/PromoTile.tsx +1 -5
- package/src/PromoTileContent.ts +5 -0
- package/src/StepsBlock.tsx +2 -12
- package/src/StepsBlockContent.ts +12 -0
- package/src/TextBlock.fixture.tsx +1 -1
- package/src/TextBlock.tsx +9 -16
- package/src/TextBlockContent.ts +12 -0
- package/src/Tile.fixture.tsx +1 -1
- package/src/Tile.tsx +4 -3
- package/src/TileContent.ts +3 -0
- package/src/common.css +6 -0
- package/src/content-page-repository/transformContentPage.ts +2 -1
- package/src/content-page-repository/transformPicture.ts +1 -1
- package/src/icons/AppleIcon.svg +1 -13
- package/src/icons/GlassIcon.svg +1 -0
- package/src/icons/PlayMarketIcon.svg +1 -6
- package/src/index.ts +4 -11
- package/src/mergeTopItems.ts +5 -5
- package/src/model/BlockVersion.ts +1 -0
- package/src/model/ButtonVersion.ts +1 -0
- package/src/model/GalleryVersion.ts +1 -0
- package/src/model/LinkContent.ts +5 -0
- package/src/model/Picture.ts +19 -0
- package/src/model/SitemapContent.ts +9 -0
- package/src/types.ts +2 -56
- package/src/ui-kit/ArrowButton.tsx +29 -30
- package/src/ui-kit/Breadcrumb.tsx +1 -1
- package/src/ui-kit/Button.fixture.tsx +33 -5
- package/src/ui-kit/Button.tsx +42 -25
- package/src/ui-kit/ButtonProps.ts +24 -0
- package/src/ui-kit/Icon.fixture.tsx +22 -0
- package/src/ui-kit/Icon.tsx +1 -32
- package/src/ui-kit/IconProps.ts +34 -0
- package/src/{Img.tsx → ui-kit/Img.tsx} +1 -1
- package/src/ui-kit/SVG.tsx +11 -2
- package/src/ui-kit/Title.tsx +1 -13
- package/src/ui-kit/TitleProps.ts +12 -0
- package/src/ui-kit/TopItem.tsx +1 -1
- package/src/useLink.ts +2 -2
- package/src/useSitemap.ts +1 -1
- package/dist/Footer/index.d.ts +0 -2
- package/dist/Footer/index.js +0 -5
- package/dist/Footer/index.js.map +0 -1
- package/dist/Header/index.d.ts +0 -3
- package/dist/Header/index.js +0 -5
- package/dist/Header/index.js.map +0 -1
- package/dist/Img.js.map +0 -1
- package/dist/ui-kit/IconButton.d.ts +0 -7
- package/dist/ui-kit/IconButton.js +0 -10
- package/dist/ui-kit/IconButton.js.map +0 -1
- package/lib/Footer/index.d.ts +0 -2
- package/lib/Footer/index.js +0 -2
- package/lib/Footer/index.js.map +0 -1
- package/lib/Header/index.d.ts +0 -3
- package/lib/Header/index.js +0 -2
- package/lib/Header/index.js.map +0 -1
- package/lib/Img.js.map +0 -1
- package/lib/ui-kit/IconButton.d.ts +0 -7
- package/lib/ui-kit/IconButton.js +0 -8
- package/lib/ui-kit/IconButton.js.map +0 -1
- package/src/Footer/index.ts +0 -2
- package/src/Header/index.ts +0 -3
- package/src/ui-kit/IconButton.tsx +0 -27
package/src/ui-kit/Button.tsx
CHANGED
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type { ButtonVersion
|
|
3
|
-
|
|
4
|
-
export interface ButtonProps extends LinkContent {
|
|
5
|
-
className?: string;
|
|
6
|
-
onClick?: (ev: MouseEvent) => any;
|
|
7
|
-
version?: ButtonVersion;
|
|
8
|
-
ariaLabel?: string;
|
|
9
|
-
disabled?: Boolean;
|
|
10
|
-
}
|
|
2
|
+
import type { ButtonVersion } from '../model/ButtonVersion';
|
|
3
|
+
import type { ButtonInnerProps, ButtonProps } from './ButtonProps';
|
|
11
4
|
|
|
12
5
|
const buttonStyleMap: Record<ButtonVersion, string> = {
|
|
13
6
|
primary: 'text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active',
|
|
@@ -20,20 +13,28 @@ const buttonDisabledStyleMap: Record<ButtonVersion, string> = {
|
|
|
20
13
|
secondary: 'bg-secondary-light text-secondary-text',
|
|
21
14
|
};
|
|
22
15
|
|
|
23
|
-
const styleButton = 'inline-block
|
|
16
|
+
const styleButton = 'inline-block text-center font-sans select-none';
|
|
24
17
|
|
|
25
18
|
export const Button = JSX<ButtonProps>(
|
|
26
19
|
({
|
|
27
20
|
className,
|
|
28
21
|
text,
|
|
22
|
+
aboveText,
|
|
23
|
+
appendLeft,
|
|
29
24
|
href,
|
|
30
25
|
target,
|
|
31
26
|
onClick,
|
|
32
27
|
children,
|
|
33
28
|
disabled,
|
|
34
|
-
|
|
29
|
+
rounded,
|
|
30
|
+
version = 'none',
|
|
35
31
|
ariaLabel,
|
|
32
|
+
...rest
|
|
36
33
|
}) => {
|
|
34
|
+
const buttonInner = children ?? (
|
|
35
|
+
<ButtonInner text={text} aboveText={aboveText} appendLeft={appendLeft} rounded={rounded} />
|
|
36
|
+
);
|
|
37
|
+
|
|
37
38
|
if (disabled) {
|
|
38
39
|
return (
|
|
39
40
|
<div
|
|
@@ -41,33 +42,49 @@ export const Button = JSX<ButtonProps>(
|
|
|
41
42
|
aria-disabled="true"
|
|
42
43
|
aria-label={ariaLabel}
|
|
43
44
|
tabIndex="-1"
|
|
44
|
-
className={`${styleButton}
|
|
45
|
-
|
|
46
|
-
}`}
|
|
45
|
+
className={`${styleButton} ${buttonDisabledStyleMap[version] || ''} ${
|
|
46
|
+
rounded ? 'rounded-full' : 'rounded-md'
|
|
47
|
+
} ${className || ''}`}
|
|
47
48
|
>
|
|
48
|
-
{
|
|
49
|
-
<div>{children}</div>
|
|
50
|
-
) : (
|
|
51
|
-
<div className="text-sm font-medium py-1.5">{text}</div>
|
|
52
|
-
)}
|
|
49
|
+
{buttonInner}
|
|
53
50
|
</div>
|
|
54
51
|
);
|
|
55
52
|
}
|
|
56
53
|
|
|
57
54
|
return (
|
|
58
55
|
<a
|
|
59
|
-
className={`${styleButton} no-underline ${buttonStyleMap[version]
|
|
56
|
+
className={`${styleButton} cursor-pointer no-underline ${buttonStyleMap[version] || ''} ${
|
|
57
|
+
rounded ? 'rounded-full' : 'rounded-md'
|
|
58
|
+
} ${className || ''}`}
|
|
60
59
|
href={href}
|
|
61
60
|
target={target}
|
|
62
61
|
onClick={onClick}
|
|
63
62
|
aria-label={ariaLabel}
|
|
63
|
+
role={!href ? 'button' : 'link'}
|
|
64
|
+
{...rest}
|
|
64
65
|
>
|
|
65
|
-
{
|
|
66
|
-
<div>{children}</div>
|
|
67
|
-
) : (
|
|
68
|
-
<div className="text-sm font-medium py-1.5">{text}</div>
|
|
69
|
-
)}
|
|
66
|
+
{buttonInner}
|
|
70
67
|
</a>
|
|
71
68
|
);
|
|
72
69
|
},
|
|
73
70
|
);
|
|
71
|
+
|
|
72
|
+
export const ButtonInner = JSX<ButtonInnerProps>(({ text, aboveText, appendLeft, rounded }) => {
|
|
73
|
+
const withoutText = !text && !aboveText && Boolean(appendLeft);
|
|
74
|
+
|
|
75
|
+
const buttonInnerClasses = `flex items-center justify-center ${
|
|
76
|
+
withoutText ? 'h-12 w-12 min-h-12 min-w-12' : `px-8 gap-2 ${aboveText ? 'py-2' : 'py-[13px]'}`
|
|
77
|
+
} ${rounded ? 'rounded-full' : ''}`;
|
|
78
|
+
|
|
79
|
+
return (
|
|
80
|
+
<div className={buttonInnerClasses}>
|
|
81
|
+
{appendLeft ? appendLeft : null}
|
|
82
|
+
{!withoutText ? (
|
|
83
|
+
<div>
|
|
84
|
+
<div className="text-xxs text-left">{aboveText}</div>
|
|
85
|
+
<div className="text-sm font-medium text-left">{text}</div>
|
|
86
|
+
</div>
|
|
87
|
+
) : null}
|
|
88
|
+
</div>
|
|
89
|
+
);
|
|
90
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ButtonVersion } from '../model/ButtonVersion';
|
|
2
|
+
import type { LinkContent } from '../model/LinkContent';
|
|
3
|
+
import { IconName } from './IconProps';
|
|
4
|
+
|
|
5
|
+
export interface ButtonInnerProps {
|
|
6
|
+
text?: string;
|
|
7
|
+
aboveText?: string;
|
|
8
|
+
appendLeft?: any;
|
|
9
|
+
rounded?: boolean;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface ButtonProps extends LinkContent, ButtonInnerProps {
|
|
13
|
+
className?: string;
|
|
14
|
+
version?: ButtonVersion;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
rel?: string;
|
|
17
|
+
ariaLabel?: string;
|
|
18
|
+
/** @hidden */
|
|
19
|
+
onClick?: (ev: MouseEvent) => any;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface ButtonWithIconProps extends ButtonProps {
|
|
23
|
+
icon?: IconName;
|
|
24
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import '../setup-fixture';
|
|
2
|
+
import { Icon } from './Icon';
|
|
3
|
+
|
|
4
|
+
import { IconMap } from './IconProps';
|
|
5
|
+
import type { IconName } from './IconProps';
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
all: (
|
|
9
|
+
<div className="w-[1280px]">
|
|
10
|
+
<div className="grid grid-cols-6 gap-8">
|
|
11
|
+
{(Object.keys(IconMap) as Array<IconName>)
|
|
12
|
+
.filter((v) => isNaN(Number(v)))
|
|
13
|
+
.map((icon, i) => (
|
|
14
|
+
<div key={String(i)} className="flex flex-col items-center gap-3">
|
|
15
|
+
<div>{icon}</div>
|
|
16
|
+
<Icon name={icon} width="64" />
|
|
17
|
+
</div>
|
|
18
|
+
))}
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
),
|
|
22
|
+
};
|
package/src/ui-kit/Icon.tsx
CHANGED
|
@@ -1,37 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { projectSettings } from '../ProjectSettings';
|
|
3
|
-
|
|
4
|
-
export type IconName =
|
|
5
|
-
| 'ActualBalanceIcon'
|
|
6
|
-
| 'AppleIcon'
|
|
7
|
-
| 'CalendarIcon'
|
|
8
|
-
| 'ClockIcon'
|
|
9
|
-
| 'ComfortableCompIcon'
|
|
10
|
-
| 'DollarIcon'
|
|
11
|
-
| 'EmptyWalletIcon'
|
|
12
|
-
| 'EuroIcon'
|
|
13
|
-
| 'GridIcon'
|
|
14
|
-
| 'LoupeIcon'
|
|
15
|
-
| 'NewDocIcon'
|
|
16
|
-
| 'OkIcon'
|
|
17
|
-
| 'PassSendIcon'
|
|
18
|
-
| 'PercentageSquareIcon'
|
|
19
|
-
| 'PlayMarketIcon'
|
|
20
|
-
| 'ProfileIcon'
|
|
21
|
-
| 'SignDocsIcon'
|
|
22
|
-
| 'TelegramIcon'
|
|
23
|
-
| 'VKIcon'
|
|
24
|
-
| 'ArrowLeftIcon';
|
|
25
|
-
|
|
26
|
-
export interface IconProps {
|
|
27
|
-
className?: string;
|
|
28
|
-
name: IconName;
|
|
29
|
-
alt?: string;
|
|
30
|
-
title?: string;
|
|
31
|
-
width?: string;
|
|
32
|
-
height?: string;
|
|
33
|
-
'aria-hidden'?: 'true';
|
|
34
|
-
}
|
|
3
|
+
import type { IconProps } from './IconProps';
|
|
35
4
|
|
|
36
5
|
export const Icon = JSX<IconProps>(
|
|
37
6
|
({ className, name, alt = `Icon ${name}`, title = alt, ...imgProps }) => (
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export enum IconMap {
|
|
2
|
+
'ActualBalanceIcon',
|
|
3
|
+
'AppleIcon',
|
|
4
|
+
'CalendarIcon',
|
|
5
|
+
'ClockIcon',
|
|
6
|
+
'ComfortableCompIcon',
|
|
7
|
+
'DollarIcon',
|
|
8
|
+
'EmptyWalletIcon',
|
|
9
|
+
'EuroIcon',
|
|
10
|
+
'GridIcon',
|
|
11
|
+
'LoupeIcon',
|
|
12
|
+
'NewDocIcon',
|
|
13
|
+
'OkIcon',
|
|
14
|
+
'PassSendIcon',
|
|
15
|
+
'PercentageSquareIcon',
|
|
16
|
+
'PlayMarketIcon',
|
|
17
|
+
'ProfileIcon',
|
|
18
|
+
'SignDocsIcon',
|
|
19
|
+
'TelegramIcon',
|
|
20
|
+
'VKIcon',
|
|
21
|
+
'GlassIcon',
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type IconName = keyof typeof IconMap;
|
|
25
|
+
|
|
26
|
+
export interface IconProps {
|
|
27
|
+
className?: string;
|
|
28
|
+
name: IconName;
|
|
29
|
+
alt?: string;
|
|
30
|
+
title?: string;
|
|
31
|
+
width?: string;
|
|
32
|
+
height?: string;
|
|
33
|
+
'aria-hidden'?: 'true';
|
|
34
|
+
}
|
package/src/ui-kit/SVG.tsx
CHANGED
|
@@ -17,12 +17,21 @@ export interface SVGProps extends SVGPathOptions {
|
|
|
17
17
|
className?: string;
|
|
18
18
|
viewBox?: string;
|
|
19
19
|
paths: SVGPath[];
|
|
20
|
+
width?: string;
|
|
21
|
+
height?: string;
|
|
20
22
|
}
|
|
21
23
|
|
|
22
24
|
export const SVG = JSX<SVGProps>(
|
|
23
|
-
({ className, viewBox, fill = 'none', paths, ...commonOptions }) => {
|
|
25
|
+
({ className, viewBox, fill = 'none', width, height, paths, ...commonOptions }) => {
|
|
24
26
|
return (
|
|
25
|
-
<svg
|
|
27
|
+
<svg
|
|
28
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
29
|
+
className={className}
|
|
30
|
+
viewBox={viewBox}
|
|
31
|
+
fill={fill}
|
|
32
|
+
width={width}
|
|
33
|
+
height={height}
|
|
34
|
+
>
|
|
26
35
|
{paths.map(({ d, fill, ...options }, i) => (
|
|
27
36
|
<path key={i} d={d} fill={fill || 'currentColor'} {...commonOptions} {...options} />
|
|
28
37
|
))}
|
package/src/ui-kit/Title.tsx
CHANGED
|
@@ -1,17 +1,5 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
|
|
3
|
-
export enum SizeTableClass {
|
|
4
|
-
'XL' = 'text-title-lg',
|
|
5
|
-
'L' = 'text-title',
|
|
6
|
-
'M' = 'text-title-sm',
|
|
7
|
-
'S' = 'text-title-xs',
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export type TitleSize = keyof typeof SizeTableClass;
|
|
11
|
-
|
|
12
|
-
export interface TitleProps extends Partial<HTMLHeadingElement> {
|
|
13
|
-
size?: TitleSize;
|
|
14
|
-
}
|
|
2
|
+
import { SizeTableClass, TitleProps } from './TitleProps';
|
|
15
3
|
|
|
16
4
|
export const Title = JSX<TitleProps>(({ size = 'L', className, children, ...rest }) => {
|
|
17
5
|
const Tag = size === 'XL' ? 'h1' : 'h2';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export enum SizeTableClass {
|
|
2
|
+
'XL' = 'text-title-lg',
|
|
3
|
+
'L' = 'text-title',
|
|
4
|
+
'M' = 'text-title-sm',
|
|
5
|
+
'S' = 'text-title-xs',
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export type TitleSize = keyof typeof SizeTableClass;
|
|
9
|
+
|
|
10
|
+
export interface TitleProps extends Partial<HTMLHeadingElement> {
|
|
11
|
+
size?: TitleSize;
|
|
12
|
+
}
|
package/src/ui-kit/TopItem.tsx
CHANGED
package/src/useLink.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HandlerDecorator, Router } from './ContentPageContext';
|
|
2
|
-
import type { LinkContent } from './
|
|
2
|
+
import type { LinkContent } from './model/LinkContent';
|
|
3
3
|
import { adjustHref, isURL } from './utils/url';
|
|
4
4
|
|
|
5
5
|
const defaultHandlerDecorator: HandlerDecorator = (handler, targetContent) => handler;
|
|
@@ -9,7 +9,7 @@ export function useLink(
|
|
|
9
9
|
router,
|
|
10
10
|
handlerDecorator = defaultHandlerDecorator,
|
|
11
11
|
}: { router: Router; handlerDecorator?: HandlerDecorator },
|
|
12
|
-
link: Partial<LinkContent>,
|
|
12
|
+
link: Partial<LinkContent & { className: string }>,
|
|
13
13
|
) {
|
|
14
14
|
const href = adjustHref(link.href, router);
|
|
15
15
|
return {
|
package/src/useSitemap.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AsyncDataHook } from './ContentPageContext';
|
|
2
|
-
import type { HeaderContent } from './Header/
|
|
2
|
+
import type { HeaderContent } from './Header/HeaderContent';
|
|
3
3
|
import { projectSettings } from './ProjectSettings';
|
|
4
4
|
|
|
5
5
|
export function useSitemap(useAsyncData: AsyncDataHook): HeaderContent {
|
package/dist/Footer/index.d.ts
DELETED
package/dist/Footer/index.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.Footer = void 0;
|
|
3
|
-
var Footer_1 = require("./Footer");
|
|
4
|
-
Object.defineProperty(exports, "Footer", { enumerable: true, get: function () { return Footer_1.Footer; } });
|
|
5
|
-
//# sourceMappingURL=index.js.map
|
package/dist/Footer/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Footer/index.ts"],"names":[],"mappings":";;AAAA,mCAAkC;AAAzB,gGAAA,MAAM,OAAA"}
|
package/dist/Header/index.d.ts
DELETED
package/dist/Header/index.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.Header = void 0;
|
|
3
|
-
var Header_1 = require("./Header");
|
|
4
|
-
Object.defineProperty(exports, "Header", { enumerable: true, get: function () { return Header_1.Header; } });
|
|
5
|
-
//# sourceMappingURL=index.js.map
|
package/dist/Header/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Header/index.ts"],"names":[],"mappings":";;AAAA,mCAAkC;AAAzB,gGAAA,MAAM,OAAA"}
|
package/dist/Img.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Img.js","sourceRoot":"","sources":["../src/Img.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAQ3B,QAAA,GAAG,GAAG,IAAA,aAAG,EAAqB,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CACnE,qCAAS,SAAS,EAAE,GAAG,SAAS,IAAI,EAAE,EAAE,aACrC,KAAK,CAAC,OAAO,EAAE,MAAM;YACpB,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,EAAE,CAAC,CAC5C,mCAAgC,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,gBAAgB,CAAC,MAAM,CAAC,IAA9D,GAAG,KAAK,IAAI,GAAG,EAAE,CAAiD,CAChF,CAAC;YACJ,CAAC,CAAC,IAAI,EACR,gCAAK,GAAG,EAAE,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,CAAC,GAAG,IAAI,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,KAAM,KAAK,EAAE,IAAI,GAAI,IACnF,CACX,CAAC,CAAC;AAEH,SAAgB,gBAAgB,CAAC,MAA2B;IAC1D,OAAO,MAAM,CAAC,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AACxD,CAAC;AAFD,4CAEC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ButtonProps } from './Button';
|
|
2
|
-
import { IconName } from './Icon';
|
|
3
|
-
export interface IconButtonProps extends ButtonProps {
|
|
4
|
-
icon?: IconName;
|
|
5
|
-
aboveText?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const IconButton: (props: import("@redneckz/uni-jsx").PropsWithChildren<IconButtonProps, any>, context?: any) => any;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.IconButton = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const Button_1 = require("./Button");
|
|
6
|
-
const Icon_1 = require("./Icon");
|
|
7
|
-
exports.IconButton = (0, uni_jsx_1.JSX)((props) => {
|
|
8
|
-
return ((0, jsx_runtime_1.jsx)(Button_1.Button, { ...props, children: props.icon ? ((0, jsx_runtime_1.jsxs)("div", { className: "flex items-center", children: [(0, jsx_runtime_1.jsx)("div", { className: "mr-2", children: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: props.icon, width: "24", height: "24" }) }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { className: "text-xxs text-left", children: props.aboveText }), (0, jsx_runtime_1.jsx)("div", { className: "text-sm font-medium text-left", children: props.text })] })] })) : null }));
|
|
9
|
-
});
|
|
10
|
-
//# sourceMappingURL=IconButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.js","sourceRoot":"","sources":["../../src/ui-kit/IconButton.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,qCAAkC;AAClC,iCAAwC;AAO3B,QAAA,UAAU,GAAG,IAAA,aAAG,EAAkB,CAAC,KAAK,EAAE,EAAE;IACvD,OAAO,CACL,uBAAC,eAAM,OAAK,KAAK,YACd,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CACZ,iCAAK,SAAS,EAAC,mBAAmB,aAChC,gCAAK,SAAS,EAAC,MAAM,YACnB,uBAAC,WAAI,IAAC,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,GAC7C,EACN,4CACE,gCAAK,SAAS,EAAC,oBAAoB,YAAE,KAAK,CAAC,SAAS,GAAO,EAC3D,gCAAK,SAAS,EAAC,+BAA+B,YAAE,KAAK,CAAC,IAAI,GAAO,IAC7D,IACF,CACP,CAAC,CAAC,CAAC,IAAI,GACD,CACV,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
package/lib/Footer/index.d.ts
DELETED
package/lib/Footer/index.js
DELETED
package/lib/Footer/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Footer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
|
package/lib/Header/index.d.ts
DELETED
package/lib/Header/index.js
DELETED
package/lib/Header/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Header/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
|
package/lib/Img.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Img.js","sourceRoot":"","sources":["../src/Img.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAQxC,MAAM,CAAC,MAAM,GAAG,GAAG,GAAG,CAAqB,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CACnE,mBAAS,SAAS,EAAE,GAAG,SAAS,IAAI,EAAE,EAAE,aACrC,KAAK,CAAC,OAAO,EAAE,MAAM;YACpB,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,EAAE,CAAC,CAC5C,iBAAgC,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,gBAAgB,CAAC,MAAM,CAAC,IAA9D,GAAG,KAAK,IAAI,GAAG,EAAE,CAAiD,CAChF,CAAC;YACJ,CAAC,CAAC,IAAI,EACR,cAAK,GAAG,EAAE,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,CAAC,GAAG,IAAI,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,KAAM,KAAK,EAAE,IAAI,GAAI,IACnF,CACX,CAAC,CAAC;AAEH,MAAM,UAAU,gBAAgB,CAAC,MAA2B;IAC1D,OAAO,MAAM,CAAC,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AACxD,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ButtonProps } from './Button';
|
|
2
|
-
import { IconName } from './Icon';
|
|
3
|
-
export interface IconButtonProps extends ButtonProps {
|
|
4
|
-
icon?: IconName;
|
|
5
|
-
aboveText?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const IconButton: (props: import("@redneckz/uni-jsx").PropsWithChildren<IconButtonProps, any>, context?: any) => any;
|
package/lib/ui-kit/IconButton.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { Button } from './Button.js';
|
|
4
|
-
import { Icon } from './Icon.js';
|
|
5
|
-
export const IconButton = JSX((props) => {
|
|
6
|
-
return (_jsx(Button, { ...props, children: props.icon ? (_jsxs("div", { className: "flex items-center", children: [_jsx("div", { className: "mr-2", children: _jsx(Icon, { name: props.icon, width: "24", height: "24" }) }), _jsxs("div", { children: [_jsx("div", { className: "text-xxs text-left", children: props.aboveText }), _jsx("div", { className: "text-sm font-medium text-left", children: props.text })] })] })) : null }));
|
|
7
|
-
});
|
|
8
|
-
//# sourceMappingURL=IconButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.js","sourceRoot":"","sources":["../../src/ui-kit/IconButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,IAAI,EAAY,MAAM,QAAQ,CAAC;AAOxC,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAAkB,CAAC,KAAK,EAAE,EAAE;IACvD,OAAO,CACL,KAAC,MAAM,OAAK,KAAK,YACd,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CACZ,eAAK,SAAS,EAAC,mBAAmB,aAChC,cAAK,SAAS,EAAC,MAAM,YACnB,KAAC,IAAI,IAAC,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,GAC7C,EACN,0BACE,cAAK,SAAS,EAAC,oBAAoB,YAAE,KAAK,CAAC,SAAS,GAAO,EAC3D,cAAK,SAAS,EAAC,+BAA+B,YAAE,KAAK,CAAC,IAAI,GAAO,IAC7D,IACF,CACP,CAAC,CAAC,CAAC,IAAI,GACD,CACV,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
package/src/Footer/index.ts
DELETED
package/src/Header/index.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type { ButtonProps } from './Button';
|
|
3
|
-
import { Button } from './Button';
|
|
4
|
-
import { Icon, IconName } from './Icon';
|
|
5
|
-
|
|
6
|
-
export interface IconButtonProps extends ButtonProps {
|
|
7
|
-
icon?: IconName;
|
|
8
|
-
aboveText?: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export const IconButton = JSX<IconButtonProps>((props) => {
|
|
12
|
-
return (
|
|
13
|
-
<Button {...props}>
|
|
14
|
-
{props.icon ? (
|
|
15
|
-
<div className="flex items-center">
|
|
16
|
-
<div className="mr-2">
|
|
17
|
-
<Icon name={props.icon} width="24" height="24" />
|
|
18
|
-
</div>
|
|
19
|
-
<div>
|
|
20
|
-
<div className="text-xxs text-left">{props.aboveText}</div>
|
|
21
|
-
<div className="text-sm font-medium text-left">{props.text}</div>
|
|
22
|
-
</div>
|
|
23
|
-
</div>
|
|
24
|
-
) : null}
|
|
25
|
-
</Button>
|
|
26
|
-
);
|
|
27
|
-
});
|