@redneckz/wildless-cms-uni-blocks 0.6.31 → 0.6.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/bin/migration-scripts/0.6.32.js +26 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +137 -102
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/CarouselLinks/CarouselLinks.d.ts +5 -0
  6. package/bundle/components/CarouselLinks/CarouselLinksContent.d.ts +9 -0
  7. package/bundle/components/ContactsBlock/ContactsBlockContent.d.ts +11 -20
  8. package/bundle/components/StepsBlock/renderStepContent.d.ts +1 -1
  9. package/bundle/icons/IconName.d.ts +6 -4
  10. package/bundle/model/HeadlineType.d.ts +2 -2
  11. package/bundle/ui-kit/LinkButton/LinkButton.d.ts +5 -0
  12. package/bundle/utils/sliceArray.d.ts +1 -0
  13. package/cosmos-static/icons/ArrowRightIcon.svg +1 -0
  14. package/dist/components/Blocks.js +2 -0
  15. package/dist/components/Blocks.js.map +1 -1
  16. package/dist/components/CarouselLinks/CarouselLinks.d.ts +5 -0
  17. package/dist/components/CarouselLinks/CarouselLinks.js +20 -0
  18. package/dist/components/CarouselLinks/CarouselLinks.js.map +1 -0
  19. package/dist/components/CarouselLinks/CarouselLinksContent.d.ts +9 -0
  20. package/dist/components/CarouselLinks/CarouselLinksContent.js +2 -0
  21. package/dist/components/CarouselLinks/CarouselLinksContent.js.map +1 -0
  22. package/dist/components/ContactsBlock/ContactsBlock.js +5 -9
  23. package/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
  24. package/dist/components/ContactsBlock/ContactsBlockContent.d.ts +11 -20
  25. package/dist/components/Headline/constants.js +6 -0
  26. package/dist/components/Headline/constants.js.map +1 -1
  27. package/dist/components/StepsBlock/renderStepContent.d.ts +1 -1
  28. package/dist/icons/IconName.d.ts +6 -4
  29. package/dist/icons/IconName.js +4 -2
  30. package/dist/icons/IconName.js.map +1 -1
  31. package/dist/model/HeadlineType.d.ts +2 -2
  32. package/dist/ui-kit/LinkButton/LinkButton.d.ts +5 -0
  33. package/dist/ui-kit/LinkButton/LinkButton.js +16 -0
  34. package/dist/ui-kit/LinkButton/LinkButton.js.map +1 -0
  35. package/dist/utils/sliceArray.d.ts +1 -0
  36. package/dist/utils/sliceArray.js +15 -0
  37. package/dist/utils/sliceArray.js.map +1 -0
  38. package/lib/common.css +1 -1
  39. package/lib/components/Blocks.js +2 -0
  40. package/lib/components/Blocks.js.map +1 -1
  41. package/lib/components/CarouselLinks/CarouselLinks.d.ts +5 -0
  42. package/lib/components/CarouselLinks/CarouselLinks.fixture.d.ts +5 -0
  43. package/lib/components/CarouselLinks/CarouselLinks.js +18 -0
  44. package/lib/components/CarouselLinks/CarouselLinks.js.map +1 -0
  45. package/lib/components/CarouselLinks/CarouselLinksContent.d.ts +9 -0
  46. package/lib/components/CarouselLinks/CarouselLinksContent.js +2 -0
  47. package/lib/components/CarouselLinks/CarouselLinksContent.js.map +1 -0
  48. package/lib/components/ContactsBlock/ContactsBlock.js +5 -9
  49. package/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
  50. package/lib/components/ContactsBlock/ContactsBlockContent.d.ts +11 -20
  51. package/lib/components/Headline/constants.js +6 -0
  52. package/lib/components/Headline/constants.js.map +1 -1
  53. package/lib/components/StepsBlock/renderStepContent.d.ts +1 -1
  54. package/lib/icons/IconName.d.ts +6 -4
  55. package/lib/icons/IconName.js +4 -2
  56. package/lib/icons/IconName.js.map +1 -1
  57. package/lib/model/HeadlineType.d.ts +2 -2
  58. package/lib/ui-kit/LinkButton/LinkButton.d.ts +5 -0
  59. package/lib/ui-kit/LinkButton/LinkButton.fixture.d.ts +5 -0
  60. package/lib/ui-kit/LinkButton/LinkButton.js +14 -0
  61. package/lib/ui-kit/LinkButton/LinkButton.js.map +1 -0
  62. package/lib/utils/sliceArray.d.ts +1 -0
  63. package/lib/utils/sliceArray.js +12 -0
  64. package/lib/utils/sliceArray.js.map +1 -0
  65. package/mobile/bundle/bundle.umd.js +1 -1
  66. package/mobile/bundle/bundle.umd.min.js +1 -1
  67. package/mobile/bundle/components/CarouselLinks/CarouselLinks.d.ts +5 -0
  68. package/mobile/bundle/components/CarouselLinks/CarouselLinksContent.d.ts +9 -0
  69. package/mobile/bundle/components/ContactsBlock/ContactsBlockContent.d.ts +11 -20
  70. package/mobile/bundle/components/StepsBlock/renderStepContent.d.ts +1 -1
  71. package/mobile/bundle/icons/IconName.d.ts +6 -4
  72. package/mobile/bundle/model/HeadlineType.d.ts +2 -2
  73. package/mobile/bundle/ui-kit/LinkButton/LinkButton.d.ts +5 -0
  74. package/mobile/bundle/utils/sliceArray.d.ts +1 -0
  75. package/mobile/dist/components/CarouselLinks/CarouselLinks.d.ts +5 -0
  76. package/mobile/dist/components/CarouselLinks/CarouselLinks.js +20 -0
  77. package/mobile/dist/components/CarouselLinks/CarouselLinks.js.map +1 -0
  78. package/mobile/dist/components/CarouselLinks/CarouselLinksContent.d.ts +9 -0
  79. package/mobile/dist/components/CarouselLinks/CarouselLinksContent.js +2 -0
  80. package/mobile/dist/components/CarouselLinks/CarouselLinksContent.js.map +1 -0
  81. package/mobile/dist/components/ContactsBlock/ContactsBlock.js +5 -9
  82. package/mobile/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
  83. package/mobile/dist/components/ContactsBlock/ContactsBlockContent.d.ts +11 -20
  84. package/mobile/dist/components/Headline/constants.js +6 -0
  85. package/mobile/dist/components/Headline/constants.js.map +1 -1
  86. package/mobile/dist/components/StepsBlock/renderStepContent.d.ts +1 -1
  87. package/mobile/dist/icons/IconName.d.ts +6 -4
  88. package/mobile/dist/icons/IconName.js +4 -2
  89. package/mobile/dist/icons/IconName.js.map +1 -1
  90. package/mobile/dist/model/HeadlineType.d.ts +2 -2
  91. package/mobile/dist/ui-kit/LinkButton/LinkButton.d.ts +5 -0
  92. package/mobile/dist/ui-kit/LinkButton/LinkButton.js +16 -0
  93. package/mobile/dist/ui-kit/LinkButton/LinkButton.js.map +1 -0
  94. package/mobile/dist/utils/sliceArray.d.ts +1 -0
  95. package/mobile/dist/utils/sliceArray.js +15 -0
  96. package/mobile/dist/utils/sliceArray.js.map +1 -0
  97. package/mobile/lib/components/CarouselLinks/CarouselLinks.d.ts +5 -0
  98. package/mobile/lib/components/CarouselLinks/CarouselLinks.js +18 -0
  99. package/mobile/lib/components/CarouselLinks/CarouselLinks.js.map +1 -0
  100. package/mobile/lib/components/CarouselLinks/CarouselLinksContent.d.ts +9 -0
  101. package/mobile/lib/components/CarouselLinks/CarouselLinksContent.js +2 -0
  102. package/mobile/lib/components/CarouselLinks/CarouselLinksContent.js.map +1 -0
  103. package/mobile/lib/components/ContactsBlock/ContactsBlock.js +5 -9
  104. package/mobile/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
  105. package/mobile/lib/components/ContactsBlock/ContactsBlockContent.d.ts +11 -20
  106. package/mobile/lib/components/Headline/constants.js +6 -0
  107. package/mobile/lib/components/Headline/constants.js.map +1 -1
  108. package/mobile/lib/components/StepsBlock/renderStepContent.d.ts +1 -1
  109. package/mobile/lib/icons/IconName.d.ts +6 -4
  110. package/mobile/lib/icons/IconName.js +4 -2
  111. package/mobile/lib/icons/IconName.js.map +1 -1
  112. package/mobile/lib/model/HeadlineType.d.ts +2 -2
  113. package/mobile/lib/ui-kit/LinkButton/LinkButton.d.ts +5 -0
  114. package/mobile/lib/ui-kit/LinkButton/LinkButton.js +14 -0
  115. package/mobile/lib/ui-kit/LinkButton/LinkButton.js.map +1 -0
  116. package/mobile/lib/utils/sliceArray.d.ts +1 -0
  117. package/mobile/lib/utils/sliceArray.js +12 -0
  118. package/mobile/lib/utils/sliceArray.js.map +1 -0
  119. package/mobile/src/components/CarouselLinks/CarouselLinks.example.json +55 -0
  120. package/mobile/src/components/CarouselLinks/CarouselLinks.json +8 -0
  121. package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +61 -0
  122. package/mobile/src/components/CarouselLinks/CarouselLinksContent.ts +10 -0
  123. package/mobile/src/components/ContactsBlock/ContactsBlock.example.json +22 -18
  124. package/mobile/src/components/ContactsBlock/ContactsBlock.tsx +25 -35
  125. package/mobile/src/components/ContactsBlock/ContactsBlockContent.ts +12 -22
  126. package/mobile/src/components/Headline/constants.ts +6 -0
  127. package/mobile/src/components/StepsBlock/renderStepContent.tsx +1 -1
  128. package/mobile/src/icons/ArrowLeftIcon.svg +1 -1
  129. package/mobile/src/icons/ArrowRightIcon.svg +1 -0
  130. package/mobile/src/icons/ArrowUpIcon.svg +1 -1
  131. package/mobile/src/icons/IconName.ts +4 -4
  132. package/mobile/src/model/HeadlineType.ts +2 -2
  133. package/mobile/src/ui-kit/LinkButton/LinkButton.tsx +42 -0
  134. package/mobile/src/utils/sliceArray.ts +15 -0
  135. package/package.json +2 -2
  136. package/src/components/Blocks.ts +2 -0
  137. package/src/components/CarouselLinks/CarouselLinks.example.json +55 -0
  138. package/src/components/CarouselLinks/CarouselLinks.fixture.tsx +28 -0
  139. package/src/components/CarouselLinks/CarouselLinks.json +8 -0
  140. package/src/components/CarouselLinks/CarouselLinks.tsx +61 -0
  141. package/src/components/CarouselLinks/CarouselLinksContent.ts +10 -0
  142. package/src/components/ContactsBlock/ContactsBlock.example.json +22 -18
  143. package/src/components/ContactsBlock/ContactsBlock.fixture.tsx +21 -15
  144. package/src/components/ContactsBlock/ContactsBlock.tsx +25 -35
  145. package/src/components/ContactsBlock/ContactsBlockContent.ts +12 -22
  146. package/src/components/Headline/constants.ts +6 -0
  147. package/src/components/StepsBlock/renderStepContent.tsx +1 -1
  148. package/src/icons/ArrowLeftIcon.svg +1 -1
  149. package/src/icons/ArrowRightIcon.svg +1 -0
  150. package/src/icons/ArrowUpIcon.svg +1 -1
  151. package/src/icons/IconName.ts +6 -327
  152. package/src/model/HeadlineType.ts +2 -2
  153. package/src/ui-kit/LinkButton/LinkButton.fixture.tsx +9 -0
  154. package/src/ui-kit/LinkButton/LinkButton.tsx +42 -0
  155. package/src/utils/sliceArray.ts +15 -0
@@ -0,0 +1,61 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import type { UniBlockProps } from '../../model/JSXBlock';
3
+ import type { LinkProps } from '../../model/LinkProps';
4
+ import { BlockWrapper } from '../../ui-kit/BlockWrapper';
5
+ import { Description } from '../../ui-kit/Description/Description';
6
+ import { Heading } from '../../ui-kit/Heading/Heading';
7
+ import { LinkButton } from '../../ui-kit/LinkButton/LinkButton';
8
+ import { sliceArray } from '../../utils/sliceArray';
9
+ import { Carousel } from '../Carousel/Carousel';
10
+ import type { CarouselLinksContent } from './CarouselLinksContent';
11
+
12
+ export interface CarouselLinksProps extends CarouselLinksContent, UniBlockProps {}
13
+
14
+ const MAX_LINKS_COUNT = 12;
15
+
16
+ export const CarouselLinks = JSX<CarouselLinksProps>(
17
+ ({ additionalDescription, block, description, links, title, className = '', ...rest }) => {
18
+ return (
19
+ <BlockWrapper
20
+ className={`bg-primary-main flex w-full p-10 overflow-hidden justify-between font-sans ${className}`}
21
+ {...rest}
22
+ >
23
+ <div className="flex flex-col max-w-96 pr-9 text-white text-xl-light">
24
+ {title ? <Heading title={title} as="h1" headingType="h0" className="pb-0.5" /> : null}
25
+ {description ? (
26
+ <Description description={description} className="text-xl-light pt-5" />
27
+ ) : null}
28
+ {additionalDescription ? (
29
+ <Description description={additionalDescription} className="pt-6" />
30
+ ) : null}
31
+ </div>
32
+ {links?.length ? renderLinks(links, block) : null}
33
+ </BlockWrapper>
34
+ );
35
+ },
36
+ );
37
+
38
+ const renderLinks = (links: LinkProps[], block: any) => {
39
+ const slicedLinks = sliceArray(links, MAX_LINKS_COUNT);
40
+
41
+ const slides = slicedLinks.map((slide) => (
42
+ <div className="w-[672px] min-w-[672px] ml-20 mr-20 flex flex-wrap self-start">
43
+ {slide.map((link, index) => (
44
+ <LinkButton className="m-1" key={String(index)} {...link} />
45
+ ))}
46
+ </div>
47
+ ));
48
+
49
+ return (
50
+ <Carousel
51
+ className="min-w-[832px] w-[832px]"
52
+ isBlur={false}
53
+ cardFullViewCount={1}
54
+ cardWidth={'832'}
55
+ isCyclic={true}
56
+ block={{ type: 'Carousel', blocks: slides }}
57
+ >
58
+ {slides}
59
+ </Carousel>
60
+ );
61
+ };
@@ -0,0 +1,10 @@
1
+ import type { HeadlineCommonProps } from '../../model/HeadlineType';
2
+ import type { LinkProps } from '../../model/LinkProps';
3
+
4
+ /** @title Карусель с ссылками */
5
+ export interface CarouselLinksContent extends HeadlineCommonProps {
6
+ /** @title Дополнительное описание */
7
+ additionalDescription?: string;
8
+ /** @title Ссылки */
9
+ links?: LinkProps[];
10
+ }
@@ -2,26 +2,30 @@
2
2
  "content": {
3
3
  "version": "secondary",
4
4
  "info": [
5
- {
6
- "title": "Заголовок 1",
7
- "description": "Описание 1",
8
- "button": {
9
- "href": "#",
10
- "text": "Кнопка 1",
11
- "target": "_blank",
12
- "version": "secondary"
5
+ [
6
+ {
7
+ "title": "Заголовок 1",
8
+ "description": "Описание 1",
9
+ "button": {
10
+ "href": "#",
11
+ "text": "Кнопка 1",
12
+ "target": "_blank",
13
+ "version": "secondary"
14
+ }
13
15
  }
14
- },
15
- {
16
- "title": "Заголовок 2",
17
- "description": "Описание 2",
18
- "button": {
19
- "href": "#",
20
- "text": "Кнопка 2",
21
- "target": "_blank",
22
- "version": "secondary"
16
+ ],
17
+ [
18
+ {
19
+ "title": "Заголовок 2ff",
20
+ "description": "Описание 2",
21
+ "button": {
22
+ "href": "#",
23
+ "text": "Кнопка 2",
24
+ "target": "_blank",
25
+ "version": "secondary"
26
+ }
23
27
  }
24
- }
28
+ ]
25
29
  ],
26
30
  "contacts": [
27
31
  [
@@ -9,20 +9,22 @@ const button: ButtonProps = {
9
9
  version: 'secondary',
10
10
  };
11
11
 
12
- const info = [
13
- {
14
- title: 'Телеграм-канал РСХБ Инвестиции',
15
- description:
16
- 'Всегда вовремя: главные новости, инвестиционные идеи, анонсы размещения облигаций',
17
- button,
18
- },
19
- {
20
- title: 'Подписка на аналитику',
21
- description: 'E-mail рассылка: главное за неделю',
22
- button,
23
- },
24
- ];
25
12
  const contacts = [
13
+ [
14
+ {
15
+ title: 'Телеграм-канал РСХБ Инвестиции',
16
+ description:
17
+ 'Всегда вовремя: главные новости, инвестиционные идеи, анонсы размещения облигаций',
18
+ button,
19
+ },
20
+ ],
21
+ [
22
+ {
23
+ title: 'Подписка на аналитику',
24
+ description: 'E-mail рассылка: главное за неделю',
25
+ button,
26
+ },
27
+ ],
26
28
  [
27
29
  {
28
30
  title: '8 (800) 100-40-40',
@@ -49,8 +51,12 @@ const contacts = [
49
51
  ];
50
52
 
51
53
  export default {
52
- secondary: <ContactsBlock className="col-span-12" info={info} contacts={contacts} />,
54
+ secondary: <ContactsBlock className="col-span-12" contacts={contacts} />,
53
55
  primary: (
54
- <ContactsBlock className="col-span-12" version="primary" info={info} contacts={contacts} />
56
+ <ContactsBlock
57
+ className="col-span-12"
58
+ version="primary"
59
+ contacts={contacts}
60
+ />
55
61
  ),
56
62
  };
@@ -1,68 +1,58 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import type { BlockVersion } from '../../model/BlockVersion';
3
+ import { VersionStyleMap } from '../../model/BlockVersion';
2
4
  import { UniBlockProps } from '../../model/JSXBlock';
3
5
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
4
6
  import { Button } from '../../ui-kit/Button/Button';
5
7
  import { Description } from '../../ui-kit/Description/Description';
6
- import { Heading } from '../../ui-kit/Heading/Heading';
7
- import type { ContactItemProps, ContactsBlockContent, InfoItemProps } from './ContactsBlockContent';
8
+ import { Headline } from '../Headline/Headline';
9
+ import type { ContactBlockProps, ContactsBlockContent } from './ContactsBlockContent';
8
10
 
9
11
  export interface ContactsBlockProps extends ContactsBlockContent, UniBlockProps {}
10
12
 
11
13
  interface RenderContactsColumnProps {
12
- contactsColumn?: ContactItemProps[];
14
+ version?: BlockVersion;
15
+ column?: ContactBlockProps[];
13
16
  index?: number;
14
17
  }
15
18
 
16
- const contactsBlockStyleMap = {
17
- primary: 'bg-white',
18
- secondary: 'bg-primary-main text-white',
19
- };
20
-
21
19
  export const ContactsBlock = JSX<ContactsBlockProps>(
22
20
  ({ className = '', contacts, info, version = 'secondary', ...rest }) => {
23
21
  return (
24
- <BlockWrapper
25
- className={`${contactsBlockStyleMap[version]} flex p-12 ${className}`}
26
- {...rest}
27
- >
28
- {info ? renderInfo(info) : null}
29
- {contacts ? renderContacts(contacts) : null}
22
+ <BlockWrapper className={`${VersionStyleMap[version]} flex p-[50px] ${className}`} {...rest}>
23
+ {info?.length ? renderBlocks(info, version) : null}
24
+ {contacts?.length ? renderBlocks(contacts, version) : null}
30
25
  </BlockWrapper>
31
26
  );
32
27
  },
33
28
  );
34
29
 
35
- const renderInfo = (info: InfoItemProps[]) => (
36
- <div className="flex grow basis-0 pr-11">
37
- {info.map(({ title, description, button }, index) => (
38
- <div className="grow basis-0 pr-11 last:pr-0" key={String(index)}>
39
- <Heading as="h5" headingType="h5" title={title} className="pb-2.5" />
40
- <Description className="text-l-light pb-6" description={description} />
41
- {button ? <Button {...button} /> : null}
42
- </div>
43
- ))}
44
- </div>
45
- );
46
-
47
- const renderContacts = (contacts: ContactItemProps[][]) => (
30
+ const renderBlocks = (info: ContactBlockProps[][], version?: BlockVersion) => (
48
31
  <div className="flex grow basis-0">
49
- {contacts.map((contactsColumn, index) => renderContactsColumn({ contactsColumn, index }))}
32
+ {info.map((column, index) => renderBlocksColumn({ column, index, version }))}
50
33
  </div>
51
34
  );
52
35
 
53
- const renderContactsColumn = ({ contactsColumn, index }: RenderContactsColumnProps) =>
54
- contactsColumn ? (
55
- <div className="flex flex-col grow basis-0 pr-11" key={String(index)}>
56
- {contactsColumn.map(({ title, description, additionalDescription }, key) => (
57
- <div className="pr-11 last:pr-0 last:mt-5" key={String(key)}>
58
- <Heading as="h5" headingType="h5" title={title} />
59
- <Description className="text-l-light mt-2.5" description={description} />
36
+ const renderBlocksColumn = ({ column, index, version }: RenderContactsColumnProps) =>
37
+ column ? (
38
+ <div className="flex flex-col grow basis-0 pr-11 last:pr-0" key={`col-${String(index)}`}>
39
+ {column.map(({ title = '', description, additionalDescription, button }, key) => (
40
+ <div className="mt-6 first:mt-0" key={String(key)}>
41
+ <Headline
42
+ className="!p-0"
43
+ title={title}
44
+ description={description}
45
+ headlineVersion="XS"
46
+ align="left"
47
+ bgColorHeadline={version}
48
+ />
60
49
  {additionalDescription ? (
61
50
  <Description
62
51
  className="text-m-light mt-1.5 opacity-80"
63
52
  description={additionalDescription}
64
53
  />
65
54
  ) : null}
55
+ {button ? <Button className="mt-6" {...button} /> : null}
66
56
  </div>
67
57
  ))}
68
58
  </div>
@@ -2,6 +2,16 @@ import type { BlockVersion } from '../../model/BlockVersion';
2
2
  import type { HeadlineCommonProps } from '../../model/HeadlineType';
3
3
  import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
4
4
 
5
+ /**
6
+ * @title Элемент плитки
7
+ */
8
+ export interface ContactBlockProps extends HeadlineCommonProps {
9
+ /** @title Дополнительное описание */
10
+ additionalDescription?: string;
11
+ /** @title Кнопка */
12
+ button?: ButtonProps;
13
+ }
14
+
5
15
  /**
6
16
  * @title Контакты
7
17
  */
@@ -10,31 +20,11 @@ export interface ContactsBlockContent {
10
20
  * @title Данные
11
21
  * @maxItems 2
12
22
  * */
13
- info?: InfoItemProps[];
23
+ info?: ContactBlockProps[][];
14
24
  /**
15
25
  * @title Контакты
16
26
  * @maxItems 2
17
27
  * */
18
- contacts?: ContactItemProps[][];
28
+ contacts?: ContactBlockProps[][];
19
29
  version?: BlockVersion;
20
30
  }
21
-
22
- /**
23
- * @title Элемент плитки
24
- */
25
- export interface ContactItemProps {
26
- /** @title Дополнительное описание */
27
- additionalDescription?: string;
28
- /** @title Описание */
29
- description?: string;
30
- /** @title Заголовок */
31
- title?: string;
32
- }
33
-
34
- /**
35
- * @title Элемент плитки
36
- */
37
- export interface InfoItemProps extends HeadlineCommonProps {
38
- /** @title Кнопка */
39
- button?: ButtonProps;
40
- }
@@ -64,6 +64,12 @@ export const HEADLINE_VERSION: Record<HeadlineVersion, VersionStyleType> = {
64
64
  headingType: 'h4',
65
65
  as: 'h4',
66
66
  },
67
+ XS: {
68
+ descriptionFont: 'text-l-light',
69
+ gap: 'gap-2',
70
+ headingType: 'h5',
71
+ as: 'h5',
72
+ },
67
73
  };
68
74
 
69
75
  export const HEADLINE_SMALL_VERSION: Record<HeadlineSmallVersion, string> = {
@@ -13,7 +13,7 @@ export const renderStepContent =
13
13
  }: {
14
14
  styleMap: StyleType;
15
15
  isMainButton: boolean;
16
- version: BlockVersion;
16
+ version?: BlockVersion;
17
17
  }) =>
18
18
  (step: Step, i: number, { length }: { length: number }): VNode => {
19
19
  const { label, description, button, items, isDotted } = step;
@@ -1,4 +1,4 @@
1
- <svg title="Стрелка" isInverse="true" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
1
+ <svg title="Стрелка 'Влево'" isInverse="true" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
2
  <path d="M7 11.834L3 8.00065L7 4.16732" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
3
3
  <path d="M14 9.00195C14.5523 9.00195 15 8.55424 15 8.00195C15 7.44967 14.5523 7.00195 14 7.00195L14 9.00195ZM8 7.00195C7.44772 7.00195 7 7.44967 7 8.00195C7 8.55424 7.44772 9.00195 8 9.00195L8 7.00195ZM14 7.00195L8 7.00195L8 9.00195L14 9.00195L14 7.00195Z" fill="currentColor"/>
4
4
  </svg>
@@ -0,0 +1 @@
1
+ <svg title="Стрелка 'Вправо'" isInverse="true" fill="none" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M14.43 5.93 20.5 12l-6.07 6.07M11.01 12h9.32M3.5 12h3.47" stroke="#42AB44" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/></svg>
@@ -1,4 +1,4 @@
1
- <svg title="Стрелка вверх" isInverse="true" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
1
+ <svg title="Стрелка 'Вверх'" isInverse="true" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
2
  <path d="M13.3416 9.29163L11.1582 7.10829C10.5166 6.46662 9.46657 6.46662 8.8249 7.10829L3.3999 12.5416" stroke="currentColor" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
3
3
  <path d="M16.6001 12.5416L15.7334 11.675" stroke="currentColor" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
4
4
  </svg>