@redneckz/wildless-cms-uni-blocks 0.3.72 → 0.3.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 +1 -1
- package/bundle/bundle.umd.js +32 -11
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js +21 -3
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +39 -12
- package/dist/components/Bonus/BonusContent.d.ts +1 -1
- package/dist/components/Insurance/Insurance.js +7 -4
- package/dist/components/Insurance/Insurance.js.map +1 -1
- package/dist/components/Insurance/InsuranceContent.d.ts +19 -2
- package/dist/components/PictureText/PictureText.js +1 -1
- package/dist/components/PictureText/PictureText.js.map +1 -1
- package/dist/components/PictureText/PictureTextContent.d.ts +9 -2
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +10 -3
- package/dist/components/ProductBlock/renderBenefit.js +1 -1
- package/dist/components/ProductBlock/renderBenefit.js.map +1 -1
- package/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/dist/components/ProductTile/ProductTileContent.d.ts +6 -1
- package/lib/common.css +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.fixture.d.ts +2 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js +21 -3
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +39 -12
- package/lib/components/Bonus/BonusContent.d.ts +1 -1
- package/lib/components/Insurance/Insurance.js +7 -4
- package/lib/components/Insurance/Insurance.js.map +1 -1
- package/lib/components/Insurance/InsuranceContent.d.ts +19 -2
- package/lib/components/PictureText/PictureText.js +1 -1
- package/lib/components/PictureText/PictureText.js.map +1 -1
- package/lib/components/PictureText/PictureTextContent.d.ts +9 -2
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +10 -3
- package/lib/components/ProductBlock/renderBenefit.js +1 -1
- package/lib/components/ProductBlock/renderBenefit.js.map +1 -1
- package/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/lib/components/ProductTile/ProductTileContent.d.ts +6 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +21 -3
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +39 -12
- package/mobile/dist/components/Bonus/BonusContent.d.ts +1 -1
- package/mobile/dist/components/Insurance/Insurance.js +7 -4
- package/mobile/dist/components/Insurance/Insurance.js.map +1 -1
- package/mobile/dist/components/Insurance/InsuranceContent.d.ts +19 -2
- package/mobile/dist/components/PictureText/PictureText.js +1 -1
- package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
- package/mobile/dist/components/PictureText/PictureTextContent.d.ts +9 -2
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +10 -3
- package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +6 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +21 -3
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +39 -12
- package/mobile/lib/components/Bonus/BonusContent.d.ts +1 -1
- package/mobile/lib/components/Insurance/Insurance.js +7 -4
- package/mobile/lib/components/Insurance/Insurance.js.map +1 -1
- package/mobile/lib/components/Insurance/InsuranceContent.d.ts +19 -2
- package/mobile/lib/components/PictureText/PictureText.js +1 -1
- package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
- package/mobile/lib/components/PictureText/PictureTextContent.d.ts +9 -2
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +10 -3
- package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +6 -1
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.example.json +9 -1
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +50 -12
- package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +46 -16
- package/mobile/src/components/Bonus/BonusContent.ts +1 -1
- package/mobile/src/components/Insurance/Insurance.example.json +9 -1
- package/mobile/src/components/Insurance/Insurance.tsx +22 -18
- package/mobile/src/components/Insurance/InsuranceContent.ts +26 -9
- package/mobile/src/components/PictureText/PictureText.tsx +6 -7
- package/mobile/src/components/PictureText/PictureTextContent.ts +10 -2
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +11 -3
- package/mobile/src/components/ProductTile/ProductTile.tsx +1 -2
- package/mobile/src/components/ProductTile/ProductTileContent.ts +7 -1
- package/package.json +1 -1
- package/src/components/BenefitsBlock/BenefitsBlock.example.json +9 -1
- package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +72 -9
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +50 -12
- package/src/components/BenefitsBlock/BenefitsBlockContent.ts +46 -16
- package/src/components/Bonus/Bonus.fixture.tsx +3 -3
- package/src/components/Bonus/BonusContent.ts +1 -1
- package/src/components/Insurance/Insurance.example.json +9 -1
- package/src/components/Insurance/Insurance.fixture.tsx +2 -2
- package/src/components/Insurance/Insurance.tsx +22 -18
- package/src/components/Insurance/InsuranceContent.ts +26 -9
- package/src/components/PictureText/PictureText.tsx +6 -7
- package/src/components/PictureText/PictureTextContent.ts +10 -2
- package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +3 -3
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +2 -3
- package/src/components/ProductBlock/ProductBlockContent.ts +11 -3
- package/src/components/ProductBlock/renderBenefit.tsx +3 -3
- package/src/components/ProductTile/ProductTile.tsx +1 -2
- package/src/components/ProductTile/ProductTileContent.ts +7 -1
|
@@ -27,13 +27,13 @@ export function renderBenefit(
|
|
|
27
27
|
asSVG
|
|
28
28
|
/>
|
|
29
29
|
) : null}
|
|
30
|
-
<div className="flex gap-0.5 flex-col h-full max-w-[149px]
|
|
30
|
+
<div className="flex gap-0.5 flex-col h-full max-w-[149px] min-w-[149px]">
|
|
31
31
|
<div className={`text-xl m-0 ${benefitTitleStyleMap[version]}`}>{benefit.label}</div>
|
|
32
|
-
{benefit.description
|
|
32
|
+
{benefit.description ? (
|
|
33
33
|
<div className={`font-light text-m-md ${benefitDescStyleMap[version]}`}>
|
|
34
34
|
{benefit.description}
|
|
35
35
|
</div>
|
|
36
|
-
)}
|
|
36
|
+
) : null}
|
|
37
37
|
</div>
|
|
38
38
|
</div>
|
|
39
39
|
);
|
|
@@ -8,8 +8,7 @@ import { Img } from '../../ui-kit/Img/Img';
|
|
|
8
8
|
import { BaseTile } from '../BaseTile/BaseTile';
|
|
9
9
|
import { getTileMinHeight } from '../BaseTile/getTileMinHeight';
|
|
10
10
|
import { getTileRightPadding } from '../BaseTile/getTileRightPadding';
|
|
11
|
-
import type { TextBenefit } from '
|
|
12
|
-
import type { ProductTileContent } from './ProductTileContent';
|
|
11
|
+
import type { ProductTileContent, TextBenefit } from './ProductTileContent';
|
|
13
12
|
|
|
14
13
|
export interface ProductTileProps extends ProductTileContent, UniBlockProps {}
|
|
15
14
|
|
|
@@ -3,7 +3,13 @@ import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
|
|
|
3
3
|
import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
|
|
4
4
|
import type { HeadingContent, HeadingTypeContent } from '../../ui-kit/Heading/HeadingContent';
|
|
5
5
|
import type { ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
6
|
-
|
|
6
|
+
|
|
7
|
+
export interface TextBenefit {
|
|
8
|
+
/** @title Название */
|
|
9
|
+
label?: string;
|
|
10
|
+
/** @title Описание */
|
|
11
|
+
description?: string;
|
|
12
|
+
}
|
|
7
13
|
|
|
8
14
|
/**
|
|
9
15
|
* @title Продуктовая плитка
|