@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.
Files changed (92) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +32 -11
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/dist/components/BenefitsBlock/BenefitsBlock.js +21 -3
  5. package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  6. package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +39 -12
  7. package/dist/components/Bonus/BonusContent.d.ts +1 -1
  8. package/dist/components/Insurance/Insurance.js +7 -4
  9. package/dist/components/Insurance/Insurance.js.map +1 -1
  10. package/dist/components/Insurance/InsuranceContent.d.ts +19 -2
  11. package/dist/components/PictureText/PictureText.js +1 -1
  12. package/dist/components/PictureText/PictureText.js.map +1 -1
  13. package/dist/components/PictureText/PictureTextContent.d.ts +9 -2
  14. package/dist/components/ProductBlock/ProductBlockContent.d.ts +10 -3
  15. package/dist/components/ProductBlock/renderBenefit.js +1 -1
  16. package/dist/components/ProductBlock/renderBenefit.js.map +1 -1
  17. package/dist/components/ProductTile/ProductTile.js.map +1 -1
  18. package/dist/components/ProductTile/ProductTileContent.d.ts +6 -1
  19. package/lib/common.css +1 -1
  20. package/lib/components/BenefitsBlock/BenefitsBlock.fixture.d.ts +2 -1
  21. package/lib/components/BenefitsBlock/BenefitsBlock.js +21 -3
  22. package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  23. package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +39 -12
  24. package/lib/components/Bonus/BonusContent.d.ts +1 -1
  25. package/lib/components/Insurance/Insurance.js +7 -4
  26. package/lib/components/Insurance/Insurance.js.map +1 -1
  27. package/lib/components/Insurance/InsuranceContent.d.ts +19 -2
  28. package/lib/components/PictureText/PictureText.js +1 -1
  29. package/lib/components/PictureText/PictureText.js.map +1 -1
  30. package/lib/components/PictureText/PictureTextContent.d.ts +9 -2
  31. package/lib/components/ProductBlock/ProductBlockContent.d.ts +10 -3
  32. package/lib/components/ProductBlock/renderBenefit.js +1 -1
  33. package/lib/components/ProductBlock/renderBenefit.js.map +1 -1
  34. package/lib/components/ProductTile/ProductTile.js.map +1 -1
  35. package/lib/components/ProductTile/ProductTileContent.d.ts +6 -1
  36. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +21 -3
  37. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  38. package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +39 -12
  39. package/mobile/dist/components/Bonus/BonusContent.d.ts +1 -1
  40. package/mobile/dist/components/Insurance/Insurance.js +7 -4
  41. package/mobile/dist/components/Insurance/Insurance.js.map +1 -1
  42. package/mobile/dist/components/Insurance/InsuranceContent.d.ts +19 -2
  43. package/mobile/dist/components/PictureText/PictureText.js +1 -1
  44. package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
  45. package/mobile/dist/components/PictureText/PictureTextContent.d.ts +9 -2
  46. package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +10 -3
  47. package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
  48. package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +6 -1
  49. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +21 -3
  50. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  51. package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +39 -12
  52. package/mobile/lib/components/Bonus/BonusContent.d.ts +1 -1
  53. package/mobile/lib/components/Insurance/Insurance.js +7 -4
  54. package/mobile/lib/components/Insurance/Insurance.js.map +1 -1
  55. package/mobile/lib/components/Insurance/InsuranceContent.d.ts +19 -2
  56. package/mobile/lib/components/PictureText/PictureText.js +1 -1
  57. package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
  58. package/mobile/lib/components/PictureText/PictureTextContent.d.ts +9 -2
  59. package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +10 -3
  60. package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
  61. package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +6 -1
  62. package/mobile/src/components/BenefitsBlock/BenefitsBlock.example.json +9 -1
  63. package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +50 -12
  64. package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +46 -16
  65. package/mobile/src/components/Bonus/BonusContent.ts +1 -1
  66. package/mobile/src/components/Insurance/Insurance.example.json +9 -1
  67. package/mobile/src/components/Insurance/Insurance.tsx +22 -18
  68. package/mobile/src/components/Insurance/InsuranceContent.ts +26 -9
  69. package/mobile/src/components/PictureText/PictureText.tsx +6 -7
  70. package/mobile/src/components/PictureText/PictureTextContent.ts +10 -2
  71. package/mobile/src/components/ProductBlock/ProductBlockContent.ts +11 -3
  72. package/mobile/src/components/ProductTile/ProductTile.tsx +1 -2
  73. package/mobile/src/components/ProductTile/ProductTileContent.ts +7 -1
  74. package/package.json +1 -1
  75. package/src/components/BenefitsBlock/BenefitsBlock.example.json +9 -1
  76. package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +72 -9
  77. package/src/components/BenefitsBlock/BenefitsBlock.tsx +50 -12
  78. package/src/components/BenefitsBlock/BenefitsBlockContent.ts +46 -16
  79. package/src/components/Bonus/Bonus.fixture.tsx +3 -3
  80. package/src/components/Bonus/BonusContent.ts +1 -1
  81. package/src/components/Insurance/Insurance.example.json +9 -1
  82. package/src/components/Insurance/Insurance.fixture.tsx +2 -2
  83. package/src/components/Insurance/Insurance.tsx +22 -18
  84. package/src/components/Insurance/InsuranceContent.ts +26 -9
  85. package/src/components/PictureText/PictureText.tsx +6 -7
  86. package/src/components/PictureText/PictureTextContent.ts +10 -2
  87. package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +3 -3
  88. package/src/components/ProductBlock/ProductBlock.fixture.tsx +2 -3
  89. package/src/components/ProductBlock/ProductBlockContent.ts +11 -3
  90. package/src/components/ProductBlock/renderBenefit.tsx +3 -3
  91. package/src/components/ProductTile/ProductTile.tsx +1 -2
  92. 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] min-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 '../BenefitsBlock/BenefitsBlockContent';
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
- import type { TextBenefit } from '../BenefitsBlock/BenefitsBlockContent';
6
+
7
+ export interface TextBenefit {
8
+ /** @title Название */
9
+ label?: string;
10
+ /** @title Описание */
11
+ description?: string;
12
+ }
7
13
 
8
14
  /**
9
15
  * @title Продуктовая плитка