@redneckz/wildless-cms-uni-blocks 0.3.2 → 0.3.5

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/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +9 -9
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/cosmos-static/icons/ActualBalanceIcon.svg +1 -0
  5. package/cosmos-static/icons/AppleIcon.svg +1 -0
  6. package/cosmos-static/icons/AtmIcon.svg +1 -0
  7. package/cosmos-static/icons/BankIcon.svg +1 -0
  8. package/cosmos-static/icons/BurgerIcon.svg +1 -0
  9. package/cosmos-static/icons/BurgerIconWhite.svg +1 -0
  10. package/cosmos-static/icons/Calendar2Icon.svg +1 -0
  11. package/cosmos-static/icons/CalendarCircleIcon.svg +1 -0
  12. package/cosmos-static/icons/CalendarIcon.svg +1 -0
  13. package/cosmos-static/icons/CalendarTickIcon.svg +1 -0
  14. package/cosmos-static/icons/CalendarWhiteIcon.svg +1 -0
  15. package/cosmos-static/icons/CardIcon.svg +1 -0
  16. package/cosmos-static/icons/CardPosIcon.svg +1 -0
  17. package/cosmos-static/icons/CardTickIcon.svg +1 -0
  18. package/cosmos-static/icons/CardWithGemIcon.svg +1 -0
  19. package/cosmos-static/icons/ChartSquareIcon.svg +1 -0
  20. package/cosmos-static/icons/ClockIcon.svg +1 -0
  21. package/cosmos-static/icons/CloseIcon.svg +1 -0
  22. package/cosmos-static/icons/ComfortableCompIcon.svg +1 -0
  23. package/cosmos-static/icons/CreditCardsIcon.svg +1 -0
  24. package/cosmos-static/icons/DiscountShapeIcon.svg +1 -0
  25. package/cosmos-static/icons/DocIcon.svg +1 -0
  26. package/cosmos-static/icons/DocIconMonoColor.svg +1 -0
  27. package/cosmos-static/icons/DocumentTextIcon.svg +1 -0
  28. package/cosmos-static/icons/DollarIcon.svg +1 -0
  29. package/cosmos-static/icons/EarthIcon.svg +1 -0
  30. package/cosmos-static/icons/EmptyWalletChangeIcon.svg +1 -0
  31. package/cosmos-static/icons/EmptyWalletIcon.svg +1 -0
  32. package/cosmos-static/icons/EmptyWalletWhiteIcon.svg +1 -0
  33. package/cosmos-static/icons/EuroIcon.svg +1 -0
  34. package/cosmos-static/icons/GeolocationIcon.svg +1 -0
  35. package/cosmos-static/icons/GlassIcon.svg +1 -0
  36. package/cosmos-static/icons/GlobalIcon.svg +1 -0
  37. package/cosmos-static/icons/GridIcon.svg +1 -0
  38. package/cosmos-static/icons/GridIconWhite.svg +1 -0
  39. package/cosmos-static/icons/InterestGrowthIcon.svg +1 -0
  40. package/cosmos-static/icons/InterestIcon.svg +1 -0
  41. package/cosmos-static/icons/JCBIcon.svg +1 -0
  42. package/cosmos-static/icons/LoupeIcon.svg +1 -0
  43. package/cosmos-static/icons/MasterCardIcon.svg +1 -0
  44. package/cosmos-static/icons/MinusIcon.svg +1 -0
  45. package/cosmos-static/icons/MirIcon.svg +1 -0
  46. package/cosmos-static/icons/MoneyIcon.svg +1 -0
  47. package/cosmos-static/icons/MoneyInsuranceIcon.svg +1 -0
  48. package/cosmos-static/icons/MonitorMobileIcon.svg +1 -0
  49. package/cosmos-static/icons/NewDocIcon.svg +1 -0
  50. package/cosmos-static/icons/OfficeIcon.svg +1 -0
  51. package/cosmos-static/icons/OkIcon.svg +1 -0
  52. package/cosmos-static/icons/PassSendIcon.svg +1 -0
  53. package/cosmos-static/icons/PercentageRoundIcon.svg +1 -0
  54. package/cosmos-static/icons/PercentageSquareIcon.svg +1 -0
  55. package/cosmos-static/icons/PercentageSquareWhiteIcon.svg +1 -0
  56. package/cosmos-static/icons/PersonalCardIcon.svg +1 -0
  57. package/cosmos-static/icons/PlayMarketIcon.svg +1 -0
  58. package/cosmos-static/icons/PlusIcon.svg +1 -0
  59. package/cosmos-static/icons/Profile2UserIcon.svg +1 -0
  60. package/cosmos-static/icons/ProfileIcon.svg +1 -0
  61. package/cosmos-static/icons/RoundRubleIcon.svg +1 -0
  62. package/cosmos-static/icons/SafeIcon.svg +1 -0
  63. package/cosmos-static/icons/ShieldTickIcon.svg +1 -0
  64. package/cosmos-static/icons/SignDocsIcon.svg +1 -0
  65. package/cosmos-static/icons/SmallClockIcon.svg +1 -0
  66. package/cosmos-static/icons/TelegramIcon.svg +1 -0
  67. package/cosmos-static/icons/UnionPayIcon.svg +1 -0
  68. package/cosmos-static/icons/UserTickIcon.svg +1 -0
  69. package/cosmos-static/icons/VKIcon.svg +1 -0
  70. package/cosmos-static/icons/VisaIcon.svg +1 -0
  71. package/cosmos-static/icons/WalletAdd2Icon.svg +1 -0
  72. package/cosmos-static/icons/WalletAddIcon.svg +1 -0
  73. package/cosmos-static/icons/WalletIcon.svg +1 -0
  74. package/cosmos-static/icons/WalletWithMoneyIcon.svg +1 -0
  75. package/dist/components/Accordion/utils/isActiveHandler.js +1 -1
  76. package/dist/components/Accordion/utils/isActiveHandler.js.map +1 -1
  77. package/dist/components/Blocks.mobile.d.ts +3 -1
  78. package/dist/components/Blocks.mobile.js +5 -1
  79. package/dist/components/Blocks.mobile.js.map +1 -1
  80. package/dist/components/ContentPage/ContentPage.js +2 -2
  81. package/dist/components/ContentPage/ContentPage.js.map +1 -1
  82. package/dist/components/ContentPage/isBlockInRegistry.d.ts +1 -2
  83. package/dist/components/ContentPage/isBlockInRegistry.js +2 -2
  84. package/dist/components/ContentPage/isBlockInRegistry.js.map +1 -1
  85. package/dist/components/ContentPage/normalizeBlock.d.ts +1 -1
  86. package/dist/components/ContentPage/normalizePage.js +1 -1
  87. package/dist/components/ContentPage/normalizePage.js.map +1 -1
  88. package/dist/components/ContentPage/normalizePage.mobile.js +1 -1
  89. package/dist/components/ContentPage/normalizePage.mobile.js.map +1 -1
  90. package/dist/components/Gallery/GalleryCardInner.js +1 -1
  91. package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  92. package/dist/components/Headline/HeadlineContent.d.ts +1 -1
  93. package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
  94. package/dist/components/Placeholder/Placeholder.js +8 -3
  95. package/dist/components/Placeholder/Placeholder.js.map +1 -1
  96. package/dist/components/Placeholder/PlaceholderContent.d.ts +2 -1
  97. package/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -1
  98. package/dist/components/ProductTile/ProductTileContent.d.ts +1 -1
  99. package/dist/components/PromoTile/PromoTileContent.d.ts +1 -1
  100. package/dist/components/Tile/TileContent.d.ts +1 -1
  101. package/dist/types.d.ts +1 -1
  102. package/dist/ui-kit/Description/Description.d.ts +4 -1
  103. package/dist/ui-kit/Description/Description.js.map +1 -1
  104. package/{lib/ui-kit/Description/DescriptionProps.d.ts → dist/ui-kit/Description/DescriptionContent.d.ts} +0 -3
  105. package/dist/ui-kit/Description/{DescriptionProps.js → DescriptionContent.js} +1 -1
  106. package/dist/ui-kit/Description/DescriptionContent.js.map +1 -0
  107. package/lib/common.css +1 -1
  108. package/lib/components/Accordion/utils/isActiveHandler.js +1 -1
  109. package/lib/components/Accordion/utils/isActiveHandler.js.map +1 -1
  110. package/lib/components/Blocks.mobile.d.ts +3 -1
  111. package/lib/components/Blocks.mobile.js +5 -1
  112. package/lib/components/Blocks.mobile.js.map +1 -1
  113. package/lib/components/ContentPage/ContentPage.js +2 -2
  114. package/lib/components/ContentPage/ContentPage.js.map +1 -1
  115. package/lib/components/ContentPage/isBlockInRegistry.d.ts +1 -2
  116. package/lib/components/ContentPage/isBlockInRegistry.js +2 -2
  117. package/lib/components/ContentPage/isBlockInRegistry.js.map +1 -1
  118. package/lib/components/ContentPage/normalizeBlock.d.ts +1 -1
  119. package/lib/components/ContentPage/normalizePage.js +1 -1
  120. package/lib/components/ContentPage/normalizePage.js.map +1 -1
  121. package/lib/components/ContentPage/normalizePage.mobile.js +1 -1
  122. package/lib/components/ContentPage/normalizePage.mobile.js.map +1 -1
  123. package/lib/components/Gallery/GalleryCardInner.js +1 -1
  124. package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  125. package/lib/components/Headline/HeadlineContent.d.ts +1 -1
  126. package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
  127. package/lib/components/Placeholder/Placeholder.fixture.mobile.d.ts +2 -0
  128. package/lib/components/Placeholder/Placeholder.js +9 -4
  129. package/lib/components/Placeholder/Placeholder.js.map +1 -1
  130. package/lib/components/Placeholder/PlaceholderContent.d.ts +2 -1
  131. package/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -1
  132. package/lib/components/ProductTile/ProductTileContent.d.ts +1 -1
  133. package/lib/components/PromoTile/PromoTileContent.d.ts +1 -1
  134. package/lib/components/Tile/TileContent.d.ts +1 -1
  135. package/lib/types.d.ts +1 -1
  136. package/lib/ui-kit/Description/Description.d.ts +4 -1
  137. package/lib/ui-kit/Description/Description.js.map +1 -1
  138. package/{mobile/dist/ui-kit/Description/DescriptionProps.d.ts → lib/ui-kit/Description/DescriptionContent.d.ts} +0 -3
  139. package/lib/ui-kit/Description/DescriptionContent.js +2 -0
  140. package/lib/ui-kit/Description/DescriptionContent.js.map +1 -0
  141. package/mobile/bundle/bundle.umd.js +204 -202
  142. package/mobile/bundle/bundle.umd.min.js +1 -1
  143. package/mobile/dist/components/Accordion/utils/isActiveHandler.js +1 -1
  144. package/mobile/dist/components/Accordion/utils/isActiveHandler.js.map +1 -1
  145. package/mobile/dist/components/Blocks.d.ts +3 -1
  146. package/mobile/dist/components/Blocks.js +5 -1
  147. package/mobile/dist/components/Blocks.js.map +1 -1
  148. package/mobile/dist/components/ContentPage/ContentPage.js +2 -2
  149. package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
  150. package/mobile/dist/components/ContentPage/isBlockInRegistry.d.ts +1 -2
  151. package/mobile/dist/components/ContentPage/isBlockInRegistry.js +2 -2
  152. package/mobile/dist/components/ContentPage/isBlockInRegistry.js.map +1 -1
  153. package/mobile/dist/components/ContentPage/normalizePage.js +1 -1
  154. package/mobile/dist/components/ContentPage/normalizePage.js.map +1 -1
  155. package/mobile/dist/components/Gallery/GalleryCardInner.js +1 -1
  156. package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  157. package/mobile/dist/components/Headline/HeadlineContent.d.ts +1 -1
  158. package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
  159. package/mobile/dist/components/Placeholder/Placeholder.d.ts +1 -1
  160. package/mobile/dist/components/Placeholder/Placeholder.js +8 -3
  161. package/mobile/dist/components/Placeholder/Placeholder.js.map +1 -1
  162. package/mobile/dist/components/Placeholder/PlaceholderContent.d.ts +2 -1
  163. package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -1
  164. package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +1 -1
  165. package/mobile/dist/components/PromoTile/PromoTileContent.d.ts +1 -1
  166. package/mobile/dist/components/Tile/TileContent.d.ts +1 -1
  167. package/mobile/dist/types.d.ts +1 -1
  168. package/mobile/dist/ui-kit/Description/Description.d.ts +4 -1
  169. package/mobile/dist/ui-kit/Description/Description.js.map +1 -1
  170. package/mobile/{lib/ui-kit/Description/DescriptionProps.d.ts → dist/ui-kit/Description/DescriptionContent.d.ts} +0 -3
  171. package/mobile/dist/ui-kit/Description/{DescriptionProps.js → DescriptionContent.js} +1 -1
  172. package/mobile/dist/ui-kit/Description/DescriptionContent.js.map +1 -0
  173. package/mobile/lib/components/Accordion/utils/isActiveHandler.js +1 -1
  174. package/mobile/lib/components/Accordion/utils/isActiveHandler.js.map +1 -1
  175. package/mobile/lib/components/Blocks.d.ts +3 -1
  176. package/mobile/lib/components/Blocks.js +5 -1
  177. package/mobile/lib/components/Blocks.js.map +1 -1
  178. package/mobile/lib/components/ContentPage/ContentPage.js +2 -2
  179. package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
  180. package/mobile/lib/components/ContentPage/isBlockInRegistry.d.ts +1 -2
  181. package/mobile/lib/components/ContentPage/isBlockInRegistry.js +2 -2
  182. package/mobile/lib/components/ContentPage/isBlockInRegistry.js.map +1 -1
  183. package/mobile/lib/components/ContentPage/normalizePage.js +1 -1
  184. package/mobile/lib/components/ContentPage/normalizePage.js.map +1 -1
  185. package/mobile/lib/components/Gallery/GalleryCardInner.js +1 -1
  186. package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  187. package/mobile/lib/components/Headline/HeadlineContent.d.ts +1 -1
  188. package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
  189. package/mobile/lib/components/Placeholder/Placeholder.d.ts +1 -1
  190. package/mobile/lib/components/Placeholder/Placeholder.js +9 -4
  191. package/mobile/lib/components/Placeholder/Placeholder.js.map +1 -1
  192. package/mobile/lib/components/Placeholder/PlaceholderContent.d.ts +2 -1
  193. package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -1
  194. package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +1 -1
  195. package/mobile/lib/components/PromoTile/PromoTileContent.d.ts +1 -1
  196. package/mobile/lib/components/Tile/TileContent.d.ts +1 -1
  197. package/mobile/lib/types.d.ts +1 -1
  198. package/mobile/lib/ui-kit/Description/Description.d.ts +4 -1
  199. package/mobile/lib/ui-kit/Description/Description.js.map +1 -1
  200. package/{dist/ui-kit/Description/DescriptionProps.d.ts → mobile/lib/ui-kit/Description/DescriptionContent.d.ts} +0 -3
  201. package/mobile/lib/ui-kit/Description/DescriptionContent.js +2 -0
  202. package/mobile/lib/ui-kit/Description/DescriptionContent.js.map +1 -0
  203. package/mobile/src/components/Accordion/utils/isActiveHandler.ts +1 -2
  204. package/mobile/src/components/Blocks.ts +5 -1
  205. package/mobile/src/components/ContentPage/ContentPage.page.json +37 -43
  206. package/mobile/src/components/ContentPage/ContentPage.tsx +2 -2
  207. package/mobile/src/components/ContentPage/isBlockInRegistry.ts +2 -4
  208. package/mobile/src/components/ContentPage/normalizePage.ts +4 -1
  209. package/mobile/src/components/Gallery/GalleryCardInner.tsx +1 -1
  210. package/mobile/src/components/Headline/HeadlineContent.ts +1 -1
  211. package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +1 -1
  212. package/mobile/src/components/Placeholder/Placeholder.tsx +36 -14
  213. package/mobile/src/components/Placeholder/PlaceholderContent.ts +2 -1
  214. package/mobile/src/components/ProductBlock/ProductBlockContent.ts +1 -1
  215. package/mobile/src/components/ProductTile/ProductTileContent.ts +1 -1
  216. package/mobile/src/components/PromoTile/PromoTileContent.ts +1 -1
  217. package/mobile/src/components/Tile/TileContent.ts +1 -1
  218. package/mobile/src/types.ts +1 -1
  219. package/mobile/src/ui-kit/Description/Description.tsx +5 -1
  220. package/mobile/src/ui-kit/Description/{DescriptionProps.ts → DescriptionContent.ts} +0 -4
  221. package/package.json +4 -5
  222. package/src/components/Accordion/utils/isActiveHandler.ts +1 -2
  223. package/src/components/Blocks.mobile.ts +5 -1
  224. package/src/components/ContentPage/ContentPage.page.json +37 -43
  225. package/src/components/ContentPage/ContentPage.tsx +2 -2
  226. package/src/components/ContentPage/isBlockInRegistry.ts +2 -4
  227. package/src/components/ContentPage/normalizePage.mobile.ts +4 -1
  228. package/src/components/ContentPage/normalizePage.ts +1 -1
  229. package/src/components/Gallery/GalleryCardInner.tsx +1 -1
  230. package/src/components/Headline/HeadlineContent.ts +1 -1
  231. package/src/components/MobileAppTile/MobileAppTileContent.ts +1 -1
  232. package/src/components/Placeholder/Placeholder.fixture.mobile.tsx +9 -0
  233. package/src/components/Placeholder/Placeholder.tsx +35 -8
  234. package/src/components/Placeholder/PlaceholderContent.ts +2 -1
  235. package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +6 -0
  236. package/src/components/ProductBlock/ProductBlockContent.ts +1 -1
  237. package/src/components/ProductGallery/ProductGallery.fixture.mobile.tsx +8 -0
  238. package/src/components/ProductTile/ProductTileContent.ts +1 -1
  239. package/src/components/PromoTile/PromoTileContent.ts +1 -1
  240. package/src/components/Tile/TileContent.ts +1 -1
  241. package/src/types.ts +1 -1
  242. package/src/ui-kit/Description/Description.tsx +5 -1
  243. package/src/ui-kit/Description/{DescriptionProps.ts → DescriptionContent.ts} +0 -4
  244. package/dist/components/Placeholder/Placeholder.mobile.d.ts +0 -6
  245. package/dist/components/Placeholder/Placeholder.mobile.js +0 -15
  246. package/dist/components/Placeholder/Placeholder.mobile.js.map +0 -1
  247. package/dist/ui-kit/Description/DescriptionProps.js.map +0 -1
  248. package/lib/components/Placeholder/Placeholder.mobile.d.ts +0 -6
  249. package/lib/components/Placeholder/Placeholder.mobile.js +0 -13
  250. package/lib/components/Placeholder/Placeholder.mobile.js.map +0 -1
  251. package/lib/ui-kit/Description/DescriptionProps.js +0 -2
  252. package/lib/ui-kit/Description/DescriptionProps.js.map +0 -1
  253. package/mobile/dist/ui-kit/Description/DescriptionProps.js.map +0 -1
  254. package/mobile/lib/ui-kit/Description/DescriptionProps.js +0 -2
  255. package/mobile/lib/ui-kit/Description/DescriptionProps.js.map +0 -1
  256. package/src/components/Placeholder/Placeholder.mobile.tsx +0 -35
@@ -1 +1 @@
1
- {"version":3,"file":"isActiveHandler.js","sourceRoot":"","sources":["../../../../src/components/Accordion/utils/isActiveHandler.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE;IACrD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxD,MAAM,UAAU,GAAG,MAAM,EAAE,MAAM,CAAC;IAClC,MAAM,IAAI,GAAa,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC;IAE3D,MAAM,eAAe,GAAG,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CACrC,MAAM,CAAC,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC;IAEnF,MAAM,YAAY,GAAG,CAAC,CAAa,EAAE,EAAE;QACrC,IAAI,CAAC,UAAU,EAAE;YACf,OAAO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,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;AACtD,CAAC,CAAC"}
@@ -1,12 +1,14 @@
1
1
  export declare const Blocks: {
2
+ Accordion: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Accordion/Accordion").AccordionProps, any>, context?: any) => any;
2
3
  ExchangeRateTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./ExchangeRateTile/ExchangeRateTile").ExchangeRateTileProps, any>, context?: any) => any;
3
4
  Footer: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Footer/Footer").FooterProps, any>, context?: any) => any;
4
5
  Header: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Header/Header").HeaderProps, any>, context?: any) => any;
5
6
  Headline: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Headline/Headline").HeadlineProps, any>, context?: any) => any;
6
7
  LinkDocs: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./LinkDocs/LinkDocs").LinkDocsProps, any>, context?: any) => any;
8
+ MobileAppTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./MobileAppTile/MobileAppTile").MobileAppTileProps, any>, context?: any) => any;
7
9
  Placeholder: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Placeholder/Placeholder").PlaceholderProps, any>, context?: any) => any;
8
10
  ProductBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./ProductBlock/ProductBlock").ProductBlockProps, any>, context?: any) => any;
9
11
  ProductGallery: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./ProductGallery/ProductGallery").ProductGalleryProps, any>, context?: any) => any;
10
- TextBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./TextBlock/TextBlock").TextBlockProps, any>, context?: any) => any;
11
12
  StepsBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./StepsBlock/StepsBlock").StepsBlockProps, any>, context?: any) => any;
13
+ TextBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./TextBlock/TextBlock").TextBlockProps, any>, context?: any) => any;
12
14
  };
@@ -1,23 +1,27 @@
1
+ import { Accordion } from './Accordion/Accordion.js';
1
2
  import { ExchangeRateTile } from './ExchangeRateTile/ExchangeRateTile.js';
2
3
  import { Footer } from './Footer/Footer.js';
3
4
  import { Header } from './Header/Header.js';
4
5
  import { Headline } from './Headline/Headline.js';
5
6
  import { LinkDocs } from './LinkDocs/LinkDocs.js';
7
+ import { MobileAppTile } from './MobileAppTile/MobileAppTile.js';
6
8
  import { Placeholder } from './Placeholder/Placeholder.js';
7
9
  import { ProductBlock } from './ProductBlock/ProductBlock.js';
8
10
  import { ProductGallery } from './ProductGallery/ProductGallery.js';
9
11
  import { StepsBlock } from './StepsBlock/StepsBlock.js';
10
12
  import { TextBlock } from './TextBlock/TextBlock.js';
11
13
  export const Blocks = {
14
+ Accordion,
12
15
  ExchangeRateTile,
13
16
  Footer,
14
17
  Header,
15
18
  Headline,
16
19
  LinkDocs,
20
+ MobileAppTile,
17
21
  Placeholder,
18
22
  ProductBlock,
19
23
  ProductGallery,
20
- TextBlock,
21
24
  StepsBlock,
25
+ TextBlock,
22
26
  };
23
27
  //# sourceMappingURL=Blocks.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Blocks.js","sourceRoot":"","sources":["../../src/components/Blocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,gBAAgB;IAChB,MAAM;IACN,MAAM;IACN,QAAQ;IACR,QAAQ;IACR,WAAW;IACX,YAAY;IACZ,cAAc;IACd,SAAS;IACT,UAAU;CACX,CAAC"}
1
+ {"version":3,"file":"Blocks.js","sourceRoot":"","sources":["../../src/components/Blocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,SAAS;IACT,gBAAgB;IAChB,MAAM;IACN,MAAM;IACN,QAAQ;IACR,QAAQ;IACR,aAAa;IACb,WAAW;IACX,YAAY;IACZ,cAAc;IACd,UAAU;IACV,SAAS;CACV,CAAC"}
@@ -9,10 +9,10 @@ export const ContentPage = JSX(({ className, context, blocksRegistry, data: { st
9
9
  });
10
10
  function renderBlock({ block, blockDecorator, blocksRegistry, context }, i) {
11
11
  const { type } = block;
12
- if (!(type in blocksRegistry)) {
12
+ if (!(type && type in blocksRegistry)) {
13
13
  console.warn(`No block with "${type}" is registered`);
14
14
  }
15
- const BlockComponent = blocksRegistry[type] || Placeholder;
15
+ const BlockComponent = blocksRegistry[type || 'Placeholder'] || Placeholder;
16
16
  return blockDecorator({
17
17
  blockClassName: style2className(block.style),
18
18
  block,
@@ -1 +1 @@
1
- {"version":3,"file":"ContentPage.js","sourceRoot":"","sources":["../../../src/components/ContentPage/ContentPage.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAqB,MAAM,mBAAmB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAkCzD,MAAM,qBAAqB,GAAmB,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,CAClF,MAAM,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC,CAAC;AAEpC,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAC5B,CAAC,EACC,SAAS,EACT,OAAO,EACP,cAAc,EACd,IAAI,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,GAAG,EAAE,EAAE,WAAW,EAAE,YAAY,GAAG,IAAI,EAAE,EAChF,cAAc,GAAG,qBAAqB,GACvC,EAAE,EAAE;IACH,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAEzB,OAAO,CACL,mBACE,SAAS,EAAE,YAAY,eAAe,CAAC,SAAS,CAAC,IAAI,SAAS,IAAI,EAAE,EAAE,gBAC1D,YAAY,aAEvB,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CACxB,cAAK,SAAS,EAAE,GAAG,eAAe,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,YAChD,MAAM,CAAC,MAAM,CA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AO,CACL,KAAC,cAAc,IAEb,SAAS,EAAE,KAAK,CAAC,cAAc,EAC/B,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,KACZ,OAAO,IAJN,GAAG,IAAI,IAAI,CAAC,EAAE,CAKnB,CACH,CAAC;QACJ,CAAC;KACF,EACD,SAAS,CAAC,EAAE,CACb,CAAC;AACJ,CAAC;AAED,SAAS,eAAe,CAAC,KAAkC;IACzD,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACtC,CAAC"}
@@ -1,2 +1 @@
1
- import { BlockDef } from '../../types';
2
- export declare function isBlockInRegistry<T>(block: BlockDef, registry: Record<string, T>): boolean;
1
+ export declare function isBlockInRegistry<T>(blockType: string | undefined, registry: Record<string, T>): boolean;
@@ -1,4 +1,4 @@
1
- export function isBlockInRegistry(block, registry) {
2
- return block.type in registry;
1
+ export function isBlockInRegistry(blockType, registry) {
2
+ return (blockType || '') in registry;
3
3
  }
4
4
  //# sourceMappingURL=isBlockInRegistry.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"isBlockInRegistry.js","sourceRoot":"","sources":["../../../src/components/ContentPage/isBlockInRegistry.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,iBAAiB,CAAI,KAAe,EAAE,QAA2B;IAC/E,OAAO,KAAK,CAAC,IAAI,IAAI,QAAQ,CAAC;AAChC,CAAC"}
1
+ {"version":3,"file":"isBlockInRegistry.js","sourceRoot":"","sources":["../../../src/components/ContentPage/isBlockInRegistry.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,iBAAiB,CAAI,SAA6B,EAAE,QAA2B;IAC7F,OAAO,CAAC,SAAS,IAAI,EAAE,CAAC,IAAI,QAAQ,CAAC;AACvC,CAAC"}
@@ -21,7 +21,7 @@ export function normalizePage(contentPage) {
21
21
  }
22
22
  function getMobileBlocks(blocks) {
23
23
  return blocks
24
- ?.filter((block) => isBlockInRegistry(block, Blocks) && !block.mobile?.hidden)
24
+ ?.filter((block) => isBlockInRegistry(block?.type || block?.mobile?.type, Blocks) && !block.mobile?.hidden)
25
25
  .map(normalizeBlock);
26
26
  }
27
27
  //# sourceMappingURL=normalizePage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"normalizePage.js","sourceRoot":"","sources":["../../../src/components/ContentPage/normalizePage.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,UAAU,aAAa,CAC3B,WAA8C;IAE9C,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO,SAAS,CAAC;KAClB;IAED,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,WAAW,CAAC;IAEtC,OAAO;QACL,GAAG,WAAW;QACd,MAAM,EAAE,eAAe,CAAC,MAAM,CAAC;QAC/B,KAAK,EACH,KAAK;YACL,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CACvB,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;gBACb,GAAG,GAAG;gBACN,CAAC,GAAG,CAAC,EAAE;oBACL,GAAG,KAAK,CAAC,GAAG,CAAC;oBACb,MAAM,EAAE,eAAe,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC;iBAC3C;aACF,CAAC,EACF,EAAE,CACH;KACJ,CAAC;AACJ,CAAC;AAED,SAAS,eAAe,CAAC,MAAmB;IAC1C,OAAO,MAAM;QACX,EAAE,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,iBAAiB,CAAC,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC;SAC7E,GAAG,CAAC,cAAc,CAAC,CAAC;AACzB,CAAC"}
1
+ {"version":3,"file":"normalizePage.js","sourceRoot":"","sources":["../../../src/components/ContentPage/normalizePage.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,UAAU,aAAa,CAC3B,WAA8C;IAE9C,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO,SAAS,CAAC;KAClB;IAED,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,WAAW,CAAC;IAEtC,OAAO;QACL,GAAG,WAAW;QACd,MAAM,EAAE,eAAe,CAAC,MAAM,CAAC;QAC/B,KAAK,EACH,KAAK;YACL,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CACvB,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;gBACb,GAAG,GAAG;gBACN,CAAC,GAAG,CAAC,EAAE;oBACL,GAAG,KAAK,CAAC,GAAG,CAAC;oBACb,MAAM,EAAE,eAAe,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC;iBAC3C;aACF,CAAC,EACF,EAAE,CACH;KACJ,CAAC;AACJ,CAAC;AAED,SAAS,eAAe,CAAC,MAAmB;IAC1C,OAAO,MAAM;QACX,EAAE,MAAM,CACN,CAAC,KAAK,EAAE,EAAE,CACR,iBAAiB,CAAC,KAAK,EAAE,IAAI,IAAI,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,CACzF;SACA,GAAG,CAAC,cAAc,CAAC,CAAC;AACzB,CAAC"}
@@ -5,7 +5,7 @@ import { Button } from '../../ui-kit/Button/Button.js';
5
5
  import { Img } from '../../ui-kit/Img/Img.js';
6
6
  export const GalleryCardInner = JSX(({ title, description, image, items, button, version }) => {
7
7
  return (_jsxs("div", { children: [_jsxs("div", { children: [image?.src ? (_jsx("div", { className: "flex justify-center", children: _jsx(Img, { className: "mb-6", image: image }) })) : null, title && renderCardTitle(title, description, items), description ? _jsx("div", { className: `font-normal text-sm mt-2`, children: description }) : null, items?.length ? (_jsx("section", { className: `max-w-[308px] mt-2`, role: "list", children: items
8
- .filter((item) => item.text)
8
+ .filter((item) => item?.text)
9
9
  .map((item, i) => renderItem(item.text, i, version)) })) : null] }), button?.text && _jsx(Button, { className: "mt-6", ...button })] }));
10
10
  });
11
11
  function renderCardTitle(title, description, items) {
@@ -1 +1 @@
1
- {"version":3,"file":"GalleryCardInner.js","sourceRoot":"","sources":["../../../src/components/Gallery/GalleryCardInner.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAG3C,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CACjC,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;IACxD,OAAO,CACL,0BACE,0BACG,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,CACZ,cAAK,SAAS,EAAC,qBAAqB,YAClC,KAAC,GAAG,IAAC,SAAS,EAAC,MAAM,EAAC,KAAK,EAAE,KAAK,GAAI,GAClC,CACP,CAAC,CAAC,CAAC,IAAI,EACP,KAAK,IAAI,eAAe,CAAC,KAAK,EAAE,WAAW,EAAE,KAAK,CAAC,EACnD,WAAW,CAAC,CAAC,CAAC,cAAK,SAAS,EAAE,0BAA0B,YAAG,WAAW,GAAO,CAAC,CAAC,CAAC,IAAI,EACpF,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACf,kBAAS,SAAS,E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AO,CACL,KAAC,SAAS,IAAiB,OAAO,EAAE,OAAO,IAAI,SAAS,YACtD,eAAM,SAAS,EAAC,SAAS,YAAE,IAAI,GAAQ,IADzB,MAAM,CAAC,CAAC,CAAC,CAEb,CACb,CAAC;AACJ,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { BgColorVersion } from '../../model/BgColorVersion';
2
- import type { DescriptionContent } from '../../ui-kit/Description/DescriptionProps';
2
+ import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
3
3
  import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
4
4
  import type { ImageContent } from '../../ui-kit/Img/ImgProps';
5
5
  import type { AlignType } from '../BaseTile/BaseTileProps';
@@ -1,5 +1,5 @@
1
1
  import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
2
- import type { DescriptionContent } from '../../ui-kit/Description/DescriptionProps';
2
+ import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
3
3
  import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
4
4
  /**
5
5
  * @title QR код
@@ -1,5 +1,5 @@
1
+ import type { PlaceholderContent } from '../../components/Placeholder/PlaceholderContent';
1
2
  import type { UniBlockProps } from '../../types';
2
- import type { PlaceholderContent } from './PlaceholderContent';
3
3
  export interface PlaceholderProps extends PlaceholderContent, UniBlockProps {
4
4
  className?: string;
5
5
  }
@@ -1,9 +1,14 @@
1
- import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
- import { Tile } from '../Tile/Tile.js';
3
+ import { Description } from '../../ui-kit/Description/Description.js';
4
+ import { Heading } from '../../ui-kit/Heading/Heading.js';
5
+ import { BaseTile } from '../BaseTile/BaseTile.js';
6
+ import { getTileHeadingType } from '../BaseTile/getTileHeadingType.js';
7
+ import { getTileMinHeight } from '../BaseTile/getTileMinHeight.js';
8
+ import { getTileRightPadding } from '../BaseTile/getTileRightPadding.js';
4
9
  const GOLDEN_RATIO = 1.618;
5
- export const Placeholder = JSX(({ className = '', context, title }) => {
6
- return (_jsx(Tile, { className: `pr-0 min-h-0 ${className}`, context: context, title: title, description: "\u0411\u043B\u043E\u043A \u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043E\u0442\u043A\u0435...", children: _jsx("figure", { className: "m-0", children: renderShimmer() }) }));
10
+ export const Placeholder = JSX(({ className, context, title, description = 'Блок в разработке...' }) => {
11
+ return (_jsx("section", { className: `bg-white text-primary-text font-sans p-9 box-border ${className} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, children: _jsxs(BaseTile, { context: context, title: title ? (_jsx(Heading, { headingType: getTileHeadingType(className), title: title, className: `whitespace-pre-wrap max-w-[600px]` })) : null, children: [description ? (_jsx(Description, { className: "mt-4 max-w-[600px]", description: description })) : null, _jsx("figure", { className: "m-0 min-w-[600px]", children: renderShimmer() })] }) }));
7
12
  });
8
13
  const renderShimmer = (size = 3) => goldenSequence(100, size)
9
14
  .map((_) => Math.floor(_))
@@ -1 +1 @@
1
- {"version":3,"file":"Placeholder.js","sourceRoot":"","sources":["../../../src/components/Placeholder/Placeholder.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAOpC,MAAM,YAAY,GAAG,KAAK,CAAC;AAE3B,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAmB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE;IACtF,OAAO,CACL,KAAC,IAAI,IACH,SAAS,EAAE,gBAAgB,SAAS,EAAE,EACtC,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,WAAW,EAAC,iGAAsB,YAElC,iBAAQ,SAAS,EAAC,KAAK,YAAE,aAAa,EAAE,GAAU,GAC7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CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,KAAK,GAAG,YAAY,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC"}
@@ -1,5 +1,6 @@
1
+ import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
1
2
  import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
2
3
  /**
3
4
  * @hidden
4
5
  */
5
- export declare type PlaceholderContent = HeadingContent;
6
+ export declare type PlaceholderContent = HeadingContent & DescriptionContent;
@@ -1,7 +1,7 @@
1
1
  import type { BlockVersion } from '../../model/BlockVersion';
2
2
  import type { LinkProps } from '../../model/LinkProps';
3
3
  import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
4
- import type { DescriptionContent } from '../../ui-kit/Description/DescriptionProps';
4
+ import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
5
5
  import type { HeadingContent, HeadingTypeContent } from '../../ui-kit/Heading/HeadingContent';
6
6
  import type { ImageContent } from '../../ui-kit/Img/ImgProps';
7
7
  import type { ListContent } from '../../ui-kit/List/ListContent';
@@ -1,6 +1,6 @@
1
1
  import type { BlockVersion } from '../../model/BlockVersion';
2
2
  import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
3
- import type { DescriptionContent } from '../../ui-kit/Description/DescriptionProps';
3
+ import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
4
4
  import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
5
5
  import type { ImageContent } from '../../ui-kit/Img/ImgProps';
6
6
  import type { TextBenefit } from '../BenefitsBlock/BenefitsBlockContent';
@@ -1,6 +1,6 @@
1
1
  import type { BlockVersion } from '../../model/BlockVersion';
2
2
  import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
3
- import type { DescriptionContent } from '../../ui-kit/Description/DescriptionProps';
3
+ import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
4
4
  import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
5
5
  /**
6
6
  * @title Акции
@@ -1,6 +1,6 @@
1
1
  import type { BlockVersion } from '../../model/BlockVersion';
2
2
  import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
3
- import type { DescriptionContent } from '../../ui-kit/Description/DescriptionProps';
3
+ import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
4
4
  import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
5
5
  import type { ImageContent } from '../../ui-kit/Img/ImgProps';
6
6
  import type { ListContent } from '../../ui-kit/List/ListContent';
@@ -3,7 +3,7 @@ import type { ContentPageContext } from './components/ContentPage/ContentPageCon
3
3
  import type { BlockVersion } from './model/BlockVersion';
4
4
  export declare type ColorPalette = 'pc' | 'bc' | 'eo' | 'eo2' | 'eo3' | 'eo4';
5
5
  export interface BaseBlockDef {
6
- type: string;
6
+ type?: string;
7
7
  style?: string[];
8
8
  content?: BlockContent;
9
9
  version?: BlockVersion;
@@ -1,2 +1,5 @@
1
- import { DescriptionProps } from './DescriptionProps';
1
+ import { DescriptionContent } from './DescriptionContent';
2
+ export interface DescriptionProps extends DescriptionContent {
3
+ className?: string;
4
+ }
2
5
  export declare const Description: (props: import("@redneckz/uni-jsx").PropsWithChildren<DescriptionProps, any>, context?: any) => any;
@@ -1 +1 @@
1
- {"version":3,"file":"Description.js","sourceRoot":"","sources":["../../../src/ui-kit/Description/Description.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAmB,CAAC,KAAK,EAAE,EAAE;IACzD,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IAEzC,OAAO,cAAK,SAAS,EAAE,yBAAyB,SAAS,IAAI,EAAE,EAAE,YAAG,WAAW,GAAO,CAAC;AACzF,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"Description.js","sourceRoot":"","sources":["../../../src/ui-kit/Description/Description.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAOxC,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAmB,CAAC,KAAK,EAAE,EAAE;IACzD,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IAEzC,OAAO,cAAK,SAAS,EAAE,yBAAyB,SAAS,IAAI,EAAE,EAAE,YAAG,WAAW,GAAO,CAAC;AACzF,CAAC,CAAC,CAAC"}
@@ -2,6 +2,3 @@ export interface DescriptionContent {
2
2
  /** @title Описание */
3
3
  description?: string;
4
4
  }
5
- export interface DescriptionProps extends DescriptionContent {
6
- className?: string;
7
- }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=DescriptionContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DescriptionContent.js","sourceRoot":"","sources":["../../../src/ui-kit/Description/DescriptionContent.ts"],"names":[],"mappings":""}
@@ -5,8 +5,7 @@ export const isActiveHandler = ({ context, blocks }) => {
5
5
  const hasContent = blocks?.length;
6
6
  const icon: IconName = isActive ? 'MinusIcon' : 'PlusIcon';
7
7
 
8
- const getContentBlock = ({ target }) =>
9
- target.tagName === 'BUTTON' ? target.nextSibling : target.parentNode.nextSibling;
8
+ const getContentBlock = ({ currentTarget }) => currentTarget.nextSibling;
10
9
 
11
10
  const handleToggle = (e: MouseEvent) => {
12
11
  if (!hasContent) {
@@ -1,8 +1,10 @@
1
+ import { Accordion } from './Accordion/Accordion';
1
2
  import { ExchangeRateTile } from './ExchangeRateTile/ExchangeRateTile';
2
3
  import { Footer } from './Footer/Footer';
3
4
  import { Header } from './Header/Header';
4
5
  import { Headline } from './Headline/Headline';
5
6
  import { LinkDocs } from './LinkDocs/LinkDocs';
7
+ import { MobileAppTile } from './MobileAppTile/MobileAppTile';
6
8
  import { Placeholder } from './Placeholder/Placeholder';
7
9
  import { ProductBlock } from './ProductBlock/ProductBlock';
8
10
  import { ProductGallery } from './ProductGallery/ProductGallery';
@@ -10,14 +12,16 @@ import { StepsBlock } from './StepsBlock/StepsBlock';
10
12
  import { TextBlock } from './TextBlock/TextBlock';
11
13
 
12
14
  export const Blocks = {
15
+ Accordion,
13
16
  ExchangeRateTile,
14
17
  Footer,
15
18
  Header,
16
19
  Headline,
17
20
  LinkDocs,
21
+ MobileAppTile,
18
22
  Placeholder,
19
23
  ProductBlock,
20
24
  ProductGallery,
21
- TextBlock,
22
25
  StepsBlock,
26
+ TextBlock,
23
27
  };
@@ -83,7 +83,13 @@
83
83
  "size": {
84
84
  "width": 280,
85
85
  "height": 280
86
- }
86
+ },
87
+ "sources": [
88
+ {
89
+ "src": "money-1.png 1x, money-1-2x.png 2x",
90
+ "format": "png"
91
+ }
92
+ ]
87
93
  }
88
94
  }
89
95
  },
@@ -1312,22 +1318,18 @@
1312
1318
  "label": "Accordion label 1",
1313
1319
  "blocks": [
1314
1320
  {
1315
- "type": "TextBlock",
1316
- "data": {
1317
- "title": "Title",
1318
- "description": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque minima odio soluta cupiditate pariatur, labore molestias quas necessitatibus nesciunt in praesentium accusamus provident sequi maiores autem. Voluptas quam neque iste?",
1319
- "blockVersion": "secondary-light",
1320
- "iconVersion": "small"
1321
- }
1321
+ "accordionBlockType": "TextBlock",
1322
+ "title": "Title",
1323
+ "description": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque minima odio soluta cupiditate pariatur, labore molestias quas necessitatibus nesciunt in praesentium accusamus provident sequi maiores autem. Voluptas quam neque iste?",
1324
+ "blockVersion": "secondary-light",
1325
+ "iconVersion": "small"
1322
1326
  },
1323
1327
  {
1324
- "type": "TextBlock",
1325
- "data": {
1326
- "title": "Title",
1327
- "description": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque minima odio soluta cupiditate pariatur, labore molestias quas necessitatibus nesciunt in praesentium accusamus provident sequi maiores autem. Voluptas quam neque iste?",
1328
- "blockVersion": "secondary-light",
1329
- "iconVersion": "small"
1330
- }
1328
+ "accordionBlockType": "TextBlock",
1329
+ "title": "Title",
1330
+ "description": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque minima odio soluta cupiditate pariatur, labore molestias quas necessitatibus nesciunt in praesentium accusamus provident sequi maiores autem. Voluptas quam neque iste?",
1331
+ "blockVersion": "secondary-light",
1332
+ "iconVersion": "small"
1331
1333
  }
1332
1334
  ]
1333
1335
  },
@@ -1335,22 +1337,18 @@
1335
1337
  "label": "Accordion label 2",
1336
1338
  "blocks": [
1337
1339
  {
1338
- "type": "TextBlock",
1339
- "data": {
1340
- "title": "Title",
1341
- "description": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque minima odio soluta cupiditate pariatur, labore molestias quas necessitatibus nesciunt in praesentium accusamus provident sequi maiores autem. Voluptas quam neque iste?",
1342
- "blockVersion": "secondary-light",
1343
- "iconVersion": "small"
1344
- }
1340
+ "accordionBlockType": "TextBlock",
1341
+ "title": "Title",
1342
+ "description": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque minima odio soluta cupiditate pariatur, labore molestias quas necessitatibus nesciunt in praesentium accusamus provident sequi maiores autem. Voluptas quam neque iste?",
1343
+ "blockVersion": "secondary-light",
1344
+ "iconVersion": "small"
1345
1345
  },
1346
1346
  {
1347
- "type": "TextBlock",
1348
- "data": {
1349
- "title": "Title",
1350
- "description": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque minima odio soluta cupiditate pariatur, labore molestias quas necessitatibus nesciunt in praesentium accusamus provident sequi maiores autem. Voluptas quam neque iste?",
1351
- "blockVersion": "secondary-light",
1352
- "iconVersion": "small"
1353
- }
1347
+ "accordionBlockType": "TextBlock",
1348
+ "title": "Title",
1349
+ "description": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque minima odio soluta cupiditate pariatur, labore molestias quas necessitatibus nesciunt in praesentium accusamus provident sequi maiores autem. Voluptas quam neque iste?",
1350
+ "blockVersion": "secondary-light",
1351
+ "iconVersion": "small"
1354
1352
  }
1355
1353
  ]
1356
1354
  },
@@ -1358,22 +1356,18 @@
1358
1356
  "label": "Accordion label 3",
1359
1357
  "blocks": [
1360
1358
  {
1361
- "type": "TextBlock",
1362
- "data": {
1363
- "title": "Title",
1364
- "description": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque minima odio soluta cupiditate pariatur, labore molestias quas necessitatibus nesciunt in praesentium accusamus provident sequi maiores autem. Voluptas quam neque iste?",
1365
- "blockVersion": "secondary-light",
1366
- "iconVersion": "small"
1367
- }
1359
+ "accordionBlockType": "TextBlock",
1360
+ "title": "Title",
1361
+ "description": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque minima odio soluta cupiditate pariatur, labore molestias quas necessitatibus nesciunt in praesentium accusamus provident sequi maiores autem. Voluptas quam neque iste?",
1362
+ "blockVersion": "secondary-light",
1363
+ "iconVersion": "small"
1368
1364
  },
1369
1365
  {
1370
- "type": "TextBlock",
1371
- "data": {
1372
- "title": "Title",
1373
- "description": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque minima odio soluta cupiditate pariatur, labore molestias quas necessitatibus nesciunt in praesentium accusamus provident sequi maiores autem. Voluptas quam neque iste?",
1374
- "blockVersion": "secondary-light",
1375
- "iconVersion": "small"
1376
- }
1366
+ "accordionBlockType": "TextBlock",
1367
+ "title": "Title",
1368
+ "description": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque minima odio soluta cupiditate pariatur, labore molestias quas necessitatibus nesciunt in praesentium accusamus provident sequi maiores autem. Voluptas quam neque iste?",
1369
+ "blockVersion": "secondary-light",
1370
+ "iconVersion": "small"
1377
1371
  }
1378
1372
  ]
1379
1373
  }
@@ -88,11 +88,11 @@ function renderBlock(
88
88
  i: number,
89
89
  ) {
90
90
  const { type } = block;
91
- if (!(type in blocksRegistry)) {
91
+ if (!(type && type in blocksRegistry)) {
92
92
  console.warn(`No block with "${type}" is registered`);
93
93
  }
94
94
 
95
- const BlockComponent = blocksRegistry[type] || Placeholder;
95
+ const BlockComponent = blocksRegistry[type || 'Placeholder'] || Placeholder;
96
96
  return blockDecorator(
97
97
  {
98
98
  blockClassName: style2className(block.style),
@@ -1,5 +1,3 @@
1
- import { BlockDef } from '../../types';
2
-
3
- export function isBlockInRegistry<T>(block: BlockDef, registry: Record<string, T>) {
4
- return block.type in registry;
1
+ export function isBlockInRegistry<T>(blockType: string | undefined, registry: Record<string, T>) {
2
+ return (blockType || '') in registry;
5
3
  }
@@ -32,6 +32,9 @@ export function normalizePage(
32
32
 
33
33
  function getMobileBlocks(blocks?: BlockDef[]) {
34
34
  return blocks
35
- ?.filter((block) => isBlockInRegistry(block, Blocks) && !block.mobile?.hidden)
35
+ ?.filter(
36
+ (block) =>
37
+ isBlockInRegistry(block?.type || block?.mobile?.type, Blocks) && !block.mobile?.hidden,
38
+ )
36
39
  .map(normalizeBlock);
37
40
  }
@@ -20,7 +20,7 @@ export const GalleryCardInner = JSX<GalleryCard>(
20
20
  {items?.length ? (
21
21
  <section className={`max-w-[308px] mt-2`} role="list">
22
22
  {items
23
- .filter((item) => item.text)
23
+ .filter((item) => item?.text)
24
24
  .map((item, i) => renderItem(item.text as string, i, version))}
25
25
  </section>
26
26
  ) : null}
@@ -1,5 +1,5 @@
1
1
  import type { BgColorVersion } from '../../model/BgColorVersion';
2
- import type { DescriptionContent } from '../../ui-kit/Description/DescriptionProps';
2
+ import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
3
3
  import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
4
4
  import type { ImageContent } from '../../ui-kit/Img/ImgProps';
5
5
  import type { AlignType } from '../BaseTile/BaseTileProps';
@@ -1,5 +1,5 @@
1
1
  import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
2
- import type { DescriptionContent } from '../../ui-kit/Description/DescriptionProps';
2
+ import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
3
3
  import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
4
4
 
5
5
  /**
@@ -1,7 +1,12 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import type { PlaceholderContent } from '../../components/Placeholder/PlaceholderContent';
2
3
  import type { UniBlockProps } from '../../types';
3
- import { Tile } from '../Tile/Tile';
4
- import type { PlaceholderContent } from './PlaceholderContent';
4
+ import { Description } from '../../ui-kit/Description/Description';
5
+ import { Heading } from '../../ui-kit/Heading/Heading';
6
+ import { BaseTile } from '../BaseTile/BaseTile';
7
+ import { getTileHeadingType } from '../BaseTile/getTileHeadingType';
8
+ import { getTileMinHeight } from '../BaseTile/getTileMinHeight';
9
+ import { getTileRightPadding } from '../BaseTile/getTileRightPadding';
5
10
 
6
11
  export interface PlaceholderProps extends PlaceholderContent, UniBlockProps {
7
12
  className?: string;
@@ -9,18 +14,35 @@ export interface PlaceholderProps extends PlaceholderContent, UniBlockProps {
9
14
 
10
15
  const GOLDEN_RATIO = 1.618;
11
16
 
12
- export const Placeholder = JSX<PlaceholderProps>(({ className = '', context, title }) => {
13
- return (
14
- <Tile
15
- className={`pr-0 min-h-0 ${className}`}
16
- context={context}
17
- title={title}
18
- description="Блок в разработке..."
19
- >
20
- <figure className="m-0">{renderShimmer()}</figure>
21
- </Tile>
22
- );
23
- });
17
+ export const Placeholder = JSX<PlaceholderProps>(
18
+ ({ className, context, title, description = 'Блок в разработке...' }) => {
19
+ return (
20
+ <section
21
+ className={`bg-white text-primary-text font-sans p-9 box-border ${className} ${getTileRightPadding(
22
+ className,
23
+ )} ${getTileMinHeight(className)} `}
24
+ >
25
+ <BaseTile
26
+ context={context}
27
+ title={
28
+ title ? (
29
+ <Heading
30
+ headingType={getTileHeadingType(className)}
31
+ title={title}
32
+ className={`whitespace-pre-wrap max-w-[600px]`}
33
+ />
34
+ ) : null
35
+ }
36
+ >
37
+ {description ? (
38
+ <Description className="mt-4 max-w-[600px]" description={description} />
39
+ ) : null}
40
+ <figure className="m-0 min-w-[600px]">{renderShimmer()}</figure>
41
+ </BaseTile>
42
+ </section>
43
+ );
44
+ },
45
+ );
24
46
 
25
47
  const renderShimmer = (size = 3) =>
26
48
  goldenSequence(100, size)
@@ -1,6 +1,7 @@
1
+ import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
1
2
  import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
2
3
 
3
4
  /**
4
5
  * @hidden
5
6
  */
6
- export type PlaceholderContent = HeadingContent;
7
+ export type PlaceholderContent = HeadingContent & DescriptionContent;
@@ -1,7 +1,7 @@
1
1
  import type { BlockVersion } from '../../model/BlockVersion';
2
2
  import type { LinkProps } from '../../model/LinkProps';
3
3
  import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
4
- import type { DescriptionContent } from '../../ui-kit/Description/DescriptionProps';
4
+ import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
5
5
  import type { HeadingContent, HeadingTypeContent } from '../../ui-kit/Heading/HeadingContent';
6
6
  import type { ImageContent } from '../../ui-kit/Img/ImgProps';
7
7
  import type { ListContent } from '../../ui-kit/List/ListContent';