@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.
- package/bin/migration-scripts/0.13.13.js +34 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +13 -21
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Calculator/CalculatorContent.d.ts +1 -3
- package/bundle/components/Carousel/Carousel.d.ts +0 -1
- package/bundle/components/Carousel/CarouselContent.d.ts +2 -0
- package/bundle/components/ContentPage/toMobileBlock.d.ts +2 -0
- package/bundle/components/ErrorBlock/ErrorBlockContent.d.ts +4 -4
- package/dist/components/Blocks.mobile.js +2 -0
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/Calculator/CalculatorContent.d.ts +1 -3
- package/dist/components/Calculator/RefinancingCalculatorForm.js +2 -3
- package/dist/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/checkRefinancingSourceBookRowCommonParams.js +0 -5
- package/dist/components/Calculator/checkRefinancingSourceBookRowCommonParams.js.map +1 -1
- package/dist/components/Calculator/getRefinancingCalculatorRateParams.js +1 -1
- package/dist/components/Calculator/getRefinancingCalculatorRateParams.js.map +1 -1
- package/dist/components/Calculator/useRefinancingCalculatorParams.js +3 -0
- package/dist/components/Calculator/useRefinancingCalculatorParams.js.map +1 -1
- package/dist/components/Carousel/Carousel.d.ts +0 -1
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/Carousel/CarouselContent.d.ts +2 -0
- package/dist/components/ContentPage/ContentPage.js +1 -1
- package/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/dist/components/ContentPage/normalizeBlock.mobile.js +3 -5
- package/dist/components/ContentPage/normalizeBlock.mobile.js.map +1 -1
- package/dist/components/ContentPage/toMobileBlock.d.ts +2 -0
- package/dist/components/ContentPage/toMobileBlock.js +12 -0
- package/dist/components/ContentPage/toMobileBlock.js.map +1 -0
- package/dist/components/ErrorBlock/ErrorBlock.js +3 -4
- package/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/dist/components/ErrorBlock/ErrorBlockContent.d.ts +4 -4
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -1
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/dist/ui-kit/Button/ButtonInner.js +1 -5
- package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Blocks.mobile.js +2 -0
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/Calculator/CalculatorContent.d.ts +1 -3
- package/lib/components/Calculator/RefinancingCalculatorForm.js +2 -3
- package/lib/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/checkRefinancingSourceBookRowCommonParams.js +0 -5
- package/lib/components/Calculator/checkRefinancingSourceBookRowCommonParams.js.map +1 -1
- package/lib/components/Calculator/getRefinancingCalculatorRateParams.js +1 -1
- package/lib/components/Calculator/getRefinancingCalculatorRateParams.js.map +1 -1
- package/lib/components/Calculator/useRefinancingCalculatorParams.js +3 -0
- package/lib/components/Calculator/useRefinancingCalculatorParams.js.map +1 -1
- package/lib/components/Carousel/Carousel.d.ts +0 -1
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/Carousel/CarouselContent.d.ts +2 -0
- package/lib/components/ContentPage/ContentPage.js +1 -1
- package/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/lib/components/ContentPage/normalizeBlock.mobile.js +3 -5
- package/lib/components/ContentPage/normalizeBlock.mobile.js.map +1 -1
- package/lib/components/ContentPage/toMobileBlock.d.ts +2 -0
- package/lib/components/ContentPage/toMobileBlock.js +9 -0
- package/lib/components/ContentPage/toMobileBlock.js.map +1 -0
- package/lib/components/ErrorBlock/ErrorBlock.fixture.mobile.d.ts +7 -0
- package/lib/components/ErrorBlock/ErrorBlock.js +3 -4
- package/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/lib/components/ErrorBlock/ErrorBlockContent.d.ts +4 -4
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -1
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/lib/ui-kit/Button/ButtonInner.js +1 -5
- package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +22 -17
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Calculator/CalculatorContent.d.ts +1 -3
- package/mobile/bundle/components/Carousel/Carousel.d.ts +0 -1
- package/mobile/bundle/components/Carousel/CarouselContent.d.ts +2 -0
- package/mobile/bundle/components/ContentPage/toMobileBlock.d.ts +2 -0
- package/mobile/bundle/components/ErrorBlock/ErrorBlockContent.d.ts +4 -4
- package/mobile/dist/components/Blocks.js +2 -0
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/Calculator/CalculatorContent.d.ts +1 -3
- package/mobile/dist/components/Calculator/RefinancingCalculatorForm.js +2 -3
- package/mobile/dist/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/checkRefinancingSourceBookRowCommonParams.js +0 -5
- package/mobile/dist/components/Calculator/checkRefinancingSourceBookRowCommonParams.js.map +1 -1
- package/mobile/dist/components/Calculator/getRefinancingCalculatorRateParams.js +1 -1
- package/mobile/dist/components/Calculator/getRefinancingCalculatorRateParams.js.map +1 -1
- package/mobile/dist/components/Calculator/useRefinancingCalculatorParams.js +3 -0
- package/mobile/dist/components/Calculator/useRefinancingCalculatorParams.js.map +1 -1
- package/mobile/dist/components/Carousel/Carousel.d.ts +0 -1
- package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
- package/mobile/dist/components/Carousel/CarouselContent.d.ts +2 -0
- package/mobile/dist/components/ContentPage/ContentPage.js +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/dist/components/ContentPage/normalizeBlock.js +3 -5
- package/mobile/dist/components/ContentPage/normalizeBlock.js.map +1 -1
- package/mobile/dist/components/ContentPage/toMobileBlock.d.ts +2 -0
- package/mobile/dist/components/ContentPage/toMobileBlock.js +12 -0
- package/mobile/dist/components/ContentPage/toMobileBlock.js.map +1 -0
- package/mobile/dist/components/ErrorBlock/ErrorBlock.js +3 -4
- package/mobile/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/mobile/dist/components/ErrorBlock/ErrorBlockContent.d.ts +4 -4
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js +1 -5
- package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/Blocks.js +2 -0
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/Calculator/CalculatorContent.d.ts +1 -3
- package/mobile/lib/components/Calculator/RefinancingCalculatorForm.js +2 -3
- package/mobile/lib/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/checkRefinancingSourceBookRowCommonParams.js +0 -5
- package/mobile/lib/components/Calculator/checkRefinancingSourceBookRowCommonParams.js.map +1 -1
- package/mobile/lib/components/Calculator/getRefinancingCalculatorRateParams.js +1 -1
- package/mobile/lib/components/Calculator/getRefinancingCalculatorRateParams.js.map +1 -1
- package/mobile/lib/components/Calculator/useRefinancingCalculatorParams.js +3 -0
- package/mobile/lib/components/Calculator/useRefinancingCalculatorParams.js.map +1 -1
- package/mobile/lib/components/Carousel/Carousel.d.ts +0 -1
- package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
- package/mobile/lib/components/Carousel/CarouselContent.d.ts +2 -0
- package/mobile/lib/components/ContentPage/ContentPage.js +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/lib/components/ContentPage/normalizeBlock.js +3 -5
- package/mobile/lib/components/ContentPage/normalizeBlock.js.map +1 -1
- package/mobile/lib/components/ContentPage/toMobileBlock.d.ts +2 -0
- package/mobile/lib/components/ContentPage/toMobileBlock.js +9 -0
- package/mobile/lib/components/ContentPage/toMobileBlock.js.map +1 -0
- package/mobile/lib/components/ErrorBlock/ErrorBlock.js +3 -4
- package/mobile/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/mobile/lib/components/ErrorBlock/ErrorBlockContent.d.ts +4 -4
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js +1 -5
- package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/src/components/Blocks.ts +2 -0
- package/mobile/src/components/Calculator/CalculatorContent.ts +1 -3
- package/mobile/src/components/Calculator/RefinancingCalculatorForm.tsx +6 -9
- package/mobile/src/components/Calculator/checkRefinancingSourceBookRowCommonParams.ts +0 -5
- package/mobile/src/components/Calculator/getRefinancingCalculatorRateParams.ts +1 -1
- package/mobile/src/components/Calculator/useRefinancingCalculatorParams.ts +8 -0
- package/mobile/src/components/Carousel/Carousel.tsx +0 -1
- package/mobile/src/components/Carousel/CarouselContent.ts +2 -0
- package/mobile/src/components/ContentPage/ContentPage.tsx +1 -1
- package/mobile/src/components/ContentPage/normalizeBlock.ts +3 -10
- package/mobile/src/components/ContentPage/toMobileBlock.ts +11 -0
- package/mobile/src/components/ErrorBlock/ErrorBlock.example.json +2 -2
- package/mobile/src/components/ErrorBlock/ErrorBlock.tsx +8 -14
- package/mobile/src/components/ErrorBlock/ErrorBlock.ui.json +1 -1
- package/mobile/src/components/ErrorBlock/ErrorBlockContent.ts +4 -4
- package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +1 -5
- package/mobile/src/ui-kit/Button/ButtonInner.tsx +2 -2
- package/package.json +1 -1
- package/src/components/Blocks.mobile.ts +2 -0
- package/src/components/Calculator/Calculator.fixture.tsx +0 -1
- package/src/components/Calculator/CalculatorContent.ts +1 -3
- package/src/components/Calculator/RefinancingCalculatorForm.tsx +6 -9
- package/src/components/Calculator/checkRefinancingSourceBookRowCommonParams.ts +0 -5
- package/src/components/Calculator/getRefinancingCalculatorRateParams.ts +1 -1
- package/src/components/Calculator/useRefinancingCalculatorParams.ts +8 -0
- package/src/components/Carousel/Carousel.tsx +0 -1
- package/src/components/Carousel/CarouselContent.ts +2 -0
- package/src/components/ContentPage/ContentPage.tsx +1 -1
- package/src/components/ContentPage/normalizeBlock.mobile.ts +3 -10
- package/src/components/ContentPage/toMobileBlock.ts +11 -0
- package/src/components/ErrorBlock/ErrorBlock.example.json +2 -2
- package/src/components/ErrorBlock/ErrorBlock.fixture.mobile.tsx +52 -0
- package/src/components/ErrorBlock/ErrorBlock.fixture.tsx +4 -4
- package/src/components/ErrorBlock/ErrorBlock.tsx +8 -14
- package/src/components/ErrorBlock/ErrorBlock.ui.json +1 -1
- package/src/components/ErrorBlock/ErrorBlockContent.ts +4 -4
- package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +1 -5
- package/src/ui-kit/Button/ButtonInner.tsx +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
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
|
-
|
|
11
|
+
contentType: 'Image';
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* @title Код ошибки
|
|
16
16
|
*/
|
|
17
17
|
export type ErrorCodeDef = {
|
|
18
|
-
|
|
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
|
-
|
|
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
|
-
|
|
37
|
+
);
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
const isWithText = ({ text, aboveText, appendLeft }: ButtonProps) =>
|