@redneckz/wildless-cms-uni-blocks 0.3.76 → 0.3.78

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 (192) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +12 -14
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/dist/components/Accordion/AccordionContent.d.ts +6 -3
  5. package/dist/components/Bonus/Bonus.js +1 -1
  6. package/dist/components/Bonus/Bonus.js.map +1 -1
  7. package/dist/components/Bonus/BonusContent.d.ts +1 -1
  8. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +5 -5
  9. package/dist/components/Calculator/Calculator.js +1 -1
  10. package/dist/components/Calculator/Calculator.js.map +1 -1
  11. package/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +5 -3
  12. package/dist/components/GracePeriod/GracePeriod.js +2 -2
  13. package/dist/components/GracePeriod/GracePeriod.js.map +1 -1
  14. package/dist/components/GracePeriod/GracePeriodContent.d.ts +2 -2
  15. package/dist/components/GroupBlock/GroupBlockContent.d.ts +2 -2
  16. package/dist/components/GroupBlock/GroupBlockTabs.js +1 -1
  17. package/dist/components/GroupBlock/GroupBlockTabs.js.map +1 -1
  18. package/dist/components/LinkDocs/LinkDocsContent.d.ts +10 -1
  19. package/dist/components/PictureText/PictureTextContent.d.ts +1 -0
  20. package/dist/components/StepsBlock/StepsBlock.js +3 -2
  21. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  22. package/dist/components/StepsBlock/StepsBlock.mobile.js +2 -1
  23. package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  24. package/dist/components/StepsBlock/StepsBlockContent.d.ts +11 -0
  25. package/dist/model/Picture.d.ts +6 -0
  26. package/dist/ui-kit/BlocksList/BlocksListProps.d.ts +10 -10
  27. package/dist/ui-kit/Button/ButtonProps.d.ts +2 -0
  28. package/dist/ui-kit/Button/ButtonSection.js +2 -2
  29. package/dist/ui-kit/Button/ButtonSection.js.map +1 -1
  30. package/dist/ui-kit/Img/Img.js +2 -6
  31. package/dist/ui-kit/Img/Img.js.map +1 -1
  32. package/dist/utils/checkIsIconRenderable.d.ts +2 -0
  33. package/dist/utils/checkIsIconRenderable.js +5 -0
  34. package/dist/utils/checkIsIconRenderable.js.map +1 -0
  35. package/lib/common.css +1 -1
  36. package/lib/components/Accordion/AccordionContent.d.ts +6 -3
  37. package/lib/components/Bonus/Bonus.js +1 -1
  38. package/lib/components/Bonus/Bonus.js.map +1 -1
  39. package/lib/components/Bonus/BonusContent.d.ts +1 -1
  40. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +5 -5
  41. package/lib/components/Calculator/Calculator.js +1 -1
  42. package/lib/components/Calculator/Calculator.js.map +1 -1
  43. package/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +5 -3
  44. package/lib/components/GracePeriod/GracePeriod.js +2 -2
  45. package/lib/components/GracePeriod/GracePeriod.js.map +1 -1
  46. package/lib/components/GracePeriod/GracePeriodContent.d.ts +2 -2
  47. package/lib/components/GroupBlock/GroupBlockContent.d.ts +2 -2
  48. package/lib/components/GroupBlock/GroupBlockTabs.js +1 -1
  49. package/lib/components/GroupBlock/GroupBlockTabs.js.map +1 -1
  50. package/lib/components/LinkDocs/LinkDocsContent.d.ts +10 -1
  51. package/lib/components/PictureText/PictureTextContent.d.ts +1 -0
  52. package/lib/components/StepsBlock/StepsBlock.js +3 -2
  53. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  54. package/lib/components/StepsBlock/StepsBlock.mobile.js +2 -1
  55. package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  56. package/lib/components/StepsBlock/StepsBlockContent.d.ts +11 -0
  57. package/lib/model/Picture.d.ts +6 -0
  58. package/lib/ui-kit/BlocksList/BlocksListProps.d.ts +10 -10
  59. package/lib/ui-kit/Button/ButtonProps.d.ts +2 -0
  60. package/lib/ui-kit/Button/ButtonSection.js +2 -2
  61. package/lib/ui-kit/Button/ButtonSection.js.map +1 -1
  62. package/lib/ui-kit/Img/Img.js +2 -6
  63. package/lib/ui-kit/Img/Img.js.map +1 -1
  64. package/lib/utils/checkIsIconRenderable.d.ts +2 -0
  65. package/lib/utils/checkIsIconRenderable.js +2 -0
  66. package/lib/utils/checkIsIconRenderable.js.map +1 -0
  67. package/mobile/bundle/bundle.umd.js +5 -3
  68. package/mobile/bundle/bundle.umd.min.js +1 -1
  69. package/mobile/dist/components/Accordion/AccordionContent.d.ts +6 -3
  70. package/mobile/dist/components/Bonus/Bonus.js +1 -1
  71. package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
  72. package/mobile/dist/components/Bonus/BonusContent.d.ts +1 -1
  73. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +5 -5
  74. package/mobile/dist/components/Calculator/Calculator.js +1 -1
  75. package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
  76. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +5 -3
  77. package/mobile/dist/components/GracePeriod/GracePeriod.js +2 -2
  78. package/mobile/dist/components/GracePeriod/GracePeriod.js.map +1 -1
  79. package/mobile/dist/components/GracePeriod/GracePeriodContent.d.ts +2 -2
  80. package/mobile/dist/components/GroupBlock/GroupBlockContent.d.ts +2 -2
  81. package/mobile/dist/components/GroupBlock/GroupBlockTabs.js +1 -1
  82. package/mobile/dist/components/GroupBlock/GroupBlockTabs.js.map +1 -1
  83. package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +10 -1
  84. package/mobile/dist/components/PictureText/PictureTextContent.d.ts +1 -0
  85. package/mobile/dist/components/StepsBlock/StepsBlock.js +2 -1
  86. package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  87. package/mobile/dist/components/StepsBlock/StepsBlockContent.d.ts +11 -0
  88. package/mobile/dist/model/Picture.d.ts +6 -0
  89. package/mobile/dist/ui-kit/BlocksList/BlocksListProps.d.ts +10 -10
  90. package/mobile/dist/ui-kit/Button/ButtonProps.d.ts +2 -0
  91. package/mobile/dist/ui-kit/Button/ButtonSection.js +2 -2
  92. package/mobile/dist/ui-kit/Button/ButtonSection.js.map +1 -1
  93. package/mobile/dist/utils/checkIsIconRenderable.d.ts +2 -0
  94. package/mobile/dist/utils/checkIsIconRenderable.js +5 -0
  95. package/mobile/dist/utils/checkIsIconRenderable.js.map +1 -0
  96. package/mobile/lib/components/Accordion/AccordionContent.d.ts +6 -3
  97. package/mobile/lib/components/Bonus/Bonus.js +1 -1
  98. package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
  99. package/mobile/lib/components/Bonus/BonusContent.d.ts +1 -1
  100. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +5 -5
  101. package/mobile/lib/components/Calculator/Calculator.js +1 -1
  102. package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
  103. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +5 -3
  104. package/mobile/lib/components/GracePeriod/GracePeriod.js +2 -2
  105. package/mobile/lib/components/GracePeriod/GracePeriod.js.map +1 -1
  106. package/mobile/lib/components/GracePeriod/GracePeriodContent.d.ts +2 -2
  107. package/mobile/lib/components/GroupBlock/GroupBlockContent.d.ts +2 -2
  108. package/mobile/lib/components/GroupBlock/GroupBlockTabs.js +1 -1
  109. package/mobile/lib/components/GroupBlock/GroupBlockTabs.js.map +1 -1
  110. package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +10 -1
  111. package/mobile/lib/components/PictureText/PictureTextContent.d.ts +1 -0
  112. package/mobile/lib/components/StepsBlock/StepsBlock.js +2 -1
  113. package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  114. package/mobile/lib/components/StepsBlock/StepsBlockContent.d.ts +11 -0
  115. package/mobile/lib/model/Picture.d.ts +6 -0
  116. package/mobile/lib/ui-kit/BlocksList/BlocksListProps.d.ts +10 -10
  117. package/mobile/lib/ui-kit/Button/ButtonProps.d.ts +2 -0
  118. package/mobile/lib/ui-kit/Button/ButtonSection.js +2 -2
  119. package/mobile/lib/ui-kit/Button/ButtonSection.js.map +1 -1
  120. package/mobile/lib/utils/checkIsIconRenderable.d.ts +2 -0
  121. package/mobile/lib/utils/checkIsIconRenderable.js +2 -0
  122. package/mobile/lib/utils/checkIsIconRenderable.js.map +1 -0
  123. package/mobile/src/components/Accordion/Accordion.example.json +13 -6
  124. package/mobile/src/components/Accordion/AccordionContent.ts +6 -3
  125. package/mobile/src/components/Bonus/Bonus.example.json +1 -1
  126. package/mobile/src/components/Bonus/Bonus.tsx +2 -2
  127. package/mobile/src/components/Bonus/BonusContent.ts +1 -1
  128. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.example.json +40 -0
  129. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlockContent.ts +5 -5
  130. package/mobile/src/components/Calculator/Calculator.tsx +1 -1
  131. package/mobile/src/components/ContentPage/ContentPage.page.json +5 -5
  132. package/mobile/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +5 -4
  133. package/mobile/src/components/GracePeriod/GracePeriod.example.json +4 -4
  134. package/mobile/src/components/GracePeriod/GracePeriod.tsx +4 -4
  135. package/mobile/src/components/GracePeriod/GracePeriodContent.ts +2 -2
  136. package/mobile/src/components/GroupBlock/GroupBlock.example.json +72 -3
  137. package/mobile/src/components/GroupBlock/GroupBlockContent.ts +2 -2
  138. package/mobile/src/components/GroupBlock/GroupBlockTabs.tsx +3 -1
  139. package/mobile/src/components/LinkDocs/LinkDocsContent.ts +10 -1
  140. package/mobile/src/components/MobileAppTile/MobileAppTile.example.json +12 -2
  141. package/mobile/src/components/OtherProducts/OtherProducts.example.json +12 -6
  142. package/mobile/src/components/PictureText/PictureTextContent.ts +1 -0
  143. package/mobile/src/components/ProductBlock/ProductBlock.example.json +3 -10
  144. package/mobile/src/components/ProductTile/ProductTile.example.json +1 -2
  145. package/mobile/src/components/PromoTile/PromoTile.example.json +1 -2
  146. package/mobile/src/components/StepsBlock/StepsBlock.example.json +18 -3
  147. package/mobile/src/components/StepsBlock/StepsBlock.tsx +6 -1
  148. package/mobile/src/components/StepsBlock/StepsBlockContent.ts +11 -0
  149. package/mobile/src/components/Tile/Tile.example.json +2 -9
  150. package/mobile/src/model/Picture.ts +7 -0
  151. package/mobile/src/ui-kit/BlocksList/BlocksListProps.ts +42 -20
  152. package/mobile/src/ui-kit/Button/ButtonProps.ts +2 -0
  153. package/mobile/src/ui-kit/Button/ButtonSection.tsx +2 -1
  154. package/mobile/src/utils/checkIsIconRenderable.tsx +3 -0
  155. package/package.json +1 -1
  156. package/src/components/Accordion/Accordion.example.json +13 -6
  157. package/src/components/Accordion/AccordionContent.ts +6 -3
  158. package/src/components/Bonus/Bonus.example.json +1 -1
  159. package/src/components/Bonus/Bonus.fixture.tsx +3 -3
  160. package/src/components/Bonus/Bonus.tsx +2 -2
  161. package/src/components/Bonus/BonusContent.ts +1 -1
  162. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.example.json +40 -0
  163. package/src/components/BonusBenefitsBlock/BonusBenefitsBlockContent.ts +5 -5
  164. package/src/components/Calculator/Calculator.tsx +1 -1
  165. package/src/components/ContentPage/ContentPage.page.json +5 -5
  166. package/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +5 -4
  167. package/src/components/GracePeriod/GracePeriod.example.json +4 -4
  168. package/src/components/GracePeriod/GracePeriod.fixture.tsx +9 -9
  169. package/src/components/GracePeriod/GracePeriod.tsx +4 -4
  170. package/src/components/GracePeriod/GracePeriodContent.ts +2 -2
  171. package/src/components/GroupBlock/GroupBlock.example.json +72 -3
  172. package/src/components/GroupBlock/GroupBlockContent.ts +2 -2
  173. package/src/components/GroupBlock/GroupBlockTabs.tsx +3 -1
  174. package/src/components/LinkDocs/LinkDocsContent.ts +10 -1
  175. package/src/components/MobileAppTile/MobileAppTile.example.json +12 -2
  176. package/src/components/OtherProducts/OtherProducts.example.json +12 -6
  177. package/src/components/PictureText/PictureTextContent.ts +1 -0
  178. package/src/components/ProductBlock/ProductBlock.example.json +3 -10
  179. package/src/components/ProductBlock/ProductBlock.fixture.tsx +2 -2
  180. package/src/components/ProductTile/ProductTile.example.json +1 -2
  181. package/src/components/PromoTile/PromoTile.example.json +1 -2
  182. package/src/components/StepsBlock/StepsBlock.example.json +18 -3
  183. package/src/components/StepsBlock/StepsBlock.mobile.tsx +6 -1
  184. package/src/components/StepsBlock/StepsBlock.tsx +19 -13
  185. package/src/components/StepsBlock/StepsBlockContent.ts +11 -0
  186. package/src/components/Tile/Tile.example.json +2 -9
  187. package/src/model/Picture.ts +7 -0
  188. package/src/ui-kit/BlocksList/BlocksListProps.ts +42 -20
  189. package/src/ui-kit/Button/ButtonProps.ts +2 -0
  190. package/src/ui-kit/Button/ButtonSection.tsx +2 -1
  191. package/src/ui-kit/Img/Img.tsx +9 -16
  192. package/src/utils/checkIsIconRenderable.tsx +3 -0
@@ -24,72 +24,72 @@ export interface BlocksCommonProps {
24
24
  }
25
25
  /**
26
26
  * @title Заголовок
27
- * @default {"blockListType": "Headline"}
28
27
  */
29
28
  export declare type HeadlineBlockListDef = HeadlineContent & BlocksCommonProps & {
29
+ /** @default Headline */
30
30
  blockListType: 'Headline';
31
31
  };
32
32
  /**
33
33
  * @title Список документов
34
- * @default {"blockListType": "LinkDocs"}
35
34
  */
36
35
  export declare type LinkDocsBlockListDef = LinkDocsContent & BlocksCommonProps & {
36
+ /** @default LinkDocs */
37
37
  blockListType: 'LinkDocs';
38
38
  };
39
39
  /**
40
40
  * @title Текстовый блок
41
- * @default {"blockListType": "TextBlock"}
42
41
  */
43
42
  export declare type TextBlockBlockListDef = TextBlockContent & BlocksCommonProps & {
43
+ /** @default TextBlock */
44
44
  blockListType: 'TextBlock';
45
45
  };
46
46
  /**
47
47
  * @title Картинка с текстом
48
- * @default {"blockListType": "PictureText"}
49
48
  */
50
49
  export declare type PictureTextBlockListDef = PictureTextContent & BlocksCommonProps & {
50
+ /** @default PictureText */
51
51
  blockListType: 'PictureText';
52
52
  };
53
53
  /**
54
54
  * @title Продуктовый блок
55
- * @default {"blockListType": "ProductBlock"}
56
55
  */
57
56
  export declare type ProductBlockBlockListDef = ProductBlockContent & BlocksCommonProps & {
57
+ /** @default ProductBlock */
58
58
  blockListType: 'ProductBlock';
59
59
  };
60
60
  /**
61
61
  * @title Плитка
62
- * @default {"blockListType": "Tile"}
63
62
  */
64
63
  export declare type TileBlockListDef = TileContent & BlocksCommonProps & {
64
+ /** @default Tile */
65
65
  blockListType: 'Tile';
66
66
  };
67
67
  /**
68
68
  * @title Продуктовая плитка
69
- * @default {"blockListType": "ProductTile"}
70
69
  */
71
70
  export declare type ProductTileBlockListDef = ProductTileContent & BlocksCommonProps & {
71
+ /** @default ProductTile */
72
72
  blockListType: 'ProductTile';
73
73
  };
74
74
  /**
75
75
  * @title Галерея
76
- * @default {"blockListType": "Gallery"}
77
76
  */
78
77
  export declare type GalleryBlockListDef = GalleryContent & BlocksCommonProps & {
78
+ /** @default Gallery */
79
79
  blockListType: 'Gallery';
80
80
  };
81
81
  /**
82
82
  * @title Мини-галлерея
83
- * @default {"blockListType": "MiniGallery"}
84
83
  */
85
84
  export declare type MiniGalleryBlockListDef = MiniGalleryContent & BlocksCommonProps & {
85
+ /** @default MiniGallery */
86
86
  blockListType: 'MiniGallery';
87
87
  };
88
88
  /**
89
89
  * @title Список ссылок
90
- * @default {"blockListType": "LinkList"}
91
90
  */
92
91
  export declare type LinkListBlockListDef = LinkListContent & BlocksCommonProps & {
92
+ /** @default LinkList */
93
93
  blockListType: 'LinkList';
94
94
  };
95
95
  /**
@@ -25,6 +25,8 @@ export interface ButtonProps extends ButtonAdditionalProps, LinkProps {
25
25
  export interface ButtonWithIconProps extends ButtonProps {
26
26
  /** @title Иконка */
27
27
  icon?: Picture;
28
+ /** @title Иконка справа */
29
+ iconRight?: Picture;
28
30
  /** @title Верхний текст */
29
31
  aboveText?: string;
30
32
  /** @hidden */
@@ -8,10 +8,10 @@ export const ButtonSection = JSX(({ context, className = '', buttons }) => {
8
8
  const router = context.useRouter();
9
9
  return buttons?.length ? (_jsx("div", { className: className, children: buttons.map((button, index) => renderButton(useLink({ router, handlerDecorator }, button), index)) })) : null;
10
10
  });
11
- function renderButton({ icon, ...button }, i) {
11
+ function renderButton({ icon, iconRight, ...button }, i) {
12
12
  if (!button?.text) {
13
13
  return;
14
14
  }
15
- return icon ? (_jsx(Button, { appendLeft: _jsx(Img, { image: icon, width: "24", height: "24", asSVG: true }), ...button }, String(i))) : (_jsx(Button, { ...button }, String(i)));
15
+ return icon ? (_jsx(Button, { appendLeft: _jsx(Img, { image: icon, width: "24", height: "24", asSVG: true }), appendRight: _jsx(Img, { image: iconRight, width: "24", height: "24", asSVG: true }), ...button }, String(i))) : (_jsx(Button, { ...button }, String(i)));
16
16
  }
17
17
  //# sourceMappingURL=ButtonSection.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonSection.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/ButtonSection.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAKlC,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAAqB,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;IAEnC,OAAO,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CACvB,cAAK,SAAS,EAAE,SAAS,YACtB,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAC7B,YAAY,CAAC,OAAO,CAAC,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,EAAE;QACjB,OAAO;KACR;IAED,OAAO,IAAI,CAAC,CAAC,CAAC,CACZ,KAAC,MAAM,IAEL,UAAU,EAAE,KAAC,GAAG,IAAC,KAAK,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,KAAC,MAAM,OAAqB,MAAM,IAArB,MAAM,CAAC,CAAC,CAAC,CAAgB,CACvC,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"ButtonSection.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/ButtonSection.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAKlC,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAAqB,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;IAEnC,OAAO,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CACvB,cAAK,SAAS,EAAE,SAAS,YACtB,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAC7B,YAAY,CAAC,OAAO,CAAC,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,SAAS,EAAE,GAAG,MAAM,EAAuB,EAAE,CAAS;IAClF,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE;QACjB,OAAO;KACR;IAED,OAAO,IAAI,CAAC,CAAC,CAAC,CACZ,KAAC,MAAM,IAEL,UAAU,EAAE,KAAC,GAAG,IAAC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,EAC7D,WAAW,EAAE,KAAC,GAAG,IAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,KAC/D,MAAM,IAHL,MAAM,CAAC,CAAC,CAAC,CAId,CACH,CAAC,CAAC,CAAC,CACF,KAAC,MAAM,OAAqB,MAAM,IAArB,MAAM,CAAC,CAAC,CAAC,CAAgB,CACvC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { Picture } from '../model/Picture';
2
+ export declare const checkIsIconRenderable: (icon?: Picture) => boolean;
@@ -0,0 +1,2 @@
1
+ export const checkIsIconRenderable = (icon) => Boolean(icon?.icon || icon?.src);
2
+ //# sourceMappingURL=checkIsIconRenderable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkIsIconRenderable.js","sourceRoot":"","sources":["../../src/utils/checkIsIconRenderable.tsx"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,IAAc,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,IAAI,IAAI,EAAE,GAAG,CAAC,CAAC"}
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "title": "Аккордеон",
3
+ "accordionAlignTitle": "center",
3
4
  "accordionItems": [
4
5
  {
5
6
  "label": "Аккордеон 1",
@@ -10,12 +11,14 @@
10
11
  {
11
12
  "blockListType": "TextBlock",
12
13
  "title": "Текстовый блок",
13
- "description": "Описание текстового блока"
14
+ "description": "Описание текстового блока",
15
+ "style": ["col-span-12"]
14
16
  },
15
17
  {
16
18
  "blockListType": "TextBlock",
17
19
  "title": "Текстовый блок №2",
18
- "description": "Описание текстового блока №2"
20
+ "description": "Описание текстового блока №2",
21
+ "style": ["col-span-12"]
19
22
  }
20
23
  ]
21
24
  },
@@ -28,12 +31,14 @@
28
31
  {
29
32
  "blockListType": "TextBlock",
30
33
  "title": "Текстовый блок",
31
- "description": "Описание текстового блока"
34
+ "description": "Описание текстового блока",
35
+ "style": ["col-span-6"]
32
36
  },
33
37
  {
34
38
  "blockListType": "TextBlock",
35
39
  "title": "Текстовый блок №2",
36
- "description": "Описание текстового блока №2"
40
+ "description": "Описание текстового блока №2",
41
+ "style": ["col-span-6"]
37
42
  }
38
43
  ]
39
44
  },
@@ -46,12 +51,14 @@
46
51
  {
47
52
  "blockListType": "TextBlock",
48
53
  "title": "Текстовый блок",
49
- "description": "Описание текстового блока"
54
+ "description": "Описание текстового блока",
55
+ "style": ["col-span-12"]
50
56
  },
51
57
  {
52
58
  "blockListType": "TextBlock",
53
59
  "title": "Текстовый блок №2",
54
- "description": "Описание текстового блока №2"
60
+ "description": "Описание текстового блока №2",
61
+ "style": ["col-span-12"]
55
62
  }
56
63
  ]
57
64
  }
@@ -1,7 +1,7 @@
1
- import type { BlockDef } from '../../ui-kit/BlocksList/BlocksListProps';
1
+ import type { AlignType } from '../../model/AlignType';
2
2
  import type { BlockVersion } from '../../model/BlockVersion';
3
3
  import type { Picture } from '../../model/Picture';
4
- import type { AlignType } from '../../model/AlignType';
4
+ import type { BlockDef } from '../../ui-kit/BlocksList/BlocksListProps';
5
5
  /**
6
6
  * @title Элемент списка
7
7
  */
@@ -31,7 +31,10 @@ export interface AccordionItemCommonProps {
31
31
  export interface AccordionContent {
32
32
  /** @title Заголовок */
33
33
  title?: string;
34
- /** @title Выравнивание заголовка */
34
+ /**
35
+ * @title Выравнивание заголовка
36
+ * @default center
37
+ */
35
38
  accordionAlignTitle?: AlignType;
36
39
  version?: BlockVersion;
37
40
  /** @title Список */
@@ -3,7 +3,7 @@
3
3
  "description": "Описание",
4
4
  "bonusItems": [
5
5
  {
6
- "name": "Плитка 1",
6
+ "title": "Плитка 1",
7
7
  "description": "Описание плитки 1",
8
8
  "bonusCount": 1,
9
9
  "bonusName": "балл"
@@ -1,7 +1,7 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import type { UniBlockProps } from '../../types';
3
- import type { BonusContent } from './BonusContent';
4
3
  import { Heading } from '../../ui-kit/Heading/Heading';
4
+ import type { BonusContent } from './BonusContent';
5
5
 
6
6
  export interface BonusProps extends BonusContent, UniBlockProps {}
7
7
 
@@ -25,7 +25,7 @@ export const Bonus = JSX<BonusProps>((props) => {
25
25
  >
26
26
  <div className="flex justify-between w-full">
27
27
  <div className="mr-4">
28
- <div className="text-title-sm">{_.name}</div>
28
+ <div className="text-title-sm">{_.title}</div>
29
29
  <div className="text-md font-light mt-[14px] max-w-[488px]">
30
30
  {_.description}
31
31
  </div>
@@ -4,7 +4,7 @@ import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
4
4
  /** @title Плитка */
5
5
  interface BonusItems {
6
6
  /** @title Бонусы */
7
- name?: string;
7
+ title?: string;
8
8
  /** @title Описание плитки */
9
9
  description?: string;
10
10
  /** @title Количество баллов */
@@ -5,48 +5,88 @@
5
5
  {
6
6
  "label": "Более 5000 товаров",
7
7
  "icon": {
8
+ "format": "webp",
9
+ "size": {
10
+ "width": 160,
11
+ "height": 180
12
+ },
8
13
  "icon": "WateringCan"
9
14
  }
10
15
  },
11
16
  {
12
17
  "label": "750 авиакомпаний, 1,2 млн отелей, билеты РЖД",
13
18
  "icon": {
19
+ "format": "webp",
20
+ "size": {
21
+ "width": 160,
22
+ "height": 180
23
+ },
14
24
  "icon": "SignDocsIcon"
15
25
  }
16
26
  },
17
27
  {
18
28
  "label": "Аренда автомобилей",
19
29
  "icon": {
30
+ "format": "webp",
31
+ "size": {
32
+ "width": 160,
33
+ "height": 180
34
+ },
20
35
  "icon": "SignDocsIcon"
21
36
  }
22
37
  },
23
38
  {
24
39
  "label": "Болеее 1000 развлечений",
25
40
  "icon": {
41
+ "format": "webp",
42
+ "size": {
43
+ "width": 160,
44
+ "height": 180
45
+ },
26
46
  "icon": "SignDocsIcon"
27
47
  }
28
48
  },
29
49
  {
30
50
  "label": "Платежные гаджеты Pay Ring",
31
51
  "icon": {
52
+ "format": "webp",
53
+ "size": {
54
+ "width": 160,
55
+ "height": 180
56
+ },
32
57
  "icon": "SignDocsIcon"
33
58
  }
34
59
  },
35
60
  {
36
61
  "label": "Цифровые сервисы",
37
62
  "icon": {
63
+ "format": "webp",
64
+ "size": {
65
+ "width": 160,
66
+ "height": 180
67
+ },
38
68
  "icon": "SignDocsIcon"
39
69
  }
40
70
  },
41
71
  {
42
72
  "label": "Фермерские продукты",
43
73
  "icon": {
74
+ "format": "webp",
75
+ "size": {
76
+ "width": 160,
77
+ "height": 180
78
+ },
44
79
  "icon": "SignDocsIcon"
45
80
  }
46
81
  },
47
82
  {
48
83
  "label": "Страхование",
49
84
  "icon": {
85
+ "format": "webp",
86
+ "size": {
87
+ "width": 160,
88
+ "height": 180
89
+ },
50
90
  "icon": "SignDocsIcon"
51
91
  }
52
92
  }
@@ -1,9 +1,12 @@
1
1
  import type { Picture } from '../../model/Picture';
2
2
 
3
+ /**
4
+ * @title Бонус и преимущество
5
+ */
3
6
  export interface BonusBenefit {
4
7
  /** @title Название */
5
8
  label?: string;
6
- /** @title Бонус и преимущество */
9
+ /** @title Изображение */
7
10
  icon?: Picture;
8
11
  }
9
12
 
@@ -15,9 +18,6 @@ export interface BonusBenefitsBlockContent {
15
18
  title?: string;
16
19
  /** @title Подзаголовок */
17
20
  subtitle?: string;
18
- /**
19
- * @title Список бонусов
20
- * @maxItems 8
21
- */
21
+ /** @title Список бонусов */
22
22
  bonusBenefits?: BonusBenefit[];
23
23
  }
@@ -1,9 +1,9 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import type { FuncReturnVoid, UniBlockProps } from '../../types';
3
+ import { renderArrows } from '../../ui-kit/Button/renderArrows';
3
4
  import { Img } from '../../ui-kit/Img/Img';
4
5
  import type { CalculatorBlockDef, CalculatorContent, CalculatorNav } from './CalculatorContent';
5
6
  import { renderCalculatorBlock } from './renderCalculatorBlock';
6
- import { renderArrows } from '../../ui-kit/Button/renderArrows';
7
7
 
8
8
  export interface CalculatorProps extends CalculatorContent, UniBlockProps {}
9
9
 
@@ -2035,7 +2035,7 @@
2035
2035
  "description": "Необязательное описание",
2036
2036
  "calendar": [
2037
2037
  {
2038
- "blackText": "1 декабря — беспроцентный период",
2038
+ "text": "1 декабря — беспроцентный период",
2039
2039
  "greenText": "начинается с первого числа каждого месяца",
2040
2040
  "month": [
2041
2041
  {
@@ -2052,7 +2052,7 @@
2052
2052
  ]
2053
2053
  },
2054
2054
  {
2055
- "blackText": "25 сентября и 25 октября — обязательный платеж 25 числа следующих месяцев",
2055
+ "text": "25 сентября и 25 октября — обязательный платеж 25 числа следующих месяцев",
2056
2056
  "greenText": "(минимальный платеж, 3% от суммы задолженности)",
2057
2057
  "month": [
2058
2058
  {
@@ -2080,7 +2080,7 @@
2080
2080
  ]
2081
2081
  },
2082
2082
  {
2083
- "blackText": "25 ноября — последний день беспроцентного 3-х месячного периода",
2083
+ "text": "25 ноября — последний день беспроцентного 3-х месячного периода",
2084
2084
  "greenText": "",
2085
2085
  "month": [
2086
2086
  {
@@ -2097,7 +2097,7 @@
2097
2097
  ]
2098
2098
  },
2099
2099
  {
2100
- "blackText": "",
2100
+ "text": "",
2101
2101
  "greenText": "25 декабря — обязательный платеж в соответствии с тарифом",
2102
2102
  "month": [
2103
2103
  {
@@ -2355,4 +2355,4 @@
2355
2355
  }
2356
2356
  }
2357
2357
  ]
2358
- }
2358
+ }
@@ -1,6 +1,7 @@
1
- import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
2
-
3
1
  /**
4
- * @title Курсы валют
2
+ * @title Курсы обмена валют
5
3
  */
6
- export type ExchangeRateTileContent = HeadingContent;
4
+ export interface ExchangeRateTileContent {
5
+ /** @title Заголовок */
6
+ title?: string;
7
+ }
@@ -3,7 +3,7 @@
3
3
  "description": "Необязательное описание блока",
4
4
  "calendar": [
5
5
  {
6
- "blackText": "1 декабря — беспроцентный период",
6
+ "text": "1 декабря — беспроцентный период",
7
7
  "greenText": "начинается с первого числа каждого месяца",
8
8
  "month": [
9
9
  {
@@ -21,7 +21,7 @@
21
21
  ]
22
22
  },
23
23
  {
24
- "blackText": "25 сентября и 25 октября — обязательный платеж 25 числа следующих месяцев",
24
+ "text": "25 сентября и 25 октября — обязательный платеж 25 числа следующих месяцев",
25
25
  "greenText": "(минимальный платеж, 3% от суммы задолженности)",
26
26
  "month": [
27
27
  {
@@ -51,7 +51,7 @@
51
51
  ]
52
52
  },
53
53
  {
54
- "blackText": "25 ноября — последний день беспроцентного 3-х месячного периода",
54
+ "text": "25 ноября — последний день беспроцентного 3-х месячного периода",
55
55
  "greenText": "",
56
56
  "month": [
57
57
  {
@@ -69,7 +69,7 @@
69
69
  ]
70
70
  },
71
71
  {
72
- "blackText": "",
72
+ "text": "",
73
73
  "greenText": "25 декабря — обязательный платеж в соответствии с тарифом",
74
74
  "month": [
75
75
  {
@@ -49,7 +49,7 @@ const renderCalendar = (calendar) => {
49
49
  >
50
50
  <div className="flex">{renderMonthImages(_)}</div>
51
51
  <div className="font-light text-sm text-primary-text mt-3">
52
- <span>{_.blackText}</span>&thinsp;
52
+ <span>{_.text}</span>&thinsp;
53
53
  <span className="text-primary-main">{_.greenText}</span>
54
54
  </div>
55
55
  </div>
@@ -60,9 +60,9 @@ const renderCalendar = (calendar) => {
60
60
  };
61
61
 
62
62
  const renderMonthNames = (item, colSize) =>
63
- item.month.map((_) => (
64
- <div key={`monthName-${_.name}`} style={{ flexBasis: `${colSize}%` }}>
65
- {_.name}
63
+ item.month.map((_, i) => (
64
+ <div key={`monthName-${i}`} style={{ flexBasis: `${colSize}%` }}>
65
+ {_.text}
66
66
  </div>
67
67
  ));
68
68
  const renderMonthImages = (item) =>
@@ -3,7 +3,7 @@ import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
3
3
 
4
4
  interface Month {
5
5
  /** @title Название месяца */
6
- name?: string;
6
+ text?: string;
7
7
  /**
8
8
  * @title Изображение календарного месяца
9
9
  * @default
@@ -22,7 +22,7 @@ interface CalendarItem {
22
22
  /** @title Месяц */
23
23
  month?: Month[];
24
24
  /** @title Основной текст */
25
- blackText?: string;
25
+ text?: string;
26
26
  /** @title Вспомогательный текст */
27
27
  greenText?: string;
28
28
  }
@@ -10,19 +10,88 @@
10
10
  "blockType": "ProductBlock",
11
11
  "title": "Продуктовый блок",
12
12
  "description": "Описание текстового блока",
13
- "tags": ["tag2"]
13
+ "tags": ["tag2"],
14
+ "backwardButton": {
15
+ "text": "Кнопка возврата",
16
+ "icon": { "icon": "ArrowLeftIcon" }
17
+ },
18
+ "image": {
19
+ "format": "webp",
20
+ "size": {
21
+ "width": 234,
22
+ "height": 234
23
+ }
24
+ }
14
25
  },
15
26
  {
16
27
  "blockType": "ProductTile",
17
28
  "title": "Продуктовая плитка",
18
29
  "description": "Описание текстового блока",
19
- "tags": ["tag1"]
30
+ "tags": ["tag1"],
31
+ "image": {
32
+ "format": "webp",
33
+ "size": {
34
+ "width": 300
35
+ }
36
+ },
37
+ "version": "primary",
38
+ "benefits": [
39
+ {
40
+ "label": "Преимущество 1",
41
+ "description": "Описание"
42
+ },
43
+ {
44
+ "label": "Преимущество 2",
45
+ "description": "Описание"
46
+ },
47
+ {
48
+ "label": "Преимущество 3",
49
+ "description": "Описание"
50
+ }
51
+ ],
52
+ "buttons": [
53
+ {
54
+ "text": "Кнопка",
55
+ "version": "primary"
56
+ }
57
+ ]
20
58
  },
21
59
  {
22
60
  "blockType": "ProductBlock",
23
61
  "title": "Продуктовый блок",
24
62
  "description": "Описание текстового блока",
25
- "tags": ["tag2"]
63
+ "tags": ["tag2"],
64
+ "headingType": "h2",
65
+ "backwardButton": {
66
+ "text": "Кнопка возврата",
67
+ "icon": { "icon": "ArrowLeftIcon" }
68
+ },
69
+ "image": {
70
+ "format": "webp",
71
+ "size": {
72
+ "width": 234,
73
+ "height": 234
74
+ }
75
+ },
76
+ "items": ["Элемент списка 1", "Элемент списка 2", "Элемент списка 3"],
77
+ "isDotted": true,
78
+ "buttons": [
79
+ {
80
+ "text": "Кнопка",
81
+ "version": "secondary"
82
+ }
83
+ ],
84
+ "version": "primary",
85
+ "benefits": [
86
+ {
87
+ "label": "Преимущество №1",
88
+ "icon": {"icon": "ClockIcon"}
89
+ },
90
+ {
91
+ "label": "Преимущество №2",
92
+ "icon": {"icon": "SignDocsIcon"}
93
+ }
94
+ ]
26
95
  }
27
96
  ]
28
97
  }
@@ -4,10 +4,10 @@ import type { GroupBlockDef } from './BlocksTypeProps';
4
4
  * @title Таб
5
5
  */
6
6
  export interface GroupBlockTab {
7
- /** @title Название */
8
- title?: string;
9
7
  /** @title Tег */
10
8
  tag?: string;
9
+ /** @title Название */
10
+ title?: string;
11
11
  }
12
12
 
13
13
  /**
@@ -44,7 +44,9 @@ const renderTab =
44
44
  <div className="flex flex-1 items-center justify-center">
45
45
  {tab?.title ? <h3 className={tabText}>{tab?.title}</h3> : null}
46
46
  {isShowCounter ? (
47
- <div className={`flex items-center justify-center ml-8 ${counterBlockStyle}`}>
47
+ <div
48
+ className={`flex items-center justify-center ml-8 text-s-bold ${counterBlockStyle}`}
49
+ >
48
50
  <span>{tab.count}</span>
49
51
  </div>
50
52
  ) : null}
@@ -28,7 +28,16 @@ export interface LinkDocsContent {
28
28
  title?: string;
29
29
  /** @title Описание */
30
30
  description?: string;
31
- /** @title Название иконки */
31
+ /**
32
+ * @title Иконка
33
+ * @default {
34
+ * "size": {
35
+ * "width": 24,
36
+ * "height": 24
37
+ * },
38
+ * "format": "webp"
39
+ * }
40
+ */
32
41
  icon?: Picture;
33
42
  /** @title Список */
34
43
  documents?: LinkDocsItem[];