@redneckz/wildless-cms-uni-blocks 0.5.3 → 0.5.4

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 (45) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +6 -6
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/dist/components/ErrorBlock/ErrorBlock.js +3 -3
  5. package/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
  6. package/dist/components/ErrorBlock/ErrorBlockContent.d.ts +6 -6
  7. package/dist/components/OfficeServicesBlock/OfficeServicesBlock.js +3 -3
  8. package/dist/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
  9. package/dist/components/OfficeServicesBlock/OfficeServicesBlockContent.d.ts +2 -1
  10. package/lib/common.css +1 -1
  11. package/lib/components/ErrorBlock/ErrorBlock.js +3 -3
  12. package/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
  13. package/lib/components/ErrorBlock/ErrorBlockContent.d.ts +6 -6
  14. package/lib/components/OfficeServicesBlock/OfficeServicesBlock.js +3 -3
  15. package/lib/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
  16. package/lib/components/OfficeServicesBlock/OfficeServicesBlockContent.d.ts +2 -1
  17. package/mobile/dist/components/ErrorBlock/ErrorBlock.js +3 -3
  18. package/mobile/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
  19. package/mobile/dist/components/ErrorBlock/ErrorBlockContent.d.ts +6 -6
  20. package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.js +3 -3
  21. package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
  22. package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlockContent.d.ts +2 -1
  23. package/mobile/lib/components/ErrorBlock/ErrorBlock.js +3 -3
  24. package/mobile/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
  25. package/mobile/lib/components/ErrorBlock/ErrorBlockContent.d.ts +6 -6
  26. package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.js +3 -3
  27. package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
  28. package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlockContent.d.ts +2 -1
  29. package/mobile/src/components/ErrorBlock/ErrorBlock.example.json +5 -5
  30. package/mobile/src/components/ErrorBlock/ErrorBlock.tsx +12 -5
  31. package/mobile/src/components/ErrorBlock/ErrorBlockContent.ts +20 -6
  32. package/mobile/src/components/OfficeServicesBlock/OfficeServicesBlock.example.json +30 -16
  33. package/mobile/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +7 -6
  34. package/mobile/src/components/OfficeServicesBlock/OfficeServicesBlockContent.ts +2 -1
  35. package/mobile/src/components/__snapshots__/Blocks.spec.tsx.snap +3 -3
  36. package/package.json +2 -1
  37. package/src/components/ErrorBlock/ErrorBlock.example.json +5 -5
  38. package/src/components/ErrorBlock/ErrorBlock.fixture.tsx +3 -3
  39. package/src/components/ErrorBlock/ErrorBlock.tsx +12 -5
  40. package/src/components/ErrorBlock/ErrorBlockContent.ts +20 -6
  41. package/src/components/OfficeServicesBlock/OfficeServicesBlock.example.json +30 -16
  42. package/src/components/OfficeServicesBlock/OfficeServicesBlock.fixture.tsx +7 -7
  43. package/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +7 -6
  44. package/src/components/OfficeServicesBlock/OfficeServicesBlockContent.ts +2 -1
  45. package/src/components/__snapshots__/Blocks.spec.tsx.snap +3 -3
@@ -1,13 +1,13 @@
1
1
  {
2
- "title": "Страница не найдена",
3
- "subtitle": "Возможно неправильно набран адрес или такой странице не существует",
2
+ "title": "Заголовок",
3
+ "subtitle": "Описание",
4
4
  "error": {
5
5
  "errorContentType": "Code",
6
- "code": 404
6
+ "code": "404"
7
7
  },
8
8
  "button": {
9
- "text": "Вернуться на главную",
9
+ "text": "Кнопка",
10
10
  "version": "primary",
11
- "target": "_blank"
11
+ "target": "_self"
12
12
  }
13
13
  }
@@ -10,11 +10,11 @@ export interface ErrorBlockProps extends ErrorBlockContent, UniBlockProps {}
10
10
 
11
11
  const renderErrorContent = (error: ErrorBlockContent['error']) => {
12
12
  if (error?.errorContentType === 'Image' && error?.image) {
13
- return <Img className="mb-7" image={error.image} />;
13
+ return <Img image={error.image} />;
14
14
  }
15
15
 
16
16
  if (error?.errorContentType === 'Code' && error.code) {
17
- return <div className="text-title-extra gradient-color-text">{error.code}</div>;
17
+ return <div className="font-mohave text-title-extra gradient-color-text">{error.code}</div>;
18
18
  }
19
19
 
20
20
  return null;
@@ -26,10 +26,17 @@ export const ErrorBlock = JSX<ErrorBlockProps>(
26
26
  const router = useRouter();
27
27
 
28
28
  return (
29
- <section className={`flex flex-col justify-center items-center ${className}`} role="listitem">
30
- <div className="flex justify-center mb-7">{renderErrorContent(error)}</div>
29
+ <section
30
+ className={`flex flex-col justify-center items-center mt-12 ${className}`}
31
+ role="listitem"
32
+ >
33
+ <div className="flex justify-center py-20">{renderErrorContent(error)}</div>
31
34
  {title ? <Heading headingType="h1" className="text-left mb-4" title={title} /> : null}
32
- {subtitle ? <div className="text-xl-light text-left mb-7">{subtitle}</div> : null}
35
+ {subtitle ? (
36
+ <div className="font-sans text-xl-light text-left mb-7 max-w-[613px] text-center">
37
+ {subtitle}
38
+ </div>
39
+ ) : null}
33
40
  {button?.text ? (
34
41
  <Button
35
42
  className="py-4 px-9"
@@ -1,4 +1,3 @@
1
- import type { EmptyOption } from '../../model/EmptyOptionType';
2
1
  import type { Picture } from '../../model/Picture';
3
2
  import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
4
3
 
@@ -8,7 +7,6 @@ import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
8
7
  export type ErrorImageDef = {
9
8
  /** @default Image */
10
9
  errorContentType: 'Image';
11
- /** @title Изображение */
12
10
  image?: Picture;
13
11
  };
14
12
 
@@ -18,10 +16,27 @@ export type ErrorImageDef = {
18
16
  export type ErrorCodeDef = {
19
17
  /** @default Code */
20
18
  errorContentType: 'Code';
21
- /** @title Код ошибки */
22
- code?: number;
19
+ /** @default 404 */
20
+ code?: ErrorType;
23
21
  };
24
- export type ErrorContentDef = EmptyOption | ErrorImageDef | ErrorCodeDef;
22
+
23
+ /** @title Вид контента */
24
+ export type ErrorContentDef = ErrorCodeDef | ErrorImageDef;
25
+
26
+ /** @title Код */
27
+ export type ErrorType =
28
+ | ''
29
+ | '400'
30
+ | '401'
31
+ | '402'
32
+ | '403'
33
+ | '404'
34
+ | '500'
35
+ | '501'
36
+ | '502'
37
+ | '503'
38
+ | '504'
39
+ | '505';
25
40
 
26
41
  /**
27
42
  * @title Блок ошибки
@@ -31,7 +46,6 @@ export interface ErrorBlockContent {
31
46
  title?: string;
32
47
  /** @title Описание */
33
48
  subtitle?: string;
34
- /** @title Вид контента */
35
49
  error?: ErrorContentDef;
36
50
  /** @title Кнопка */
37
51
  button?: ButtonProps;
@@ -1,33 +1,47 @@
1
1
  {
2
- "title": "Услуги",
3
- "officesList": [
2
+ "title": "Заголовок",
3
+ "servicesList": [
4
4
  {
5
- "text": "Обслуживание физических лиц",
6
- "icon": { "icon": "CardTickIcon" }
5
+ "label": "Пункт 1",
6
+ "icon": {
7
+ "icon": "CardTickIcon"
8
+ }
7
9
  },
8
10
  {
9
- "text": "Обслуживание юридических лиц",
10
- "icon": { "icon": "EmptyWalletChangeIcon" }
11
+ "label": "Пункт 2",
12
+ "icon": {
13
+ "icon": "EmptyWalletChangeIcon"
14
+ }
11
15
  },
12
16
  {
13
- "text": "Продажа монет из драгоценных металлов",
14
- "icon": { "icon": "UserTickIcon" }
17
+ "label": "Пункт 3",
18
+ "icon": {
19
+ "icon": "UserTickIcon"
20
+ }
15
21
  },
16
22
  {
17
- "text": "Аренда индивидуальных сейфовых ячеек",
18
- "icon": { "icon": "UserTickIcon" }
23
+ "label": "Пункт 4",
24
+ "icon": {
25
+ "icon": "UserTickIcon"
26
+ }
19
27
  },
20
28
  {
21
- "text": "Операции с обезличенными металлическими счетами",
22
- "icon": { "icon": "ShieldTickIcon" }
29
+ "label": "Пункт 5",
30
+ "icon": {
31
+ "icon": "ShieldTickIcon"
32
+ }
23
33
  },
24
34
  {
25
- "text": "Операции со слитками драгоценных металлов",
26
- "icon": { "icon": "ShieldTickIcon" }
35
+ "label": "Пункт 6",
36
+ "icon": {
37
+ "icon": "ShieldTickIcon"
38
+ }
27
39
  },
28
40
  {
29
- "text": "Передача фото и голоса в Единую биометрическую систему",
30
- "icon": { "icon": "ShieldTickIcon" }
41
+ "label": "Пункт 7",
42
+ "icon": {
43
+ "icon": "ShieldTickIcon"
44
+ }
31
45
  }
32
46
  ]
33
47
  }
@@ -11,14 +11,15 @@ import type {
11
11
  export interface OfficeServicesBlockProps extends OfficeServicesBlockContent, UniBlockProps {}
12
12
 
13
13
  export const OfficeServicesBlock = JSX<OfficeServicesBlockProps>(
14
- ({ className = '', context, title, servicesList, anchor = '' }) => {
14
+ ({ className = '', context, title, servicesList, anchor = '', ...rest }) => {
15
15
  return (
16
16
  <BlockWrapper
17
17
  context={context}
18
18
  id={anchor}
19
- className={`font-sans bg-white p-12 flex flex-col ${className}`}
19
+ className={`font-sans bg-white p-8 flex flex-col ${className}`}
20
+ {...rest}
20
21
  >
21
- {title ? <Heading headingType="h5" className="mb-2.5" title={title} /> : null}
22
+ {title ? <Heading headingType="h5" className="mb-5" title={title} /> : null}
22
23
  {servicesList?.length ? servicesList.map(renderListItems) : null}
23
24
  </BlockWrapper>
24
25
  );
@@ -26,16 +27,16 @@ export const OfficeServicesBlock = JSX<OfficeServicesBlockProps>(
26
27
  );
27
28
 
28
29
  const renderListItems = (itemList: OfficeServicesBlockList, i) => (
29
- <li key={`list_item_${String(i)}`} className="flex mb-2.5 list-none">
30
+ <li key={`list_item_${String(i)}`} className="flex mb-5 last:mb-0 list-none">
30
31
  {itemList.icon ? (
31
32
  <Img
32
- className="mr-[14px] max-w-6 max-h-6"
33
+ className="mr-3 max-w-6 max-h-6"
33
34
  width="24px"
34
35
  height="24px"
35
36
  asSVG
36
37
  image={itemList.icon}
37
38
  />
38
39
  ) : null}
39
- {itemList.text ? <span className="text-l-light">{itemList.text}</span> : null}
40
+ {itemList.label ? <span className="text-l-light">{itemList.label}</span> : null}
40
41
  </li>
41
42
  );
@@ -12,7 +12,8 @@ export interface OfficeServicesBlockList {
12
12
  * }
13
13
  */
14
14
  icon?: Picture;
15
- text?: string;
15
+ /** @title Текст */
16
+ label?: string;
16
17
  }
17
18
 
18
19
  /**
@@ -147,11 +147,11 @@ exports[`Blocks ComparisonTable should render block "ComparisonTable" without co
147
147
 
148
148
  exports[`Blocks ErrorBlock should render block "ErrorBlock" without content 1`] = `
149
149
  <section
150
- class="flex flex-col justify-center items-center "
150
+ class="flex flex-col justify-center items-center mt-12 "
151
151
  role="listitem"
152
152
  >
153
153
  <div
154
- class="flex justify-center mb-7"
154
+ class="flex justify-center py-20"
155
155
  />
156
156
  </section>
157
157
  `;
@@ -683,7 +683,7 @@ exports[`Blocks Navigation should render block "Navigation" without content 1`]
683
683
 
684
684
  exports[`Blocks OfficeServicesBlock should render block "OfficeServicesBlock" without content 1`] = `
685
685
  <section
686
- class="font-sans bg-white p-12 flex flex-col "
686
+ class="font-sans bg-white p-8 flex flex-col "
687
687
  />
688
688
  `;
689
689
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redneckz/wildless-cms-uni-blocks",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "author": "ЦК",
@@ -139,6 +139,7 @@
139
139
  "copyfiles": "^2.4.1",
140
140
  "css-loader": "^6.7.1",
141
141
  "cssnano": "^5.1.11",
142
+ "cypress-mochawesome-reporter": "^3.2.3",
142
143
  "eslint": "^8.21.0",
143
144
  "eslint-plugin-import": "^2.26.0",
144
145
  "eslint-plugin-local-eslint-rules": "./eslint-rules",
@@ -1,13 +1,13 @@
1
1
  {
2
- "title": "Страница не найдена",
3
- "subtitle": "Возможно неправильно набран адрес или такой странице не существует",
2
+ "title": "Заголовок",
3
+ "subtitle": "Описание",
4
4
  "error": {
5
5
  "errorContentType": "Code",
6
- "code": 404
6
+ "code": "404"
7
7
  },
8
8
  "button": {
9
- "text": "Вернуться на главную",
9
+ "text": "Кнопка",
10
10
  "version": "primary",
11
- "target": "_blank"
11
+ "target": "_self"
12
12
  }
13
13
  }
@@ -30,7 +30,7 @@ export default {
30
30
  subtitle="Возможно неправильно набран адрес или такой странице не существует"
31
31
  error={{
32
32
  errorContentType: 'Code',
33
- code: 404,
33
+ code: '404',
34
34
  }}
35
35
  button={buttonPrimary}
36
36
  />
@@ -41,8 +41,8 @@ export default {
41
41
  <ErrorBlock
42
42
  className="col-span-12"
43
43
  context={context}
44
- title="Страница не найдена"
45
- subtitle="Возможно неправильно набран адрес или такой странице не существует"
44
+ title="Ваш браузер устарел"
45
+ subtitle="Чтобы открыть наш сайт обновите Ваш браузер или скачайте обновленные версии браузеров"
46
46
  error={{
47
47
  errorContentType: 'Image',
48
48
  image: image,
@@ -10,11 +10,11 @@ export interface ErrorBlockProps extends ErrorBlockContent, UniBlockProps {}
10
10
 
11
11
  const renderErrorContent = (error: ErrorBlockContent['error']) => {
12
12
  if (error?.errorContentType === 'Image' && error?.image) {
13
- return <Img className="mb-7" image={error.image} />;
13
+ return <Img image={error.image} />;
14
14
  }
15
15
 
16
16
  if (error?.errorContentType === 'Code' && error.code) {
17
- return <div className="text-title-extra gradient-color-text">{error.code}</div>;
17
+ return <div className="font-mohave text-title-extra gradient-color-text">{error.code}</div>;
18
18
  }
19
19
 
20
20
  return null;
@@ -26,10 +26,17 @@ export const ErrorBlock = JSX<ErrorBlockProps>(
26
26
  const router = useRouter();
27
27
 
28
28
  return (
29
- <section className={`flex flex-col justify-center items-center ${className}`} role="listitem">
30
- <div className="flex justify-center mb-7">{renderErrorContent(error)}</div>
29
+ <section
30
+ className={`flex flex-col justify-center items-center mt-12 ${className}`}
31
+ role="listitem"
32
+ >
33
+ <div className="flex justify-center py-20">{renderErrorContent(error)}</div>
31
34
  {title ? <Heading headingType="h1" className="text-left mb-4" title={title} /> : null}
32
- {subtitle ? <div className="text-xl-light text-left mb-7">{subtitle}</div> : null}
35
+ {subtitle ? (
36
+ <div className="font-sans text-xl-light text-left mb-7 max-w-[613px] text-center">
37
+ {subtitle}
38
+ </div>
39
+ ) : null}
33
40
  {button?.text ? (
34
41
  <Button
35
42
  className="py-4 px-9"
@@ -1,4 +1,3 @@
1
- import type { EmptyOption } from '../../model/EmptyOptionType';
2
1
  import type { Picture } from '../../model/Picture';
3
2
  import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
4
3
 
@@ -8,7 +7,6 @@ import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
8
7
  export type ErrorImageDef = {
9
8
  /** @default Image */
10
9
  errorContentType: 'Image';
11
- /** @title Изображение */
12
10
  image?: Picture;
13
11
  };
14
12
 
@@ -18,10 +16,27 @@ export type ErrorImageDef = {
18
16
  export type ErrorCodeDef = {
19
17
  /** @default Code */
20
18
  errorContentType: 'Code';
21
- /** @title Код ошибки */
22
- code?: number;
19
+ /** @default 404 */
20
+ code?: ErrorType;
23
21
  };
24
- export type ErrorContentDef = EmptyOption | ErrorImageDef | ErrorCodeDef;
22
+
23
+ /** @title Вид контента */
24
+ export type ErrorContentDef = ErrorCodeDef | ErrorImageDef;
25
+
26
+ /** @title Код */
27
+ export type ErrorType =
28
+ | ''
29
+ | '400'
30
+ | '401'
31
+ | '402'
32
+ | '403'
33
+ | '404'
34
+ | '500'
35
+ | '501'
36
+ | '502'
37
+ | '503'
38
+ | '504'
39
+ | '505';
25
40
 
26
41
  /**
27
42
  * @title Блок ошибки
@@ -31,7 +46,6 @@ export interface ErrorBlockContent {
31
46
  title?: string;
32
47
  /** @title Описание */
33
48
  subtitle?: string;
34
- /** @title Вид контента */
35
49
  error?: ErrorContentDef;
36
50
  /** @title Кнопка */
37
51
  button?: ButtonProps;
@@ -1,33 +1,47 @@
1
1
  {
2
- "title": "Услуги",
3
- "officesList": [
2
+ "title": "Заголовок",
3
+ "servicesList": [
4
4
  {
5
- "text": "Обслуживание физических лиц",
6
- "icon": { "icon": "CardTickIcon" }
5
+ "label": "Пункт 1",
6
+ "icon": {
7
+ "icon": "CardTickIcon"
8
+ }
7
9
  },
8
10
  {
9
- "text": "Обслуживание юридических лиц",
10
- "icon": { "icon": "EmptyWalletChangeIcon" }
11
+ "label": "Пункт 2",
12
+ "icon": {
13
+ "icon": "EmptyWalletChangeIcon"
14
+ }
11
15
  },
12
16
  {
13
- "text": "Продажа монет из драгоценных металлов",
14
- "icon": { "icon": "UserTickIcon" }
17
+ "label": "Пункт 3",
18
+ "icon": {
19
+ "icon": "UserTickIcon"
20
+ }
15
21
  },
16
22
  {
17
- "text": "Аренда индивидуальных сейфовых ячеек",
18
- "icon": { "icon": "UserTickIcon" }
23
+ "label": "Пункт 4",
24
+ "icon": {
25
+ "icon": "UserTickIcon"
26
+ }
19
27
  },
20
28
  {
21
- "text": "Операции с обезличенными металлическими счетами",
22
- "icon": { "icon": "ShieldTickIcon" }
29
+ "label": "Пункт 5",
30
+ "icon": {
31
+ "icon": "ShieldTickIcon"
32
+ }
23
33
  },
24
34
  {
25
- "text": "Операции со слитками драгоценных металлов",
26
- "icon": { "icon": "ShieldTickIcon" }
35
+ "label": "Пункт 6",
36
+ "icon": {
37
+ "icon": "ShieldTickIcon"
38
+ }
27
39
  },
28
40
  {
29
- "text": "Передача фото и голоса в Единую биометрическую систему",
30
- "icon": { "icon": "ShieldTickIcon" }
41
+ "label": "Пункт 7",
42
+ "icon": {
43
+ "icon": "ShieldTickIcon"
44
+ }
31
45
  }
32
46
  ]
33
47
  }
@@ -10,31 +10,31 @@ export default {
10
10
  title="Услуги"
11
11
  servicesList={[
12
12
  {
13
- text: 'Обслуживание физических лиц',
13
+ label: 'Обслуживание физических лиц',
14
14
  icon: { icon: 'CardTickIcon' },
15
15
  },
16
16
  {
17
- text: 'Обслуживание юридических лиц',
17
+ label: 'Обслуживание юридических лиц',
18
18
  icon: { icon: 'EmptyWalletChangeIcon' },
19
19
  },
20
20
  {
21
- text: 'Продажа монет из драгоценных металлов',
21
+ label: 'Продажа монет из драгоценных металлов',
22
22
  icon: { icon: 'UserTickIcon' },
23
23
  },
24
24
  {
25
- text: 'Аренда индивидуальных сейфовых ячеек',
25
+ label: 'Аренда индивидуальных сейфовых ячеек',
26
26
  icon: { icon: 'UserTickIcon' },
27
27
  },
28
28
  {
29
- text: 'Операции с обезличенными металлическими счетами',
29
+ label: 'Операции с обезличенными металлическими счетами',
30
30
  icon: { icon: 'ShieldTickIcon' },
31
31
  },
32
32
  {
33
- text: 'Операции со слитками драгоценных металлов',
33
+ label: 'Операции со слитками драгоценных металлов',
34
34
  icon: { icon: 'ShieldTickIcon' },
35
35
  },
36
36
  {
37
- text: 'Передача фото и голоса в Единую биометрическую систему',
37
+ label: 'Передача фото и голоса в Единую биометрическую систему',
38
38
  icon: { icon: 'ShieldTickIcon' },
39
39
  },
40
40
  ]}
@@ -11,14 +11,15 @@ import type {
11
11
  export interface OfficeServicesBlockProps extends OfficeServicesBlockContent, UniBlockProps {}
12
12
 
13
13
  export const OfficeServicesBlock = JSX<OfficeServicesBlockProps>(
14
- ({ className = '', context, title, servicesList, anchor = '' }) => {
14
+ ({ className = '', context, title, servicesList, anchor = '', ...rest }) => {
15
15
  return (
16
16
  <BlockWrapper
17
17
  context={context}
18
18
  id={anchor}
19
- className={`font-sans bg-white p-12 flex flex-col ${className}`}
19
+ className={`font-sans bg-white p-8 flex flex-col ${className}`}
20
+ {...rest}
20
21
  >
21
- {title ? <Heading headingType="h5" className="mb-2.5" title={title} /> : null}
22
+ {title ? <Heading headingType="h5" className="mb-5" title={title} /> : null}
22
23
  {servicesList?.length ? servicesList.map(renderListItems) : null}
23
24
  </BlockWrapper>
24
25
  );
@@ -26,16 +27,16 @@ export const OfficeServicesBlock = JSX<OfficeServicesBlockProps>(
26
27
  );
27
28
 
28
29
  const renderListItems = (itemList: OfficeServicesBlockList, i) => (
29
- <li key={`list_item_${String(i)}`} className="flex mb-2.5 list-none">
30
+ <li key={`list_item_${String(i)}`} className="flex mb-5 last:mb-0 list-none">
30
31
  {itemList.icon ? (
31
32
  <Img
32
- className="mr-[14px] max-w-6 max-h-6"
33
+ className="mr-3 max-w-6 max-h-6"
33
34
  width="24px"
34
35
  height="24px"
35
36
  asSVG
36
37
  image={itemList.icon}
37
38
  />
38
39
  ) : null}
39
- {itemList.text ? <span className="text-l-light">{itemList.text}</span> : null}
40
+ {itemList.label ? <span className="text-l-light">{itemList.label}</span> : null}
40
41
  </li>
41
42
  );
@@ -12,7 +12,8 @@ export interface OfficeServicesBlockList {
12
12
  * }
13
13
  */
14
14
  icon?: Picture;
15
- text?: string;
15
+ /** @title Текст */
16
+ label?: string;
16
17
  }
17
18
 
18
19
  /**
@@ -147,11 +147,11 @@ exports[`Blocks ComparisonTable should render block "ComparisonTable" without co
147
147
 
148
148
  exports[`Blocks ErrorBlock should render block "ErrorBlock" without content 1`] = `
149
149
  <section
150
- class="flex flex-col justify-center items-center "
150
+ class="flex flex-col justify-center items-center mt-12 "
151
151
  role="listitem"
152
152
  >
153
153
  <div
154
- class="flex justify-center mb-7"
154
+ class="flex justify-center py-20"
155
155
  />
156
156
  </section>
157
157
  `;
@@ -683,7 +683,7 @@ exports[`Blocks Navigation should render block "Navigation" without content 1`]
683
683
 
684
684
  exports[`Blocks OfficeServicesBlock should render block "OfficeServicesBlock" without content 1`] = `
685
685
  <section
686
- class="font-sans bg-white p-12 flex flex-col "
686
+ class="font-sans bg-white p-8 flex flex-col "
687
687
  />
688
688
  `;
689
689