@redneckz/wildless-cms-uni-blocks 0.3.44 → 0.3.45

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 (125) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +24 -47
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/dist/components/Gallery/GalleryContent.d.ts +11 -1
  5. package/dist/components/Gallery/GalleryInner.js +1 -1
  6. package/dist/components/Gallery/GalleryInner.js.map +1 -1
  7. package/dist/components/ProductBlock/ProductBlock.js +2 -2
  8. package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  9. package/dist/components/ProductBlock/ProductBlockContent.d.ts +3 -3
  10. package/dist/components/ProductBlock/renderBackwardButton.d.ts +2 -1
  11. package/dist/components/ProductBlock/renderBackwardButton.js +2 -10
  12. package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  13. package/dist/components/ProductBlock/renderBenefit.js +1 -1
  14. package/dist/components/ProductBlock/renderBenefit.js.map +1 -1
  15. package/dist/components/Recommendation/Recommendation.js +1 -1
  16. package/dist/components/Recommendation/Recommendation.js.map +1 -1
  17. package/dist/components/StepsBlock/StepsBlock.js +2 -2
  18. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  19. package/dist/icons/IconName.d.ts +2 -2
  20. package/dist/icons/IconName.js +1 -1
  21. package/dist/icons/IconName.js.map +1 -1
  22. package/dist/ui-kit/Button/ArrowButton.js +2 -14
  23. package/dist/ui-kit/Button/ArrowButton.js.map +1 -1
  24. package/dist/ui-kit/Button/Button.js +4 -7
  25. package/dist/ui-kit/Button/Button.js.map +1 -1
  26. package/dist/ui-kit/Button/ButtonInner.js +1 -1
  27. package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  28. package/dist/ui-kit/Heading/Heading.js +4 -4
  29. package/dist/ui-kit/Heading/Heading.js.map +1 -1
  30. package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +1 -1
  31. package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
  32. package/lib/common.css +1 -1
  33. package/lib/components/Gallery/GalleryContent.d.ts +11 -1
  34. package/lib/components/Gallery/GalleryInner.js +1 -1
  35. package/lib/components/Gallery/GalleryInner.js.map +1 -1
  36. package/lib/components/ProductBlock/ProductBlock.js +2 -2
  37. package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  38. package/lib/components/ProductBlock/ProductBlockContent.d.ts +3 -3
  39. package/lib/components/ProductBlock/renderBackwardButton.d.ts +2 -1
  40. package/lib/components/ProductBlock/renderBackwardButton.js +2 -10
  41. package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  42. package/lib/components/ProductBlock/renderBenefit.js +1 -1
  43. package/lib/components/ProductBlock/renderBenefit.js.map +1 -1
  44. package/lib/components/Recommendation/Recommendation.js +1 -1
  45. package/lib/components/Recommendation/Recommendation.js.map +1 -1
  46. package/lib/components/StepsBlock/StepsBlock.js +2 -2
  47. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  48. package/lib/icons/IconName.d.ts +2 -2
  49. package/lib/icons/IconName.js +1 -1
  50. package/lib/icons/IconName.js.map +1 -1
  51. package/lib/ui-kit/Button/ArrowButton.js +2 -14
  52. package/lib/ui-kit/Button/ArrowButton.js.map +1 -1
  53. package/lib/ui-kit/Button/Button.js +4 -7
  54. package/lib/ui-kit/Button/Button.js.map +1 -1
  55. package/lib/ui-kit/Button/ButtonInner.js +1 -1
  56. package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  57. package/lib/ui-kit/Heading/Heading.js +4 -4
  58. package/lib/ui-kit/Heading/Heading.js.map +1 -1
  59. package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +1 -1
  60. package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
  61. package/mobile/bundle/bundle.umd.js +2 -2
  62. package/mobile/bundle/bundle.umd.min.js +1 -1
  63. package/mobile/dist/components/Gallery/GalleryContent.d.ts +11 -1
  64. package/mobile/dist/components/Gallery/GalleryInner.js +1 -1
  65. package/mobile/dist/components/Gallery/GalleryInner.js.map +1 -1
  66. package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +3 -3
  67. package/mobile/dist/components/ProductBlock/renderBackwardButton.d.ts +2 -1
  68. package/mobile/dist/components/ProductBlock/renderBackwardButton.js +2 -10
  69. package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  70. package/mobile/dist/components/Recommendation/Recommendation.js +1 -1
  71. package/mobile/dist/components/Recommendation/Recommendation.js.map +1 -1
  72. package/mobile/dist/icons/IconName.d.ts +2 -2
  73. package/mobile/dist/icons/IconName.js +1 -1
  74. package/mobile/dist/icons/IconName.js.map +1 -1
  75. package/mobile/dist/ui-kit/Button/ArrowButton.js +2 -14
  76. package/mobile/dist/ui-kit/Button/ArrowButton.js.map +1 -1
  77. package/mobile/dist/ui-kit/Button/ButtonInner.js +1 -1
  78. package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  79. package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +1 -1
  80. package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
  81. package/mobile/lib/components/Gallery/GalleryContent.d.ts +11 -1
  82. package/mobile/lib/components/Gallery/GalleryInner.js +1 -1
  83. package/mobile/lib/components/Gallery/GalleryInner.js.map +1 -1
  84. package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +3 -3
  85. package/mobile/lib/components/ProductBlock/renderBackwardButton.d.ts +2 -1
  86. package/mobile/lib/components/ProductBlock/renderBackwardButton.js +2 -10
  87. package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  88. package/mobile/lib/components/Recommendation/Recommendation.js +1 -1
  89. package/mobile/lib/components/Recommendation/Recommendation.js.map +1 -1
  90. package/mobile/lib/icons/IconName.d.ts +2 -2
  91. package/mobile/lib/icons/IconName.js +1 -1
  92. package/mobile/lib/icons/IconName.js.map +1 -1
  93. package/mobile/lib/ui-kit/Button/ArrowButton.js +2 -14
  94. package/mobile/lib/ui-kit/Button/ArrowButton.js.map +1 -1
  95. package/mobile/lib/ui-kit/Button/ButtonInner.js +1 -1
  96. package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  97. package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +1 -1
  98. package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
  99. package/mobile/src/components/Gallery/GalleryContent.ts +11 -1
  100. package/mobile/src/components/Gallery/GalleryInner.tsx +2 -2
  101. package/mobile/src/components/ProductBlock/ProductBlockContent.ts +3 -3
  102. package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +11 -21
  103. package/mobile/src/components/Recommendation/Recommendation.tsx +2 -2
  104. package/mobile/src/icons/ArrowLeftIcon.svg +1 -1
  105. package/mobile/src/icons/IconName.ts +2 -2
  106. package/mobile/src/ui-kit/Button/ArrowButton.tsx +8 -15
  107. package/mobile/src/ui-kit/Button/ButtonInner.tsx +1 -1
  108. package/mobile/src/ui-kit/TableArrowScrollControl/TableArrowScrollControl.tsx +2 -1
  109. package/package.json +1 -1
  110. package/src/components/Gallery/GalleryContent.ts +11 -1
  111. package/src/components/Gallery/GalleryInner.tsx +2 -2
  112. package/src/components/ProductBlock/ProductBlock.fixture.tsx +8 -7
  113. package/src/components/ProductBlock/ProductBlock.tsx +3 -3
  114. package/src/components/ProductBlock/ProductBlockContent.ts +3 -3
  115. package/src/components/ProductBlock/renderBackwardButton.tsx +11 -21
  116. package/src/components/ProductBlock/renderBenefit.tsx +3 -5
  117. package/src/components/Recommendation/Recommendation.tsx +2 -2
  118. package/src/components/StepsBlock/StepsBlock.tsx +3 -3
  119. package/src/icons/ArrowLeftIcon.svg +1 -1
  120. package/src/icons/IconName.ts +2 -2
  121. package/src/ui-kit/Button/ArrowButton.tsx +8 -15
  122. package/src/ui-kit/Button/Button.tsx +10 -9
  123. package/src/ui-kit/Button/ButtonInner.tsx +1 -1
  124. package/src/ui-kit/Heading/Heading.tsx +4 -4
  125. package/src/ui-kit/TableArrowScrollControl/TableArrowScrollControl.tsx +2 -1
@@ -1,8 +1,8 @@
1
1
  import type { Picture } from '../../model/Picture';
2
2
  import { context } from '../../setup-fixture';
3
- import { ProductBlock } from './ProductBlock';
3
+ import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
4
4
  import type { Benefit } from '../BenefitsBlock/BenefitsBlockContent';
5
- import type { ButtonWithIconProps, ButtonProps } from '../../ui-kit/Button/ButtonProps';
5
+ import { ProductBlock } from './ProductBlock';
6
6
  import type { ProductBlockContent } from './ProductBlockContent';
7
7
 
8
8
  const image: Picture = {
@@ -54,9 +54,10 @@ const items = [
54
54
  'Расходы для бизнеса на УСН 15% позволят снизить налоговую базу',
55
55
  ];
56
56
 
57
- const backwardButton: ButtonProps = {
57
+ const backwardButton: ButtonWithIconProps = {
58
58
  href: 'https://rshb.ru',
59
59
  text: 'Все кредитные карты',
60
+ icon: { icon: 'ArrowLeftIcon' },
60
61
  };
61
62
 
62
63
  export const PRODUCT_BLOCK: ProductBlockContent = {
@@ -72,7 +73,7 @@ export default {
72
73
  <ProductBlock
73
74
  className="col-span-12"
74
75
  context={context}
75
- title={'Потребительский кредит наличными'}
76
+ title="Потребительский кредит наличными"
76
77
  headingType="h2"
77
78
  description="Кредит наличными без залога и поручительства. Потребительский кредит на любые цели. Нужен только паспорт."
78
79
  benefits={benefits}
@@ -86,9 +87,9 @@ export default {
86
87
  <ProductBlock
87
88
  context={context}
88
89
  className="col-span-12"
89
- title={'Потребительский кредит наличными'}
90
+ title="Потребительский кредит наличными"
90
91
  headingType="h2"
91
- version={'secondary'}
92
+ version="secondary"
92
93
  description="Кредит наличными без залога и поручительства. Потребительский кредит на любые цели. Нужен только паспорт."
93
94
  benefits={benefits}
94
95
  buttons={[
@@ -119,7 +120,7 @@ export default {
119
120
  <ProductBlock
120
121
  className="col-span-12"
121
122
  context={context}
122
- title={'Потребительский кредит наличными'}
123
+ title="Потребительский кредит наличными"
123
124
  headingType="h1"
124
125
  description="Кредит наличными без залога и поручительства. Потребительский кредит на любые цели. Нужен только паспорт."
125
126
  benefits={benefits}
@@ -25,19 +25,19 @@ export const ProductBlock = JSX<ProductBlockProps>((props) => {
25
25
  context,
26
26
  className = '',
27
27
  breadcrumbs,
28
+ backwardButton,
28
29
  version = 'primary',
29
30
  anchor = null,
30
31
  ...otherProps
31
32
  } = props;
32
33
  const router = context.useRouter();
33
34
  const { handlerDecorator } = context;
34
-
35
35
  return (
36
36
  <section
37
- className={`font-sans overflow-hidden pt-10 pl-[50px] pb-[50px] pr-[7.5rem] box-border min-h-[420px] ${productBlockStyleMap[version]} ${className}`}
37
+ className={`font-sans overflow-hidden pt-[50px] pl-[50px] pb-[50px] pr-[7.5rem] box-border min-h-[420px] ${productBlockStyleMap[version]} ${className}`}
38
38
  id={anchor}
39
39
  >
40
- {renderBackwardButton('Все дебетовые карты', version, 'mb-10')}
40
+ {backwardButton ? renderBackwardButton(backwardButton, version, 'mb-10 -mt-[10px]') : null}
41
41
  {breadcrumbs?.length ? (
42
42
  <div className="text-xs mb-6">
43
43
  {joinList(<span className={`mx-2 ${breadcrumbsStyleMap[version]}`}>/</span>)(
@@ -1,6 +1,6 @@
1
1
  import type { BlockVersion } from '../../model/BlockVersion';
2
2
  import type { LinkProps } from '../../model/LinkProps';
3
- import type { ButtonContent, ButtonProps } from '../../ui-kit/Button/ButtonProps';
3
+ import type { ButtonContent, ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
4
4
  import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
5
5
  import type { HeadingContent, HeadingTypeContent } from '../../ui-kit/Heading/HeadingContent';
6
6
  import type { ImageContent } from '../../ui-kit/Img/ImgProps';
@@ -32,8 +32,6 @@ export type ProductBlockInnerContent = HeadingContent &
32
32
  * @hidden
33
33
  */
34
34
  textBlockClassName?: string;
35
- /** @title Текст кнопки возврата */
36
- backwardButton?: ButtonProps;
37
35
  };
38
36
 
39
37
  /**
@@ -42,4 +40,6 @@ export type ProductBlockInnerContent = HeadingContent &
42
40
  export interface ProductBlockContent extends ProductBlockInnerContent {
43
41
  /** @title Хлебные крошки */
44
42
  breadcrumbs?: LinkProps[];
43
+ /** @title Кнопка возврата */
44
+ backwardButton?: ButtonWithIconProps;
45
45
  }
@@ -1,34 +1,24 @@
1
1
  import type { BlockVersion } from '../../model/BlockVersion';
2
2
  import { Button } from '../../ui-kit/Button/Button';
3
+ import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
3
4
  import { Img } from '../../ui-kit/Img/Img';
4
5
 
5
- const backwardBgStyleMap: Record<BlockVersion, string> = {
6
- primary: 'bg-primary-main',
7
- secondary: 'bg-white',
8
- };
9
-
10
- const backwardIconStyleMap: Record<BlockVersion, string> = {
11
- primary: 'text-white',
12
- secondary: 'text-primary-text',
13
- };
14
-
15
- export function renderBackwardButton(text: string, version: BlockVersion, className: string) {
6
+ export function renderBackwardButton(
7
+ button: ButtonWithIconProps,
8
+ version: BlockVersion,
9
+ className: string,
10
+ ) {
16
11
  return (
17
12
  <div className={`flex items-center ${className}`}>
18
13
  <Button
14
+ version={version}
19
15
  rounded
20
- className={`w-12 h-12 min-h-12 max-h-12 flex items-center justify-center mr-3 ${backwardBgStyleMap[version]}`}
21
- ariaLabel={text}
16
+ className="w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3"
17
+ ariaLabel={button?.text}
22
18
  >
23
- <Img
24
- className={`w-4 h-4 min-w-4 min-h-4 rounded-full box-border ${backwardIconStyleMap[version]}`}
25
- image={{ icon: 'ArrowLeftIcon' }}
26
- width="24"
27
- height="24"
28
- asSVG
29
- />
19
+ <Img className="w-4 h-4" image={button?.icon || { icon: 'ArrowLeftIcon' }} asSVG />
30
20
  </Button>
31
- {text ? <span className="text-m-md">{text}</span> : null}
21
+ {button?.text ? <span className="text-m-md font-light">{button.text}</span> : null}
32
22
  </div>
33
23
  );
34
24
  }
@@ -27,12 +27,10 @@ export function renderBenefit(benefit: Benefit, i: number, version: string) {
27
27
  asSVG
28
28
  />
29
29
  ) : null}
30
- <div className="flex gap-0.5 flex-col h-full max-w-[149px]">
31
- <div className={`font-medium text-xl m-0 ${benefitTitleStyleMap[version]}`}>
32
- {benefit.label}
33
- </div>
30
+ <div className="flex gap-0.5 flex-col h-full max-w-[149px] min-w-[149px]">
31
+ <div className={`text-xl m-0 ${benefitTitleStyleMap[version]}`}>{benefit.label}</div>
34
32
  {benefit.description && (
35
- <div className={`font-normal text-m-md ${benefitDescStyleMap[version]}`}>
33
+ <div className={`font-light text-m-md ${benefitDescStyleMap[version]}`}>
36
34
  {benefit.description}
37
35
  </div>
38
36
  )}
@@ -89,14 +89,14 @@ const renderNavButtons = ({
89
89
  <div>
90
90
  {showPrevButton && (
91
91
  <ArrowButton
92
- className="absolute top-1/2 left-8 rotate-180 z-10 mt-6"
92
+ className="absolute top-1/2 left-8 z-10 mt-6"
93
93
  onClick={handlePrevClick}
94
94
  ariaLabel="Пролистать влево"
95
95
  />
96
96
  )}
97
97
  {showNextButton && (
98
98
  <ArrowButton
99
- className="absolute top-1/2 right-8 z-10 mt-6"
99
+ className="absolute top-1/2 right-8 z-10 mt-6 rotate-180"
100
100
  onClick={handleNextClick}
101
101
  ariaLabel="Пролистать вправо"
102
102
  />
@@ -1,7 +1,7 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import type { UniBlockProps } from '../../types';
3
- import { Heading } from '../../ui-kit/Heading/Heading';
4
3
  import { Button } from '../../ui-kit/Button/Button';
4
+ import { Heading } from '../../ui-kit/Heading/Heading';
5
5
  import { Img } from '../../ui-kit/Img/Img';
6
6
  import { joinList } from '../../utils/joinList';
7
7
  import type { Step, StepsBlockContent } from './StepsBlockContent';
@@ -24,7 +24,7 @@ export const StepsBlock = JSX<StepsBlockProps>(
24
24
  >
25
25
  <Heading headingType="h2" className="max-w-[47rem] text-center" title={title} />
26
26
  {steps?.length ? (
27
- <div className={`box-border py-0.5 mb-0.5 ${title ? 'mt-9' : ''}`}>
27
+ <div className={`box-border ${title ? 'mt-9' : ''}`}>
28
28
  <div className="flex items-center px-[88px]">
29
29
  {joinList(
30
30
  <div
@@ -39,7 +39,7 @@ export const StepsBlock = JSX<StepsBlockProps>(
39
39
  ) : null}
40
40
  {button?.text ? (
41
41
  <Button
42
- className="box-border mt-[43px] py-3 h-12 w-full max-w-[240px]"
42
+ className="box-border mt-8 py-3 h-12 w-full max-w-[240px]"
43
43
  version="primary"
44
44
  href="#"
45
45
  >
@@ -1,4 +1,4 @@
1
- <svg title="Стрелка 'Влево'" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
1
+ <svg title="Стрелка" 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>
@@ -84,7 +84,7 @@ export enum IconTitleMap {
84
84
  ActualBalanceIcon = 'Деньги',
85
85
  AppleIcon = 'Лого «Apple»',
86
86
  ArrowDownIcon = "Стрелка 'Вниз'",
87
- ArrowLeftIcon = "Стрелка 'Влево'",
87
+ ArrowLeftIcon = 'Стрелка',
88
88
  ArrowsRewindRight = 'ArrowsRewindRight',
89
89
  ArrowUpIcon = 'ArrowUpIcon',
90
90
  AtmIcon = 'Банкомат',
@@ -164,7 +164,7 @@ export enum IconTitleMap {
164
164
  * @title Иконка
165
165
  * @enumNames [
166
166
  * "",
167
- * "Деньги", "Лого «Apple»", "Стрелка 'Вниз'", "Стрелка 'Влево'", "ArrowsRewindRight", "ArrowUpIcon", "Банкомат", "Банк", "Бургер", "Бургер (белый)", "Календарь 2", "Скруглённый календарь", "Календарь", "Календарь с галочкой", "Календарь белый", "Кред. карта", "Кред. карта под наклоном", "Кред. карта с галочкой", "Карта с драгоценностями", "Деньги внутри кошелька", "Часы", "Крестик", "Кресло", "Кредитные карты", "Скидка", "Документ", "Документ (одноцветный)", "Документ с текстом", "Доллар", "Земля", "Пустой кошелёк с возвратом", "Пустой кошелёк", "Пустой кошелёк (белый)", "Евро", "Геолокация", "Зеркало", "Глобус", "Gps", "Сетка", "Сетка (белая)", "Диаграмма роста", "Скидка", "JCB", "Лупа", "MasterCard", "Минус", "МИР", "Деньги", "Денежное страхование", "Монитор и мобильный", "Новый документ", "Офис", "Лого «Одноклассники»", "Бизнес", "Проценты (круг.)", "Проценты", "Проценты белые", "Персональная карта", "Лого «PlayMarket»", "Плюс", "Профиль, 2 персоны", "Профиль", "Рубль (круг.)", "Сейф", "Безопасность", "Подписанные документы", "Маленькие часы", "Лого «Telegram»", "UnionPay", "Пользователь", "Visa", "Лого «VK»", "Пополнение карты", "Кошелёк с плюсом", "Кошелёк", "Кошелёк с деньгами"
167
+ * "Деньги", "Лого «Apple»", "Стрелка 'Вниз'", "Стрелка", "ArrowsRewindRight", "ArrowUpIcon", "Банкомат", "Банк", "Бургер", "Бургер (белый)", "Календарь 2", "Скруглённый календарь", "Календарь", "Календарь с галочкой", "Календарь белый", "Кред. карта", "Кред. карта под наклоном", "Кред. карта с галочкой", "Карта с драгоценностями", "Деньги внутри кошелька", "Часы", "Крестик", "Кресло", "Кредитные карты", "Скидка", "Документ", "Документ (одноцветный)", "Документ с текстом", "Доллар", "Земля", "Пустой кошелёк с возвратом", "Пустой кошелёк", "Пустой кошелёк (белый)", "Евро", "Геолокация", "Зеркало", "Глобус", "Gps", "Сетка", "Сетка (белая)", "Диаграмма роста", "Скидка", "JCB", "Лупа", "MasterCard", "Минус", "МИР", "Деньги", "Денежное страхование", "Монитор и мобильный", "Новый документ", "Офис", "Лого «Одноклассники»", "Бизнес", "Проценты (круг.)", "Проценты", "Проценты белые", "Персональная карта", "Лого «PlayMarket»", "Плюс", "Профиль, 2 персоны", "Профиль", "Рубль (круг.)", "Сейф", "Безопасность", "Подписанные документы", "Маленькие часы", "Лого «Telegram»", "UnionPay", "Пользователь", "Visa", "Лого «VK»", "Пополнение карты", "Кошелёк с плюсом", "Кошелёк", "Кошелёк с деньгами"
168
168
  * ]
169
169
  */
170
170
  export type IconName =
@@ -1,20 +1,7 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { Button } from './Button';
3
3
  import { ButtonProps } from './ButtonProps';
4
- import { SVG } from '../SVG';
5
-
6
- const ARROW_PATHS = [
7
- {
8
- d: 'm9 12 4-4-4-4',
9
- stroke: 'currentColor',
10
- strokeWidth: '2',
11
- strokeLinecap: 'round',
12
- fill: 'none',
13
- },
14
- {
15
- d: 'M2 9a1 1 0 0 1 0-2v2Zm6-2a1 1 0 0 1 0 2V7ZM2 7h6v2H2V7Z',
16
- },
17
- ];
4
+ import { Img } from '../Img/Img';
18
5
 
19
6
  export const ArrowButton = JSX<ButtonProps>(({ className, disabled, ...rest }) => (
20
7
  <Button
@@ -27,6 +14,12 @@ export const ArrowButton = JSX<ButtonProps>(({ className, disabled, ...rest }) =
27
14
  disabled={disabled}
28
15
  {...rest}
29
16
  >
30
- <SVG paths={ARROW_PATHS} viewBox="0 0 16 16" fill="none" width="16" height="16" />
17
+ <Img
18
+ className="w-4 h-4 min-w-4 min-h-4 rounded-full box-border"
19
+ image={{ icon: 'ArrowLeftIcon' }}
20
+ width="16"
21
+ height="16"
22
+ asSVG
23
+ />
31
24
  </Button>
32
25
  ));
@@ -21,22 +21,26 @@ const buttonStyle = 'text-center font-sans select-none';
21
21
  export interface ButtonCommonProps extends ButtonProps, ButtonWithIconProps {}
22
22
 
23
23
  export const Button = JSX<ButtonCommonProps>((props) => {
24
- const { text, aboveText, appendLeft, children, disabled, rounded } = props;
24
+ const { text, aboveText, appendLeft, children, disabled, rounded, ...rest } = props;
25
25
 
26
26
  const buttonInner = children ?? (
27
27
  <ButtonInner text={text} aboveText={aboveText} appendLeft={appendLeft} rounded={rounded} />
28
28
  );
29
29
 
30
30
  return disabled ? (
31
- <DisabledButton {...props}>{buttonInner}</DisabledButton>
31
+ <DisabledButton rounded={rounded} {...rest}>
32
+ {buttonInner}
33
+ </DisabledButton>
32
34
  ) : (
33
- <RegularButton {...props}>{buttonInner}</RegularButton>
35
+ <RegularButton rounded={rounded} {...rest}>
36
+ {buttonInner}
37
+ </RegularButton>
34
38
  );
35
39
  });
36
40
 
37
41
  export const RegularButton = JSX<ButtonCommonProps>(
38
42
  ({
39
- className,
43
+ className = '',
40
44
  ariaLabel,
41
45
  version = 'none',
42
46
  rounded,
@@ -46,20 +50,17 @@ export const RegularButton = JSX<ButtonCommonProps>(
46
50
  onClick,
47
51
  ...rest
48
52
  }) => {
49
- // Pick Button props to prevent forwarding into HTML <a> tag leading to errors being printed in console.
50
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
51
- const { aboveText, appendLeft, ...linkProps } = rest;
52
53
  return (
53
54
  <a
54
55
  className={`${buttonStyle} inline-block cursor-pointer no-underline ${
55
56
  buttonStyleMap[version] || ''
56
- } ${rounded ? 'rounded-full' : 'rounded-md'} ${className || ''}`}
57
+ } ${rounded ? 'rounded-full' : 'rounded-md'} ${className}`}
57
58
  href={href}
58
59
  target={target}
59
60
  onClick={onClick}
60
61
  aria-label={ariaLabel}
61
62
  role={href ? 'link' : 'button'}
62
- {...linkProps}
63
+ {...rest}
63
64
  >
64
65
  {children}
65
66
  </a>
@@ -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 text-left">{text}</div>
17
+ <div className="text-button-sm text-left">{text}</div>
18
18
  </div>
19
19
  ) : null}
20
20
  </div>
@@ -8,10 +8,10 @@ export interface HeadingProps extends HeadingContent, HeadingTypeContent {
8
8
 
9
9
  const HEADING_STYLE_MAP: Record<HeadingType, string> = {
10
10
  h1: 'text-title-xl tracking-[-0.3px]',
11
- h2: 'text-title',
12
- h3: 'text-title-sm',
13
- h4: 'text-title-xs',
14
- h5: 'text-title-2xs tracking-[0.2px]',
11
+ h2: 'text-title-lg',
12
+ h3: 'text-title',
13
+ h4: 'text-title-sm',
14
+ h5: 'text-title-xs',
15
15
  h6: 'text-title-2xs tracking-[0.2px]',
16
16
  };
17
17
 
@@ -8,13 +8,14 @@ export const TableArrowScrollControl = JSX<TableArrowScrollControlProps>(
8
8
  <div>
9
9
  <div className="absolute top-7 right-7 z-10">
10
10
  <ArrowButton
11
+ className="mt-4 rotate-180"
11
12
  onClick={onNextClick}
12
13
  disabled={!showNextButton}
13
14
  ariaLabel="Пролистать вправо"
14
15
  data-block-control="scroll-right"
15
16
  />
16
17
  <ArrowButton
17
- className="mt-4 rotate-180"
18
+ className="mt-4"
18
19
  onClick={onPrevClick}
19
20
  disabled={!showPrevButton}
20
21
  ariaLabel="Пролистать влево"