@redneckz/wildless-cms-uni-blocks 0.6.39 → 0.6.40

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 (256) hide show
  1. package/bundle/BlockRenderer/BlockRendererOptions.d.ts +1 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +139 -111
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/Carousel/CarouselContent.d.ts +1 -1
  6. package/bundle/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +7 -0
  7. package/bundle/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +23 -0
  8. package/bundle/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +1 -1
  9. package/bundle/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +4 -4
  10. package/bundle/components/CarouselProductCard/CarouselProductCard.d.ts +5 -0
  11. package/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +49 -0
  12. package/bundle/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +1 -1
  13. package/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +4 -0
  14. package/bundle/model/BlockVersion.d.ts +1 -0
  15. package/bundle/ui-kit/Button/ButtonSection.d.ts +1 -1
  16. package/bundle/ui-kit/SwipeListControl/SwipeListContainer.d.ts +1 -1
  17. package/dist/BlockRenderer/BlockRendererOptions.d.ts +1 -0
  18. package/dist/BlockRenderer/renderBlock.js +2 -2
  19. package/dist/BlockRenderer/renderBlock.js.map +1 -1
  20. package/dist/components/Blocks.js +6 -2
  21. package/dist/components/Blocks.js.map +1 -1
  22. package/dist/components/Carousel/Carousel.js +3 -2
  23. package/dist/components/Carousel/Carousel.js.map +1 -1
  24. package/dist/components/Carousel/CarouselContent.d.ts +1 -1
  25. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +7 -0
  26. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +17 -0
  27. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -0
  28. package/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +23 -0
  29. package/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.js +2 -0
  30. package/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.js.map +1 -0
  31. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +1 -1
  32. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +12 -8
  33. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
  34. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +4 -4
  35. package/dist/components/CarouselProductCard/CarouselProductCard.d.ts +5 -0
  36. package/dist/components/CarouselProductCard/CarouselProductCard.js +32 -0
  37. package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -0
  38. package/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +49 -0
  39. package/dist/components/CarouselProductCard/CarouselProductCardContent.js +2 -0
  40. package/dist/components/CarouselProductCard/CarouselProductCardContent.js.map +1 -0
  41. package/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +1 -1
  42. package/dist/components/Gallery/GalleryCardInner.js +3 -2
  43. package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  44. package/dist/components/ProductTile/ProductTile.js +10 -22
  45. package/dist/components/ProductTile/ProductTile.js.map +1 -1
  46. package/dist/components/VerticalLayout/VerticalLayout.js +18 -13
  47. package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  48. package/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +4 -0
  49. package/dist/model/BlockVersion.d.ts +1 -0
  50. package/dist/model/BlockVersion.js +5 -1
  51. package/dist/model/BlockVersion.js.map +1 -1
  52. package/dist/ui-kit/Button/ButtonSection.d.ts +1 -1
  53. package/dist/ui-kit/Button/ButtonSection.js +2 -2
  54. package/dist/ui-kit/Button/ButtonSection.js.map +1 -1
  55. package/dist/ui-kit/SwipeListControl/SwipeListContainer.d.ts +1 -1
  56. package/dist/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
  57. package/dist/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
  58. package/lib/BlockRenderer/BlockRendererOptions.d.ts +1 -0
  59. package/lib/BlockRenderer/renderBlock.js +2 -2
  60. package/lib/BlockRenderer/renderBlock.js.map +1 -1
  61. package/lib/common.css +1 -1
  62. package/lib/components/Blocks.js +6 -2
  63. package/lib/components/Blocks.js.map +1 -1
  64. package/lib/components/Carousel/Carousel.fixture.d.ts +4 -1
  65. package/lib/components/Carousel/Carousel.js +3 -2
  66. package/lib/components/Carousel/Carousel.js.map +1 -1
  67. package/lib/components/Carousel/CarouselContent.d.ts +1 -1
  68. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +7 -0
  69. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.fixture.d.ts +16 -0
  70. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +15 -0
  71. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -0
  72. package/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +23 -0
  73. package/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.js +2 -0
  74. package/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.js.map +1 -0
  75. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +1 -1
  76. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +12 -8
  77. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
  78. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +4 -4
  79. package/lib/components/CarouselProductCard/CarouselProductCard.d.ts +5 -0
  80. package/lib/components/CarouselProductCard/CarouselProductCard.fixture.d.ts +8 -0
  81. package/lib/components/CarouselProductCard/CarouselProductCard.js +30 -0
  82. package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -0
  83. package/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +49 -0
  84. package/lib/components/CarouselProductCard/CarouselProductCardContent.js +2 -0
  85. package/lib/components/CarouselProductCard/CarouselProductCardContent.js.map +1 -0
  86. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.fixture.d.ts +1 -1
  87. package/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +1 -1
  88. package/lib/components/Gallery/GalleryCardInner.js +3 -2
  89. package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  90. package/lib/components/ProductTile/ProductTile.fixture.d.ts +2 -1
  91. package/lib/components/ProductTile/ProductTile.js +11 -23
  92. package/lib/components/ProductTile/ProductTile.js.map +1 -1
  93. package/lib/components/VerticalLayout/VerticalLayout.fixture.d.ts +2 -1
  94. package/lib/components/VerticalLayout/VerticalLayout.js +18 -13
  95. package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  96. package/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +4 -0
  97. package/lib/model/BlockVersion.d.ts +1 -0
  98. package/lib/model/BlockVersion.js +4 -0
  99. package/lib/model/BlockVersion.js.map +1 -1
  100. package/lib/ui-kit/Button/ButtonSection.d.ts +1 -1
  101. package/lib/ui-kit/Button/ButtonSection.js +2 -2
  102. package/lib/ui-kit/Button/ButtonSection.js.map +1 -1
  103. package/lib/ui-kit/SwipeListControl/SwipeListContainer.d.ts +1 -1
  104. package/lib/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
  105. package/lib/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
  106. package/mobile/bundle/BlockRenderer/BlockRendererOptions.d.ts +1 -0
  107. package/mobile/bundle/bundle.umd.js +6 -6
  108. package/mobile/bundle/bundle.umd.min.js +1 -1
  109. package/mobile/bundle/components/Carousel/CarouselContent.d.ts +1 -1
  110. package/mobile/bundle/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +7 -0
  111. package/mobile/bundle/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +23 -0
  112. package/mobile/bundle/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +1 -1
  113. package/mobile/bundle/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +4 -4
  114. package/mobile/bundle/components/CarouselProductCard/CarouselProductCard.d.ts +5 -0
  115. package/mobile/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +49 -0
  116. package/mobile/bundle/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +1 -1
  117. package/mobile/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +4 -0
  118. package/mobile/bundle/model/BlockVersion.d.ts +1 -0
  119. package/mobile/bundle/ui-kit/Button/ButtonSection.d.ts +1 -1
  120. package/mobile/bundle/ui-kit/SwipeListControl/SwipeListContainer.d.ts +1 -1
  121. package/mobile/dist/BlockRenderer/BlockRendererOptions.d.ts +1 -0
  122. package/mobile/dist/BlockRenderer/renderBlock.js +2 -2
  123. package/mobile/dist/BlockRenderer/renderBlock.js.map +1 -1
  124. package/mobile/dist/components/Carousel/Carousel.js +3 -2
  125. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  126. package/mobile/dist/components/Carousel/CarouselContent.d.ts +1 -1
  127. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +7 -0
  128. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +17 -0
  129. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -0
  130. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +23 -0
  131. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.js +2 -0
  132. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.js.map +1 -0
  133. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +1 -1
  134. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +12 -8
  135. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
  136. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +4 -4
  137. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.d.ts +5 -0
  138. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +32 -0
  139. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -0
  140. package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +49 -0
  141. package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.js +2 -0
  142. package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.js.map +1 -0
  143. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +1 -1
  144. package/mobile/dist/components/Gallery/GalleryCardInner.js +3 -2
  145. package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  146. package/mobile/dist/components/ProductTile/ProductTile.js +10 -22
  147. package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
  148. package/mobile/dist/components/VerticalLayout/VerticalLayout.js +18 -13
  149. package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  150. package/mobile/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +4 -0
  151. package/mobile/dist/model/BlockVersion.d.ts +1 -0
  152. package/mobile/dist/model/BlockVersion.js +5 -1
  153. package/mobile/dist/model/BlockVersion.js.map +1 -1
  154. package/mobile/dist/ui-kit/Button/ButtonSection.d.ts +1 -1
  155. package/mobile/dist/ui-kit/Button/ButtonSection.js +2 -2
  156. package/mobile/dist/ui-kit/Button/ButtonSection.js.map +1 -1
  157. package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.d.ts +1 -1
  158. package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
  159. package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
  160. package/mobile/lib/BlockRenderer/BlockRendererOptions.d.ts +1 -0
  161. package/mobile/lib/BlockRenderer/renderBlock.js +2 -2
  162. package/mobile/lib/BlockRenderer/renderBlock.js.map +1 -1
  163. package/mobile/lib/components/Carousel/Carousel.js +3 -2
  164. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  165. package/mobile/lib/components/Carousel/CarouselContent.d.ts +1 -1
  166. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +7 -0
  167. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +15 -0
  168. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -0
  169. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +23 -0
  170. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.js +2 -0
  171. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.js.map +1 -0
  172. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +1 -1
  173. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +12 -8
  174. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
  175. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +4 -4
  176. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.d.ts +5 -0
  177. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +30 -0
  178. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -0
  179. package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +49 -0
  180. package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.js +2 -0
  181. package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.js.map +1 -0
  182. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +1 -1
  183. package/mobile/lib/components/Gallery/GalleryCardInner.js +3 -2
  184. package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  185. package/mobile/lib/components/ProductTile/ProductTile.js +11 -23
  186. package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
  187. package/mobile/lib/components/VerticalLayout/VerticalLayout.js +18 -13
  188. package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  189. package/mobile/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +4 -0
  190. package/mobile/lib/model/BlockVersion.d.ts +1 -0
  191. package/mobile/lib/model/BlockVersion.js +4 -0
  192. package/mobile/lib/model/BlockVersion.js.map +1 -1
  193. package/mobile/lib/ui-kit/Button/ButtonSection.d.ts +1 -1
  194. package/mobile/lib/ui-kit/Button/ButtonSection.js +2 -2
  195. package/mobile/lib/ui-kit/Button/ButtonSection.js.map +1 -1
  196. package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.d.ts +1 -1
  197. package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
  198. package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
  199. package/mobile/src/BlockRenderer/BlockRendererOptions.ts +1 -0
  200. package/mobile/src/BlockRenderer/renderBlock.tsx +2 -1
  201. package/mobile/src/components/Carousel/Carousel.example.json +0 -1
  202. package/mobile/src/components/Carousel/Carousel.tsx +21 -18
  203. package/mobile/src/components/Carousel/CarouselContent.ts +1 -1
  204. package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.example.json +17 -0
  205. package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +62 -0
  206. package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.ui.json +10 -0
  207. package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCardContent.ts +25 -0
  208. package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +33 -14
  209. package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCardContent.ts +5 -5
  210. package/mobile/src/components/CarouselProductCard/CarouselProductCard.example.json +21 -0
  211. package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +102 -0
  212. package/mobile/src/components/CarouselProductCard/CarouselProductCard.ui.json +18 -0
  213. package/mobile/src/components/CarouselProductCard/CarouselProductCardContent.ts +51 -0
  214. package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCardContent.ts +1 -1
  215. package/mobile/src/components/ContactsBlock/ContactsBlock.example.json +1 -1
  216. package/mobile/src/components/Gallery/GalleryCardInner.tsx +6 -3
  217. package/mobile/src/components/ProductTile/ProductTile.tsx +8 -26
  218. package/mobile/src/components/VerticalLayout/VerticalLayout.example.json +7 -4
  219. package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +35 -20
  220. package/mobile/src/components/VerticalLayout/VerticalLayoutContent.ts +4 -0
  221. package/mobile/src/model/BlockVersion.ts +5 -0
  222. package/mobile/src/ui-kit/Button/ButtonSection.tsx +4 -4
  223. package/mobile/src/ui-kit/SwipeListControl/SwipeListContainer.tsx +2 -2
  224. package/package.json +1 -1
  225. package/src/BlockRenderer/BlockRendererOptions.ts +1 -0
  226. package/src/BlockRenderer/renderBlock.tsx +2 -1
  227. package/src/components/Blocks.ts +6 -2
  228. package/src/components/Carousel/Carousel.example.json +0 -1
  229. package/src/components/Carousel/Carousel.fixture.tsx +64 -4
  230. package/src/components/Carousel/Carousel.tsx +21 -18
  231. package/src/components/Carousel/CarouselContent.ts +1 -1
  232. package/src/components/CarouselCatalogCard/CarouselCatalogCard.example.json +17 -0
  233. package/src/components/CarouselCatalogCard/CarouselCatalogCard.fixture.tsx +43 -0
  234. package/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +62 -0
  235. package/src/components/CarouselCatalogCard/CarouselCatalogCard.ui.json +10 -0
  236. package/src/components/CarouselCatalogCard/CarouselCatalogCardContent.ts +25 -0
  237. package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +33 -14
  238. package/src/components/CarouselInvestmentCard/CarouselInvestmentCardContent.ts +5 -5
  239. package/src/components/CarouselProductCard/CarouselProductCard.example.json +21 -0
  240. package/src/components/CarouselProductCard/CarouselProductCard.fixture.tsx +62 -0
  241. package/src/components/CarouselProductCard/CarouselProductCard.tsx +102 -0
  242. package/src/components/CarouselProductCard/CarouselProductCard.ui.json +18 -0
  243. package/src/components/CarouselProductCard/CarouselProductCardContent.ts +51 -0
  244. package/src/components/CarouselProgramsCard/CarouselProgramsCard.fixture.tsx +1 -1
  245. package/src/components/CarouselProgramsCard/CarouselProgramsCardContent.ts +1 -1
  246. package/src/components/ContactsBlock/ContactsBlock.example.json +1 -1
  247. package/src/components/Gallery/GalleryCardInner.tsx +6 -3
  248. package/src/components/ProductTile/ProductTile.fixture.tsx +2 -1
  249. package/src/components/ProductTile/ProductTile.tsx +8 -26
  250. package/src/components/VerticalLayout/VerticalLayout.example.json +7 -4
  251. package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +59 -2
  252. package/src/components/VerticalLayout/VerticalLayout.tsx +35 -20
  253. package/src/components/VerticalLayout/VerticalLayoutContent.ts +4 -0
  254. package/src/model/BlockVersion.ts +5 -0
  255. package/src/ui-kit/Button/ButtonSection.tsx +4 -4
  256. package/src/ui-kit/SwipeListControl/SwipeListContainer.tsx +2 -2
@@ -6,7 +6,7 @@ export interface CarouselContent {
6
6
  * @title Количество видимых карточек
7
7
  * @enumNames ["auto", "1", "2", "3"]
8
8
  */
9
- visibleItemCount?: 0 | 1 | 2 | 3;
9
+ visibleItemCount?: 0 | 1 | 2 | 3 | 4;
10
10
  /** @title Добавление блюра */
11
11
  isBlur?: boolean;
12
12
  /** @title Цикличность */
@@ -0,0 +1,7 @@
1
+ import type { BlockVersion } from '../../model/BlockVersion';
2
+ import type { CarouselCatalogCardContent } from './CarouselCatalogCardContent';
3
+ export interface CarouselCatalogCardProps extends CarouselCatalogCardContent {
4
+ className?: string;
5
+ version?: BlockVersion;
6
+ }
7
+ export declare const CarouselCatalogCard: import("@redneckz/uni-jsx").UNIComponent<CarouselCatalogCardProps, any, any>;
@@ -0,0 +1,23 @@
1
+ import type { BlockVersion } from '../../model/BlockVersion';
2
+ import type { HeadlineCommonProps } from '../../model/HeadlineType';
3
+ import type { ProductColorVersion } from '../../model/ProductColorVersion';
4
+ import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
5
+ import type { ImageContent } from '../../ui-kit/Img/ImgProps';
6
+ /**
7
+ * @title Карточка каталога
8
+ */
9
+ export declare type CarouselCatalogCardContent = HeadlineCommonProps & ImageContent & {
10
+ /** @title Цена в рублях */
11
+ price?: number;
12
+ /** @title Доступные цвета */
13
+ colors?: ProductColorVersion[];
14
+ /**
15
+ * @title Кнопка
16
+ * @default {
17
+ * "icon": { "format": "webp", "size": { "width": 24, "height": 24 } },
18
+ * "iconRight" : { "format": "webp", "size": { "width": 24, "height": 24 } }
19
+ * }
20
+ */
21
+ button?: ButtonWithIconProps;
22
+ version?: BlockVersion;
23
+ };
@@ -1,5 +1,5 @@
1
- import type { CarouselInvestmentCardContent } from './CarouselInvestmentCardContent';
2
1
  import type { UniBlockProps } from '../../model/JSXBlock';
2
+ import type { CarouselInvestmentCardContent } from './CarouselInvestmentCardContent';
3
3
  export interface CarouselInvestmentCardProps extends CarouselInvestmentCardContent, UniBlockProps {
4
4
  }
5
5
  export declare const CarouselInvestmentCard: import("@redneckz/uni-jsx").UNIComponent<CarouselInvestmentCardProps, any, any>;
@@ -1,9 +1,6 @@
1
1
  import type { BlockVersion } from '../../model/BlockVersion';
2
- import type { Picture } from '../../model/Picture';
3
2
  import type { HeadlineCommonProps } from '../../model/HeadlineType';
4
- /**
5
- * @title Карточка галереи инвестиций
6
- */
3
+ import type { Picture } from '../../model/Picture';
7
4
  /**
8
5
  * @title Количество колонок
9
6
  * @enumNames [
@@ -18,6 +15,9 @@ export interface CardsListItem {
18
15
  /** @title Описание */
19
16
  parameterDescription?: string;
20
17
  }
18
+ /**
19
+ * @title Карточка галереи инвестиций
20
+ */
21
21
  export interface CarouselInvestmentCardContent extends HeadlineCommonProps {
22
22
  /** @title Доп. описание карточки */
23
23
  additionalDescription?: string;
@@ -0,0 +1,5 @@
1
+ import type { UniBlockProps } from '../../model/JSXBlock';
2
+ import type { CarouselProductCardContent } from './CarouselProductCardContent';
3
+ export interface CarouselProductCardProps extends CarouselProductCardContent, UniBlockProps {
4
+ }
5
+ export declare const CarouselProductCard: import("@redneckz/uni-jsx").UNIComponent<CarouselProductCardProps, any, any>;
@@ -0,0 +1,49 @@
1
+ import type { AlignType } from '../../model/AlignType';
2
+ import type { BlockVersion } from '../../model/BlockVersion';
3
+ import type { HeadlineSmallProps } from '../../model/HeadlineType';
4
+ import type { Picture } from '../../model/Picture';
5
+ import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
6
+ /**
7
+ * @title Элемент списка
8
+ */
9
+ export interface ListProps {
10
+ /** @title Текст */
11
+ text?: string;
12
+ }
13
+ /**
14
+ * @title Карточка продуктовой карусели
15
+ */
16
+ export declare type CarouselProductCardContent = HeadlineSmallProps & {
17
+ /** @title Дополнительное описание */
18
+ additionalDescription?: string;
19
+ /**
20
+ * @default {
21
+ * "format": "webp",
22
+ * "size": {
23
+ * "width": 140
24
+ * },
25
+ * "sources": [{
26
+ * "media": 1279,
27
+ * "width": 84,
28
+ * "format": "webp",
29
+ * "alignment": "center"
30
+ * }]
31
+ * }
32
+ */
33
+ icon?: Picture;
34
+ /** @title Кнопка */
35
+ button?: ButtonWithIconProps;
36
+ /**
37
+ * @title Буллиты
38
+ * @default true
39
+ */
40
+ isDotted?: boolean;
41
+ /** @title Список */
42
+ items?: ListProps[];
43
+ version?: BlockVersion;
44
+ /**
45
+ * @title Выравнивание
46
+ * @default center
47
+ */
48
+ align?: AlignType;
49
+ };
@@ -1,6 +1,6 @@
1
+ import type { BlockVersion } from '../../model/BlockVersion';
1
2
  import type { HeadlineCommonProps, TitleProps } from '../../model/HeadlineType';
2
3
  import type { Picture } from '../../model/Picture';
3
- import type { BlockVersion } from '../../model/BlockVersion';
4
4
  /**
5
5
  * @title Карточка программ карусели
6
6
  */
@@ -14,4 +14,8 @@ export interface VerticalLayoutContent {
14
14
  version?: BlockVersionWithTransparent;
15
15
  align?: AlignType;
16
16
  gap?: GapVersion;
17
+ /** @title Внутренний отступ компоновщика */
18
+ isPadding?: boolean;
19
+ /** @title Отступы вложенных компонентов */
20
+ isInnerPadding?: boolean;
17
21
  }
@@ -9,4 +9,5 @@ export declare type BlockVersion = 'primary' | 'secondary';
9
9
  */
10
10
  export declare type BlockVersionWithTransparent = 'transparent' | 'primary' | 'secondary';
11
11
  export declare const VersionStyleMap: Record<BlockVersion, string>;
12
+ export declare const VersionAdditionalStyleMap: Record<BlockVersion, string>;
12
13
  export declare const VersionWithTransparentStyleMap: Record<BlockVersionWithTransparent, string>;
@@ -9,5 +9,5 @@ interface RenderButtonProps {
9
9
  index?: number;
10
10
  }
11
11
  export declare const ButtonSection: import("@redneckz/uni-jsx").UNIComponent<ButtonSectionProps, any, any>;
12
- export declare function renderButton({ button, buttonClassName, index }: RenderButtonProps): JSX.Element;
12
+ export declare function renderButton({ button, buttonClassName, index }: RenderButtonProps): JSX.Element | null;
13
13
  export {};
@@ -10,7 +10,7 @@ interface SwipeListContainerProps extends SwipeContainerProps {
10
10
  current: HTMLDivElement | null;
11
11
  };
12
12
  activeIndex?: number;
13
- visibleItemCount?: SwipeListItemWidthAuto | 1 | 2 | 3;
13
+ visibleItemCount?: SwipeListItemWidthAuto | 1 | 2 | 3 | 4;
14
14
  snapAlign?: 'snap-start' | 'snap-center' | 'snap-end';
15
15
  onVisibleItemsChange?: (itemsVisibilityList: ItemsVisibilityList) => void;
16
16
  onVisibleIndicesChange?: (indices: number[]) => void;
@@ -8,4 +8,5 @@ export interface BlockRendererOptions {
8
8
  blocksRegistry?: BlocksRegistry;
9
9
  parent?: Slot;
10
10
  ancestors?: BlockAncestors;
11
+ className?: string;
11
12
  }
@@ -6,14 +6,14 @@ const defaultBlockDecorator_1 = require("./defaultBlockDecorator");
6
6
  const DEFAULT_ANCESTORS = [];
7
7
  const DEFAULT_STYLE = ['col-span-12'];
8
8
  function renderBlock(block, options) {
9
- const { key, blockDecorator = defaultBlockDecorator_1.defaultBlockDecorator, blocksRegistry = {}, ancestors = DEFAULT_ANCESTORS, } = options;
9
+ const { key, blockDecorator = defaultBlockDecorator_1.defaultBlockDecorator, blocksRegistry = {}, ancestors = DEFAULT_ANCESTORS, className = '', } = options;
10
10
  const { type } = block;
11
11
  if (!(type && type in blocksRegistry)) {
12
12
  console.warn(`No block with "${type}" is registered`);
13
13
  }
14
14
  const BlockComponent = type && blocksRegistry[type];
15
15
  return blockDecorator({
16
- blockClassName: `scroll-mt-12 ${(0, style2className_1.style2className)(block.style || DEFAULT_STYLE)}`,
16
+ blockClassName: `scroll-mt-12 ${className} ${(0, style2className_1.style2className)(block.style || DEFAULT_STYLE)}`,
17
17
  block,
18
18
  ancestors,
19
19
  // Adjusted by decorator block and blockClassName
@@ -1 +1 @@
1
- {"version":3,"file":"renderBlock.js","sourceRoot":"","sources":["../../src/BlockRenderer/renderBlock.tsx"],"names":[],"mappings":";;;AAEA,8DAA2D;AAE3D,mEAAgE;AAEhE,MAAM,iBAAiB,GAAmB,EAAE,CAAC;AAC7C,MAAM,aAAa,GAAG,CAAC,aAAa,CAAC,CAAC;AAEtC,SAAgB,WAAW,CAAC,KAAe,EAAE,OAA6B;IACxE,MAAM,EACJ,GAAG,EACH,cAAc,GAAG,6CAAqB,EACtC,cAAc,GAAG,EAAE,EACnB,SAAS,GAAG,iBAAiB,GAC9B,GAAG,OAAO,CAAC;IACZ,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;IAEvB,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,IAAI,cAAc,CAAC,EAAE;QACrC,OAAO,CAAC,IAAI,CAAC,kBAAkB,IAAI,iBAAiB,CAAC,CAAC;KACvD;IAED,MAAM,cAAc,GAAG,IAAI,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;IAEpD,OAAO,cAAc,CACnB;QACE,cAAc,EAAE,gBAAgB,IAAA,iCAAe,EAAC,KAAK,CAAC,KAAK,IAAI,aAAa,CAAC,EAAE;QAC/E,KAAK;QACL,SAAS;QACT,iDAAiD;QACjD,MA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EAAE,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,sBAAsB,EAAE,EAAE,EAAE;YAC3E,MAAM,EAAE,OAAO,EAAE,GAAG,aAAa,CAAC;YAElC,OAAO,cAAc,CAAC,CAAC,CAAC,CACtB,uBAAC,cAAc,IAEb,SAAS,EAAE,sBAAsB,EACjC,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,KACZ,OAAO,IAJN,GAAG,CAKR,CACH,CAAC,CAAC,CAAC,IAAI,CAAC;QACX,CAAC;KACF,EACD,GAAG,CACJ,CAAC;AACJ,CAAC;AAtCD,kCAsCC"}
@@ -10,7 +10,10 @@ const Calculator_1 = require("./Calculator/Calculator");
10
10
  const CardTransfer_1 = require("./CardTransfer/CardTransfer");
11
11
  const Carousel_1 = require("./Carousel/Carousel");
12
12
  const CarouselCard_1 = require("./CarouselCard/CarouselCard");
13
+ const CarouselCatalogCard_1 = require("./CarouselCatalogCard/CarouselCatalogCard");
14
+ const CarouselInvestmentCard_1 = require("./CarouselInvestmentCard/CarouselInvestmentCard");
13
15
  const CarouselLinks_1 = require("./CarouselLinks/CarouselLinks");
16
+ const CarouselProductCard_1 = require("./CarouselProductCard/CarouselProductCard");
14
17
  const CarouselProgramsCard_1 = require("./CarouselProgramsCard/CarouselProgramsCard");
15
18
  const CarouselTariffsCard_1 = require("./CarouselTariffsCard/CarouselTariffsCard");
16
19
  const Catalog_1 = require("./Catalog/Catalog");
@@ -50,7 +53,6 @@ const TextBlock_1 = require("./TextBlock/TextBlock");
50
53
  const Tile_1 = require("./Tile/Tile");
51
54
  const VerticalLayout_1 = require("./VerticalLayout/VerticalLayout");
52
55
  const Video_1 = require("./Video/Video");
53
- const CarouselInvestmentCard_1 = require("./CarouselInvestmentCard/CarouselInvestmentCard");
54
56
  exports.Blocks = {
55
57
  Accordion: Accordion_1.Accordion,
56
58
  AccordionItem: AccordionItem_1.AccordionItem,
@@ -62,7 +64,10 @@ exports.Blocks = {
62
64
  Calculator: Calculator_1.Calculator,
63
65
  Carousel: Carousel_1.Carousel,
64
66
  CarouselCard: CarouselCard_1.CarouselCard,
67
+ CarouselCatalogCard: CarouselCatalogCard_1.CarouselCatalogCard,
68
+ CarouselInvestmentCard: CarouselInvestmentCard_1.CarouselInvestmentCard,
65
69
  CarouselLinks: CarouselLinks_1.CarouselLinks,
70
+ CarouselProductCard: CarouselProductCard_1.CarouselProductCard,
66
71
  CarouselProgramsCard: CarouselProgramsCard_1.CarouselProgramsCard,
67
72
  CarouselTariffsCard: CarouselTariffsCard_1.CarouselTariffsCard,
68
73
  Catalog: Catalog_1.Catalog,
@@ -102,6 +107,5 @@ exports.Blocks = {
102
107
  Tile: Tile_1.Tile,
103
108
  VerticalLayout: VerticalLayout_1.VerticalLayout,
104
109
  Video: Video_1.Video,
105
- CarouselInvestmentCard: CarouselInvestmentCard_1.CarouselInvestmentCard,
106
110
  };
107
111
  //# sourceMappingURL=Blocks.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Blocks.js","sourceRoot":"","sources":["../../src/components/Blocks.ts"],"names":[],"mappings":";;AACA,qDAAkD;AAClD,iEAA8D;AAC9D,iEAA8D;AAC9D,yCAAsC;AACtC,gFAA6E;AAC7E,iEAA8D;AAC9D,wDAAqD;AACrD,8DAA2D;AAC3D,kDAA+C;AAC/C,8DAA2D;AAC3D,iEAA8D;AAC9D,sFAAmF;AACnF,mFAAgF;AAChF,+CAA4C;AAC5C,uEAAoE;AACpE,iEAA8D;AAC9D,wDAAqD;AACrD,0EAAuE;AACvE,4CAAyC;AACzC,+CAA4C;AAC5C,2DAAwD;AACxD,4CAAyC;AACzC,kDAA+C;AAC/C,kDAA+C;AAC/C,sFAAmF;AACnF,oEAAiE;AACjE,kDAA+C;AAC/C,2DAAwD;AACxD,iEAA8D;AAC9D,qDAAkD;AAClD,mFAAgF;AAChF,iEAA8D;AAC9D,6EAA0E;AAC1E,oEAAiE;AACjE,2DAAwD;AACxD,2DAAwD;AACxD,8DAA2D;AAC3D,oEAAi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BAAS;IACT,IAAI,EAAJ,WAAI;IACJ,cAAc,EAAd,+BAAc;IACd,KAAK,EAAL,aAAK;CACN,CAAC"}
@@ -17,12 +17,13 @@ exports.Carousel = (0, uni_jsx_1.JSX)(({ className = '', itemCount, visibleItemC
17
17
  itemCount: count,
18
18
  isCyclic,
19
19
  });
20
- return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: `relative font-sans ${className}`, ...rest, children: [(0, jsx_runtime_1.jsx)(SwipeListContainer_1.SwipeListContainer, { containerRef: containerRef, visibleItemCount: visibleItemCount, snapAlign: "snap-start", gap: ITEMS_GAP, onVisibleIndicesChange: scroll.handleVisibleIndicesChange, children: (0, renderChildren_1.renderChildren)(rest) }), (scroll.canScrollLeft || scroll.canScrollRight) && isBlur ? ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { className: `${blurBaseStyle} left-0 bg-opacity-from-white` }), (0, jsx_runtime_1.jsx)("div", { className: `${blurBaseStyle} right-0 bg-opacity-to-white` })] })) : null, renderScrollButtons(scroll)] }));
20
+ return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: `font-sans p-12 ${className}`, ...rest, children: (0, jsx_runtime_1.jsxs)("div", { className: "relative max-w-full", children: [(0, jsx_runtime_1.jsx)(SwipeListContainer_1.SwipeListContainer, { containerRef: containerRef, visibleItemCount: visibleItemCount, snapAlign: "snap-start", gap: ITEMS_GAP, onVisibleIndicesChange: scroll.handleVisibleIndicesChange, children: (0, renderChildren_1.renderChildren)(rest) }), (scroll.canScrollLeft || scroll.canScrollRight) && isBlur ? ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { className: `${blurBaseStyle} left-0 bg-opacity-from-white` }), (0, jsx_runtime_1.jsx)("div", { className: `${blurBaseStyle} right-0 bg-opacity-to-white` })] })) : null, renderScrollButtons(scroll)] }) }));
21
21
  });
22
22
  exports.Carousel.childrenTypes = [
23
23
  'CarouselCard',
24
+ 'CarouselCatalogCard',
24
25
  'CarouselTariffsCard',
25
- 'CarouselLinks',
26
+ 'CarouselProductCard',
26
27
  'CarouselProgramsCard',
27
28
  'CarouselInvestmentCard',
28
29
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"Carousel.js","sourceRoot":"","sources":["../../../src/components/Carousel/Carousel.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uEAAoE;AAEpE,4DAAyD;AACzD,iEAAsF;AACtF,yFAAsF;AACtF,yFAG0D;AAO1D,MAAM,SAAS,GAAG,CAAC,CAAC;AAEpB,MAAM,aAAa,GAAG,uCAAuC,CAAC;AAC9D,MAAM,iBAAiB,GAAG,oCAAoC,CAAC;AAElD,QAAA,QAAQ,GAA4B,IAAA,aAAG,EAClD,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,GAAG,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC5F,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;IACjD,MAAM,KAAK,GAAG,SAAS,IAAI,WAAW,EAAE,MAAM,IAAI,CAAC,CAAC;IAEpD,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,GAAG,IAAA,uCAAkB,EAAiB;QAChE,SAAS,EAAE,KAAK;QAChB,QAAQ;KACT,CAAC,CAAC;IAEH,OAAO,CACL,wBAAC,2BAAY,IAAC,SAAS,EAAE,sBAAsB,SAAS,EAAE,KAAM,IAAI,aAClE,uBAAC,uCAAkB,IACjB,YAAY,EAAE,YAAY,EAC1B,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,EAAC,YAAY,EACtB,GAAG,EAAE,SAAS,EACd,sBAAsB,EAAE,MAAM,CAAC,0BAA0B,YAExD,IAAA,+BAAc,EAAC,IAAI,CAAC,GACF,EACpB,CAAC,MAAM,CAAC,aAAa,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C,CAAC,CACf,uBAAC,8BAAgB,IAAC,SAAS,EAAE,GAAG,iBAAiB,SAAS,EAAE,OAAO,EAAE,UAAU,GAAI,CACpF,CAAC,CAAC,CAAC,IAAI,EACP,cAAc,CAAC,CAAC,CAAC,CAChB,uBAAC,+BAAiB,IAAC,SAAS,EAAE,GAAG,iBAAiB,UAAU,EAAE,OAAO,EAAE,WAAW,GAAI,CACvF,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC"}
@@ -6,7 +6,7 @@ export interface CarouselContent {
6
6
  * @title Количество видимых карточек
7
7
  * @enumNames ["auto", "1", "2", "3"]
8
8
  */
9
- visibleItemCount?: 0 | 1 | 2 | 3;
9
+ visibleItemCount?: 0 | 1 | 2 | 3 | 4;
10
10
  /** @title Добавление блюра */
11
11
  isBlur?: boolean;
12
12
  /** @title Цикличность */
@@ -0,0 +1,7 @@
1
+ import type { BlockVersion } from '../../model/BlockVersion';
2
+ import type { CarouselCatalogCardContent } from './CarouselCatalogCardContent';
3
+ export interface CarouselCatalogCardProps extends CarouselCatalogCardContent {
4
+ className?: string;
5
+ version?: BlockVersion;
6
+ }
7
+ export declare const CarouselCatalogCard: import("@redneckz/uni-jsx").UNIComponent<CarouselCatalogCardProps, any, any>;
@@ -0,0 +1,17 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.CarouselCatalogCard = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
+ const BlockVersion_1 = require("../../model/BlockVersion");
6
+ const ButtonSection_1 = require("../../ui-kit/Button/ButtonSection");
7
+ const Heading_1 = require("../../ui-kit/Heading/Heading");
8
+ const Img_1 = require("../../ui-kit/Img/Img");
9
+ const Paragraph_1 = require("../../ui-kit/Paragraph/Paragraph");
10
+ const Text_1 = require("../../ui-kit/Text/Text");
11
+ const cardStyleMap = {
12
+ black: 'bg-black',
13
+ white: 'bg-white',
14
+ };
15
+ exports.CarouselCatalogCard = (0, uni_jsx_1.JSX)(({ className = '', title, description, image, price, button, colors, version = 'primary' }) => ((0, jsx_runtime_1.jsxs)("section", { className: `border box-border border-main-stroke p-7 min-w-[392px] flex flex-col justify-left ${BlockVersion_1.VersionStyleMap[version]} ${className}`, role: "listitem", children: [image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mb-5 flex justify-center", image: image }) : null, title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h6", as: "h4", className: "text-left mb-1.5", title: title })) : null, description ? ((0, jsx_runtime_1.jsx)("div", { className: "mb-4", children: (0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { size: "text-m", align: "text-left", font: "font-light", children: description }) })) : null, colors?.length ? ((0, jsx_runtime_1.jsxs)("div", { className: "flex mb-4 text-s-light text-secondary-text", children: [(0, jsx_runtime_1.jsx)("div", { className: "mr-1.5", children: (0, jsx_runtime_1.jsx)(Text_1.Text, { children: "\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0446\u0432\u0435\u0442\u0430: " }) }), colors.map(renderColorOption)] })) : null, price ? ((0, jsx_runtime_1.jsxs)(Text_1.Text, { size: "text-h3", align: "text-left", children: [price, "\u00A0\u20BD"] })) : null, button ? (0, ButtonSection_1.renderButton)({ button, buttonClassName: 'mt-5 w-full' }) : null] })));
16
+ const renderColorOption = (color, i) => ((0, jsx_runtime_1.jsx)("span", { className: `w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${cardStyleMap[color]}` }, String(i)));
17
+ //# sourceMappingURL=CarouselCatalogCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CarouselCatalogCard.js","sourceRoot":"","sources":["../../../src/components/CarouselCatalogCard/CarouselCatalogCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,2DAA2D;AAE3D,qEAAiE;AACjE,0DAAuD;AACvD,8CAA2C;AAC3C,gEAA6D;AAC7D,iDAA8C;AAQ9C,MAAM,Y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CAAC,CAAC,CAAC,IAAI,EACP,MAAM,CAAC,CAAC,CAAC,IAAA,4BAAY,EAAC,EAAE,MAAM,EAAE,eAAe,EAAE,aAAa,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,IACjE,CACX,CACF,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,KAA0B,EAAE,CAAS,EAAE,EAAE,CAAC,CACnE,iCAEE,SAAS,EAAE,qEAAqE,YAAY,CAAC,KAAK,CAAC,EAAE,IADhG,MAAM,CAAC,CAAC,CAAC,CAEd,CACH,CAAC"}
@@ -0,0 +1,23 @@
1
+ import type { BlockVersion } from '../../model/BlockVersion';
2
+ import type { HeadlineCommonProps } from '../../model/HeadlineType';
3
+ import type { ProductColorVersion } from '../../model/ProductColorVersion';
4
+ import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
5
+ import type { ImageContent } from '../../ui-kit/Img/ImgProps';
6
+ /**
7
+ * @title Карточка каталога
8
+ */
9
+ export declare type CarouselCatalogCardContent = HeadlineCommonProps & ImageContent & {
10
+ /** @title Цена в рублях */
11
+ price?: number;
12
+ /** @title Доступные цвета */
13
+ colors?: ProductColorVersion[];
14
+ /**
15
+ * @title Кнопка
16
+ * @default {
17
+ * "icon": { "format": "webp", "size": { "width": 24, "height": 24 } },
18
+ * "iconRight" : { "format": "webp", "size": { "width": 24, "height": 24 } }
19
+ * }
20
+ */
21
+ button?: ButtonWithIconProps;
22
+ version?: BlockVersion;
23
+ };
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ //# sourceMappingURL=CarouselCatalogCardContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CarouselCatalogCardContent.js","sourceRoot":"","sources":["../../../src/components/CarouselCatalogCard/CarouselCatalogCardContent.ts"],"names":[],"mappings":""}
@@ -1,5 +1,5 @@
1
- import type { CarouselInvestmentCardContent } from './CarouselInvestmentCardContent';
2
1
  import type { UniBlockProps } from '../../model/JSXBlock';
2
+ import type { CarouselInvestmentCardContent } from './CarouselInvestmentCardContent';
3
3
  export interface CarouselInvestmentCardProps extends CarouselInvestmentCardContent, UniBlockProps {
4
4
  }
5
5
  export declare const CarouselInvestmentCard: import("@redneckz/uni-jsx").UNIComponent<CarouselInvestmentCardProps, any, any>;
@@ -1,12 +1,14 @@
1
1
  Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.CarouselInvestmentCard = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const BaseTile_1 = require("../BaseTile/BaseTile");
5
- const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
6
- const BorderVersion_1 = require("../../model/BorderVersion");
7
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
+ const BlockVersion_1 = require("../../model/BlockVersion");
6
+ const BorderVersion_1 = require("../../model/BorderVersion");
7
+ const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
8
8
  const Heading_1 = require("../../ui-kit/Heading/Heading");
9
9
  const Img_1 = require("../../ui-kit/Img/Img");
10
+ const Text_1 = require("../../ui-kit/Text/Text");
11
+ const BaseTile_1 = require("../BaseTile/BaseTile");
10
12
  const getItemListFontSize = (colValue) => (colValue === 1 ? 'text-h6' : 'text-l');
11
13
  const cardColumnsModeStyleMap = {
12
14
  1: 'flex gap-y-2 flex-col',
@@ -15,14 +17,16 @@ const cardColumnsModeStyleMap = {
15
17
  exports.CarouselInvestmentCard = (0, uni_jsx_1.JSX)(({ additionalDescription, cardsList = [], className = '', columnsMode = 1, description, image, title, version = 'primary', ...rest }) => {
16
18
  const tileTitle = title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h4", as: "h3", className: "mb-3.5 z-10", title: title })) : null;
17
19
  const tileImage = image?.src ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: "absolute bottom-0 right-0 m-0", image: image })) : null;
18
- return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: `relative text-left border border-solid box-border
19
- p-9 w-[697px]
20
- ${BorderVersion_1.BorderVersionStyleMap[version]}
21
- ${className}`, ...rest, children: (0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { title: tileTitle, image: tileImage, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex justify-between mb-4", children: [description ? (0, jsx_runtime_1.jsx)("span", { className: "text-h6 w-1/3", children: description }) : null, additionalDescription ? ((0, jsx_runtime_1.jsx)("span", { className: "text-m-light text-secondary-text", children: additionalDescription })) : null] }), cardsList.length ? ((0, jsx_runtime_1.jsx)("ul", { className: `list-none m-0 p-0 ${cardColumnsModeStyleMap[columnsMode]}`, children: renderCardList(cardsList, columnsMode) })) : null] }) }));
20
+ return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: [
21
+ 'relative text-left border border-solid box-border p-9 w-[697px]',
22
+ BlockVersion_1.VersionStyleMap[version],
23
+ BorderVersion_1.BorderVersionStyleMap[version],
24
+ className,
25
+ ].join(' '), ...rest, children: (0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { title: tileTitle, image: tileImage, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex justify-between mb-4", children: [description ? ((0, jsx_runtime_1.jsx)("div", { className: "w-1/3", children: (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-h6", children: description }) })) : null, additionalDescription ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", font: "font-light", color: BlockVersion_1.VersionAdditionalStyleMap[version], children: additionalDescription })) : null] }), cardsList.length ? ((0, jsx_runtime_1.jsx)("ul", { className: `list-none m-0 p-0 ${cardColumnsModeStyleMap[columnsMode]}`, children: renderCardList(cardsList, columnsMode) })) : null] }) }));
22
26
  });
23
27
  const renderCardList = (cardsList, columnsMode) => {
24
28
  const CARDS_COUNT_MAP = [4, 9];
25
29
  const visibleCardsList = cardsList.slice(0, CARDS_COUNT_MAP[columnsMode - 1]);
26
- return visibleCardsList.map((item, i) => ((0, jsx_runtime_1.jsxs)("li", { className: columnsMode === 2 ? 'basis-[calc(50%-20px)]' : '', children: [item?.parameter ? ((0, jsx_runtime_1.jsx)("span", { className: `pr-2.5 ${getItemListFontSize(columnsMode)}`, children: item.parameter })) : null, item?.parameterDescription ? ((0, jsx_runtime_1.jsx)("span", { className: "text-m-light text-secondary-text", children: item.parameterDescription })) : null] }, String(i))));
30
+ return visibleCardsList.map((item, i) => ((0, jsx_runtime_1.jsxs)("li", { className: columnsMode === 2 ? 'basis-[calc(50%-20px)]' : '', children: [item?.parameter ? ((0, jsx_runtime_1.jsx)("div", { className: "pr-2.5", children: (0, jsx_runtime_1.jsx)(Text_1.Text, { size: getItemListFontSize(columnsMode), children: item.parameter }) })) : null, item?.parameterDescription ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", font: "font-light", color: "text-secondary-text", children: item.parameterDescription })) : null] }, String(i))));
27
31
  };
28
32
  //# sourceMappingURL=CarouselInvestmentCard.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CarouselInvestmentCard.js","sourceRoot":"","sources":["../../../src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx"],"names":[],"mappings":";;;AAAA,mDAAgD;AAChD,4DAAyD;AACzD,6DAAkE;AAMlE,+CAAwC;AACxC,0DAAuD;AACvD,8CAA2C;AAK3C,MAAM,mBAAmB,GAAG,CAAC,QAAiB,EAAE,EAAE,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;AAE3F,MAAM,uBAAuB,GAAoC;IAC/D,CAAC,EAAE,uBAAuB;IAC1B,CAAC,EAAE,iCAAiC;CACrC,CAAC;AAEW,QAAA,sBAAsB,GAAG,IAAA,aAAG,EACvC,CAAC,EACC,qBAAqB,EACrB,SAAS,GAAG,EAAE,EACd,SAAS,GAAG,EAAE,EACd,WAAW,GAAG,CAAC,EACf,WAAW,EACX,KAAK,EACL,KAAK,EACL,OAAO,GAAG,SAAS,EAC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CAAC,KAAK,CAAC,CAAC,EAAE,eAAe,CAAC,WAAW,GAAG,CAAC,CAAC,CAAC,CAAC;IAE9E,OAAO,gBAAgB,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACvC,gCAAoB,SAAS,EAAE,WAAW,KAAK,CAAC,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,aAC7E,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,CACjB,iCAAM,SAAS,EAAE,UAAU,mBAAmB,CAAC,WAAW,CAAC,EAAE,YAAG,IAAI,CAAC,SAAS,GAAQ,CACvF,CAAC,CAAC,CAAC,IAAI,EACP,IAAI,EAAE,oBAAoB,CAAC,CAAC,CAAC,CAC5B,iCAAM,SAAS,EAAC,kCAAkC,YAAE,IAAI,CAAC,oBAAoB,GAAQ,CACtF,CAAC,CAAC,CAAC,IAAI,KAND,MAAM,CAAC,CAAC,CAAC,CAOb,CACN,CAAC,CAAC;AACL,CAAC,CAAC"}
1
+ {"version":3,"file":"CarouselInvestmentCard.js","sourceRoot":"","sources":["../../../src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,2DAAsF;AACtF,6DAAkE;AAElE,4DAAyD;AACzD,0DAAuD;AACvD,8CAA2C;AAC3C,iDAA8C;AAE9C,mDAAgD;AAShD,MAAM,mBAAmB,GAAG,CAAC,QAAiB,EAAE,EAAE,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;AAE3F,MAAM,uBAAuB,GAAoC;IAC/D,CAAC,EAAE,uBAAuB;IAC1B,CAAC,EAAE,iCAAiC;CACrC,CAAC;AAEW,QAAA,sBAAsB,GAAG,IAAA,aAAG,EACvC,CAAC,EACC,qBAAqB,EACrB,SAAS,GAAG,EAAE,EACd,SAAS,GAAG,EAAE,EACd,WAAW,GAAG,C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c,CAAC,SAAS,EAAE,WAAW,CAAC,GACpC,CACN,CAAC,CAAC,CAAC,IAAI,IACC,GACE,CAChB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,SAA0B,EAAE,WAAmB,EAAE,EAAE;IACzE,MAAM,eAAe,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC/B,MAAM,gBAAgB,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE,eAAe,CAAC,WAAW,GAAG,CAAC,CAAC,CAAC,CAAC;IAE9E,OAAO,gBAAgB,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACvC,gCAAoB,SAAS,EAAE,WAAW,KAAK,CAAC,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,aAC7E,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,CACjB,gCAAK,SAAS,EAAC,QAAQ,YACrB,uBAAC,WAAI,IAAC,IAAI,EAAE,mBAAmB,CAAC,WAAW,CAAC,YAAG,IAAI,CAAC,SAAS,GAAQ,GACjE,CACP,CAAC,CAAC,CAAC,IAAI,EACP,IAAI,EAAE,oBAAoB,CAAC,CAAC,CAAC,CAC5B,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,EAAC,KAAK,EAAC,qBAAqB,YAC9D,IAAI,CAAC,oBAAoB,GACrB,CACR,CAAC,CAAC,CAAC,IAAI,KAVD,MAAM,CAAC,CAAC,CAAC,CAWb,CACN,CAAC,CAAC;AACL,CAAC,CAAC"}
@@ -1,9 +1,6 @@
1
1
  import type { BlockVersion } from '../../model/BlockVersion';
2
- import type { Picture } from '../../model/Picture';
3
2
  import type { HeadlineCommonProps } from '../../model/HeadlineType';
4
- /**
5
- * @title Карточка галереи инвестиций
6
- */
3
+ import type { Picture } from '../../model/Picture';
7
4
  /**
8
5
  * @title Количество колонок
9
6
  * @enumNames [
@@ -18,6 +15,9 @@ export interface CardsListItem {
18
15
  /** @title Описание */
19
16
  parameterDescription?: string;
20
17
  }
18
+ /**
19
+ * @title Карточка галереи инвестиций
20
+ */
21
21
  export interface CarouselInvestmentCardContent extends HeadlineCommonProps {
22
22
  /** @title Доп. описание карточки */
23
23
  additionalDescription?: string;
@@ -0,0 +1,5 @@
1
+ import type { UniBlockProps } from '../../model/JSXBlock';
2
+ import type { CarouselProductCardContent } from './CarouselProductCardContent';
3
+ export interface CarouselProductCardProps extends CarouselProductCardContent, UniBlockProps {
4
+ }
5
+ export declare const CarouselProductCard: import("@redneckz/uni-jsx").UNIComponent<CarouselProductCardProps, any, any>;
@@ -0,0 +1,32 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.CarouselProductCard = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
+ const AlignText_1 = require("../../model/AlignText");
6
+ const BlockVersion_1 = require("../../model/BlockVersion");
7
+ const ButtonSection_1 = require("../../ui-kit/Button/ButtonSection");
8
+ const Img_1 = require("../../ui-kit/Img/Img");
9
+ const List_1 = require("../../ui-kit/List/List");
10
+ const Paragraph_1 = require("../../ui-kit/Paragraph/Paragraph");
11
+ const Text_1 = require("../../ui-kit/Text/Text");
12
+ const getIconWithVersion_1 = require("../../utils/getIconWithVersion");
13
+ const constants_1 = require("../Headline/constants");
14
+ const descriptionStyleMap = {
15
+ primary: 'text-secondary-text',
16
+ secondary: 'text-white/80',
17
+ };
18
+ const BORDER_STYLE = 'box-border border-solid border border-main-stroke ';
19
+ exports.CarouselProductCard = (0, uni_jsx_1.JSX)(({ title, headlineSmallVersion = 'H6', description, additionalDescription, icon, items = [], button = {}, version = 'primary', isDotted = true, align = 'center', }) => {
20
+ return ((0, jsx_runtime_1.jsxs)("section", { className: [
21
+ 'flex flex-col justify-between items-stretch min-w-[260px] h-full w-full p-6',
22
+ BORDER_STYLE,
23
+ AlignText_1.AlignText[align],
24
+ BlockVersion_1.VersionStyleMap[version],
25
+ ].join(' '), role: "listitem", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col h-full", children: [renderImage(icon, version), renderCardTitle(headlineSmallVersion, title), renderDescription(description, title), renderItems(items, isDotted, version), renderAdditionalDescription(additionalDescription, version)] }), (0, ButtonSection_1.renderButton)({ button, buttonClassName: 'mt-6' })] }));
26
+ });
27
+ const renderImage = (image, version) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex justify-center", children: [image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mb-5", image: image }) : null, image?.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: `w-[32px] h-[32px] min-w-[32px] mb-5 rounded-full`, image: (0, getIconWithVersion_1.getIconWithVersion)(image, version), asSVG: true })) : null] }));
28
+ const renderCardTitle = (headlineSmallVersion, title) => title ? (0, jsx_runtime_1.jsx)(Text_1.Text, { size: constants_1.HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title }) : null;
29
+ const renderDescription = (description, title) => description ? ((0, jsx_runtime_1.jsx)("div", { className: title ? 'mt-2' : '', children: (0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { size: "text-l", children: description }) })) : null;
30
+ const renderAdditionalDescription = (additionalDescription, version = 'primary') => additionalDescription ? ((0, jsx_runtime_1.jsx)("div", { className: "mt-auto", children: (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", font: "font-light", color: descriptionStyleMap[version], children: additionalDescription }) })) : null;
31
+ const renderItems = (items, isDotted, version = 'primary') => items?.length ? ((0, jsx_runtime_1.jsx)(List_1.List, { className: `max-w-[308px] mt-2 text-s ${version === 'primary' ? '!text-secondary-text' : ''}`, itemClassName: "text-left", items: items.filter((item) => item?.text).map((item) => item.text), isDotted: isDotted, version: version })) : null;
32
+ //# sourceMappingURL=CarouselProductCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CarouselProductCard.js","sourceRoot":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,QAAiB,EAAE,UAAwB,SAAS,EAAE,EAAE,CAC/F,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACd,uBAAC,WAAI,IACH,SAAS,EAAE,6BAA6B,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,EAAE,EAAE,EAC7F,aAAa,EAAC,WAAW,EACzB,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAc,CAAC,EAC5E,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,GAChB,CACH,CAAC,CAAC,CAAC,IAAI,CAAC"}
@@ -0,0 +1,49 @@
1
+ import type { AlignType } from '../../model/AlignType';
2
+ import type { BlockVersion } from '../../model/BlockVersion';
3
+ import type { HeadlineSmallProps } from '../../model/HeadlineType';
4
+ import type { Picture } from '../../model/Picture';
5
+ import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
6
+ /**
7
+ * @title Элемент списка
8
+ */
9
+ export interface ListProps {
10
+ /** @title Текст */
11
+ text?: string;
12
+ }
13
+ /**
14
+ * @title Карточка продуктовой карусели
15
+ */
16
+ export declare type CarouselProductCardContent = HeadlineSmallProps & {
17
+ /** @title Дополнительное описание */
18
+ additionalDescription?: string;
19
+ /**
20
+ * @default {
21
+ * "format": "webp",
22
+ * "size": {
23
+ * "width": 140
24
+ * },
25
+ * "sources": [{
26
+ * "media": 1279,
27
+ * "width": 84,
28
+ * "format": "webp",
29
+ * "alignment": "center"
30
+ * }]
31
+ * }
32
+ */
33
+ icon?: Picture;
34
+ /** @title Кнопка */
35
+ button?: ButtonWithIconProps;
36
+ /**
37
+ * @title Буллиты
38
+ * @default true
39
+ */
40
+ isDotted?: boolean;
41
+ /** @title Список */
42
+ items?: ListProps[];
43
+ version?: BlockVersion;
44
+ /**
45
+ * @title Выравнивание
46
+ * @default center
47
+ */
48
+ align?: AlignType;
49
+ };
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ //# sourceMappingURL=CarouselProductCardContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CarouselProductCardContent.js","sourceRoot":"","sources":["../../../src/components/CarouselProductCard/CarouselProductCardContent.ts"],"names":[],"mappings":""}
@@ -1,6 +1,6 @@
1
+ import type { BlockVersion } from '../../model/BlockVersion';
1
2
  import type { HeadlineCommonProps, TitleProps } from '../../model/HeadlineType';
2
3
  import type { Picture } from '../../model/Picture';
3
- import type { BlockVersion } from '../../model/BlockVersion';
4
4
  /**
5
5
  * @title Карточка программ карусели
6
6
  */
@@ -3,12 +3,13 @@ exports.GalleryCardInner = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const AlignText_1 = require("../../model/AlignText");
6
+ const BlockVersion_1 = require("../../model/BlockVersion");
6
7
  const ButtonSection_1 = require("../../ui-kit/Button/ButtonSection");
7
8
  const Img_1 = require("../../ui-kit/Img/Img");
8
9
  const List_1 = require("../../ui-kit/List/List");
9
10
  const getIconWithVersion_1 = require("../../utils/getIconWithVersion");
10
11
  const constants_1 = require("../Headline/constants");
11
- exports.GalleryCardInner = (0, uni_jsx_1.JSX)(({ title, headlineSmallVersion = 'H6', description, additionalDescription, icon, items, button, version, isFullWidth = true, isDotted = true, align = 'center', }) => ((0, jsx_runtime_1.jsxs)("div", { className: `h-full flex flex-col justify-between ${AlignText_1.AlignText[align]}`, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col h-full", children: [renderImage(icon, version), renderCardTitle(headlineSmallVersion, title), renderDescription(description, title), items?.length ? renderItems(items, isDotted, version) : null, renderAdditionalDescription(additionalDescription)] }), button?.text
12
+ exports.GalleryCardInner = (0, uni_jsx_1.JSX)(({ title, headlineSmallVersion = 'H6', description, additionalDescription, icon, items, button, version, isFullWidth = true, isDotted = true, align = 'center', }) => ((0, jsx_runtime_1.jsxs)("div", { className: `h-full flex flex-col justify-between ${AlignText_1.AlignText[align]}`, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col h-full", children: [renderImage(icon, version), renderCardTitle(headlineSmallVersion, title), renderDescription(description, title), items?.length ? renderItems(items, isDotted, version) : null, renderAdditionalDescription(additionalDescription, version)] }), button?.text
12
13
  ? (0, ButtonSection_1.renderButton)({
13
14
  button,
14
15
  buttonClassName: `mt-6 ${isFullWidth ? '' : 'self-center'}`,
@@ -17,6 +18,6 @@ exports.GalleryCardInner = (0, uni_jsx_1.JSX)(({ title, headlineSmallVersion = '
17
18
  const renderImage = (image, version) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex justify-center", children: [image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mb-5", image: image }) : null, image?.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: `w-8 h-8 min-w-8 mb-5 rounded-full`, image: (0, getIconWithVersion_1.getIconWithVersion)(image, version), asSVG: true })) : null] }));
18
19
  const renderCardTitle = (headlineSmallVersion, title) => title ? (0, jsx_runtime_1.jsx)("div", { className: constants_1.HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title }) : null;
19
20
  const renderDescription = (description, title) => description ? (0, jsx_runtime_1.jsx)("div", { className: `text-l ${title ? 'mt-2' : ''}`, children: description }) : null;
20
- const renderAdditionalDescription = (additionalDescription) => additionalDescription ? ((0, jsx_runtime_1.jsx)("div", { className: "text-m-light text-secondary-text mt-auto", children: additionalDescription })) : null;
21
+ const renderAdditionalDescription = (additionalDescription, version) => additionalDescription ? ((0, jsx_runtime_1.jsx)("div", { className: `text-m-light mt-auto ${BlockVersion_1.VersionAdditionalStyleMap[version ?? 'primary']}`, children: additionalDescription })) : null;
21
22
  const renderItems = (items, isDotted, version = 'primary') => ((0, jsx_runtime_1.jsx)(List_1.List, { className: `max-w-[308px] mt-2 text-s ${version === 'primary' ? '!text-secondary-text' : ''}`, itemClassName: "text-left", items: items.filter((item) => item?.text).map((item) => item.text), isDotted: isDotted, version: version }));
22
23
  //# sourceMappingURL=GalleryCardInner.js.map