@redneckz/wildless-cms-uni-blocks 0.3.41 → 0.3.44
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 +73 -62
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/BlockContent.d.ts +2 -1
- package/dist/components/Blocks.d.ts +1 -0
- package/dist/components/Blocks.js +2 -0
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Bonus/Bonus.d.ts +5 -0
- package/dist/components/Bonus/Bonus.js +14 -0
- package/dist/components/Bonus/Bonus.js.map +1 -0
- package/dist/components/Bonus/BonusContent.d.ts +20 -0
- package/dist/components/Bonus/BonusContent.js +2 -0
- package/dist/components/Bonus/BonusContent.js.map +1 -0
- package/dist/components/Footer/Footer.js +1 -1
- package/dist/components/Footer/Footer.js.map +1 -1
- package/dist/components/Footer/MediaButton.d.ts +2 -0
- package/dist/components/Footer/MediaButton.js +5 -2
- package/dist/components/Footer/MediaButton.js.map +1 -1
- package/dist/components/Footer/SocialMedia.d.ts +2 -0
- package/dist/components/Footer/SocialMedia.js +2 -2
- package/dist/components/Footer/SocialMedia.js.map +1 -1
- package/dist/components/Footer/SocialMedia.mobile.d.ts +2 -0
- package/dist/components/Footer/SocialMedia.mobile.js +2 -2
- package/dist/components/Footer/SocialMedia.mobile.js.map +1 -1
- package/dist/components/Header/Header.mobile.js.map +1 -1
- package/dist/components/Header/HeaderSecondaryMenu.js +1 -1
- package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/dist/components/Header/HeaderSubMenuObserver.js +11 -8
- package/dist/components/Header/HeaderSubMenuObserver.js.map +1 -1
- package/dist/components/Header/HeaderTop.js +1 -1
- package/dist/components/Header/HeaderTop.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.js +1 -1
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsListItem.js +1 -1
- package/dist/components/OtherProducts/OtherProducts.js +2 -2
- package/dist/components/OtherProducts/OtherProducts.js.map +1 -1
- package/dist/components/OtherProducts/OtherProductsContent.d.ts +2 -0
- package/dist/components/ProductBlock/ProductBlock.js +1 -1
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.js +2 -2
- package/dist/components/ProductBlock/renderBackwardButton.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/ProductTile/ProductTile.js +1 -1
- package/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/dist/components/Recommendation/RecommendationCard.js +2 -2
- package/dist/components/Recommendation/RecommendationCard.js.map +1 -1
- package/dist/content-page-repository/transformPicture.js +4 -1
- package/dist/content-page-repository/transformPicture.js.map +1 -1
- package/dist/ui-kit/Icon/Icon.js +3 -8
- package/dist/ui-kit/Icon/Icon.js.map +1 -1
- package/dist/ui-kit/Icon/IconProps.d.ts +0 -7
- package/dist/ui-kit/Logo/Logo.js +1 -1
- package/dist/ui-kit/Logo/Logo.js.map +1 -1
- package/dist/ui-kit/Tabs/Tabs.js +1 -1
- package/dist/ui-kit/Tabs/Tabs.js.map +1 -1
- package/fonts/mohave/Mohave-Regular.ttf +0 -0
- package/fonts/mohave/mohave.css +7 -0
- package/lib/common.css +1 -1
- package/lib/components/BlockContent.d.ts +2 -1
- package/lib/components/Blocks.d.ts +1 -0
- package/lib/components/Blocks.js +2 -0
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Bonus/Bonus.d.ts +5 -0
- package/lib/components/Bonus/Bonus.fixture.d.ts +6 -0
- package/lib/components/Bonus/Bonus.js +12 -0
- package/lib/components/Bonus/Bonus.js.map +1 -0
- package/lib/components/Bonus/BonusContent.d.ts +20 -0
- package/lib/components/Bonus/BonusContent.js +2 -0
- package/lib/components/Bonus/BonusContent.js.map +1 -0
- package/lib/components/Footer/Footer.js +1 -1
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Footer/MediaButton.d.ts +2 -0
- package/lib/components/Footer/MediaButton.js +5 -2
- package/lib/components/Footer/MediaButton.js.map +1 -1
- package/lib/components/Footer/SocialMedia.d.ts +2 -0
- package/lib/components/Footer/SocialMedia.js +2 -2
- package/lib/components/Footer/SocialMedia.js.map +1 -1
- package/lib/components/Footer/SocialMedia.mobile.d.ts +2 -0
- package/lib/components/Footer/SocialMedia.mobile.js +2 -2
- package/lib/components/Footer/SocialMedia.mobile.js.map +1 -1
- package/lib/components/Header/Header.mobile.js.map +1 -1
- package/lib/components/Header/HeaderSecondaryMenu.js +1 -1
- package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/lib/components/Header/HeaderSubMenuObserver.js +11 -8
- package/lib/components/Header/HeaderSubMenuObserver.js.map +1 -1
- package/lib/components/Header/HeaderTop.js +1 -1
- package/lib/components/Header/HeaderTop.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.js +1 -1
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsListItem.js +1 -1
- package/lib/components/OtherProducts/OtherProducts.js +2 -2
- package/lib/components/OtherProducts/OtherProducts.js.map +1 -1
- package/lib/components/OtherProducts/OtherProductsContent.d.ts +2 -0
- package/lib/components/ProductBlock/ProductBlock.js +1 -1
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.js +2 -2
- package/lib/components/ProductBlock/renderBackwardButton.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/ProductTile/ProductTile.js +1 -1
- package/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/lib/components/Recommendation/RecommendationCard.js +2 -2
- package/lib/components/Recommendation/RecommendationCard.js.map +1 -1
- package/lib/content-page-repository/transformPicture.js +4 -1
- package/lib/content-page-repository/transformPicture.js.map +1 -1
- package/lib/ui-kit/Icon/Icon.js +3 -8
- package/lib/ui-kit/Icon/Icon.js.map +1 -1
- package/lib/ui-kit/Icon/IconProps.d.ts +0 -7
- package/lib/ui-kit/Logo/Logo.js +1 -1
- package/lib/ui-kit/Logo/Logo.js.map +1 -1
- package/lib/ui-kit/Tabs/Tabs.js +1 -1
- package/lib/ui-kit/Tabs/Tabs.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +42 -44
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/BlockContent.d.ts +2 -1
- package/mobile/dist/components/Bonus/Bonus.d.ts +5 -0
- package/mobile/dist/components/Bonus/Bonus.js +14 -0
- package/mobile/dist/components/Bonus/Bonus.js.map +1 -0
- package/mobile/dist/components/Bonus/BonusContent.d.ts +20 -0
- package/mobile/dist/components/Bonus/BonusContent.js +2 -0
- package/mobile/dist/components/Bonus/BonusContent.js.map +1 -0
- package/mobile/dist/components/Footer/MediaButton.d.ts +2 -0
- package/mobile/dist/components/Footer/MediaButton.js +5 -2
- package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
- package/mobile/dist/components/Footer/SocialMedia.d.ts +2 -0
- package/mobile/dist/components/Footer/SocialMedia.js +2 -2
- package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/dist/components/Header/Header.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/Header/HeaderSubMenuObserver.js +11 -8
- package/mobile/dist/components/Header/HeaderSubMenuObserver.js.map +1 -1
- package/mobile/dist/components/Header/HeaderTop.js +1 -1
- package/mobile/dist/components/Header/HeaderTop.js.map +1 -1
- package/mobile/dist/components/OtherProducts/OtherProducts.js +2 -2
- package/mobile/dist/components/OtherProducts/OtherProducts.js.map +1 -1
- package/mobile/dist/components/OtherProducts/OtherProductsContent.d.ts +2 -0
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js +2 -2
- package/mobile/dist/components/ProductBlock/renderBackwardButton.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/ProductTile/ProductTile.js +1 -1
- package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/dist/components/Recommendation/RecommendationCard.js +2 -2
- package/mobile/dist/components/Recommendation/RecommendationCard.js.map +1 -1
- package/mobile/dist/content-page-repository/transformPicture.js +4 -1
- package/mobile/dist/content-page-repository/transformPicture.js.map +1 -1
- package/mobile/dist/ui-kit/Icon/Icon.js +3 -8
- package/mobile/dist/ui-kit/Icon/Icon.js.map +1 -1
- package/mobile/dist/ui-kit/Icon/IconProps.d.ts +0 -7
- package/mobile/dist/ui-kit/Tabs/Tabs.js +1 -1
- package/mobile/dist/ui-kit/Tabs/Tabs.js.map +1 -1
- package/mobile/lib/components/BlockContent.d.ts +2 -1
- package/mobile/lib/components/Bonus/Bonus.d.ts +5 -0
- package/mobile/lib/components/Bonus/Bonus.js +12 -0
- package/mobile/lib/components/Bonus/Bonus.js.map +1 -0
- package/mobile/lib/components/Bonus/BonusContent.d.ts +20 -0
- package/mobile/lib/components/Bonus/BonusContent.js +2 -0
- package/mobile/lib/components/Bonus/BonusContent.js.map +1 -0
- package/mobile/lib/components/Footer/MediaButton.d.ts +2 -0
- package/mobile/lib/components/Footer/MediaButton.js +5 -2
- package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
- package/mobile/lib/components/Footer/SocialMedia.d.ts +2 -0
- package/mobile/lib/components/Footer/SocialMedia.js +2 -2
- package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/lib/components/Header/Header.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/Header/HeaderSubMenuObserver.js +11 -8
- package/mobile/lib/components/Header/HeaderSubMenuObserver.js.map +1 -1
- package/mobile/lib/components/Header/HeaderTop.js +1 -1
- package/mobile/lib/components/Header/HeaderTop.js.map +1 -1
- package/mobile/lib/components/OtherProducts/OtherProducts.js +2 -2
- package/mobile/lib/components/OtherProducts/OtherProducts.js.map +1 -1
- package/mobile/lib/components/OtherProducts/OtherProductsContent.d.ts +2 -0
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js +2 -2
- package/mobile/lib/components/ProductBlock/renderBackwardButton.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/ProductTile/ProductTile.js +1 -1
- package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/lib/components/Recommendation/RecommendationCard.js +2 -2
- package/mobile/lib/components/Recommendation/RecommendationCard.js.map +1 -1
- package/mobile/lib/content-page-repository/transformPicture.js +4 -1
- package/mobile/lib/content-page-repository/transformPicture.js.map +1 -1
- package/mobile/lib/ui-kit/Icon/Icon.js +3 -8
- package/mobile/lib/ui-kit/Icon/Icon.js.map +1 -1
- package/mobile/lib/ui-kit/Icon/IconProps.d.ts +0 -7
- package/mobile/lib/ui-kit/Tabs/Tabs.js +1 -1
- package/mobile/lib/ui-kit/Tabs/Tabs.js.map +1 -1
- package/mobile/src/common.css +5 -0
- package/mobile/src/components/BlockContent.ts +2 -0
- package/mobile/src/components/Bonus/Bonus.example.json +12 -0
- package/mobile/src/components/Bonus/Bonus.tsx +50 -0
- package/mobile/src/components/Bonus/BonusContent.ts +22 -0
- package/mobile/src/components/ContentPage/ContentPage.page.json +33 -10
- package/mobile/src/components/Footer/MediaButton.tsx +11 -6
- package/mobile/src/components/Footer/SocialMedia.tsx +8 -2
- package/mobile/src/components/Header/Header.tsx +1 -1
- package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +2 -2
- package/mobile/src/components/Header/HeaderSubMenuObserver.ts +14 -12
- package/mobile/src/components/Header/HeaderTop.tsx +1 -1
- package/mobile/src/components/OtherProducts/OtherProducts.tsx +18 -13
- package/mobile/src/components/OtherProducts/OtherProductsContent.ts +2 -0
- package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +2 -3
- package/mobile/src/components/ProductBlock/renderBenefit.tsx +0 -1
- package/mobile/src/components/ProductTile/ProductTile.tsx +1 -1
- package/mobile/src/components/Recommendation/RecommendationCard.tsx +8 -3
- package/mobile/src/content-page-repository/transformPicture.ts +5 -1
- package/mobile/src/ui-kit/Icon/Icon.tsx +3 -15
- package/mobile/src/ui-kit/Icon/IconProps.ts +0 -8
- package/mobile/src/ui-kit/List/List.tsx +1 -1
- package/mobile/src/ui-kit/Tabs/Tabs.tsx +6 -2
- package/package.json +1 -1
- package/src/common.css +5 -0
- package/src/components/BlockContent.ts +2 -0
- package/src/components/Blocks.ts +2 -0
- package/src/components/Bonus/Bonus.example.json +12 -0
- package/src/components/Bonus/Bonus.fixture.tsx +39 -0
- package/src/components/Bonus/Bonus.tsx +50 -0
- package/src/components/Bonus/BonusContent.ts +22 -0
- package/src/components/ContentPage/ContentPage.page.json +33 -10
- package/src/components/Footer/Footer.tsx +2 -2
- package/src/components/Footer/MediaButton.tsx +11 -6
- package/src/components/Footer/SocialMedia.mobile.tsx +8 -2
- package/src/components/Footer/SocialMedia.tsx +21 -13
- package/src/components/Header/Header.mobile.tsx +1 -1
- package/src/components/Header/HeaderSecondaryMenu.tsx +2 -2
- package/src/components/Header/HeaderSubMenuObserver.ts +14 -12
- package/src/components/Header/HeaderTop.tsx +1 -1
- package/src/components/LinkDocs/LinkDocs.tsx +1 -1
- package/src/components/LinkDocs/LinkDocsListItem.tsx +1 -1
- package/src/components/OtherProducts/OtherProducts.fixture.tsx +12 -11
- package/src/components/OtherProducts/OtherProducts.tsx +18 -13
- package/src/components/OtherProducts/OtherProductsContent.ts +2 -0
- package/src/components/ProductBlock/ProductBlock.tsx +1 -1
- package/src/components/ProductBlock/renderBackwardButton.tsx +2 -3
- package/src/components/ProductBlock/renderBenefit.mobile.tsx +0 -1
- package/src/components/ProductTile/ProductTile.tsx +1 -1
- package/src/components/Recommendation/RecommendationCard.tsx +8 -3
- package/src/content-page-repository/transformPicture.ts +5 -1
- package/src/ui-kit/Icon/Icon.tsx +3 -15
- package/src/ui-kit/Icon/IconProps.ts +0 -8
- package/src/ui-kit/List/List.tsx +1 -1
- package/src/ui-kit/Logo/Logo.tsx +1 -1
- package/src/ui-kit/Tabs/Tabs.tsx +6 -2
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { context } from '../../setup-fixture';
|
|
2
|
-
import {
|
|
3
|
-
import { PRODUCT_TILE, PRODUCT_PENSION_TILE } from '../ProductTile/ProductTile.fixture';
|
|
4
|
-
import { TEXT_BLOCK } from '../TextBlock/TextBlock.fixture';
|
|
5
|
-
import { TILE, TILE_PREMIUM } from '../Tile/Tile.fixture';
|
|
2
|
+
import { defaultProps as GALLERY } from '../Gallery/Gallery.fixture';
|
|
6
3
|
import { HEADLINE } from '../Headline/Headline.fixture';
|
|
7
|
-
import { PICTURE_TEXT } from '../PictureText/PictureText.fixture';
|
|
8
4
|
import { linkDocsContentExample } from '../LinkDocs/linkDocsContentExample';
|
|
9
|
-
import { defaultProps as GALLERY } from '../Gallery/Gallery.fixture';
|
|
10
5
|
import { defaultProps as MINI_GALLERY } from '../MiniGallery/MiniGallery.fixture';
|
|
11
|
-
import {
|
|
6
|
+
import { PICTURE_TEXT } from '../PictureText/PictureText.fixture';
|
|
7
|
+
import { PRODUCT_BLOCK } from '../ProductBlock/ProductBlock.fixture';
|
|
8
|
+
import { PRODUCT_PENSION_TILE, PRODUCT_TILE } from '../ProductTile/ProductTile.fixture';
|
|
9
|
+
import { TEXT_BLOCK } from '../TextBlock/TextBlock.fixture';
|
|
10
|
+
import { TILE, TILE_PREMIUM } from '../Tile/Tile.fixture';
|
|
12
11
|
import type { OtherProductsProps } from './OtherProducts';
|
|
12
|
+
import { OtherProducts } from './OtherProducts';
|
|
13
13
|
|
|
14
14
|
import type {
|
|
15
|
-
ProductBlockBlockListDef,
|
|
16
|
-
ProductTileBlockListDef,
|
|
17
|
-
TextBlockBlockListDef,
|
|
18
|
-
TileBlockListDef,
|
|
19
15
|
GalleryBlockListDef,
|
|
20
16
|
HeadlineBlockListDef,
|
|
21
17
|
LinkDocsBlockListDef,
|
|
22
18
|
MiniGalleryBlockListDef,
|
|
23
19
|
PictureTextBlockListDef,
|
|
20
|
+
ProductBlockBlockListDef,
|
|
21
|
+
ProductTileBlockListDef,
|
|
22
|
+
TextBlockBlockListDef,
|
|
23
|
+
TileBlockListDef,
|
|
24
24
|
} from '../../ui-kit/BlocksList/BlocksListProps';
|
|
25
25
|
|
|
26
26
|
const TEXT_BLOCK_OTHER_BLOCK: TextBlockBlockListDef = {
|
|
@@ -80,6 +80,7 @@ const MINI_GALLERY_OTHER_BLOCK: MiniGalleryBlockListDef = {
|
|
|
80
80
|
|
|
81
81
|
const propsBlock: OtherProductsProps = {
|
|
82
82
|
context,
|
|
83
|
+
colorPalette: 'pc',
|
|
83
84
|
blockItems: [
|
|
84
85
|
{
|
|
85
86
|
label: 'OtherProducts №1 Tiles',
|
|
@@ -5,16 +5,21 @@ import { OtherProductsItem } from './OtherProductsItem';
|
|
|
5
5
|
|
|
6
6
|
export interface OtherProductsProps extends OtherProductsContent, UniBlockProps {}
|
|
7
7
|
|
|
8
|
-
export const OtherProducts = JSX<OtherProductsProps>(
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
8
|
+
export const OtherProducts = JSX<OtherProductsProps>(
|
|
9
|
+
({ blockItems, colorPalette, context, className = "" }) => {
|
|
10
|
+
return (
|
|
11
|
+
<section
|
|
12
|
+
data-theme={colorPalette || null}
|
|
13
|
+
className={`font-sans bg-white text-primary-text ${className}`}
|
|
14
|
+
>
|
|
15
|
+
{blockItems?.length ? (
|
|
16
|
+
<div className="list-none m-0 p-0">
|
|
17
|
+
{blockItems.map((item, i) => (
|
|
18
|
+
<OtherProductsItem key={`BlockItem${i}`} {...item} context={context} />
|
|
19
|
+
))}
|
|
20
|
+
</div>
|
|
21
|
+
) : null}
|
|
22
|
+
</section>
|
|
23
|
+
);
|
|
24
|
+
},
|
|
25
|
+
);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ColorPalette } from '../../types';
|
|
1
2
|
import type { BlockDef, ColumnsCount } from '../../ui-kit/BlocksList/BlocksListProps';
|
|
2
3
|
|
|
3
4
|
/**
|
|
@@ -29,4 +30,5 @@ export interface OtherProductsContent {
|
|
|
29
30
|
* @maxItems 10
|
|
30
31
|
*/
|
|
31
32
|
blockItems?: blockItemCommonProps[];
|
|
33
|
+
colorPalette?: ColorPalette;
|
|
32
34
|
}
|
|
@@ -34,7 +34,7 @@ export const ProductBlock = JSX<ProductBlockProps>((props) => {
|
|
|
34
34
|
|
|
35
35
|
return (
|
|
36
36
|
<section
|
|
37
|
-
className={`font-sans pt-10 pl-[50px] pb-[50px] pr-[7.5rem] box-border min-h-[420px] ${productBlockStyleMap[version]} ${className}`}
|
|
37
|
+
className={`font-sans overflow-hidden pt-10 pl-[50px] pb-[50px] pr-[7.5rem] box-border min-h-[420px] ${productBlockStyleMap[version]} ${className}`}
|
|
38
38
|
id={anchor}
|
|
39
39
|
>
|
|
40
40
|
{renderBackwardButton('Все дебетовые карты', version, 'mb-10')}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Img } from '../../ui-kit/Img/Img';
|
|
2
|
-
import { Button } from '../../ui-kit/Button/Button';
|
|
3
1
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
2
|
+
import { Button } from '../../ui-kit/Button/Button';
|
|
3
|
+
import { Img } from '../../ui-kit/Img/Img';
|
|
4
4
|
|
|
5
5
|
const backwardBgStyleMap: Record<BlockVersion, string> = {
|
|
6
6
|
primary: 'bg-primary-main',
|
|
@@ -23,7 +23,6 @@ export function renderBackwardButton(text: string, version: BlockVersion, classN
|
|
|
23
23
|
<Img
|
|
24
24
|
className={`w-4 h-4 min-w-4 min-h-4 rounded-full box-border ${backwardIconStyleMap[version]}`}
|
|
25
25
|
image={{ icon: 'ArrowLeftIcon' }}
|
|
26
|
-
color="none"
|
|
27
26
|
width="24"
|
|
28
27
|
height="24"
|
|
29
28
|
asSVG
|
|
@@ -33,7 +33,7 @@ export const ProductTile = JSX<ProductTileProps>(
|
|
|
33
33
|
}) => {
|
|
34
34
|
return (
|
|
35
35
|
<section
|
|
36
|
-
className={`bg-white text-primary-text font-sans p-9 box-border ${className} ${
|
|
36
|
+
className={`bg-white overflow-hidden text-primary-text font-sans p-9 box-border ${className} ${
|
|
37
37
|
productTileStyleMap[version]
|
|
38
38
|
} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `}
|
|
39
39
|
id={anchor}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import type { UniBlockProps } from '../../types';
|
|
2
3
|
import { Description } from '../../ui-kit/Description/Description';
|
|
4
|
+
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
3
5
|
import { Img } from '../../ui-kit/Img/Img';
|
|
4
6
|
import { List } from '../../ui-kit/List/List';
|
|
5
7
|
import { BaseTile } from '../BaseTile/BaseTile';
|
|
6
8
|
import { SocialMedia } from '../Footer/SocialMedia';
|
|
7
|
-
import type { UniBlockProps } from '../../types';
|
|
8
9
|
import type { RecommendationCardTypes } from './RecommendationContent';
|
|
9
|
-
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
10
10
|
|
|
11
11
|
export interface RecommendationCardProps extends RecommendationCardTypes, UniBlockProps {}
|
|
12
12
|
|
|
@@ -35,7 +35,12 @@ export const RecommendationCard = JSX<RecommendationCardProps>(
|
|
|
35
35
|
version={version}
|
|
36
36
|
/>
|
|
37
37
|
) : null}
|
|
38
|
-
<SocialMedia
|
|
38
|
+
<SocialMedia
|
|
39
|
+
className="pt-[42px] pb-0"
|
|
40
|
+
media={socialMedia}
|
|
41
|
+
version={version}
|
|
42
|
+
context={context}
|
|
43
|
+
/>
|
|
39
44
|
</BaseTile>
|
|
40
45
|
</section>
|
|
41
46
|
);
|
|
@@ -36,7 +36,11 @@ async function transformImg(
|
|
|
36
36
|
|
|
37
37
|
const imgPath = `${path.dirname(pagePath)}/${src}`;
|
|
38
38
|
let chain = sharp(imgPath);
|
|
39
|
-
if (size)
|
|
39
|
+
if (size)
|
|
40
|
+
chain = chain.resize(size?.width, size?.height, {
|
|
41
|
+
fit: sharp.fit.contain,
|
|
42
|
+
background: [0, 0, 0, 0],
|
|
43
|
+
});
|
|
40
44
|
if (format) chain = chain.toFormat(format, options);
|
|
41
45
|
|
|
42
46
|
const transformedSrc = transformSrc(src, transformationOptions);
|
package/src/ui-kit/Icon/Icon.tsx
CHANGED
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { projectSettings } from '../../ProjectSettings';
|
|
3
|
-
import type { IconColor, IconProps } from './IconProps';
|
|
4
2
|
import { IconTitleMap } from '../../icons/IconName';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
none: '',
|
|
8
|
-
primary: 'text-white',
|
|
9
|
-
secondary: 'text-white',
|
|
10
|
-
};
|
|
3
|
+
import { projectSettings } from '../../ProjectSettings';
|
|
4
|
+
import type { IconProps } from './IconProps';
|
|
11
5
|
|
|
12
6
|
export const Icon = JSX<IconProps>(
|
|
13
7
|
({
|
|
@@ -16,19 +10,13 @@ export const Icon = JSX<IconProps>(
|
|
|
16
10
|
alt = `Иконка ${IconTitleMap[name] || name}`,
|
|
17
11
|
title = alt,
|
|
18
12
|
asSVG,
|
|
19
|
-
color = 'primary',
|
|
20
13
|
...imgProps
|
|
21
14
|
}) => {
|
|
22
15
|
const href = `${projectSettings.CDN || ''}icons/${name}.svg`;
|
|
23
16
|
|
|
24
17
|
if (asSVG) {
|
|
25
18
|
return (
|
|
26
|
-
<svg
|
|
27
|
-
className={`${svgColorsMap[color]} ${className}`}
|
|
28
|
-
{...imgProps}
|
|
29
|
-
aria-hidden="true"
|
|
30
|
-
style={color === 'secondary' ? { filter: 'invert(1)' } : null}
|
|
31
|
-
>
|
|
19
|
+
<svg className={className} {...imgProps} aria-hidden="true">
|
|
32
20
|
{title ? <title>{title}</title> : null}
|
|
33
21
|
{alt ? <desc>{alt}</desc> : null}
|
|
34
22
|
<use href={`${href}#icon`} xlinkHref={`${href}#icon`} />
|
|
@@ -2,12 +2,6 @@ import type { IconName } from '../../icons/IconName';
|
|
|
2
2
|
|
|
3
3
|
export type { IconName };
|
|
4
4
|
|
|
5
|
-
/**
|
|
6
|
-
* @title Цвет иконки (svg)
|
|
7
|
-
* @enumNames ["Нет", "Основной", "Второстепенный"]
|
|
8
|
-
*/
|
|
9
|
-
export type IconColor = 'none' | 'primary' | 'secondary';
|
|
10
|
-
|
|
11
5
|
export interface IconCompatibilityFields {
|
|
12
6
|
/** @title Альтернативный текст (alt) */
|
|
13
7
|
alt?: string;
|
|
@@ -19,8 +13,6 @@ export interface IconCompatibilityFields {
|
|
|
19
13
|
height?: string;
|
|
20
14
|
/** @hidden */
|
|
21
15
|
asSVG?: boolean;
|
|
22
|
-
/** @hidden */
|
|
23
|
-
color?: IconColor;
|
|
24
16
|
}
|
|
25
17
|
|
|
26
18
|
export type IconProps = IconCompatibilityFields & {
|
package/src/ui-kit/List/List.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { ListItem } from './ListItem';
|
|
3
|
-
import type {
|
|
3
|
+
import type { ListItemVersion, ListProps } from './ListProps';
|
|
4
4
|
|
|
5
5
|
const TEXT_STYLE_MAP: Record<ListItemVersion, string> = {
|
|
6
6
|
primary: 'text-primary-text',
|
package/src/ui-kit/Logo/Logo.tsx
CHANGED
|
@@ -41,7 +41,7 @@ export const Logo = JSX<Partial<LogoProps>>(
|
|
|
41
41
|
paths={LOGO_PATHS.map((d) => ({ d }))}
|
|
42
42
|
/>
|
|
43
43
|
{!hideTitle && (
|
|
44
|
-
<span className={`${TEXT_COLOR[bgColor]}
|
|
44
|
+
<span className={`${TEXT_COLOR[bgColor]} font-medium ml-2.5`}>
|
|
45
45
|
{children || 'Россельхозбанк'}
|
|
46
46
|
</span>
|
|
47
47
|
)}
|
package/src/ui-kit/Tabs/Tabs.tsx
CHANGED
|
@@ -40,7 +40,11 @@ const renderTab =
|
|
|
40
40
|
};
|
|
41
41
|
|
|
42
42
|
const renderIcon = (tab: Tab, isActive: boolean) => (
|
|
43
|
-
<div className="h-full mt-1"
|
|
44
|
-
<Img
|
|
43
|
+
<div className="h-full mt-1">
|
|
44
|
+
<Img
|
|
45
|
+
className={`w-5 h-5 mr-3 ${isActive ? 'invert-full' : ''}`}
|
|
46
|
+
image={tab?.icon || 'CardIcon'}
|
|
47
|
+
asSVG={!isActive}
|
|
48
|
+
/>
|
|
45
49
|
</div>
|
|
46
50
|
);
|