@redneckz/wildless-cms-uni-blocks 0.14.63 → 0.14.65

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 (239) hide show
  1. package/bin/migration-scripts/0.14.62.js +66 -0
  2. package/bin/migration-scripts/0.14.65.js +17 -0
  3. package/bin/utils.js +14 -1
  4. package/bundle/blocks.schema.json +1 -1
  5. package/bundle/bundle.umd.js +51 -56
  6. package/bundle/bundle.umd.min.js +1 -1
  7. package/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +4 -32
  8. package/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +2 -3
  9. package/bundle/components/ProductBlock/ProductBlockContent.d.ts +0 -2
  10. package/bundle/components/TariffsTable/EmbeddableCellData.d.ts +1 -1
  11. package/bundle/components/TariffsTable/TariffsTableContent.d.ts +1 -1
  12. package/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -2
  13. package/bundle/ui-kit/List/List.d.ts +6 -3
  14. package/bundle/ui-kit/List/ListContent.d.ts +11 -2
  15. package/bundle/ui-kit/List/ListItem.d.ts +1 -2
  16. package/bundle/ui-kit/RichText/RichTextProps.d.ts +3 -3
  17. package/dist/components/BenefitsBlock/BenefitsBlock.js +1 -13
  18. package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  19. package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +4 -32
  20. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +2 -2
  21. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  22. package/dist/components/InvestmentInfo/InvestmentInfo.js +2 -1
  23. package/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  24. package/dist/components/MobileAppTile/MobileAppTile.js +3 -3
  25. package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  26. package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +2 -3
  27. package/dist/components/ProductBlock/ProductBlock.js +1 -2
  28. package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  29. package/dist/components/ProductBlock/ProductBlockContent.d.ts +0 -2
  30. package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +4 -2
  31. package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
  32. package/dist/components/TariffsTable/EmbeddableCellData.d.ts +1 -1
  33. package/dist/components/TariffsTable/TariffsTableContent.d.ts +1 -1
  34. package/dist/ui-kit/BaseProductTile/BaseProductTile.js +10 -2
  35. package/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  36. package/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -2
  37. package/dist/ui-kit/BaseTile/BaseTile.js +1 -1
  38. package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  39. package/dist/ui-kit/List/List.d.ts +6 -3
  40. package/dist/ui-kit/List/List.js +21 -13
  41. package/dist/ui-kit/List/List.js.map +1 -1
  42. package/dist/ui-kit/List/ListContent.d.ts +11 -2
  43. package/dist/ui-kit/List/ListItem.d.ts +1 -2
  44. package/dist/ui-kit/List/ListItem.js +1 -7
  45. package/dist/ui-kit/List/ListItem.js.map +1 -1
  46. package/dist/ui-kit/RichText/RichTextProps.d.ts +3 -3
  47. package/lib/common.css +1 -1
  48. package/lib/components/BenefitsBlock/BenefitsBlock.js +2 -14
  49. package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  50. package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +4 -32
  51. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +2 -2
  52. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  53. package/lib/components/InvestmentInfo/InvestmentInfo.js +2 -1
  54. package/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  55. package/lib/components/MobileAppTile/MobileAppTile.js +3 -3
  56. package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  57. package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +2 -3
  58. package/lib/components/ProductBlock/ProductBlock.fixture.mobile.d.ts +0 -2
  59. package/lib/components/ProductBlock/ProductBlock.js +1 -2
  60. package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  61. package/lib/components/ProductBlock/ProductBlockContent.d.ts +0 -2
  62. package/lib/components/RichTextBlock/RichTextBlock.fixture.d.ts +3 -2
  63. package/lib/components/RichTextBlock/RichTextBlock.fixture.mobile.d.ts +4 -2
  64. package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +4 -2
  65. package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
  66. package/lib/components/TariffsTable/EmbeddableCellData.d.ts +1 -1
  67. package/lib/components/TariffsTable/TariffsTableContent.d.ts +1 -1
  68. package/lib/ui-kit/BaseProductTile/BaseProductTile.js +10 -2
  69. package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  70. package/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -2
  71. package/lib/ui-kit/BaseTile/BaseTile.js +1 -1
  72. package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  73. package/lib/ui-kit/List/List.d.ts +6 -3
  74. package/lib/ui-kit/List/List.js +20 -12
  75. package/lib/ui-kit/List/List.js.map +1 -1
  76. package/lib/ui-kit/List/ListContent.d.ts +11 -2
  77. package/lib/ui-kit/List/ListItem.d.ts +1 -2
  78. package/lib/ui-kit/List/ListItem.js +1 -7
  79. package/lib/ui-kit/List/ListItem.js.map +1 -1
  80. package/lib/ui-kit/RichText/RichTextProps.d.ts +3 -3
  81. package/mobile/bundle/bundle.umd.js +49 -54
  82. package/mobile/bundle/bundle.umd.min.js +1 -1
  83. package/mobile/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +4 -32
  84. package/mobile/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +2 -3
  85. package/mobile/bundle/components/ProductBlock/ProductBlockContent.d.ts +0 -2
  86. package/mobile/bundle/components/TariffsTable/EmbeddableCellData.d.ts +1 -1
  87. package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +1 -1
  88. package/mobile/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -2
  89. package/mobile/bundle/ui-kit/List/List.d.ts +6 -3
  90. package/mobile/bundle/ui-kit/List/ListContent.d.ts +11 -2
  91. package/mobile/bundle/ui-kit/List/ListItem.d.ts +1 -2
  92. package/mobile/bundle/ui-kit/RichText/RichTextProps.d.ts +3 -3
  93. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +1 -13
  94. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  95. package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +4 -32
  96. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +2 -2
  97. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  98. package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js +2 -1
  99. package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  100. package/mobile/dist/components/MobileAppTile/MobileAppTile.js +3 -3
  101. package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  102. package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +2 -3
  103. package/mobile/dist/components/ProductBlock/ProductBlock.js +1 -2
  104. package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  105. package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +0 -2
  106. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +4 -2
  107. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
  108. package/mobile/dist/components/TariffsTable/EmbeddableCellData.d.ts +1 -1
  109. package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +1 -1
  110. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js +10 -2
  111. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  112. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -2
  113. package/mobile/dist/ui-kit/BaseTile/BaseTile.js +1 -1
  114. package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  115. package/mobile/dist/ui-kit/List/List.d.ts +6 -3
  116. package/mobile/dist/ui-kit/List/List.js +21 -13
  117. package/mobile/dist/ui-kit/List/List.js.map +1 -1
  118. package/mobile/dist/ui-kit/List/ListContent.d.ts +11 -2
  119. package/mobile/dist/ui-kit/List/ListItem.d.ts +1 -2
  120. package/mobile/dist/ui-kit/List/ListItem.js +1 -7
  121. package/mobile/dist/ui-kit/List/ListItem.js.map +1 -1
  122. package/mobile/dist/ui-kit/RichText/RichTextProps.d.ts +3 -3
  123. package/mobile/lib/common.css +1 -1
  124. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +2 -14
  125. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  126. package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +4 -32
  127. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +2 -2
  128. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  129. package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js +2 -1
  130. package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  131. package/mobile/lib/components/MobileAppTile/MobileAppTile.js +3 -3
  132. package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  133. package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +2 -3
  134. package/mobile/lib/components/ProductBlock/ProductBlock.js +1 -2
  135. package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  136. package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +0 -2
  137. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +4 -2
  138. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
  139. package/mobile/lib/components/TariffsTable/EmbeddableCellData.d.ts +1 -1
  140. package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +1 -1
  141. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js +10 -2
  142. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  143. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -2
  144. package/mobile/lib/ui-kit/BaseTile/BaseTile.js +1 -1
  145. package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  146. package/mobile/lib/ui-kit/List/List.d.ts +6 -3
  147. package/mobile/lib/ui-kit/List/List.js +20 -12
  148. package/mobile/lib/ui-kit/List/List.js.map +1 -1
  149. package/mobile/lib/ui-kit/List/ListContent.d.ts +11 -2
  150. package/mobile/lib/ui-kit/List/ListItem.d.ts +1 -2
  151. package/mobile/lib/ui-kit/List/ListItem.js +1 -7
  152. package/mobile/lib/ui-kit/List/ListItem.js.map +1 -1
  153. package/mobile/lib/ui-kit/RichText/RichTextProps.d.ts +3 -3
  154. package/mobile/src/common.css +15 -11
  155. package/mobile/src/components/BenefitsBlock/BenefitsBlock.example.json +3 -8
  156. package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +21 -62
  157. package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +6 -36
  158. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +1 -2
  159. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -2
  160. package/mobile/src/components/InvestmentInfo/InvestmentInfo.tsx +2 -1
  161. package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +10 -12
  162. package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +4 -2
  163. package/mobile/src/components/ProductBlock/ProductBlock.tsx +9 -16
  164. package/mobile/src/components/ProductBlock/ProductBlockContent.ts +0 -2
  165. package/mobile/src/components/RichTextBlock/RichTextBlock.example.json +2 -1
  166. package/mobile/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +15 -7
  167. package/mobile/src/components/TariffsTable/EmbeddableCellData.tsx +1 -1
  168. package/mobile/src/components/TariffsTable/TariffsTableContent.ts +1 -1
  169. package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +12 -2
  170. package/mobile/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +1 -2
  171. package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +1 -1
  172. package/mobile/src/ui-kit/List/List.tsx +32 -20
  173. package/mobile/src/ui-kit/List/ListContent.ts +14 -2
  174. package/mobile/src/ui-kit/List/ListItem.tsx +3 -11
  175. package/mobile/src/ui-kit/RichText/RichTextProps.ts +3 -3
  176. package/package.json +1 -1
  177. package/src/common.css +15 -11
  178. package/src/components/BenefitsBlock/BenefitsBlock.example.json +3 -8
  179. package/src/components/BenefitsBlock/BenefitsBlock.fixture.mobile.tsx +1 -4
  180. package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +33 -66
  181. package/src/components/BenefitsBlock/BenefitsBlock.tsx +21 -62
  182. package/src/components/BenefitsBlock/BenefitsBlockContent.ts +6 -36
  183. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +1 -2
  184. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -2
  185. package/src/components/InvestmentInfo/InvestmentInfo.tsx +2 -1
  186. package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +0 -3
  187. package/src/components/MobileAppTile/MobileAppTile.tsx +10 -12
  188. package/src/components/MobileAppTile/MobileAppTileContent.ts +4 -2
  189. package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +0 -17
  190. package/src/components/ProductBlock/ProductBlock.tsx +9 -16
  191. package/src/components/ProductBlock/ProductBlockContent.ts +0 -2
  192. package/src/components/RichTextBlock/RichTextBlock.example.json +2 -1
  193. package/src/components/RichTextBlock/RichTextBlock.fixture.mobile.tsx +44 -18
  194. package/src/components/RichTextBlock/RichTextBlock.fixture.tsx +41 -30
  195. package/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +15 -7
  196. package/src/components/TariffsTable/EmbeddableCellData.tsx +1 -1
  197. package/src/components/TariffsTable/TariffsTableContent.ts +1 -1
  198. package/src/components/VerticalLayout/VerticalLayout.fixture.mobile.tsx +18 -2
  199. package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +2 -2
  200. package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +12 -2
  201. package/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +1 -2
  202. package/src/ui-kit/BaseTile/BaseTile.tsx +1 -1
  203. package/src/ui-kit/List/List.fixture.tsx +1 -1
  204. package/src/ui-kit/List/List.tsx +32 -20
  205. package/src/ui-kit/List/ListContent.ts +14 -2
  206. package/src/ui-kit/List/ListItem.tsx +3 -11
  207. package/src/ui-kit/RichText/RichTextProps.ts +3 -3
  208. package/bundle/components/MobileAppTile/renderList.d.ts +0 -3
  209. package/bundle/ui-kit/List/ListProps.d.ts +0 -11
  210. package/dist/components/MobileAppTile/renderList.d.ts +0 -3
  211. package/dist/components/MobileAppTile/renderList.js +0 -10
  212. package/dist/components/MobileAppTile/renderList.js.map +0 -1
  213. package/dist/ui-kit/List/ListProps.d.ts +0 -11
  214. package/dist/ui-kit/List/ListProps.js +0 -2
  215. package/dist/ui-kit/List/ListProps.js.map +0 -1
  216. package/lib/components/MobileAppTile/renderList.d.ts +0 -2
  217. package/lib/components/MobileAppTile/renderList.js +0 -7
  218. package/lib/components/MobileAppTile/renderList.js.map +0 -1
  219. package/lib/ui-kit/List/ListProps.d.ts +0 -11
  220. package/lib/ui-kit/List/ListProps.js +0 -2
  221. package/lib/ui-kit/List/ListProps.js.map +0 -1
  222. package/mobile/bundle/components/MobileAppTile/renderList.d.ts +0 -3
  223. package/mobile/bundle/ui-kit/List/ListProps.d.ts +0 -11
  224. package/mobile/dist/components/MobileAppTile/renderList.d.ts +0 -3
  225. package/mobile/dist/components/MobileAppTile/renderList.js +0 -10
  226. package/mobile/dist/components/MobileAppTile/renderList.js.map +0 -1
  227. package/mobile/dist/ui-kit/List/ListProps.d.ts +0 -11
  228. package/mobile/dist/ui-kit/List/ListProps.js +0 -2
  229. package/mobile/dist/ui-kit/List/ListProps.js.map +0 -1
  230. package/mobile/lib/components/MobileAppTile/renderList.d.ts +0 -3
  231. package/mobile/lib/components/MobileAppTile/renderList.js +0 -7
  232. package/mobile/lib/components/MobileAppTile/renderList.js.map +0 -1
  233. package/mobile/lib/ui-kit/List/ListProps.d.ts +0 -11
  234. package/mobile/lib/ui-kit/List/ListProps.js +0 -2
  235. package/mobile/lib/ui-kit/List/ListProps.js.map +0 -1
  236. package/mobile/src/components/MobileAppTile/renderList.tsx +0 -17
  237. package/mobile/src/ui-kit/List/ListProps.ts +0 -13
  238. package/src/components/MobileAppTile/renderList.tsx +0 -17
  239. package/src/ui-kit/List/ListProps.ts +0 -13
@@ -1,11 +1,12 @@
1
1
  import {
2
2
  type AdditionalDescriptionProps,
3
+ type DescriptionProps,
3
4
  type HeadlineCommonProps,
5
+ type TitleProps,
4
6
  } from '../../model/HeadlineType';
5
7
  import { type UniBlockContent } from '../../model/JSXBlock';
6
8
  import { type Picture } from '../../model/Picture';
7
9
  import { type ButtonsSectionContent } from '../../ui-kit/Button/ButtonsSectionContent';
8
- import { type HeadingCommonProps } from '../../ui-kit/Heading/HeadingProps';
9
10
  import { type ImageContent } from '../../ui-kit/Img/ImgProps';
10
11
  import { type ListContent } from '../../ui-kit/List/ListContent';
11
12
 
@@ -15,7 +16,8 @@ import { type ListContent } from '../../ui-kit/List/ListContent';
15
16
  export type MobileAppTileContent = UniBlockContent &
16
17
  AdditionalDescriptionProps &
17
18
  HeadlineCommonProps &
18
- HeadingCommonProps &
19
+ TitleProps &
20
+ DescriptionProps &
19
21
  ButtonsSectionContent &
20
22
  ListContent &
21
23
  ImageContent & {
@@ -2,24 +2,17 @@ import { JSX } from '@redneckz/uni-jsx';
2
2
  import { type UniBlockProps } from '../../model/JSXBlock';
3
3
  import { BaseProductTile } from '../../ui-kit/BaseProductTile/BaseProductTile';
4
4
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
5
- import { getBorderStyle } from '../../utils/getBorderStyle';
6
5
  import { style } from '../../utils/style';
7
6
  import { type ProductBlockContent } from './ProductBlockContent';
8
7
 
9
8
  export interface ProductBlockProps extends UniBlockProps, ProductBlockContent {}
10
9
 
11
- export const ProductBlock = JSX<ProductBlockProps>(
12
- ({ className, padding, showBorder, ...rest }) => (
13
- <BlockWrapper
14
- className={style(
15
- 'overflow-hidden flex flex-col gap-3xl box-border',
16
- getBorderStyle(showBorder),
17
- className,
18
- )}
19
- padding="p-0"
20
- {...rest}
21
- >
22
- <BaseProductTile defaultPadding="p-6xl" padding={padding} className="grow h-full" {...rest} />
23
- </BlockWrapper>
24
- ),
25
- );
10
+ export const ProductBlock = JSX<ProductBlockProps>(({ className, padding, ...rest }) => (
11
+ <BlockWrapper
12
+ className={style('overflow-hidden flex flex-col gap-3xl box-border', className)}
13
+ padding="p-0"
14
+ {...rest}
15
+ >
16
+ <BaseProductTile defaultPadding="p-6xl" padding={padding} className="grow h-full" {...rest} />
17
+ </BlockWrapper>
18
+ ));
@@ -8,6 +8,4 @@ export type ProductBlockContent = UniBlockContent &
8
8
  BaseProductTileContent & {
9
9
  /** @title Отображать кнопку возврата */
10
10
  backwardButton?: boolean;
11
- /** @title Показывать рамку вокруг блока */
12
- showBorder?: boolean;
13
11
  };
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "content": {
3
- "__html": "<h1>Заголовок 1</h1>\n<h2>Заголовок 2</h2>\n<h3>Заголовок 3</h3>\n<h4>Заголовок 4</h4>\n<h5>Заголовок 5</h5>\n<h6>Заголовок 6</h6>\n<p>Параграф, в котором много текста и даже <a href=\"#\">ссылка</a></p>\n<p><strong>Жирный текст</strong>, <em>Наклонный текст</em></p>\n<ul>\n <li>Список с точками</li>\n <li>Список с точками</li>\n</ul>\n<ol>\n <li>Нумерованный список</li>\n <li>Нумерованный список</li>\n</ol>\n"
3
+ "__html": "<h1>Заголовок 1</h1>\n<h2>Заголовок 2</h2>\n<h3>Заголовок 3</h3>\n<h4>Заголовок 4</h4>\n<h5>Заголовок 5</h5>\n<h6>Заголовок 6</h6>\n<p>Параграф, в котором много текста и даже <a href=\"#\">ссылка</a></p>\n<p><strong>Жирный текст</strong>, <em>Наклонный текст</em></p>\n<ul>\n <li>Список с точками</li>\n <li>Список с точками</li>\n</ul>\n<ol>\n <li>Нумерованный список</li>\n <li>Нумерованный список</li>\n</ol>\n",
4
+ "richVersion": ""
4
5
  }
5
6
  }
@@ -1,5 +1,7 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { Img } from '../../ui-kit/Img/Img';
3
+ import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
4
+ import { Text } from '../../ui-kit/Text/Text';
3
5
  import { type Tariff } from './useSafeBoxes';
4
6
 
5
7
  export interface SafeDepositRentalTotalProps {
@@ -17,14 +19,18 @@ export const SafeDepositRentalTotal = JSX<SafeDepositRentalTotalProps>(({ days,
17
19
  {renderTotal('Аренда за', days)}
18
20
  {renderTotal('Цена', price + ' ₽')}
19
21
  </div>
20
- <span className="@xl:hidden order-3 mb-xs text-s font-light text-secondary-text">
21
- {imageDescription}
22
- </span>
22
+ <div className="@xl:hidden order-3 mb-xs">
23
+ <Paragraph size="text-s" font="font-light" color="text-secondary-text">
24
+ {imageDescription}
25
+ </Paragraph>
26
+ </div>
23
27
  <div className="flex flex-col items-center gap-s order-3 @xl:order-none mb-xl @xl:mb-0 bg-primary-main py-s @xl:p-3xl text-center">
24
28
  <Img image={{ icon: 'PackA4Icon' }} className="@xl:h-60" />
25
- <span className="hidden @xl:inline text-s font-light text-white opacity-80 whitespace-pre-line">
26
- {imageDescription}
27
- </span>
29
+ <div className="hidden @xl:inline opacity-80 whitespace-pre-line">
30
+ <Paragraph size="text-s" font="font-light" color="text-white">
31
+ {imageDescription}
32
+ </Paragraph>
33
+ </div>
28
34
  </div>
29
35
  </div>
30
36
  );
@@ -33,7 +39,9 @@ export const SafeDepositRentalTotal = JSX<SafeDepositRentalTotalProps>(({ days,
33
39
  const renderTotal = (label: string, total: string | number) => {
34
40
  return (
35
41
  <div className="flex justify-between items-center gap-y-xs @xl:flex-col @xl:items-start">
36
- <div className="text-l font-light text-secondary-text">{label}</div>
42
+ <Text size="text-l" font="font-light" color="text-secondary-text">
43
+ {label}
44
+ </Text>
37
45
  <span className="text-l @xl:text-h3 text-primary-text">{total}</span>
38
46
  </div>
39
47
  );
@@ -9,7 +9,7 @@ import {
9
9
  } from '../../ui-kit/InnerTable/InnerTableButton';
10
10
  import { type TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTableProps';
11
11
  import { List } from '../../ui-kit/List/List';
12
- import { type ListProps } from '../../ui-kit/List/ListProps';
12
+ import { type ListProps } from '../../ui-kit/List/ListContent';
13
13
  import { Text } from '../../ui-kit/Text/Text';
14
14
  import { type LabelDescriptionCell } from './TariffsTableContent';
15
15
 
@@ -4,7 +4,7 @@ import { type IconProps } from '../../model/Picture';
4
4
  import { type ButtonsSectionContent } from '../../ui-kit/Button/ButtonsSectionContent';
5
5
  import { type ImageContent } from '../../ui-kit/Img/ImgProps';
6
6
  import { type TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTableProps';
7
- import { type ListProps } from '../../ui-kit/List/ListProps';
7
+ import { type ListProps } from '../../ui-kit/List/ListContent';
8
8
 
9
9
  /**
10
10
  * @hidden
@@ -1,5 +1,6 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { Headline } from '../../components/Headline/Headline';
3
+ import { type HeadlineVersion } from '../../model/HeadlineType';
3
4
  import { type UniBlockProps } from '../../model/JSXBlock';
4
5
  import { type VNode } from '../../model/VNode';
5
6
  import { BaseTile } from '../BaseTile/BaseTile';
@@ -7,6 +8,7 @@ import { BenefitsList } from '../BenefitsList/BenefitsList';
7
8
  import { renderButtonsSection } from '../Button/renderButtonsSection';
8
9
  import { Img } from '../Img/Img';
9
10
  import { List } from '../List/List';
11
+ import { type ListItemSize } from '../List/ListContent';
10
12
  import { PriceList } from '../PriceList/PriceList';
11
13
  import { RichText } from '../RichText/RichText';
12
14
  import { Tags } from '../Tags/Tags';
@@ -16,6 +18,15 @@ interface BaseProductTileProps extends UniBlockProps, BaseProductTileContent {
16
18
  backwardButton?: boolean;
17
19
  }
18
20
 
21
+ const LIST_SIZE: Record<HeadlineVersion, ListItemSize> = {
22
+ XXL: 'L',
23
+ XL: 'L',
24
+ L: 'M',
25
+ M: 'M',
26
+ S: 'S',
27
+ XS: 'S',
28
+ };
29
+
19
30
  export const BaseProductTile = JSX<BaseProductTileProps>(
20
31
  // eslint-disable-next-line max-lines-per-function
21
32
  ({
@@ -34,7 +45,6 @@ export const BaseProductTile = JSX<BaseProductTileProps>(
34
45
  items,
35
46
  isDotted = true,
36
47
  priceList = [],
37
- listItemSize,
38
48
  tags = [],
39
49
  buttons,
40
50
  image,
@@ -86,7 +96,7 @@ export const BaseProductTile = JSX<BaseProductTileProps>(
86
96
  ) : null}
87
97
  {__html ? <RichText __html={__html} /> : null}
88
98
  {items?.length ? (
89
- <List items={items} isDotted={isDotted} listItemSize={listItemSize} />
99
+ <List items={items} isDotted={isDotted} listItemSize={LIST_SIZE[headlineVersion]} />
90
100
  ) : null}
91
101
  {children}
92
102
  {priceList?.length ? <PriceList priceList={priceList} /> : null}
@@ -1,6 +1,6 @@
1
1
  import { type Align } from '../../model/Align';
2
2
  import { type BulletsProps } from '../../model/Bullets';
3
- import { type HeadlineProps, type LabelProps } from '../../model/HeadlineType';
3
+ import { type HeadlineProps } from '../../model/HeadlineType';
4
4
  import { type BenefitsListContent } from '../BenefitsList/BenefitsListContent';
5
5
  import { type ButtonsSectionContent } from '../Button/ButtonsSectionContent';
6
6
  import { type ImageContent } from '../Img/ImgProps';
@@ -38,7 +38,6 @@ export type BaseProductTileContent = HeadlineProps &
38
38
  TagsContent &
39
39
  ButtonsSectionContent &
40
40
  ImageContent &
41
- LabelProps &
42
41
  PriceListProps & {
43
42
  imageOptions?: TileImageOptions;
44
43
  /** @title Заголовок во всю ширину */
@@ -31,7 +31,7 @@ export const BaseTile = JSX<BaseTileProps>(
31
31
  className,
32
32
  version = 'primary',
33
33
  defaultPadding,
34
- padding,
34
+ padding = '',
35
35
  title = '',
36
36
  insetTitle = '',
37
37
  buttons,
@@ -1,40 +1,52 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { style } from '../../utils/style';
3
- import { type ListItemSize } from './ListContent';
3
+ import { type ListItemSize, type ListProps } from './ListContent';
4
4
  import { ListItem } from './ListItem';
5
- import { type ListProps } from './ListProps';
6
5
 
7
- export const TEXT_SIZE_MAP: Record<ListItemSize, string> = {
8
- XS: 'text-m font-light',
9
- S: 'text-l font-light',
10
- M: 'text-h6',
11
- L: 'text-h5',
12
- };
13
-
14
- const ITEM_INDENT_MAP: Record<ListItemSize, string> = {
15
- XS: 'ml-2xs',
16
- S: 'ml-xs',
17
- M: 'ml-s',
18
- L: 'ml-m',
6
+ export const LIST_VERSION_STYLE: Record<
7
+ ListItemSize,
8
+ {
9
+ textSize: string;
10
+ indentStyle: string;
11
+ dotStyle: string;
12
+ }
13
+ > = {
14
+ S: {
15
+ textSize: 'text-l font-light',
16
+ indentStyle: 'ml-xs',
17
+ dotStyle: 'w-1 h-1 mr-xs',
18
+ },
19
+ M: {
20
+ textSize: 'text-h6',
21
+ indentStyle: 'ml-s',
22
+ dotStyle: 'w-1.5 h-1.5 mr-s',
23
+ },
24
+ L: {
25
+ textSize: 'text-h5',
26
+ indentStyle: 'ml-m',
27
+ dotStyle: 'w-1.5 h-1.5 mr-m',
28
+ },
19
29
  };
20
30
 
21
31
  export const List = JSX<ListProps>(
22
- ({ className, hasIndent, isDotted = true, items = [], listItemSize = 'M' }) =>
23
- items?.length ? (
32
+ ({ className, isDotted = true, items = [], listItemSize = 'M' }) => {
33
+ const versionStyle = LIST_VERSION_STYLE[listItemSize];
34
+
35
+ return items?.length ? (
24
36
  <section
25
37
  className={style(
26
38
  'flex flex-col gap-xs text-left text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text',
27
- TEXT_SIZE_MAP[listItemSize],
28
- hasIndent ? ITEM_INDENT_MAP[listItemSize] : '',
39
+ versionStyle.textSize,
29
40
  className,
30
41
  )}
31
42
  role="list"
32
43
  >
33
44
  {items.map((item, i) => (
34
- <ListItem key={String(i)} isDotted={isDotted} size={listItemSize}>
45
+ <ListItem key={String(i)} isDotted={isDotted} dotClassName={versionStyle.dotStyle}>
35
46
  {item}
36
47
  </ListItem>
37
48
  ))}
38
49
  </section>
39
- ) : null,
50
+ ) : null;
51
+ },
40
52
  );
@@ -1,11 +1,23 @@
1
+ import { type BulletsProps } from '../../model/Bullets';
2
+
1
3
  /**
2
4
  * @title Размер пунктов списка
3
- * @enumNames ["Очень маленький", "Маленький", "Средний", "Большой"]
5
+ * @enumNames ["Маленький", "Средний", "Большой"]
4
6
  */
5
- export type ListItemSize = 'XS' | 'S' | 'M' | 'L';
7
+ export type ListItemSize = 'S' | 'M' | 'L';
6
8
 
7
9
  export interface ListContent {
8
10
  /** @title Список */
9
11
  items?: string[];
12
+ /** @hidden */
10
13
  listItemSize?: ListItemSize;
11
14
  }
15
+
16
+ /**
17
+ * @title Содержимое списка
18
+ */
19
+ export type ListProps = ListContent &
20
+ BulletsProps & {
21
+ /** @hidden */
22
+ className?: string;
23
+ };
@@ -1,32 +1,24 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { style } from '../../utils/style';
3
- import { type ListItemSize } from './ListContent';
4
3
 
5
4
  /**
6
5
  * @title Параметры элемента списка
7
6
  */
8
7
  export interface ListItemProps {
9
8
  className?: string;
9
+ dotClassName?: string;
10
10
  text?: string;
11
11
  isDotted?: boolean;
12
- size?: ListItemSize;
13
12
  }
14
13
 
15
- const DOT_SIZE_MAP = {
16
- L: 'w-1.5 h-1.5 mr-m', // TODO: Действительно нужен этот вариант? отличается только margin
17
- M: 'w-1.5 h-1.5 mr-s',
18
- S: 'w-1 h-1 mr-xs',
19
- XS: 'w-1 h-1 mr-xs',
20
- };
21
-
22
- export const ListItem = JSX<ListItemProps>(({ className, isDotted, children, size = 'M' }) => (
14
+ export const ListItem = JSX<ListItemProps>(({ className, isDotted, dotClassName, children }) => (
23
15
  <div className={style('font-sans flex', className)} role="listitem">
24
16
  {isDotted ? (
25
17
  <div className="shrink-0">
26
18
  <div
27
19
  className={style(
28
20
  'align-middle inline-block rounded-full bg-primary-text group-data-secondary:bg-white',
29
- DOT_SIZE_MAP[size],
21
+ dotClassName,
30
22
  )}
31
23
  />
32
24
  </div>
@@ -2,10 +2,10 @@ type HTML = string;
2
2
 
3
3
  /**
4
4
  * @title Стиль форматированного текста
5
- * @default ""
6
- * @enumNames ["по умолчанию", "Строки разного цвета", "Горизонтальные разделители"]
5
+ * @default "primary"
6
+ * @enumNames ["Основсной", "Второстепенный"]
7
7
  */
8
- export type RichVersion = '' | 'striped' | 'horizontal-separator';
8
+ export type RichVersion = '' | 'secondary';
9
9
 
10
10
  export interface RichTextProps {
11
11
  /** @title Форматированный текст */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redneckz/wildless-cms-uni-blocks",
3
- "version": "0.14.63",
3
+ "version": "0.14.65",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "author": "ЦК",
package/src/common.css CHANGED
@@ -198,6 +198,7 @@ html {
198
198
 
199
199
  .md-container {
200
200
  @apply text-l font-sans;
201
+ overflow: auto;
201
202
  }
202
203
 
203
204
  .md-container p.h1 {
@@ -257,39 +258,42 @@ html {
257
258
  @apply font-normal;
258
259
  }
259
260
 
260
- .striped.md-container table {
261
+ .secondary.md-container table {
261
262
  width: 100%;
262
- table-layout: fixed;
263
263
  text-align: left;
264
264
  }
265
265
 
266
- .striped.md-container table thead,
267
- .horizontal-separator.md-container table thead {
266
+ .secondary.md-container table thead,
267
+ .md-container table thead {
268
268
  color: rgb(var(--color-secondary-text));
269
269
  }
270
270
 
271
- .striped.md-container table td,
272
- .striped.md-container table th {
271
+ .secondary.md-container table td,
272
+ .secondary.md-container table th {
273
273
  padding: 8px 14px 5px;
274
274
  }
275
275
 
276
- .striped.md-container table tbody tr:nth-child(2n-1) {
276
+ .secondary.md-container table tbody tr:nth-child(2n-1) {
277
277
  background-color: rgb(var(--color-secondary-light));
278
278
  }
279
279
 
280
- .horizontal-separator.md-container table {
280
+ .secondary.md-container ul li {
281
+ color: rgb(125, 126, 127);
282
+ }
283
+
284
+ .md-container table {
281
285
  width: 100%;
282
286
  text-align: left;
283
287
  }
284
288
 
285
- .horizontal-separator.md-container table td,
286
- .horizontal-separator.md-container table th {
289
+ .md-container table td,
290
+ .md-container table th {
287
291
  padding: 12px 8px 12px 0;
288
292
  font-size: 18px;
289
293
  min-width: 116px;
290
294
  }
291
295
 
292
- .horizontal-separator.md-container table tr {
296
+ .md-container table tr {
293
297
  border-bottom: 1px solid rgb(var(--color-primary-divider));
294
298
  }
295
299
  }
@@ -5,10 +5,7 @@
5
5
  "benefitList": [
6
6
  {
7
7
  "label": "Преимущество №1",
8
- "description": {
9
- "name": "Описание 1",
10
- "benefitType": "text"
11
- },
8
+ "description": "Описание 1",
12
9
  "icon": {
13
10
  "icon": "SmallClockIcon",
14
11
  "format": "webp",
@@ -20,10 +17,8 @@
20
17
  },
21
18
  {
22
19
  "label": "Преимущество №2",
23
- "description": {
24
- "items": ["Пункт 1", "Пункт 2"],
25
- "benefitType": "list"
26
- },
20
+ "items": ["Пункт 1", "Пункт 2"],
21
+ "isDotted": false,
27
22
  "icon": {
28
23
  "icon": "SignDocsIcon",
29
24
  "format": "webp",
@@ -19,10 +19,7 @@ const benefitImage = {
19
19
  };
20
20
  const benefitIcon: BenefitBlockItemProps = {
21
21
  label: 'Оформление',
22
- description: {
23
- name: 'Обеспечение ',
24
- benefitType: 'text',
25
- },
22
+ description: 'Обеспечение',
26
23
  icon: { icon: 'PersonalCardIcon' },
27
24
  };
28
25
 
@@ -2,7 +2,7 @@ import '../../setup-fixture';
2
2
 
3
3
  import { type Picture } from '../../model/Picture';
4
4
  import { BenefitsBlock } from './BenefitsBlock';
5
- import { type BenefitBlockItemProps, type ListBenefitDef } from './BenefitsBlockContent';
5
+ import { type BenefitBlockItemProps } from './BenefitsBlockContent';
6
6
 
7
7
  const itemsList = [
8
8
  'Комиссия за выдачу',
@@ -23,27 +23,42 @@ const image: Picture = {
23
23
 
24
24
  const benefitImage: BenefitBlockItemProps = {
25
25
  label: 'Без залога и поручительства',
26
- description: {
27
- name: 'Единовременное перечисление суммы кредита в полном объёме на текущий счет в Банке',
28
- benefitType: 'text',
29
- },
26
+ description: 'Единовременное перечисление суммы кредита в полном объёме на текущий счет в Банке',
30
27
  icon: image,
31
28
  };
32
29
 
33
30
  const benefitIcon: BenefitBlockItemProps = {
34
31
  label: 'Без залога ',
35
- description: {
36
- name: 'Единовременное перечисление ',
37
- benefitType: 'text',
38
- },
32
+ description: 'Единовременное перечисление',
39
33
  icon: { icon: 'CalendarTickIcon' },
40
34
  };
41
35
 
42
- const descriptionList: ListBenefitDef = {
43
- bullets: true,
44
- items: itemsList,
45
- benefitType: 'list',
46
- };
36
+ const benefitList: BenefitBlockItemProps[] = [
37
+ {
38
+ label: 'Без комиссии',
39
+ items: itemsList,
40
+ isDotted: true,
41
+ icon: { icon: 'SignDocsIcon' },
42
+ },
43
+ {
44
+ label: 'Оформление по паспорту',
45
+ items: itemsList,
46
+ isDotted: true,
47
+ icon: { icon: 'SignDocsIcon' },
48
+ },
49
+ {
50
+ label: 'Без залога и поручительства',
51
+ items: itemsList,
52
+ isDotted: true,
53
+ icon: { icon: 'SignDocsIcon' },
54
+ },
55
+ {
56
+ label: 'Деньги за 3 дня',
57
+ items: itemsList,
58
+ isDotted: true,
59
+ icon: { icon: 'ActualBalanceIcon', iconVersion: 'normal' },
60
+ },
61
+ ];
47
62
 
48
63
  export default {
49
64
  'desc-img': (
@@ -71,28 +86,7 @@ export default {
71
86
  <BenefitsBlock
72
87
  className="col-span-12"
73
88
  title="Преимущества кредита"
74
- benefitList={[
75
- {
76
- label: 'Без комиссии',
77
- description: descriptionList,
78
- icon: { icon: 'SignDocsIcon' },
79
- },
80
- {
81
- label: 'Оформление по паспорту',
82
- description: descriptionList,
83
- icon: { icon: 'SignDocsIcon' },
84
- },
85
- {
86
- label: 'Без залога и поручительства',
87
- description: descriptionList,
88
- icon: { icon: 'SignDocsIcon' },
89
- },
90
- {
91
- label: 'Деньги за 3 дня',
92
- description: descriptionList,
93
- icon: { icon: 'ActualBalanceIcon', iconVersion: 'normal' },
94
- },
95
- ]}
89
+ benefitList={benefitList}
96
90
  />
97
91
  </div>
98
92
  ),
@@ -101,28 +95,7 @@ export default {
101
95
  <BenefitsBlock
102
96
  className="col-span-12"
103
97
  title="Преимущества кредита"
104
- benefitList={[
105
- {
106
- label: 'Без комиссии',
107
- description: descriptionList,
108
- icon: { icon: 'SignDocsIcon', iconVersion: 'normal' },
109
- },
110
- {
111
- label: 'Оформление по паспорту',
112
- description: descriptionList,
113
- icon: { icon: 'SignDocsIcon', iconVersion: 'normal' },
114
- },
115
- {
116
- label: 'Без залога и поручительства',
117
- description: descriptionList,
118
- icon: { icon: 'SignDocsIcon', iconVersion: 'normal' },
119
- },
120
- {
121
- label: 'Деньги за 3 дня',
122
- description: descriptionList,
123
- icon: { icon: 'ActualBalanceIcon', iconVersion: 'normal' },
124
- },
125
- ]}
98
+ benefitList={benefitList}
126
99
  version="secondary"
127
100
  />
128
101
  </div>
@@ -137,19 +110,13 @@ export default {
137
110
  { ...benefitIcon },
138
111
  {
139
112
  label: 'Без залога ',
140
- description: {
141
- name: 'Единовременное перечисление ',
142
- benefitType: 'text',
143
- },
113
+ description: 'Единовременное перечисление',
144
114
  icon: { icon: 'CalendarTickIcon', iconVersion: 'white' },
145
115
  iconBgVersion: '',
146
116
  },
147
117
  {
148
118
  label: 'Деньги за 3 дня',
149
- description: {
150
- name: 'Рассмотрение',
151
- benefitType: 'text',
152
- },
119
+ description: 'Рассмотрение',
153
120
  icon: { icon: 'GlobalIcon', iconVersion: 'white' },
154
121
  iconBgVersion: '',
155
122
  },