@redneckz/wildless-cms-uni-blocks 0.14.832 → 0.14.833
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 +17 -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/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/mobile/bundle/bundle.umd.js +17 -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/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/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/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/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,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,47 +0,0 @@
|
|
|
1
|
-
import '../../setup-fixture';
|
|
2
|
-
|
|
3
|
-
import { type Picture } from '../../model/Picture';
|
|
4
|
-
import { type LinkButtonContent } from '../../ui-kit/LinkButton/LinkButtonContent';
|
|
5
|
-
import { RepresentativeOfficeInfo } from './RepresentativeOfficeInfo';
|
|
6
|
-
|
|
7
|
-
const BUTTON: LinkButtonContent = {
|
|
8
|
-
text: 'Информация о регионе',
|
|
9
|
-
target: '_blank',
|
|
10
|
-
version: 'secondary',
|
|
11
|
-
icon: { icon: 'ArrowTopRightIcon', iconVersion: 'color' },
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
const ICON: Picture = {
|
|
15
|
-
icon: 'BelarusianFlag',
|
|
16
|
-
iconVersion: 'color',
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
const DESCRIPTION = `
|
|
20
|
-
<p><strong>Представительство АО «Россельхозбанк» в Республике Беларусь (г. Минск) зарегистрировано в октябре 2008 года</strong></p>
|
|
21
|
-
<br>
|
|
22
|
-
<p class="text-slate-600/50 mb-s">Основными задачи Представительства</p>
|
|
23
|
-
<ul>
|
|
24
|
-
<li>установление и развитие деловых связей с белорусскими финансовыми институтами и компаниями АПК для реализации совместных проектов;</li>
|
|
25
|
-
<li>организация взаимодействия с государственными органами власти и международными организациями, находящимися в Республике Беларусь;</li>
|
|
26
|
-
<li>продвижение и сопровождение в Республике Беларусь российских инвестиционных проектов;</li>
|
|
27
|
-
<li>мониторинг реализации двусторонних и многосторонних соглашений, участником которых является АО «Россельхозбанк».</li>
|
|
28
|
-
</ul>
|
|
29
|
-
`;
|
|
30
|
-
|
|
31
|
-
export default {
|
|
32
|
-
default: (
|
|
33
|
-
<div className="container grid grid-cols-12">
|
|
34
|
-
<RepresentativeOfficeInfo
|
|
35
|
-
className="col-span-12"
|
|
36
|
-
title="Представительство в Республике Беларусь"
|
|
37
|
-
__html={DESCRIPTION}
|
|
38
|
-
address="Республика Беларусь, 220004, г. Минск, ул. Немига, д. 40"
|
|
39
|
-
telephone="(+375-17)-226-4578"
|
|
40
|
-
email="prshbrb@mail.ru"
|
|
41
|
-
button={BUTTON}
|
|
42
|
-
icon={ICON}
|
|
43
|
-
version="primary"
|
|
44
|
-
/>
|
|
45
|
-
</div>
|
|
46
|
-
),
|
|
47
|
-
};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import '../../setup-fixture';
|
|
2
|
-
|
|
3
|
-
import { type Picture } from '../../model/Picture';
|
|
4
|
-
import { type LinkButtonContent } from '../../ui-kit/LinkButton/LinkButtonContent';
|
|
5
|
-
import { RepresentativeOfficeInfo } from './RepresentativeOfficeInfo';
|
|
6
|
-
|
|
7
|
-
const BUTTON: LinkButtonContent = {
|
|
8
|
-
text: 'Информация о регионе',
|
|
9
|
-
target: '_blank',
|
|
10
|
-
version: 'link',
|
|
11
|
-
iconRight: { icon: 'ArrowTopRightIcon', iconVersion: 'color' },
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
const ICON: Picture = {
|
|
15
|
-
icon: 'BelarusianFlag',
|
|
16
|
-
iconVersion: 'color',
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
const DESCRIPTION = `
|
|
20
|
-
<p><strong>Представительство АО «Россельхозбанк» в Республике Беларусь (г. Минск) зарегистрировано в октябре 2008 года</strong></p>
|
|
21
|
-
<br>
|
|
22
|
-
<p class="text-slate-600/50 mb-s">Основными задачи Представительства</p>
|
|
23
|
-
<ul>
|
|
24
|
-
<li>установление и развитие деловых связей с белорусскими финансовыми институтами и компаниями АПК для реализации совместных проектов;</li>
|
|
25
|
-
<li>организация взаимодействия с государственными органами власти и международными организациями, находящимися в Республике Беларусь;</li>
|
|
26
|
-
<li>продвижение и сопровождение в Республике Беларусь российских инвестиционных проектов;</li>
|
|
27
|
-
<li>мониторинг реализации двусторонних и многосторонних соглашений, участником которых является АО «Россельхозбанк».</li>
|
|
28
|
-
</ul>
|
|
29
|
-
`;
|
|
30
|
-
|
|
31
|
-
export default {
|
|
32
|
-
default: (
|
|
33
|
-
<div className="container grid grid-cols-12">
|
|
34
|
-
<RepresentativeOfficeInfo
|
|
35
|
-
className="col-span-6"
|
|
36
|
-
title="Представительство в Республике Беларусь"
|
|
37
|
-
__html={DESCRIPTION}
|
|
38
|
-
address="Республика Беларусь, 220004, г. Минск, ул. Немига, д. 40"
|
|
39
|
-
telephone="(+375-17)-226-4578"
|
|
40
|
-
email="prshbrb@mail.ru"
|
|
41
|
-
button={BUTTON}
|
|
42
|
-
icon={ICON}
|
|
43
|
-
version="primary"
|
|
44
|
-
/>
|
|
45
|
-
</div>
|
|
46
|
-
),
|
|
47
|
-
};
|
|
@@ -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,27 +0,0 @@
|
|
|
1
|
-
import '../../setup-fixture';
|
|
2
|
-
import { type UnitProps } from '../../ui-kit/Unit/UnitProps';
|
|
3
|
-
import { UnitBlock } from './UnitBlock';
|
|
4
|
-
|
|
5
|
-
const UNIT_CONTENT_FULL: UnitProps = {
|
|
6
|
-
prefix: 'от',
|
|
7
|
-
unit: 1.5,
|
|
8
|
-
suffix: 'баллов',
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
const UNIT_CONTENT_NO_PREFIX: UnitProps = {
|
|
12
|
-
unit: 0.5,
|
|
13
|
-
suffix: 'балла',
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export default {
|
|
17
|
-
default: (
|
|
18
|
-
<div className="container grid grid-cols-12">
|
|
19
|
-
<UnitBlock className="col-span-12" {...UNIT_CONTENT_FULL} />
|
|
20
|
-
</div>
|
|
21
|
-
),
|
|
22
|
-
'no-prefix': (
|
|
23
|
-
<div className="container grid grid-cols-12">
|
|
24
|
-
<UnitBlock className="col-span-12" {...UNIT_CONTENT_NO_PREFIX} />
|
|
25
|
-
</div>
|
|
26
|
-
),
|
|
27
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import '../../setup-fixture';
|
|
2
|
-
import { type UnitProps } from '../../ui-kit/Unit/UnitProps';
|
|
3
|
-
import { UnitBlock } from './UnitBlock';
|
|
4
|
-
|
|
5
|
-
const UNIT_CONTENT_FULL: UnitProps = {
|
|
6
|
-
prefix: 'от',
|
|
7
|
-
unit: 1.5,
|
|
8
|
-
suffix: 'баллов',
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
const UNIT_CONTENT_NO_PREFIX: UnitProps = {
|
|
12
|
-
unit: 0.5,
|
|
13
|
-
suffix: 'балла',
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export default {
|
|
17
|
-
default: (
|
|
18
|
-
<div className="container grid grid-cols-12">
|
|
19
|
-
<UnitBlock className="col-span-12" {...UNIT_CONTENT_FULL} />
|
|
20
|
-
</div>
|
|
21
|
-
),
|
|
22
|
-
'no-prefix': (
|
|
23
|
-
<div className="container grid grid-cols-12">
|
|
24
|
-
<UnitBlock className="col-span-12" {...UNIT_CONTENT_NO_PREFIX} />
|
|
25
|
-
</div>
|
|
26
|
-
),
|
|
27
|
-
};
|
|
@@ -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
|
-
{}
|