@redneckz/wildless-cms-uni-blocks 0.14.832 → 0.14.834
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.14.828.js → 0.14.832.js} +3 -1
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +29 -80
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +0 -5
- package/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +5 -0
- package/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +1 -2
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +0 -5
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +5 -10
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +5 -0
- package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.js +7 -0
- package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +1 -2
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js +4 -4
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/dist/components/Blocks.js +0 -6
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Blocks.mobile.js +0 -4
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlock.js +1 -1
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/retail/content.js +10 -0
- package/dist/retail/content.js.map +1 -1
- package/dist/retail/utils/calculateInputs.js +2 -0
- package/dist/retail/utils/calculateInputs.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +0 -5
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -6
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +5 -0
- package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.js +6 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +1 -2
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js +1 -1
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/lib/components/Blocks.js +0 -6
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Blocks.mobile.js +0 -4
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.fixture.d.ts +0 -2
- package/lib/components/ProductBlock/ProductBlock.js +1 -1
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/retail/content.js +10 -0
- package/lib/retail/content.js.map +1 -1
- package/lib/retail/utils/calculateInputs.js +2 -0
- package/lib/retail/utils/calculateInputs.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +29 -40
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +0 -5
- package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +5 -0
- package/mobile/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +1 -2
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +0 -5
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +5 -10
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +5 -0
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.js +7 -0
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +1 -2
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js +4 -4
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/dist/components/Blocks.js +0 -4
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlock.js +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/dist/retail/content.js +10 -0
- package/mobile/dist/retail/content.js.map +1 -1
- package/mobile/dist/retail/utils/calculateInputs.js +2 -0
- package/mobile/dist/retail/utils/calculateInputs.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +0 -5
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -6
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +5 -0
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.js +6 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +1 -2
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/lib/components/Blocks.js +0 -4
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlock.js +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/lib/retail/content.js +10 -0
- package/mobile/lib/retail/content.js.map +1 -1
- package/mobile/lib/retail/utils/calculateInputs.js +2 -0
- package/mobile/lib/retail/utils/calculateInputs.js.map +1 -1
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +5 -7
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +6 -0
- package/mobile/src/components/ApplicationLeadForm/useInitApplicationLead.ts +1 -2
- package/mobile/src/components/Blocks.ts +0 -4
- package/mobile/src/components/ProductBlock/ProductBlock.example.json +1 -11
- package/mobile/src/components/ProductBlock/ProductBlock.tsx +0 -1
- package/mobile/src/retail/content.tsx +10 -0
- package/mobile/src/retail/utils/calculateInputs.ts +4 -0
- package/package.json +1 -1
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +5 -7
- package/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +6 -0
- package/src/components/ApplicationLeadForm/useInitApplicationLead.ts +1 -2
- package/src/components/Blocks.mobile.ts +0 -4
- package/src/components/Blocks.ts +0 -6
- package/src/components/ProductBlock/ProductBlock.example.json +1 -11
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +0 -28
- package/src/components/ProductBlock/ProductBlock.tsx +0 -1
- package/src/icons/IconName.ts +4 -4
- package/src/retail/content.tsx +10 -0
- package/src/retail/utils/calculateInputs.ts +4 -0
- package/bundle/components/InvestmentInfo/InvestmentInfo.d.ts +0 -5
- package/bundle/components/InvestmentInfo/InvestmentInfoContent.d.ts +0 -43
- package/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +0 -5
- package/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +0 -18
- package/bundle/components/UnitBlock/UnitBlock.d.ts +0 -6
- package/bundle/components/UnitBlock/UnitBlockContent.d.ts +0 -6
- package/dist/components/InvestmentInfo/InvestmentInfo.d.ts +0 -5
- package/dist/components/InvestmentInfo/InvestmentInfo.js +0 -47
- package/dist/components/InvestmentInfo/InvestmentInfo.js.map +0 -1
- package/dist/components/InvestmentInfo/InvestmentInfoContent.d.ts +0 -43
- package/dist/components/InvestmentInfo/InvestmentInfoContent.js +0 -2
- package/dist/components/InvestmentInfo/InvestmentInfoContent.js.map +0 -1
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +0 -5
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +0 -26
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +0 -1
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +0 -18
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js +0 -2
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js.map +0 -1
- package/dist/components/UnitBlock/UnitBlock.d.ts +0 -6
- package/dist/components/UnitBlock/UnitBlock.js +0 -11
- package/dist/components/UnitBlock/UnitBlock.js.map +0 -1
- package/dist/components/UnitBlock/UnitBlockContent.d.ts +0 -6
- package/dist/components/UnitBlock/UnitBlockContent.js +0 -2
- package/dist/components/UnitBlock/UnitBlockContent.js.map +0 -1
- package/lib/components/InvestmentInfo/InvestmentInfo.d.ts +0 -5
- package/lib/components/InvestmentInfo/InvestmentInfo.fixture.d.ts +0 -7
- package/lib/components/InvestmentInfo/InvestmentInfo.js +0 -45
- package/lib/components/InvestmentInfo/InvestmentInfo.js.map +0 -1
- package/lib/components/InvestmentInfo/InvestmentInfoContent.d.ts +0 -43
- package/lib/components/InvestmentInfo/InvestmentInfoContent.js +0 -2
- package/lib/components/InvestmentInfo/InvestmentInfoContent.js.map +0 -1
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +0 -5
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.d.ts +0 -5
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.mobile.d.ts +0 -5
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +0 -24
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +0 -1
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +0 -18
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js +0 -2
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js.map +0 -1
- package/lib/components/UnitBlock/UnitBlock.d.ts +0 -6
- package/lib/components/UnitBlock/UnitBlock.fixture.d.ts +0 -6
- package/lib/components/UnitBlock/UnitBlock.fixture.mobile.d.ts +0 -6
- package/lib/components/UnitBlock/UnitBlock.js +0 -9
- package/lib/components/UnitBlock/UnitBlock.js.map +0 -1
- package/lib/components/UnitBlock/UnitBlockContent.d.ts +0 -6
- package/lib/components/UnitBlock/UnitBlockContent.js +0 -2
- package/lib/components/UnitBlock/UnitBlockContent.js.map +0 -1
- package/mobile/bundle/components/InvestmentInfo/InvestmentInfo.d.ts +0 -5
- package/mobile/bundle/components/InvestmentInfo/InvestmentInfoContent.d.ts +0 -43
- package/mobile/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +0 -5
- package/mobile/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +0 -18
- package/mobile/bundle/components/UnitBlock/UnitBlock.d.ts +0 -6
- package/mobile/bundle/components/UnitBlock/UnitBlockContent.d.ts +0 -6
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.d.ts +0 -5
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js +0 -47
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js.map +0 -1
- package/mobile/dist/components/InvestmentInfo/InvestmentInfoContent.d.ts +0 -43
- package/mobile/dist/components/InvestmentInfo/InvestmentInfoContent.js +0 -2
- package/mobile/dist/components/InvestmentInfo/InvestmentInfoContent.js.map +0 -1
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +0 -5
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +0 -26
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +0 -1
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +0 -18
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js +0 -2
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js.map +0 -1
- package/mobile/dist/components/UnitBlock/UnitBlock.d.ts +0 -6
- package/mobile/dist/components/UnitBlock/UnitBlock.js +0 -11
- package/mobile/dist/components/UnitBlock/UnitBlock.js.map +0 -1
- package/mobile/dist/components/UnitBlock/UnitBlockContent.d.ts +0 -6
- package/mobile/dist/components/UnitBlock/UnitBlockContent.js +0 -2
- package/mobile/dist/components/UnitBlock/UnitBlockContent.js.map +0 -1
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.d.ts +0 -5
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js +0 -45
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js.map +0 -1
- package/mobile/lib/components/InvestmentInfo/InvestmentInfoContent.d.ts +0 -43
- package/mobile/lib/components/InvestmentInfo/InvestmentInfoContent.js +0 -2
- package/mobile/lib/components/InvestmentInfo/InvestmentInfoContent.js.map +0 -1
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +0 -5
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +0 -24
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +0 -1
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +0 -18
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js +0 -2
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js.map +0 -1
- package/mobile/lib/components/UnitBlock/UnitBlock.d.ts +0 -6
- package/mobile/lib/components/UnitBlock/UnitBlock.js +0 -9
- package/mobile/lib/components/UnitBlock/UnitBlock.js.map +0 -1
- package/mobile/lib/components/UnitBlock/UnitBlockContent.d.ts +0 -6
- package/mobile/lib/components/UnitBlock/UnitBlockContent.js +0 -2
- package/mobile/lib/components/UnitBlock/UnitBlockContent.js.map +0 -1
- package/mobile/src/components/InvestmentInfo/InvestmentInfo.example.json +0 -53
- package/mobile/src/components/InvestmentInfo/InvestmentInfo.tsx +0 -131
- package/mobile/src/components/InvestmentInfo/InvestmentInfo.ui.json +0 -13
- package/mobile/src/components/InvestmentInfo/InvestmentInfoContent.ts +0 -51
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json +0 -14
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +0 -94
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.ui.json +0 -24
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.ts +0 -22
- package/mobile/src/components/UnitBlock/UnitBlock.example.json +0 -9
- package/mobile/src/components/UnitBlock/UnitBlock.tsx +0 -17
- package/mobile/src/components/UnitBlock/UnitBlock.ui.json +0 -1
- package/mobile/src/components/UnitBlock/UnitBlockContent.ts +0 -7
- package/src/components/InvestmentInfo/InvestmentInfo.example.json +0 -53
- package/src/components/InvestmentInfo/InvestmentInfo.fixture.tsx +0 -109
- package/src/components/InvestmentInfo/InvestmentInfo.tsx +0 -131
- package/src/components/InvestmentInfo/InvestmentInfo.ui.json +0 -13
- package/src/components/InvestmentInfo/InvestmentInfoContent.ts +0 -51
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json +0 -14
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.mobile.tsx +0 -47
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.tsx +0 -47
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +0 -94
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.ui.json +0 -24
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.ts +0 -22
- package/src/components/UnitBlock/UnitBlock.example.json +0 -9
- package/src/components/UnitBlock/UnitBlock.fixture.mobile.tsx +0 -27
- package/src/components/UnitBlock/UnitBlock.fixture.tsx +0 -27
- package/src/components/UnitBlock/UnitBlock.tsx +0 -17
- package/src/components/UnitBlock/UnitBlock.ui.json +0 -1
- package/src/components/UnitBlock/UnitBlockContent.ts +0 -7
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { type TitleProps } from '../../model/HeadlineType';
|
|
2
|
-
import { type IconProps } from '../../model/Picture';
|
|
3
|
-
import { type LinkButtonContent } from '../../ui-kit/LinkButton/LinkButtonContent';
|
|
4
|
-
import { type RichTextProps } from '../../ui-kit/RichText/RichTextProps';
|
|
5
|
-
import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
6
|
-
/**
|
|
7
|
-
* @title Блок с информацией о представительстве
|
|
8
|
-
*/
|
|
9
|
-
export declare type RepresentativeOfficeInfoContent = UniBlockContent & TitleProps & RichTextProps & IconProps & {
|
|
10
|
-
/** @title Адрес */
|
|
11
|
-
address?: string;
|
|
12
|
-
/** @title Телефон (факс) */
|
|
13
|
-
telephone?: string;
|
|
14
|
-
/** @title E-mail */
|
|
15
|
-
email?: string;
|
|
16
|
-
/** @title Кнопка */
|
|
17
|
-
button?: LinkButtonContent;
|
|
18
|
-
};
|
package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RepresentativeOfficeInfoContent.js","sourceRoot":"","sources":["../../../src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
2
|
-
import { type UnitBlockContent } from './UnitBlockContent';
|
|
3
|
-
interface UnitBlockProps extends UnitBlockContent, UniBlockProps {
|
|
4
|
-
}
|
|
5
|
-
export declare const UnitBlock: import("@redneckz/uni-jsx").UNIComponent<UnitBlockProps, any, any>;
|
|
6
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
|
|
4
|
-
import { Unit } from '../../ui-kit/Unit/Unit.js';
|
|
5
|
-
export const UnitBlock = JSX((props) => {
|
|
6
|
-
const { prefix, unit, suffix, ...rest } = props;
|
|
7
|
-
return (_jsx(BlockWrapper, { defaultPadding: "p-0", ...rest, children: _jsx(Unit, { prefix: prefix, unit: unit, suffix: suffix }) }));
|
|
8
|
-
});
|
|
9
|
-
//# sourceMappingURL=UnitBlock.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UnitBlock.js","sourceRoot":"","sources":["../../../src/components/UnitBlock/UnitBlock.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAM9C,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAiB,CAAC,KAAK,EAAE,EAAE;IACrD,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAEhD,OAAO,CACL,KAAC,YAAY,IAAC,cAAc,EAAC,KAAK,KAAK,IAAI,YACzC,KAAC,IAAI,IAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,GAAI,GACvC,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UnitBlockContent.js","sourceRoot":"","sources":["../../../src/components/UnitBlock/UnitBlockContent.ts"],"names":[],"mappings":""}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"content": {
|
|
3
|
-
"version": "primary",
|
|
4
|
-
"padding": "",
|
|
5
|
-
"__html": "<ul><li>Пункт 1</li><li>Пункт 2</li><li>Пункт 3</li></ul>",
|
|
6
|
-
"isDotted": true,
|
|
7
|
-
"investmentZeroColumn": {
|
|
8
|
-
"title": "Название 1"
|
|
9
|
-
},
|
|
10
|
-
"investmentColumns": [
|
|
11
|
-
{
|
|
12
|
-
"title": "Название 2",
|
|
13
|
-
"cells": [
|
|
14
|
-
{
|
|
15
|
-
"text": "Ячейка 2-1",
|
|
16
|
-
"cellColor": "green-dark",
|
|
17
|
-
"cellSize": "S"
|
|
18
|
-
}
|
|
19
|
-
]
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"title": "Название 3",
|
|
23
|
-
"cells": [
|
|
24
|
-
{
|
|
25
|
-
"text": "Ячейка 3-1",
|
|
26
|
-
"cellColor": "green-dark",
|
|
27
|
-
"cellSize": "S"
|
|
28
|
-
}
|
|
29
|
-
]
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"title": "Название 4",
|
|
33
|
-
"cells": [
|
|
34
|
-
{
|
|
35
|
-
"text": "Ячейка 4-1",
|
|
36
|
-
"cellColor": "green-dark",
|
|
37
|
-
"cellSize": "L"
|
|
38
|
-
}
|
|
39
|
-
]
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"title": "Название 5",
|
|
43
|
-
"cells": [
|
|
44
|
-
{
|
|
45
|
-
"text": "Ячейка 5-1",
|
|
46
|
-
"cellColor": "green-dark",
|
|
47
|
-
"cellSize": "XL"
|
|
48
|
-
}
|
|
49
|
-
]
|
|
50
|
-
}
|
|
51
|
-
]
|
|
52
|
-
}
|
|
53
|
-
}
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
3
|
-
import { RichText } from '../../ui-kit/RichText/RichText';
|
|
4
|
-
import { Text } from '../../ui-kit/Text/Text';
|
|
5
|
-
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
6
|
-
import { joinList } from '../../utils/joinList';
|
|
7
|
-
import {
|
|
8
|
-
type InvestmentCell,
|
|
9
|
-
type InvestmentCellColor,
|
|
10
|
-
type InvestmentCellSize,
|
|
11
|
-
type InvestmentColumn,
|
|
12
|
-
type InvestmentInfoContent,
|
|
13
|
-
type InvestmentZeroColumn,
|
|
14
|
-
} from './InvestmentInfoContent';
|
|
15
|
-
|
|
16
|
-
const investmentCellColorMap: Record<InvestmentCellColor, string> = {
|
|
17
|
-
yellow: 'bg-yellow',
|
|
18
|
-
green: 'bg-green',
|
|
19
|
-
'green-light': 'bg-green-light',
|
|
20
|
-
'green-dark': 'bg-green-dark',
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
const investmentCellSizeMap: Record<InvestmentCellSize, string> = {
|
|
24
|
-
XS: 'h-10',
|
|
25
|
-
S: 'h-16',
|
|
26
|
-
M: 'h-24',
|
|
27
|
-
L: 'h-32',
|
|
28
|
-
XL: 'h-52',
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
export interface InvestmentInfoProps extends InvestmentInfoContent, UniBlockProps {}
|
|
32
|
-
|
|
33
|
-
export const InvestmentInfo = JSX<InvestmentInfoProps>((props) => {
|
|
34
|
-
const {
|
|
35
|
-
className = '',
|
|
36
|
-
__html,
|
|
37
|
-
isDotted,
|
|
38
|
-
investmentZeroColumn,
|
|
39
|
-
investmentColumns,
|
|
40
|
-
...rest
|
|
41
|
-
} = props;
|
|
42
|
-
const columns = investmentColumns ? [...investmentColumns] : [];
|
|
43
|
-
if (investmentZeroColumn) {
|
|
44
|
-
columns.unshift(investmentZeroColumn);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
return (
|
|
48
|
-
<BlockWrapper className={className} defaultPadding="p-4xl" {...rest}>
|
|
49
|
-
<div className="container text-m font-light space-y-4xl">
|
|
50
|
-
{columns?.length ? (
|
|
51
|
-
<div>
|
|
52
|
-
<div className="flex items-end relative pl-3xl pr-lg text-white">
|
|
53
|
-
{joinList(<div className="w-px h-4 bg-gray" />)(columns.map(renderInvestmentColumn))}
|
|
54
|
-
<div className="absolute right-3xl w-px h-4 bg-gray" />
|
|
55
|
-
</div>
|
|
56
|
-
<div className="border-t border-gray -mt-xs mx-3xl" />
|
|
57
|
-
<div className="flex justify-between text-primary-text mt-s -mx-5xl">
|
|
58
|
-
{columns.map(renderInvestmentColumnTitle)}
|
|
59
|
-
</div>
|
|
60
|
-
</div>
|
|
61
|
-
) : null}
|
|
62
|
-
{__html ? (
|
|
63
|
-
<div className="max-w-2xl font-light text-base">
|
|
64
|
-
<RichText __html={__html} isDotted={isDotted} itemSize="list-s" />
|
|
65
|
-
</div>
|
|
66
|
-
) : null}
|
|
67
|
-
</div>
|
|
68
|
-
</BlockWrapper>
|
|
69
|
-
);
|
|
70
|
-
});
|
|
71
|
-
|
|
72
|
-
const renderInvestmentColumn = (
|
|
73
|
-
column: InvestmentColumn | InvestmentZeroColumn,
|
|
74
|
-
i: number,
|
|
75
|
-
arr: Array<InvestmentColumn>,
|
|
76
|
-
) => {
|
|
77
|
-
const isSecondColumn = i === 1;
|
|
78
|
-
const isLastColumn = i === arr.length - 1;
|
|
79
|
-
const reversedCells = column.cells?.reverse() || [];
|
|
80
|
-
|
|
81
|
-
return (
|
|
82
|
-
<div
|
|
83
|
-
key={`column_${i}`}
|
|
84
|
-
className={`${getColumnClasses(isSecondColumn, isLastColumn, column.cells)}`}
|
|
85
|
-
>
|
|
86
|
-
{reversedCells.length ? (
|
|
87
|
-
<div
|
|
88
|
-
className={`w-full ${
|
|
89
|
-
isLastColumn ? 'border-4 border-green-more-dark p-1.5 min-w-72' : ''
|
|
90
|
-
}`}
|
|
91
|
-
>
|
|
92
|
-
{reversedCells.map(renderInvestmentCell)}
|
|
93
|
-
</div>
|
|
94
|
-
) : null}
|
|
95
|
-
</div>
|
|
96
|
-
);
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
const getColumnClasses = (
|
|
100
|
-
isSecondColumn: boolean,
|
|
101
|
-
isLastColumn: boolean,
|
|
102
|
-
cells: InvestmentCell[] = [],
|
|
103
|
-
): string =>
|
|
104
|
-
[
|
|
105
|
-
cells.length ? 'flex-1' : 'flex-0',
|
|
106
|
-
cells.length && !isSecondColumn && !isLastColumn ? 'pl-s' : '',
|
|
107
|
-
cells.length && !isLastColumn ? 'pr-s pb-3xl' : 'pb-xl',
|
|
108
|
-
].join(' ');
|
|
109
|
-
|
|
110
|
-
const renderInvestmentCell = (cell: InvestmentCell, i: number) => {
|
|
111
|
-
const cellSize = cell.cellSize || 'XS';
|
|
112
|
-
const cellColor = cell.cellColor || 'green';
|
|
113
|
-
|
|
114
|
-
return cell.text ? (
|
|
115
|
-
<div
|
|
116
|
-
key={`cell_${i}`}
|
|
117
|
-
className={`flex-1 flex items-center justify-center relative py-xs ${
|
|
118
|
-
investmentCellSizeMap[cellSize]
|
|
119
|
-
} ${investmentCellColorMap[cellColor]} ${cellSize === 'XS' ? 'px-s' : 'px-5xl'}`}
|
|
120
|
-
>
|
|
121
|
-
<Text align="text-center">{cell.text}</Text>
|
|
122
|
-
</div>
|
|
123
|
-
) : null;
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
const renderInvestmentColumnTitle = (column: InvestmentColumn | InvestmentZeroColumn, i: number) =>
|
|
127
|
-
column?.title ? (
|
|
128
|
-
<div key={`title_${i}`} className="flex-1 max-w-44 text-center px-xs last:pr-4xl last:max-w-52">
|
|
129
|
-
{column.title}
|
|
130
|
-
</div>
|
|
131
|
-
) : null;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { type BulletsProps } from '../../model/Bullets';
|
|
2
|
-
import { type TextProps, type TitleProps } from '../../model/HeadlineType';
|
|
3
|
-
import { type RichTextProps } from '../../ui-kit/RichText/RichTextProps';
|
|
4
|
-
import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @title Цвет
|
|
8
|
-
* @enumNames ["Оранжевый", "Светло-зеленый", "Зеленый", "Тёмно-зеленый"]
|
|
9
|
-
*/
|
|
10
|
-
export type InvestmentCellColor = 'yellow' | 'green-light' | 'green' | 'green-dark';
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @title Высота
|
|
14
|
-
*/
|
|
15
|
-
export type InvestmentCellSize = 'XL' | 'L' | 'M' | 'S' | 'XS';
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @title Ячейка
|
|
19
|
-
*/
|
|
20
|
-
export type InvestmentCell = TextProps & {
|
|
21
|
-
cellColor?: InvestmentCellColor;
|
|
22
|
-
cellSize?: InvestmentCellSize;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* @title Элемент данных 1
|
|
27
|
-
*/
|
|
28
|
-
export type InvestmentZeroColumn = TitleProps & {
|
|
29
|
-
/** @hidden */
|
|
30
|
-
cells?: InvestmentCell[];
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* @title Элемент данных
|
|
35
|
-
*/
|
|
36
|
-
export type InvestmentColumn = TitleProps & {
|
|
37
|
-
/** @title Ячейки */
|
|
38
|
-
cells?: InvestmentCell[];
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* @title Блок инвестиций
|
|
43
|
-
*/
|
|
44
|
-
export type InvestmentInfoContent = UniBlockContent &
|
|
45
|
-
RichTextProps &
|
|
46
|
-
BulletsProps & {
|
|
47
|
-
/** @title Элемент данных 1 */
|
|
48
|
-
investmentZeroColumn?: InvestmentZeroColumn;
|
|
49
|
-
/** @title Остальные элементы данных */
|
|
50
|
-
investmentColumns?: InvestmentColumn[];
|
|
51
|
-
};
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { type IconName } from '../../icons/IconName';
|
|
3
|
-
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
4
|
-
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
5
|
-
import { Icon } from '../../ui-kit/Icon/Icon';
|
|
6
|
-
import { Img } from '../../ui-kit/Img/Img';
|
|
7
|
-
import { renderButtonsSection } from '../../ui-kit/LinkButton/renderButtonsSection';
|
|
8
|
-
import { RichText } from '../../ui-kit/RichText/RichText';
|
|
9
|
-
import { type RichTextProps } from '../../ui-kit/RichText/RichTextProps';
|
|
10
|
-
import { Text } from '../../ui-kit/Text/Text';
|
|
11
|
-
import { type TextColor } from '../../ui-kit/Text/TextProps';
|
|
12
|
-
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
13
|
-
import { isIcon } from '../../utils/isIcon';
|
|
14
|
-
import { style } from '../../utils/style';
|
|
15
|
-
import { type RepresentativeOfficeInfoContent } from './RepresentativeOfficeInfoContent';
|
|
16
|
-
|
|
17
|
-
export interface RepresentativeOfficeInfoProps
|
|
18
|
-
extends RepresentativeOfficeInfoContent,
|
|
19
|
-
UniBlockProps {}
|
|
20
|
-
|
|
21
|
-
export const RepresentativeOfficeInfo = JSX<RepresentativeOfficeInfoProps>(
|
|
22
|
-
({
|
|
23
|
-
address,
|
|
24
|
-
email,
|
|
25
|
-
telephone,
|
|
26
|
-
button,
|
|
27
|
-
className = '',
|
|
28
|
-
__html,
|
|
29
|
-
richVersion,
|
|
30
|
-
icon,
|
|
31
|
-
title,
|
|
32
|
-
version = 'primary',
|
|
33
|
-
...rest
|
|
34
|
-
}) => (
|
|
35
|
-
<BlockWrapper
|
|
36
|
-
className={style('box-border text-left space-y-s', className)}
|
|
37
|
-
version={version}
|
|
38
|
-
{...rest}
|
|
39
|
-
>
|
|
40
|
-
<div className="w-full flex justify-between flex-row-reverse">
|
|
41
|
-
{isIcon(icon) ? (
|
|
42
|
-
<div className={'w-10 h-7 sm:w-24 sm:h-16'}>
|
|
43
|
-
<Img image={icon} />
|
|
44
|
-
</div>
|
|
45
|
-
) : null}
|
|
46
|
-
{title ? <Heading headingType="h3" as="h3" title={title} /> : null}
|
|
47
|
-
</div>
|
|
48
|
-
<div className="w-full space-y-m">
|
|
49
|
-
{__html ? renderDescriptionBlock({ __html, richVersion }) : null}
|
|
50
|
-
{renderBlock({
|
|
51
|
-
label: 'Адрес',
|
|
52
|
-
data: address,
|
|
53
|
-
iconName: 'GeolocationIcon',
|
|
54
|
-
})}
|
|
55
|
-
{renderBlock({ label: 'Телефон(факс)', data: telephone, iconName: 'PhoneIcon' })}
|
|
56
|
-
{renderBlock({
|
|
57
|
-
label: 'E-mail',
|
|
58
|
-
data: email,
|
|
59
|
-
iconName: 'MailIcon',
|
|
60
|
-
dataColor: 'text-primary-main',
|
|
61
|
-
})}
|
|
62
|
-
{button?.text ? renderButtonsSection([button]) : null}
|
|
63
|
-
</div>
|
|
64
|
-
</BlockWrapper>
|
|
65
|
-
),
|
|
66
|
-
);
|
|
67
|
-
|
|
68
|
-
const renderDescriptionBlock = (props: RichTextProps) => (
|
|
69
|
-
<div className="border-b border-main-divider pb-lg">
|
|
70
|
-
<RichText {...props} itemSize="list-s" />
|
|
71
|
-
</div>
|
|
72
|
-
);
|
|
73
|
-
|
|
74
|
-
interface renderBlockProps {
|
|
75
|
-
label?: string;
|
|
76
|
-
data?: string;
|
|
77
|
-
iconName?: IconName;
|
|
78
|
-
dataColor?: TextColor;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
const renderBlock = ({ label, data, iconName, dataColor = '' }: renderBlockProps) =>
|
|
82
|
-
data ? (
|
|
83
|
-
<div className="flex gap-s">
|
|
84
|
-
<Icon iconVersion="black" name={iconName} width="24" height="24" />
|
|
85
|
-
<div className="flex flex-col gap-2xs">
|
|
86
|
-
<Text size="text-m" font="font-light" color="text-secondary-text">
|
|
87
|
-
{label}
|
|
88
|
-
</Text>
|
|
89
|
-
<Text size="text-xl" color={dataColor}>
|
|
90
|
-
{data}
|
|
91
|
-
</Text>
|
|
92
|
-
</div>
|
|
93
|
-
</div>
|
|
94
|
-
) : null;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"content": {
|
|
3
|
-
"__html": {
|
|
4
|
-
"ui:widget": "html"
|
|
5
|
-
},
|
|
6
|
-
"button": {
|
|
7
|
-
"href": {
|
|
8
|
-
"ui:field": "attachmentHref"
|
|
9
|
-
},
|
|
10
|
-
"icon": {
|
|
11
|
-
"ui:field": "icon"
|
|
12
|
-
},
|
|
13
|
-
"iconRight": {
|
|
14
|
-
"ui:field": "icon"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
"style": {
|
|
19
|
-
"ui:options": {
|
|
20
|
-
"minCols": 6,
|
|
21
|
-
"maxCols": 6
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { type TitleProps } from '../../model/HeadlineType';
|
|
2
|
-
import { type IconProps } from '../../model/Picture';
|
|
3
|
-
import { type LinkButtonContent } from '../../ui-kit/LinkButton/LinkButtonContent';
|
|
4
|
-
import { type RichTextProps } from '../../ui-kit/RichText/RichTextProps';
|
|
5
|
-
import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* @title Блок с информацией о представительстве
|
|
9
|
-
*/
|
|
10
|
-
export type RepresentativeOfficeInfoContent = UniBlockContent &
|
|
11
|
-
TitleProps &
|
|
12
|
-
RichTextProps &
|
|
13
|
-
IconProps & {
|
|
14
|
-
/** @title Адрес */
|
|
15
|
-
address?: string;
|
|
16
|
-
/** @title Телефон (факс) */
|
|
17
|
-
telephone?: string;
|
|
18
|
-
/** @title E-mail */
|
|
19
|
-
email?: string;
|
|
20
|
-
/** @title Кнопка */
|
|
21
|
-
button?: LinkButtonContent;
|
|
22
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
3
|
-
import { Unit } from '../../ui-kit/Unit/Unit';
|
|
4
|
-
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
5
|
-
import { type UnitBlockContent } from './UnitBlockContent';
|
|
6
|
-
|
|
7
|
-
interface UnitBlockProps extends UnitBlockContent, UniBlockProps {}
|
|
8
|
-
|
|
9
|
-
export const UnitBlock = JSX<UnitBlockProps>((props) => {
|
|
10
|
-
const { prefix, unit, suffix, ...rest } = props;
|
|
11
|
-
|
|
12
|
-
return (
|
|
13
|
-
<BlockWrapper defaultPadding="p-0" {...rest}>
|
|
14
|
-
<Unit prefix={prefix} unit={unit} suffix={suffix} />
|
|
15
|
-
</BlockWrapper>
|
|
16
|
-
);
|
|
17
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"content": {
|
|
3
|
-
"version": "primary",
|
|
4
|
-
"padding": "",
|
|
5
|
-
"__html": "<ul><li>Пункт 1</li><li>Пункт 2</li><li>Пункт 3</li></ul>",
|
|
6
|
-
"isDotted": true,
|
|
7
|
-
"investmentZeroColumn": {
|
|
8
|
-
"title": "Название 1"
|
|
9
|
-
},
|
|
10
|
-
"investmentColumns": [
|
|
11
|
-
{
|
|
12
|
-
"title": "Название 2",
|
|
13
|
-
"cells": [
|
|
14
|
-
{
|
|
15
|
-
"text": "Ячейка 2-1",
|
|
16
|
-
"cellColor": "green-dark",
|
|
17
|
-
"cellSize": "S"
|
|
18
|
-
}
|
|
19
|
-
]
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"title": "Название 3",
|
|
23
|
-
"cells": [
|
|
24
|
-
{
|
|
25
|
-
"text": "Ячейка 3-1",
|
|
26
|
-
"cellColor": "green-dark",
|
|
27
|
-
"cellSize": "S"
|
|
28
|
-
}
|
|
29
|
-
]
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"title": "Название 4",
|
|
33
|
-
"cells": [
|
|
34
|
-
{
|
|
35
|
-
"text": "Ячейка 4-1",
|
|
36
|
-
"cellColor": "green-dark",
|
|
37
|
-
"cellSize": "L"
|
|
38
|
-
}
|
|
39
|
-
]
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"title": "Название 5",
|
|
43
|
-
"cells": [
|
|
44
|
-
{
|
|
45
|
-
"text": "Ячейка 5-1",
|
|
46
|
-
"cellColor": "green-dark",
|
|
47
|
-
"cellSize": "XL"
|
|
48
|
-
}
|
|
49
|
-
]
|
|
50
|
-
}
|
|
51
|
-
]
|
|
52
|
-
}
|
|
53
|
-
}
|