@redneckz/wildless-cms-uni-blocks 0.3.46 → 0.3.49
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/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +67 -69
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/Accordion/AccordionItem.js +2 -2
- package/dist/components/Accordion/AccordionItem.js.map +1 -1
- package/dist/components/GracePeriod/GracePeriod.js +5 -3
- package/dist/components/GracePeriod/GracePeriod.js.map +1 -1
- package/dist/components/GracePeriod/GracePeriodContent.d.ts +15 -3
- package/dist/components/LinkDocs/LinkDocsListItem.js +1 -1
- package/dist/components/LinkDocs/LinkDocsListItem.js.map +1 -1
- package/dist/components/NavigatorTabs/NavigatorTabItem.d.ts +2 -2
- package/dist/components/NavigatorTabs/NavigatorTabItem.js +1 -1
- package/dist/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
- package/dist/components/NavigatorTabs/NavigatorTabs.js +6 -9
- package/dist/components/NavigatorTabs/NavigatorTabs.js.map +1 -1
- package/dist/components/NavigatorTabs/NavigatorTabsContent.d.ts +2 -12
- package/dist/components/ProductBlock/ProductBlock.js +1 -1
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.js +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/dist/components/ProductBlock/renderBenefit.js +1 -1
- package/dist/components/ProductBlock/renderBenefit.js.map +1 -1
- package/dist/components/ProductTile/ProductTile.js +2 -3
- package/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/dist/components/ProductTile/ProductTileContent.d.ts +2 -2
- package/dist/components/StepsBlock/StepsBlock.js +1 -1
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/Tile/Tile.js +4 -5
- package/dist/components/Tile/Tile.js.map +1 -1
- package/dist/components/Tile/TileContent.d.ts +2 -2
- package/dist/types.d.ts +5 -1
- package/dist/ui-kit/Button/ButtonInner.js +1 -1
- package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/dist/ui-kit/List/ListItem.js +2 -2
- package/dist/ui-kit/List/ListItem.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Accordion/AccordionItem.js +2 -2
- package/lib/components/Accordion/AccordionItem.js.map +1 -1
- package/lib/components/BaseTile/getTileHeadingType.d.ts +1 -1
- package/lib/components/GracePeriod/GracePeriod.js +5 -3
- package/lib/components/GracePeriod/GracePeriod.js.map +1 -1
- package/lib/components/GracePeriod/GracePeriodContent.d.ts +15 -3
- package/lib/components/LinkDocs/LinkDocsListItem.js +1 -1
- package/lib/components/LinkDocs/LinkDocsListItem.js.map +1 -1
- package/lib/components/NavigatorTabs/NavigatorTabItem.d.ts +2 -2
- package/lib/components/NavigatorTabs/NavigatorTabItem.js +1 -1
- package/lib/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
- package/lib/components/NavigatorTabs/NavigatorTabs.js +7 -10
- package/lib/components/NavigatorTabs/NavigatorTabs.js.map +1 -1
- package/lib/components/NavigatorTabs/NavigatorTabsContent.d.ts +2 -12
- package/lib/components/ProductBlock/ProductBlock.js +1 -1
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.js +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/lib/components/ProductBlock/renderBenefit.js +1 -1
- package/lib/components/ProductBlock/renderBenefit.js.map +1 -1
- package/lib/components/ProductTile/ProductTile.js +2 -3
- package/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/lib/components/ProductTile/ProductTileContent.d.ts +2 -2
- package/lib/components/StepsBlock/StepsBlock.js +1 -1
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/Tile/Tile.js +4 -5
- package/lib/components/Tile/Tile.js.map +1 -1
- package/lib/components/Tile/TileContent.d.ts +2 -2
- package/lib/types.d.ts +5 -1
- package/lib/ui-kit/Button/ButtonInner.js +1 -1
- package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/lib/ui-kit/List/List.fixture.d.ts +4 -0
- package/lib/ui-kit/List/ListItem.js +2 -2
- package/lib/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +3 -3
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/GracePeriod/GracePeriod.js +5 -3
- package/mobile/dist/components/GracePeriod/GracePeriod.js.map +1 -1
- package/mobile/dist/components/GracePeriod/GracePeriodContent.d.ts +15 -3
- package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.d.ts +2 -2
- package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.js +1 -1
- package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
- package/mobile/dist/components/NavigatorTabs/NavigatorTabs.js +6 -9
- package/mobile/dist/components/NavigatorTabs/NavigatorTabs.js.map +1 -1
- package/mobile/dist/components/NavigatorTabs/NavigatorTabsContent.d.ts +2 -12
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js +1 -1
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTile.js +2 -3
- package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +2 -2
- package/mobile/dist/components/Tile/Tile.js +4 -5
- package/mobile/dist/components/Tile/Tile.js.map +1 -1
- package/mobile/dist/components/Tile/TileContent.d.ts +2 -2
- package/mobile/dist/types.d.ts +5 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/dist/ui-kit/List/ListItem.js +2 -2
- package/mobile/dist/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/lib/components/GracePeriod/GracePeriod.js +5 -3
- package/mobile/lib/components/GracePeriod/GracePeriod.js.map +1 -1
- package/mobile/lib/components/GracePeriod/GracePeriodContent.d.ts +15 -3
- package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.d.ts +2 -2
- package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.js +1 -1
- package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
- package/mobile/lib/components/NavigatorTabs/NavigatorTabs.js +7 -10
- package/mobile/lib/components/NavigatorTabs/NavigatorTabs.js.map +1 -1
- package/mobile/lib/components/NavigatorTabs/NavigatorTabsContent.d.ts +2 -12
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js +1 -1
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTile.js +2 -3
- package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +2 -2
- package/mobile/lib/components/Tile/Tile.js +4 -5
- package/mobile/lib/components/Tile/Tile.js.map +1 -1
- package/mobile/lib/components/Tile/TileContent.d.ts +2 -2
- package/mobile/lib/types.d.ts +5 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/lib/ui-kit/List/ListItem.js +2 -2
- package/mobile/lib/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/src/components/ContentPage/ContentPage.page.json +6 -6
- package/mobile/src/components/GracePeriod/GracePeriod.example.json +10 -5
- package/mobile/src/components/GracePeriod/GracePeriod.tsx +12 -6
- package/mobile/src/components/GracePeriod/GracePeriodContent.ts +15 -3
- package/mobile/src/components/NavigatorTabs/NavigatorTabItem.tsx +4 -4
- package/mobile/src/components/NavigatorTabs/NavigatorTabs.example.json +3 -3
- package/mobile/src/components/NavigatorTabs/NavigatorTabs.tsx +11 -14
- package/mobile/src/components/NavigatorTabs/NavigatorTabsContent.ts +2 -12
- package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +1 -0
- package/mobile/src/components/ProductTile/ProductTile.example.json +1 -0
- package/mobile/src/components/ProductTile/ProductTile.tsx +3 -2
- package/mobile/src/components/ProductTile/ProductTileContent.ts +2 -1
- package/mobile/src/components/Tile/Tile.example.json +1 -0
- package/mobile/src/components/Tile/Tile.tsx +4 -4
- package/mobile/src/components/Tile/TileContent.ts +2 -1
- package/mobile/src/types.ts +5 -1
- package/mobile/src/ui-kit/Button/ButtonInner.tsx +1 -1
- package/mobile/src/ui-kit/List/ListItem.tsx +2 -2
- package/package.json +1 -1
- package/src/components/Accordion/AccordionItem.tsx +4 -2
- package/src/components/ContentPage/ContentPage.page.json +6 -6
- package/src/components/GracePeriod/GracePeriod.example.json +10 -5
- package/src/components/GracePeriod/GracePeriod.tsx +12 -6
- package/src/components/GracePeriod/GracePeriodContent.ts +15 -3
- package/src/components/LinkDocs/LinkDocsListItem.tsx +1 -1
- package/src/components/NavigatorTabs/NavigatorTabItem.tsx +4 -4
- package/src/components/NavigatorTabs/NavigatorTabs.example.json +3 -3
- package/src/components/NavigatorTabs/NavigatorTabs.fixture.tsx +6 -1
- package/src/components/NavigatorTabs/NavigatorTabs.tsx +11 -14
- package/src/components/NavigatorTabs/NavigatorTabsContent.ts +2 -12
- package/src/components/ProductBlock/ProductBlock.tsx +1 -1
- package/src/components/ProductBlock/renderBackwardButton.tsx +1 -0
- package/src/components/ProductBlock/renderBenefit.tsx +1 -1
- package/src/components/ProductTile/ProductTile.example.json +1 -0
- package/src/components/ProductTile/ProductTile.fixture.tsx +7 -2
- package/src/components/ProductTile/ProductTile.tsx +3 -2
- package/src/components/ProductTile/ProductTileContent.ts +2 -1
- package/src/components/StepsBlock/StepsBlock.tsx +1 -1
- package/src/components/Tile/Tile.example.json +1 -0
- package/src/components/Tile/Tile.fixture.tsx +6 -1
- package/src/components/Tile/Tile.tsx +4 -4
- package/src/components/Tile/TileContent.ts +2 -1
- package/src/types.ts +5 -1
- package/src/ui-kit/Button/ButtonInner.tsx +1 -1
- package/src/ui-kit/List/List.fixture.tsx +20 -0
- package/src/ui-kit/List/ListItem.tsx +2 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { context } from '../../setup-fixture';
|
|
2
2
|
|
|
3
|
-
import { ProductTile } from './ProductTile';
|
|
4
3
|
import type { Picture } from '../../model/Picture';
|
|
5
|
-
import type { ProductTileContent } from './ProductTileContent';
|
|
6
4
|
import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
|
|
5
|
+
import { ProductTile } from './ProductTile';
|
|
6
|
+
import type { ProductTileContent } from './ProductTileContent';
|
|
7
7
|
|
|
8
8
|
const cardWithMoney: Picture = {
|
|
9
9
|
src: 'card-with-diamond.png',
|
|
@@ -57,6 +57,7 @@ const buttonsSecondary: ButtonProps[] = [
|
|
|
57
57
|
|
|
58
58
|
export const PRODUCT_TILE: ProductTileContent = {
|
|
59
59
|
title: 'Акция! “Кредит На все, что хочется!”',
|
|
60
|
+
headingType: 'h3',
|
|
60
61
|
description: 'Потребительский кредит на любые цели, без залога и поручительства',
|
|
61
62
|
benefits,
|
|
62
63
|
buttons: buttons,
|
|
@@ -64,6 +65,7 @@ export const PRODUCT_TILE: ProductTileContent = {
|
|
|
64
65
|
};
|
|
65
66
|
export const PRODUCT_PENSION_TILE: ProductTileContent = {
|
|
66
67
|
title: 'Кредит пенсионный',
|
|
68
|
+
headingType: 'h3',
|
|
67
69
|
description: 'Для людей в возрасте до 75 лет',
|
|
68
70
|
benefits,
|
|
69
71
|
buttons: buttonsSecondary,
|
|
@@ -81,6 +83,7 @@ export default {
|
|
|
81
83
|
context={context}
|
|
82
84
|
className="col-span-6"
|
|
83
85
|
title="Акция! “Пенсионный кредит”"
|
|
86
|
+
headingType="h3"
|
|
84
87
|
description={'Потребительский кредит на любые цели, без залога и поручительства'}
|
|
85
88
|
benefits={benefits}
|
|
86
89
|
buttons={buttonsSecondary}
|
|
@@ -94,6 +97,7 @@ export default {
|
|
|
94
97
|
context={context}
|
|
95
98
|
className="col-span-8"
|
|
96
99
|
title="Кредит под залог недвижимости"
|
|
100
|
+
headingType="h3"
|
|
97
101
|
description={'Без переоформления залогой недвижимости на банк'}
|
|
98
102
|
benefits={benefits}
|
|
99
103
|
buttons={buttonsSecondary}
|
|
@@ -107,6 +111,7 @@ export default {
|
|
|
107
111
|
context={context}
|
|
108
112
|
className="col-span-4"
|
|
109
113
|
title="Кредит пенсионный"
|
|
114
|
+
headingType="h3"
|
|
110
115
|
description={'Для людей в возрасте до 75 лет'}
|
|
111
116
|
benefits={benefits}
|
|
112
117
|
buttons={buttonsSecondary}
|
|
@@ -6,7 +6,6 @@ import { Description } from '../../ui-kit/Description/Description';
|
|
|
6
6
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
7
7
|
import { Img } from '../../ui-kit/Img/Img';
|
|
8
8
|
import { BaseTile } from '../BaseTile/BaseTile';
|
|
9
|
-
import { getTileHeadingType } from '../BaseTile/getTileHeadingType';
|
|
10
9
|
import { getTileMinHeight } from '../BaseTile/getTileMinHeight';
|
|
11
10
|
import { getTileRightPadding } from '../BaseTile/getTileRightPadding';
|
|
12
11
|
import type { Benefit } from '../BenefitsBlock/BenefitsBlockContent';
|
|
@@ -24,6 +23,7 @@ export const ProductTile = JSX<ProductTileProps>(
|
|
|
24
23
|
context,
|
|
25
24
|
className = '',
|
|
26
25
|
title,
|
|
26
|
+
headingType = 'h3',
|
|
27
27
|
description,
|
|
28
28
|
benefits,
|
|
29
29
|
buttons,
|
|
@@ -43,7 +43,8 @@ export const ProductTile = JSX<ProductTileProps>(
|
|
|
43
43
|
title={
|
|
44
44
|
title && (
|
|
45
45
|
<Heading
|
|
46
|
-
headingType={
|
|
46
|
+
headingType={headingType}
|
|
47
|
+
as="h3"
|
|
47
48
|
title={title}
|
|
48
49
|
className={`whitespace-pre-wrap max-w-[600px]`}
|
|
49
50
|
/>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
2
2
|
import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
|
|
3
3
|
import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
|
|
4
|
-
import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
|
|
4
|
+
import type { HeadingContent, HeadingTypeContent } from '../../ui-kit/Heading/HeadingContent';
|
|
5
5
|
import type { ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
6
6
|
import type { TextBenefit } from '../BenefitsBlock/BenefitsBlockContent';
|
|
7
7
|
|
|
@@ -9,6 +9,7 @@ import type { TextBenefit } from '../BenefitsBlock/BenefitsBlockContent';
|
|
|
9
9
|
* @title Продуктовая плитка
|
|
10
10
|
*/
|
|
11
11
|
export type ProductTileContent = HeadingContent &
|
|
12
|
+
HeadingTypeContent &
|
|
12
13
|
DescriptionContent &
|
|
13
14
|
ButtonContent &
|
|
14
15
|
ImageContent & {
|
|
@@ -81,7 +81,7 @@ const renderStepTitle = (step: Step, i: number, isMainButton: boolean) => {
|
|
|
81
81
|
</div>
|
|
82
82
|
{step?.button?.text && !isMainButton ? (
|
|
83
83
|
<Button
|
|
84
|
-
className="box-border mt-
|
|
84
|
+
className="box-border mt-8 py-3 h-12 w-full max-w-[240px]"
|
|
85
85
|
version="primary"
|
|
86
86
|
href="#"
|
|
87
87
|
>
|
|
@@ -29,7 +29,8 @@ const image4: Picture = {
|
|
|
29
29
|
|
|
30
30
|
export const TILE: TileContent = {
|
|
31
31
|
title: 'Кредиты',
|
|
32
|
-
|
|
32
|
+
headingType: 'h3',
|
|
33
|
+
items: ['До 3 млн ₽', 'до 5 лет'],
|
|
33
34
|
buttons: [
|
|
34
35
|
{
|
|
35
36
|
text: 'Подробнее',
|
|
@@ -42,6 +43,7 @@ export const TILE: TileContent = {
|
|
|
42
43
|
|
|
43
44
|
export const TILE_PREMIUM: TileContent = {
|
|
44
45
|
title: 'Премиальные продукты',
|
|
46
|
+
headingType: 'h3',
|
|
45
47
|
description:
|
|
46
48
|
'Выделенные зоны обслуживания и персональный финансовый консультант. Полный спектр премиальных продуктов, подчеркивающих ваш статус',
|
|
47
49
|
buttons: [
|
|
@@ -68,6 +70,7 @@ export default {
|
|
|
68
70
|
version="secondary"
|
|
69
71
|
className="col-span-4"
|
|
70
72
|
title="Ипотека"
|
|
73
|
+
headingType="h3"
|
|
71
74
|
items={[
|
|
72
75
|
'Качественные фермерские продукты напрямую от производителей',
|
|
73
76
|
'Самая большая база сельских туров по России',
|
|
@@ -91,6 +94,7 @@ export default {
|
|
|
91
94
|
context={context}
|
|
92
95
|
className="col-span-6"
|
|
93
96
|
title="Банковские пластиковые карты"
|
|
97
|
+
headingType="h3"
|
|
94
98
|
items={['Счета в разных валютах', 'Бесплатное обслуживание', 'Кэшбэк до 15% от покупок']}
|
|
95
99
|
buttons={[
|
|
96
100
|
{
|
|
@@ -115,6 +119,7 @@ export default {
|
|
|
115
119
|
context={context}
|
|
116
120
|
className="col-span-12 pr-28"
|
|
117
121
|
title="Экосистема «СВОЕ», созданная для людей"
|
|
122
|
+
headingType="h3"
|
|
118
123
|
items={[
|
|
119
124
|
'Качественные фермерские продукты напрямую от производителей',
|
|
120
125
|
'Самая большая база сельских туров по России',
|
|
@@ -7,7 +7,6 @@ import { Heading } from '../../ui-kit/Heading/Heading';
|
|
|
7
7
|
import { Img } from '../../ui-kit/Img/Img';
|
|
8
8
|
import { List } from '../../ui-kit/List/List';
|
|
9
9
|
import { BaseTile } from '../BaseTile/BaseTile';
|
|
10
|
-
import { getTileHeadingType } from '../BaseTile/getTileHeadingType';
|
|
11
10
|
import { getTileMinHeight } from '../BaseTile/getTileMinHeight';
|
|
12
11
|
import { getTileRightPadding } from '../BaseTile/getTileRightPadding';
|
|
13
12
|
import type { TileContent } from './TileContent';
|
|
@@ -25,6 +24,7 @@ export const Tile = JSX<TileProps>((props) => {
|
|
|
25
24
|
const {
|
|
26
25
|
context,
|
|
27
26
|
title,
|
|
27
|
+
headingType = 'h3',
|
|
28
28
|
description,
|
|
29
29
|
items,
|
|
30
30
|
children,
|
|
@@ -49,7 +49,7 @@ export const Tile = JSX<TileProps>((props) => {
|
|
|
49
49
|
title={
|
|
50
50
|
title && (
|
|
51
51
|
<Heading
|
|
52
|
-
headingType={
|
|
52
|
+
headingType={headingType}
|
|
53
53
|
as="h3"
|
|
54
54
|
title={title}
|
|
55
55
|
className={`whitespace-pre-wrap max-w-[600px] ${title ? 'mb-3' : ''}
|
|
@@ -66,7 +66,7 @@ export const Tile = JSX<TileProps>((props) => {
|
|
|
66
66
|
>
|
|
67
67
|
{description && (
|
|
68
68
|
<Description
|
|
69
|
-
className="
|
|
69
|
+
className="max-w-[600px] text-title-new-sm font-light"
|
|
70
70
|
description={description}
|
|
71
71
|
/>
|
|
72
72
|
)}
|
|
@@ -81,7 +81,7 @@ function renderList(items, version) {
|
|
|
81
81
|
return items?.length ? (
|
|
82
82
|
<List
|
|
83
83
|
items={items}
|
|
84
|
-
itemClassName="text-title-
|
|
84
|
+
itemClassName="text-title-2xs font-light mt-2"
|
|
85
85
|
version={version === 'primary' ? 'tile' : 'tile-white'}
|
|
86
86
|
/>
|
|
87
87
|
) : null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
2
2
|
import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
|
|
3
3
|
import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
|
|
4
|
-
import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
|
|
4
|
+
import type { HeadingContent, HeadingTypeContent } from '../../ui-kit/Heading/HeadingContent';
|
|
5
5
|
import type { ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
6
6
|
import type { ListContent } from '../../ui-kit/List/ListContent';
|
|
7
7
|
|
|
@@ -9,6 +9,7 @@ import type { ListContent } from '../../ui-kit/List/ListContent';
|
|
|
9
9
|
* @title Плитка
|
|
10
10
|
*/
|
|
11
11
|
export type TileContent = HeadingContent &
|
|
12
|
+
HeadingTypeContent &
|
|
12
13
|
DescriptionContent &
|
|
13
14
|
ListContent &
|
|
14
15
|
ButtonContent &
|
package/src/types.ts
CHANGED
|
@@ -2,7 +2,11 @@ import type { BlockContent } from './components/BlockContent';
|
|
|
2
2
|
import type { ContentPageContext } from './components/ContentPage/ContentPageContext';
|
|
3
3
|
import type { BlockVersion } from './model/BlockVersion';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* @title Цветовая палитра
|
|
7
|
+
* @enumNames ["", "Частным клиентам", "Бизнес клиентам", "Экосистема Своё"]
|
|
8
|
+
*/
|
|
9
|
+
export type ColorPalette = '' | 'pc' | 'bc' | 'eo';
|
|
6
10
|
|
|
7
11
|
export interface BaseBlockDef {
|
|
8
12
|
type?: string;
|
|
@@ -14,7 +14,7 @@ export const ButtonInner = JSX<ButtonInnerProps>((props) => {
|
|
|
14
14
|
{isWithText(props) ? (
|
|
15
15
|
<div>
|
|
16
16
|
<div className="text-m-2xs font-light text-left">{aboveText}</div>
|
|
17
|
-
<div className="text-button
|
|
17
|
+
<div className="text-button text-left">{text}</div>
|
|
18
18
|
</div>
|
|
19
19
|
) : null}
|
|
20
20
|
</div>
|
|
@@ -34,4 +34,24 @@ export default {
|
|
|
34
34
|
<List items={items} version="gray" isDotted={false} />
|
|
35
35
|
</div>
|
|
36
36
|
),
|
|
37
|
+
'tile dotted': (
|
|
38
|
+
<div className="bg-white p-12">
|
|
39
|
+
<List items={items} version="tile" />
|
|
40
|
+
</div>
|
|
41
|
+
),
|
|
42
|
+
'tile w/o dots': (
|
|
43
|
+
<div className="bg-white p-12">
|
|
44
|
+
<List items={items} version="tile" isDotted={false} />
|
|
45
|
+
</div>
|
|
46
|
+
),
|
|
47
|
+
'tile white dotted': (
|
|
48
|
+
<div className="bg-primary-main p-12">
|
|
49
|
+
<List items={items} version="tile-white" />
|
|
50
|
+
</div>
|
|
51
|
+
),
|
|
52
|
+
'tile white w/o dots': (
|
|
53
|
+
<div className="bg-primary-main p-12">
|
|
54
|
+
<List items={items} version="tile-white" isDotted={false} />
|
|
55
|
+
</div>
|
|
56
|
+
),
|
|
37
57
|
};
|
|
@@ -15,8 +15,8 @@ const LIST_STYLE_CLASSES = {
|
|
|
15
15
|
primary: 'rounded-full inline-block mr-3 mt-2',
|
|
16
16
|
secondary: 'rounded-full inline-block mr-3 mt-2',
|
|
17
17
|
gray: 'rounded-full inline-block mr-3 mt-2',
|
|
18
|
-
tile: 'rounded-full inline-block mr-4',
|
|
19
|
-
'tile-white': 'rounded-full inline-block mr-4',
|
|
18
|
+
tile: 'rounded-full inline-block mr-4 mt-3',
|
|
19
|
+
'tile-white': 'rounded-full inline-block mr-4 mt-3',
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
const LIST_DOT_STYLE_MAP: Record<ListItemVersion, string> = {
|