@redneckz/wildless-cms-uni-blocks 0.13.16 → 0.13.18

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 (169) hide show
  1. package/bin/migration-scripts/0.13.13.js +34 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +13 -21
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/Calculator/CalculatorContent.d.ts +1 -3
  6. package/bundle/components/Carousel/Carousel.d.ts +0 -1
  7. package/bundle/components/Carousel/CarouselContent.d.ts +2 -0
  8. package/bundle/components/ContentPage/toMobileBlock.d.ts +2 -0
  9. package/bundle/components/ErrorBlock/ErrorBlockContent.d.ts +4 -4
  10. package/dist/components/Blocks.mobile.js +2 -0
  11. package/dist/components/Blocks.mobile.js.map +1 -1
  12. package/dist/components/Calculator/CalculatorContent.d.ts +1 -3
  13. package/dist/components/Calculator/RefinancingCalculatorForm.js +2 -3
  14. package/dist/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
  15. package/dist/components/Calculator/checkRefinancingSourceBookRowCommonParams.js +0 -5
  16. package/dist/components/Calculator/checkRefinancingSourceBookRowCommonParams.js.map +1 -1
  17. package/dist/components/Calculator/getRefinancingCalculatorRateParams.js +1 -1
  18. package/dist/components/Calculator/getRefinancingCalculatorRateParams.js.map +1 -1
  19. package/dist/components/Calculator/useRefinancingCalculatorParams.js +3 -0
  20. package/dist/components/Calculator/useRefinancingCalculatorParams.js.map +1 -1
  21. package/dist/components/Carousel/Carousel.d.ts +0 -1
  22. package/dist/components/Carousel/Carousel.js.map +1 -1
  23. package/dist/components/Carousel/CarouselContent.d.ts +2 -0
  24. package/dist/components/ContentPage/ContentPage.js +1 -1
  25. package/dist/components/ContentPage/ContentPage.js.map +1 -1
  26. package/dist/components/ContentPage/normalizeBlock.mobile.js +3 -5
  27. package/dist/components/ContentPage/normalizeBlock.mobile.js.map +1 -1
  28. package/dist/components/ContentPage/toMobileBlock.d.ts +2 -0
  29. package/dist/components/ContentPage/toMobileBlock.js +12 -0
  30. package/dist/components/ContentPage/toMobileBlock.js.map +1 -0
  31. package/dist/components/ErrorBlock/ErrorBlock.js +3 -4
  32. package/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
  33. package/dist/components/ErrorBlock/ErrorBlockContent.d.ts +4 -4
  34. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -1
  35. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  36. package/dist/ui-kit/Button/ButtonInner.js +1 -5
  37. package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  38. package/lib/common.css +1 -1
  39. package/lib/components/Blocks.mobile.js +2 -0
  40. package/lib/components/Blocks.mobile.js.map +1 -1
  41. package/lib/components/Calculator/CalculatorContent.d.ts +1 -3
  42. package/lib/components/Calculator/RefinancingCalculatorForm.js +2 -3
  43. package/lib/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
  44. package/lib/components/Calculator/checkRefinancingSourceBookRowCommonParams.js +0 -5
  45. package/lib/components/Calculator/checkRefinancingSourceBookRowCommonParams.js.map +1 -1
  46. package/lib/components/Calculator/getRefinancingCalculatorRateParams.js +1 -1
  47. package/lib/components/Calculator/getRefinancingCalculatorRateParams.js.map +1 -1
  48. package/lib/components/Calculator/useRefinancingCalculatorParams.js +3 -0
  49. package/lib/components/Calculator/useRefinancingCalculatorParams.js.map +1 -1
  50. package/lib/components/Carousel/Carousel.d.ts +0 -1
  51. package/lib/components/Carousel/Carousel.js.map +1 -1
  52. package/lib/components/Carousel/CarouselContent.d.ts +2 -0
  53. package/lib/components/ContentPage/ContentPage.js +1 -1
  54. package/lib/components/ContentPage/ContentPage.js.map +1 -1
  55. package/lib/components/ContentPage/normalizeBlock.mobile.js +3 -5
  56. package/lib/components/ContentPage/normalizeBlock.mobile.js.map +1 -1
  57. package/lib/components/ContentPage/toMobileBlock.d.ts +2 -0
  58. package/lib/components/ContentPage/toMobileBlock.js +9 -0
  59. package/lib/components/ContentPage/toMobileBlock.js.map +1 -0
  60. package/lib/components/ErrorBlock/ErrorBlock.fixture.mobile.d.ts +7 -0
  61. package/lib/components/ErrorBlock/ErrorBlock.js +3 -4
  62. package/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
  63. package/lib/components/ErrorBlock/ErrorBlockContent.d.ts +4 -4
  64. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -1
  65. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  66. package/lib/ui-kit/Button/ButtonInner.js +1 -5
  67. package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  68. package/mobile/bundle/bundle.umd.js +22 -17
  69. package/mobile/bundle/bundle.umd.min.js +1 -1
  70. package/mobile/bundle/components/Calculator/CalculatorContent.d.ts +1 -3
  71. package/mobile/bundle/components/Carousel/Carousel.d.ts +0 -1
  72. package/mobile/bundle/components/Carousel/CarouselContent.d.ts +2 -0
  73. package/mobile/bundle/components/ContentPage/toMobileBlock.d.ts +2 -0
  74. package/mobile/bundle/components/ErrorBlock/ErrorBlockContent.d.ts +4 -4
  75. package/mobile/dist/components/Blocks.js +2 -0
  76. package/mobile/dist/components/Blocks.js.map +1 -1
  77. package/mobile/dist/components/Calculator/CalculatorContent.d.ts +1 -3
  78. package/mobile/dist/components/Calculator/RefinancingCalculatorForm.js +2 -3
  79. package/mobile/dist/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
  80. package/mobile/dist/components/Calculator/checkRefinancingSourceBookRowCommonParams.js +0 -5
  81. package/mobile/dist/components/Calculator/checkRefinancingSourceBookRowCommonParams.js.map +1 -1
  82. package/mobile/dist/components/Calculator/getRefinancingCalculatorRateParams.js +1 -1
  83. package/mobile/dist/components/Calculator/getRefinancingCalculatorRateParams.js.map +1 -1
  84. package/mobile/dist/components/Calculator/useRefinancingCalculatorParams.js +3 -0
  85. package/mobile/dist/components/Calculator/useRefinancingCalculatorParams.js.map +1 -1
  86. package/mobile/dist/components/Carousel/Carousel.d.ts +0 -1
  87. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  88. package/mobile/dist/components/Carousel/CarouselContent.d.ts +2 -0
  89. package/mobile/dist/components/ContentPage/ContentPage.js +1 -1
  90. package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
  91. package/mobile/dist/components/ContentPage/normalizeBlock.js +3 -5
  92. package/mobile/dist/components/ContentPage/normalizeBlock.js.map +1 -1
  93. package/mobile/dist/components/ContentPage/toMobileBlock.d.ts +2 -0
  94. package/mobile/dist/components/ContentPage/toMobileBlock.js +12 -0
  95. package/mobile/dist/components/ContentPage/toMobileBlock.js.map +1 -0
  96. package/mobile/dist/components/ErrorBlock/ErrorBlock.js +3 -4
  97. package/mobile/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
  98. package/mobile/dist/components/ErrorBlock/ErrorBlockContent.d.ts +4 -4
  99. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -1
  100. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  101. package/mobile/dist/ui-kit/Button/ButtonInner.js +1 -5
  102. package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  103. package/mobile/lib/common.css +1 -1
  104. package/mobile/lib/components/Blocks.js +2 -0
  105. package/mobile/lib/components/Blocks.js.map +1 -1
  106. package/mobile/lib/components/Calculator/CalculatorContent.d.ts +1 -3
  107. package/mobile/lib/components/Calculator/RefinancingCalculatorForm.js +2 -3
  108. package/mobile/lib/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
  109. package/mobile/lib/components/Calculator/checkRefinancingSourceBookRowCommonParams.js +0 -5
  110. package/mobile/lib/components/Calculator/checkRefinancingSourceBookRowCommonParams.js.map +1 -1
  111. package/mobile/lib/components/Calculator/getRefinancingCalculatorRateParams.js +1 -1
  112. package/mobile/lib/components/Calculator/getRefinancingCalculatorRateParams.js.map +1 -1
  113. package/mobile/lib/components/Calculator/useRefinancingCalculatorParams.js +3 -0
  114. package/mobile/lib/components/Calculator/useRefinancingCalculatorParams.js.map +1 -1
  115. package/mobile/lib/components/Carousel/Carousel.d.ts +0 -1
  116. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  117. package/mobile/lib/components/Carousel/CarouselContent.d.ts +2 -0
  118. package/mobile/lib/components/ContentPage/ContentPage.js +1 -1
  119. package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
  120. package/mobile/lib/components/ContentPage/normalizeBlock.js +3 -5
  121. package/mobile/lib/components/ContentPage/normalizeBlock.js.map +1 -1
  122. package/mobile/lib/components/ContentPage/toMobileBlock.d.ts +2 -0
  123. package/mobile/lib/components/ContentPage/toMobileBlock.js +9 -0
  124. package/mobile/lib/components/ContentPage/toMobileBlock.js.map +1 -0
  125. package/mobile/lib/components/ErrorBlock/ErrorBlock.js +3 -4
  126. package/mobile/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
  127. package/mobile/lib/components/ErrorBlock/ErrorBlockContent.d.ts +4 -4
  128. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -1
  129. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  130. package/mobile/lib/ui-kit/Button/ButtonInner.js +1 -5
  131. package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  132. package/mobile/src/components/Blocks.ts +2 -0
  133. package/mobile/src/components/Calculator/CalculatorContent.ts +1 -3
  134. package/mobile/src/components/Calculator/RefinancingCalculatorForm.tsx +6 -9
  135. package/mobile/src/components/Calculator/checkRefinancingSourceBookRowCommonParams.ts +0 -5
  136. package/mobile/src/components/Calculator/getRefinancingCalculatorRateParams.ts +1 -1
  137. package/mobile/src/components/Calculator/useRefinancingCalculatorParams.ts +8 -0
  138. package/mobile/src/components/Carousel/Carousel.tsx +0 -1
  139. package/mobile/src/components/Carousel/CarouselContent.ts +2 -0
  140. package/mobile/src/components/ContentPage/ContentPage.tsx +1 -1
  141. package/mobile/src/components/ContentPage/normalizeBlock.ts +3 -10
  142. package/mobile/src/components/ContentPage/toMobileBlock.ts +11 -0
  143. package/mobile/src/components/ErrorBlock/ErrorBlock.example.json +2 -2
  144. package/mobile/src/components/ErrorBlock/ErrorBlock.tsx +8 -14
  145. package/mobile/src/components/ErrorBlock/ErrorBlock.ui.json +1 -1
  146. package/mobile/src/components/ErrorBlock/ErrorBlockContent.ts +4 -4
  147. package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +1 -5
  148. package/mobile/src/ui-kit/Button/ButtonInner.tsx +2 -2
  149. package/package.json +1 -1
  150. package/src/components/Blocks.mobile.ts +2 -0
  151. package/src/components/Calculator/Calculator.fixture.tsx +0 -1
  152. package/src/components/Calculator/CalculatorContent.ts +1 -3
  153. package/src/components/Calculator/RefinancingCalculatorForm.tsx +6 -9
  154. package/src/components/Calculator/checkRefinancingSourceBookRowCommonParams.ts +0 -5
  155. package/src/components/Calculator/getRefinancingCalculatorRateParams.ts +1 -1
  156. package/src/components/Calculator/useRefinancingCalculatorParams.ts +8 -0
  157. package/src/components/Carousel/Carousel.tsx +0 -1
  158. package/src/components/Carousel/CarouselContent.ts +2 -0
  159. package/src/components/ContentPage/ContentPage.tsx +1 -1
  160. package/src/components/ContentPage/normalizeBlock.mobile.ts +3 -10
  161. package/src/components/ContentPage/toMobileBlock.ts +11 -0
  162. package/src/components/ErrorBlock/ErrorBlock.example.json +2 -2
  163. package/src/components/ErrorBlock/ErrorBlock.fixture.mobile.tsx +52 -0
  164. package/src/components/ErrorBlock/ErrorBlock.fixture.tsx +4 -4
  165. package/src/components/ErrorBlock/ErrorBlock.tsx +8 -14
  166. package/src/components/ErrorBlock/ErrorBlock.ui.json +1 -1
  167. package/src/components/ErrorBlock/ErrorBlockContent.ts +4 -4
  168. package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +1 -5
  169. package/src/ui-kit/Button/ButtonInner.tsx +2 -2
@@ -1,4 +1,4 @@
1
- import type { SubtitleProps, TitleProps } from '../../model/HeadlineType';
1
+ import type { DescriptionProps, TitleProps } from '../../model/HeadlineType';
2
2
  import type { UniBlockContent } from '../../model/JSXBlock';
3
3
  import type { ImageContent } from '../../ui-kit/Img/ImgProps';
4
4
  import type { ButtonContent } from '../../ui-kit/Button/ButtonContent';
@@ -8,14 +8,14 @@ import type { ButtonContent } from '../../ui-kit/Button/ButtonContent';
8
8
  */
9
9
  export type ErrorImageDef = ImageContent & {
10
10
  /** @default Image */
11
- errorContentType: 'Image';
11
+ contentType: 'Image';
12
12
  };
13
13
 
14
14
  /**
15
15
  * @title Код ошибки
16
16
  */
17
17
  export type ErrorCodeDef = {
18
- errorContentType: 'Code';
18
+ contentType: 'Code';
19
19
  code?: ErrorType;
20
20
  };
21
21
 
@@ -42,7 +42,7 @@ export type ErrorType =
42
42
  */
43
43
  export type ErrorBlockContent = UniBlockContent &
44
44
  TitleProps &
45
- SubtitleProps & {
45
+ DescriptionProps & {
46
46
  error?: ErrorContentDef;
47
47
  /** @title Кнопка */
48
48
  button?: ButtonContent;
@@ -71,11 +71,7 @@ export const ExchangeCurrencyCalculator = JSX<ExchangeCurrencyCalculatorProps>(
71
71
  calcState.selectSell,
72
72
  ),
73
73
  })}
74
- {button?.text ? (
75
- <Button className="py-4 px-9" version={button?.version} {...button}>
76
- {button.text}
77
- </Button>
78
- ) : null}
74
+ {button?.text ? <Button text={button.text} version={button?.version} {...button} /> : null}
79
75
  </div>
80
76
  );
81
77
  },
@@ -30,11 +30,11 @@ const getButtonStyle = (props: ButtonContent) => {
30
30
 
31
31
  const withTextStyle = `${aboveText ? 'py-2.5 px-9' : 'py-4 px-9'}`;
32
32
 
33
- return [
33
+ return style(
34
34
  'group/btn items-center justify-center',
35
35
  isWithText(props) ? withTextStyle : 'h-12 w-12',
36
36
  rounded ? 'rounded-full' : '',
37
- ].join(' ');
37
+ );
38
38
  };
39
39
 
40
40
  const isWithText = ({ text, aboveText, appendLeft }: ButtonProps) =>