@redneckz/wildless-cms-uni-blocks 0.2.94 → 0.2.96

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 (119) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +54 -38
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/dist/components/Accordion/AccordionBlocks.d.ts +1 -2
  5. package/dist/components/Accordion/AccordionBlocks.js +2 -2
  6. package/dist/components/Accordion/AccordionBlocks.js.map +1 -1
  7. package/dist/components/Accordion/AccordionItem.js +3 -6
  8. package/dist/components/Accordion/AccordionItem.js.map +1 -1
  9. package/dist/components/BaseTile/BaseTile.js +7 -2
  10. package/dist/components/BaseTile/BaseTile.js.map +1 -1
  11. package/dist/components/CreditCalculator/CreditCalculator.js +3 -3
  12. package/dist/components/CreditCalculator/CreditCalculator.js.map +1 -1
  13. package/dist/components/Footer/Footer.js +1 -1
  14. package/dist/components/Footer/Footer.js.map +1 -1
  15. package/dist/components/Footer/Sitemap.js +1 -1
  16. package/dist/components/Footer/Sitemap.js.map +1 -1
  17. package/dist/components/Gallery/Gallery.mobile.js +1 -1
  18. package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
  19. package/dist/components/Gallery/GalleryCardInner.d.ts +2 -0
  20. package/dist/components/Gallery/GalleryCardInner.js +19 -0
  21. package/dist/components/Gallery/GalleryCardInner.js.map +1 -0
  22. package/dist/components/Gallery/GalleryContainer.d.ts +13 -0
  23. package/dist/components/Gallery/GalleryContainer.js +16 -0
  24. package/dist/components/Gallery/GalleryContainer.js.map +1 -0
  25. package/dist/components/Gallery/GalleryContent.d.ts +8 -2
  26. package/dist/components/Gallery/GalleryInner.d.ts +1 -1
  27. package/dist/components/Gallery/GalleryInner.js +8 -36
  28. package/dist/components/Gallery/GalleryInner.js.map +1 -1
  29. package/dist/components/Gallery/constants.d.ts +6 -0
  30. package/dist/components/Gallery/constants.js +19 -0
  31. package/dist/components/Gallery/constants.js.map +1 -0
  32. package/dist/components/TariffsTable/TariffsTableContent.d.ts +5 -1
  33. package/dist/ui-kit/BlockItem/BlockItem.js +4 -4
  34. package/dist/ui-kit/BlockItem/BlockItem.js.map +1 -1
  35. package/dist/ui-kit/Checkbox/Checkbox.js +2 -2
  36. package/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
  37. package/dist/ui-kit/InputRange/InputRange.js +2 -1
  38. package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  39. package/dist/ui-kit/SearchBar.js +1 -1
  40. package/dist/ui-kit/SearchBar.js.map +1 -1
  41. package/lib/common.css +1 -1
  42. package/lib/components/Accordion/AccordionBlocks.d.ts +1 -2
  43. package/lib/components/Accordion/AccordionBlocks.js +1 -2
  44. package/lib/components/Accordion/AccordionBlocks.js.map +1 -1
  45. package/lib/components/Accordion/AccordionItem.js +1 -1
  46. package/lib/components/Accordion/AccordionItem.js.map +1 -1
  47. package/lib/components/BaseTile/BaseTile.js +7 -2
  48. package/lib/components/BaseTile/BaseTile.js.map +1 -1
  49. package/lib/components/CreditCalculator/CreditCalculator.js +3 -3
  50. package/lib/components/CreditCalculator/CreditCalculator.js.map +1 -1
  51. package/lib/components/Footer/Footer.js +1 -1
  52. package/lib/components/Footer/Footer.js.map +1 -1
  53. package/lib/components/Footer/Sitemap.js +1 -1
  54. package/lib/components/Footer/Sitemap.js.map +1 -1
  55. package/lib/components/Gallery/Gallery.mobile.js +1 -1
  56. package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
  57. package/lib/components/Gallery/GalleryCardInner.d.ts +2 -0
  58. package/lib/components/Gallery/GalleryCardInner.js +17 -0
  59. package/lib/components/Gallery/GalleryCardInner.js.map +1 -0
  60. package/lib/components/Gallery/GalleryContainer.d.ts +13 -0
  61. package/lib/components/Gallery/GalleryContainer.js +14 -0
  62. package/lib/components/Gallery/GalleryContainer.js.map +1 -0
  63. package/lib/components/Gallery/GalleryContent.d.ts +8 -2
  64. package/lib/components/Gallery/GalleryInner.d.ts +1 -1
  65. package/lib/components/Gallery/GalleryInner.js +6 -34
  66. package/lib/components/Gallery/GalleryInner.js.map +1 -1
  67. package/lib/components/Gallery/constants.d.ts +6 -0
  68. package/lib/components/Gallery/constants.js +17 -0
  69. package/lib/components/Gallery/constants.js.map +1 -0
  70. package/lib/components/TariffsTable/TariffsTableContent.d.ts +5 -1
  71. package/lib/ui-kit/BlockItem/BlockItem.js +4 -4
  72. package/lib/ui-kit/BlockItem/BlockItem.js.map +1 -1
  73. package/lib/ui-kit/Checkbox/Checkbox.js +2 -2
  74. package/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
  75. package/lib/ui-kit/InputRange/InputRange.js +2 -1
  76. package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  77. package/lib/ui-kit/SearchBar.js +1 -1
  78. package/lib/ui-kit/SearchBar.js.map +1 -1
  79. package/package.json +4 -3
  80. package/src/components/Accordion/Accordion.fixture.tsx +5 -1
  81. package/src/components/Accordion/AccordionBlocks.tsx +1 -3
  82. package/src/components/Accordion/AccordionItem.tsx +1 -1
  83. package/src/components/BaseTile/BaseTile.tsx +8 -3
  84. package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +31 -28
  85. package/src/components/ComparisonTable/ComparisonTable.fixture.tsx +43 -53
  86. package/src/components/CreditCalculator/CreditCalculator.fixture.tsx +9 -1
  87. package/src/components/CreditCalculator/CreditCalculator.tsx +11 -8
  88. package/src/components/ExchangeRateTile/ExchangeRateTile.fixture.tsx +1 -1
  89. package/src/components/Footer/Footer.fixture.tsx +265 -258
  90. package/src/components/Footer/Footer.tsx +3 -3
  91. package/src/components/Footer/Sitemap.tsx +1 -1
  92. package/src/components/Gallery/Gallery.fixture.tsx +52 -48
  93. package/src/components/Gallery/Gallery.mobile.tsx +1 -3
  94. package/src/components/Gallery/GalleryCardInner.tsx +53 -0
  95. package/src/components/Gallery/GalleryContainer.tsx +58 -0
  96. package/src/components/Gallery/GalleryContent.ts +8 -2
  97. package/src/components/Gallery/GalleryInner.tsx +15 -94
  98. package/src/components/Gallery/constants.ts +22 -0
  99. package/src/components/Headline/Headline.fixture.tsx +25 -3
  100. package/src/components/LikeControl/LikeControl.fixture.tsx +5 -1
  101. package/src/components/LinkDocs/LinkDocs.fixture.tsx +21 -4
  102. package/src/components/MiniGallery/MiniGallery.fixture.tsx +12 -22
  103. package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +1 -1
  104. package/src/components/PictureText/PictureText.fixture.tsx +5 -1
  105. package/src/components/Placeholder/Placeholder.fixture.tsx +5 -1
  106. package/src/components/ProductBlock/ProductBlock.fixture.tsx +82 -76
  107. package/src/components/ProductGallery/ProductGallery.fixture.tsx +96 -93
  108. package/src/components/ProductTile/ProductTile.fixture.tsx +4 -4
  109. package/src/components/PromoTile/PromoTile.fixture.tsx +1 -1
  110. package/src/components/StepsBlock/StepsBlock.fixture.tsx +21 -18
  111. package/src/components/TariffsTable/TariffsTable.fixture.tsx +5 -16
  112. package/src/components/TariffsTable/TariffsTableContent.ts +5 -1
  113. package/src/components/TextBlock/TextBlock.fixture.tsx +62 -45
  114. package/src/components/Tile/Tile.fixture.tsx +11 -8
  115. package/src/setup-fixture.ts +1 -2
  116. package/src/ui-kit/BlockItem/BlockItem.tsx +4 -4
  117. package/src/ui-kit/Checkbox/Checkbox.tsx +7 -3
  118. package/src/ui-kit/InputRange/InputRange.tsx +7 -6
  119. package/src/ui-kit/SearchBar.tsx +3 -4
@@ -19,53 +19,70 @@ export const TEXT_BLOCK: TextBlockContent = {
19
19
  };
20
20
 
21
21
  export default (
22
- <div className="font-sans overflow-hidden">
23
- <div>
24
- <p>Private clients</p>
25
- <div className="flex flex-col gap-6" data-theme="pc">
26
- <TextBlock context={context} {...TEXT_BLOCK} blockVersion="primary" iconVersion="small" />
27
- <TextBlock
28
- context={context}
29
- {...TEXT_BLOCK}
30
- blockVersion="primary"
31
- iconVersion="big"
32
- image={image}
33
- />
34
- <TextBlock context={context} {...TEXT_BLOCK} blockVersion="primary" iconVersion="none" />
35
- <TextBlock context={context} {...TEXT_BLOCK} blockVersion="primary" iconVersion="small" />
36
- <TextBlock context={context} {...TEXT_BLOCK} blockVersion="secondary" iconVersion="small" />
37
- <TextBlock
38
- context={context}
39
- {...TEXT_BLOCK}
40
- blockVersion="secondary-light"
41
- iconVersion="small"
42
- />
22
+ <div className="container grid grid-cols-12">
23
+ <div className="font-sans overflow-hidden col-span-12">
24
+ <div>
25
+ <p>Private clients</p>
26
+ <div className="flex flex-col gap-6" data-theme="pc">
27
+ <TextBlock context={context} {...TEXT_BLOCK} blockVersion="primary" iconVersion="small" />
28
+ <TextBlock
29
+ context={context}
30
+ {...TEXT_BLOCK}
31
+ blockVersion="primary"
32
+ iconVersion="big"
33
+ image={image}
34
+ />
35
+ <TextBlock context={context} {...TEXT_BLOCK} blockVersion="primary" iconVersion="none" />
36
+ <TextBlock context={context} {...TEXT_BLOCK} blockVersion="primary" iconVersion="small" />
37
+ <TextBlock
38
+ context={context}
39
+ {...TEXT_BLOCK}
40
+ blockVersion="secondary"
41
+ iconVersion="small"
42
+ />
43
+ <TextBlock
44
+ context={context}
45
+ {...TEXT_BLOCK}
46
+ blockVersion="secondary-light"
47
+ iconVersion="small"
48
+ />
49
+ </div>
43
50
  </div>
44
- </div>
45
- <div>
46
- <p>Business clients</p>
47
- <div className="flex flex-col gap-6" data-theme="bc">
48
- <TextBlock context={context} {...TEXT_BLOCK} blockVersion="primary" iconVersion="small" />
49
- <TextBlock context={context} {...TEXT_BLOCK} blockVersion="secondary" iconVersion="small" />
50
- <TextBlock
51
- context={context}
52
- {...TEXT_BLOCK}
53
- blockVersion="secondary-light"
54
- iconVersion="small"
55
- />
51
+ <div>
52
+ <p>Business clients</p>
53
+ <div className="flex flex-col gap-6" data-theme="bc">
54
+ <TextBlock context={context} {...TEXT_BLOCK} blockVersion="primary" iconVersion="small" />
55
+ <TextBlock
56
+ context={context}
57
+ {...TEXT_BLOCK}
58
+ blockVersion="secondary"
59
+ iconVersion="small"
60
+ />
61
+ <TextBlock
62
+ context={context}
63
+ {...TEXT_BLOCK}
64
+ blockVersion="secondary-light"
65
+ iconVersion="small"
66
+ />
67
+ </div>
56
68
  </div>
57
- </div>
58
- <div>
59
- <p>Ecosystem own</p>
60
- <div className="flex flex-col gap-6" data-theme="eo">
61
- <TextBlock context={context} {...TEXT_BLOCK} blockVersion="primary" iconVersion="small" />
62
- <TextBlock context={context} {...TEXT_BLOCK} blockVersion="secondary" iconVersion="small" />
63
- <TextBlock
64
- context={context}
65
- {...TEXT_BLOCK}
66
- blockVersion="secondary-light"
67
- iconVersion="small"
68
- />
69
+ <div>
70
+ <p>Ecosystem own</p>
71
+ <div className="flex flex-col gap-6" data-theme="eo">
72
+ <TextBlock context={context} {...TEXT_BLOCK} blockVersion="primary" iconVersion="small" />
73
+ <TextBlock
74
+ context={context}
75
+ {...TEXT_BLOCK}
76
+ blockVersion="secondary"
77
+ iconVersion="small"
78
+ />
79
+ <TextBlock
80
+ context={context}
81
+ {...TEXT_BLOCK}
82
+ blockVersion="secondary-light"
83
+ iconVersion="small"
84
+ />
85
+ </div>
69
86
  </div>
70
87
  </div>
71
88
  </div>
@@ -25,7 +25,7 @@ const image4: Picture = {
25
25
 
26
26
  export default {
27
27
  credit: (
28
- <div className="grid grid-cols-12">
28
+ <div className="container grid grid-cols-12">
29
29
  <Tile
30
30
  context={context}
31
31
  className="col-span-8"
@@ -47,15 +47,18 @@ export default {
47
47
  </div>
48
48
  ),
49
49
  mortgage: (
50
- <div className="grid grid-cols-12">
50
+ <div className="container grid grid-cols-12">
51
51
  <Tile
52
52
  context={context}
53
53
  version="secondary"
54
54
  className="col-span-4"
55
55
  title="Ипотека"
56
- description={
57
- 'Широкий выбор ипотечных программ с государственной поддержкой. Специальные предложения от 12,2 %'
58
- }
56
+ items={[
57
+ 'Качественные фермерские продукты напрямую от производителей',
58
+ 'Самая большая база сельских туров по России',
59
+ 'Площадки для создания комфортной жизни за городом',
60
+ 'Подробная база вакансий для жителей сельской местности',
61
+ ]}
59
62
  buttons={[
60
63
  {
61
64
  href: 'https://rshb.ru',
@@ -68,7 +71,7 @@ export default {
68
71
  </div>
69
72
  ),
70
73
  'credit-card': (
71
- <div className="grid grid-cols-12">
74
+ <div className="container grid grid-cols-12">
72
75
  <Tile
73
76
  context={context}
74
77
  className="col-span-6"
@@ -87,7 +90,7 @@ export default {
87
90
  </div>
88
91
  ),
89
92
  premium: (
90
- <div className="grid grid-cols-12">
93
+ <div className="container grid grid-cols-12">
91
94
  <Tile
92
95
  context={context}
93
96
  className="col-span-6"
@@ -108,7 +111,7 @@ export default {
108
111
  </div>
109
112
  ),
110
113
  ecosystem: (
111
- <div className="grid grid-cols-12">
114
+ <div className="container grid grid-cols-12">
112
115
  <Tile
113
116
  context={context}
114
117
  className="col-span-12 pr-28"
@@ -1,11 +1,10 @@
1
1
  import { setup } from '@redneckz/uni-jsx';
2
2
 
3
- import runtime from 'react/jsx-runtime';
4
3
  import { useEffect, useState } from 'react';
4
+ import { jsx, jsxs } from 'react/jsx-runtime';
5
5
  import { DaDataAPI } from './api/DaDataAPI';
6
6
  import type { ContentPageContext } from './components/ContentPage/ContentPageContext';
7
7
 
8
- const { jsx, jsxs } = runtime as any;
9
8
  setup(jsx, jsxs);
10
9
 
11
10
  const TEST_ORIGIN = 'http://localhost:5001';
@@ -2,13 +2,13 @@ import { JSX } from '@redneckz/uni-jsx';
2
2
  import { BlockItemProps, BlockItemVersion } from './BlockItemProps';
3
3
 
4
4
  const listStyleMap: Record<BlockItemVersion, string> = {
5
- primary: 'bg-primary-main w-[8px] h-[8px] min-w-[8px] min-h-[8px] mt-2 rounded-full',
6
- secondary: 'bg-secondary-text w-[6px] h-[6px] min-w-[6px] min-h-[6px] mt-2.5 rounded-full',
5
+ primary: 'bg-secondary-text w-[6px] h-[6px] min-w-[6px] min-h-[6px] mt-2.5 rounded-full',
6
+ secondary: 'bg-white w-[6px] h-[6px] min-w-[6px] min-h-[6px] mt-2.5 rounded-full',
7
7
  };
8
8
 
9
9
  const textStyleMap: Record<BlockItemVersion, string> = {
10
- primary: 'text-primary-text',
11
- secondary: 'text-secondary-text',
10
+ primary: 'text-secondary-text',
11
+ secondary: '',
12
12
  };
13
13
 
14
14
  export const BlockItem = JSX<BlockItemProps>(
@@ -15,7 +15,9 @@ export const Checkbox = JSX<CheckboxProps>(({ text, checked, onChange, className
15
15
  <div className={className}>
16
16
  <label className="flex items-center cursor-pointer relative">
17
17
  <input
18
- className={`peer appearance-none w-5 h-5 border-solid border rounded border-black checked:bg-primary-main checked:border-primary-main`}
18
+ className={`peer appearance-none w-5 h-5 border-solid border ${
19
+ checked ? 'border-black' : 'border-main-stroke'
20
+ } rounded checked:bg-primary-main checked:border-primary-main m-0`}
19
21
  type="checkbox"
20
22
  onChange={(e) => {
21
23
  onChange(e.target.checked);
@@ -24,13 +26,15 @@ export const Checkbox = JSX<CheckboxProps>(({ text, checked, onChange, className
24
26
  />
25
27
  <SVG
26
28
  paths={CHECK_PATHS}
27
- className="hidden absolute left-2 ml-px peer-checked:block"
29
+ className="hidden absolute left-1 ml-px peer-checked:block"
28
30
  width="11"
29
31
  height="9"
30
32
  fill="white"
31
33
  viewBox="0 0 11 9"
32
34
  />
33
- {text ? <span className="font-sans ml-2 text-sm cursor-pointer">{text}</span> : null}
35
+ {text ? (
36
+ <span className="font-sans ml-3 text-sm leading-5 cursor-pointer">{text}</span>
37
+ ) : null}
34
38
  </label>
35
39
  </div>
36
40
  ));
@@ -31,14 +31,15 @@ export const InputRange = JSX<InputRangeProps>(
31
31
  </span>
32
32
  ) : null}
33
33
  <input
34
- className={`m-0 font-sans text-sm w-full h-12 border-2 border-solid border-main-divider rounded-md outline-none p-0 pl-4 m-0 box-border text-primary-text ${
35
- title ? 'pt-4' : ''
36
- }`}
34
+ className={`m-0 font-sans text-sm w-full h-12 border border-solid border-main-stroke rounded-md
35
+ outline-none p-0 pl-4 m-0 box-border text-primary-text ${
36
+ title ? 'pt-4' : ''
37
+ }`}
37
38
  value={addSpacesBetweenNumbers(value)}
38
39
  onChange={(e) => handleChange(e.target.value)}
39
40
  onBlur={handleBlur}
40
41
  />
41
- <div className="absolute inset-x-0 mt-0.5 top-8 px-4">
42
+ <div className="absolute inset-x-0 top-8 px-4">
42
43
  <input
43
44
  className="box-border w-full m-0 cursor-pointer slider"
44
45
  type="range"
@@ -51,9 +52,9 @@ export const InputRange = JSX<InputRangeProps>(
51
52
  />
52
53
  </div>
53
54
  </label>
54
- <div className="flex justify-between mt-3 mb-4">
55
+ <div className="flex justify-between my-3">
55
56
  {items.map((item, i) => (
56
- <span key={String(i)} className="text-xs text-secondary-text pl-4">
57
+ <span key={String(i)} className="text-xs leading-[14px] text-secondary-text pl-4">
57
58
  {item}
58
59
  </span>
59
60
  ))}
@@ -23,8 +23,8 @@ export const SearchBar = JSX<UniBlockProps>(({ className, context }) => {
23
23
  <input
24
24
  id="search-bar-input"
25
25
  className={`${
26
- inputHasFocus ? 'border-primary-text' : ''
27
- } pr-32 h-12 pl-12 w-full font-sans font-normal text-base text-black border border-solid border-main-divider rounded h-full box-border outline-none pr-[6%]`}
26
+ inputHasFocus ? 'border-primary-text' : 'border-main-divider'
27
+ } h-12 pl-12 w-full font-sans font-normal text-base text-black border border-solid rounded h-full box-border outline-none pr-[6%]`}
28
28
  value={term}
29
29
  onChange={(e) => setTerm(e.target.value)}
30
30
  onFocus={(e) => setInputHasFocus(true)}
@@ -35,8 +35,7 @@ export const SearchBar = JSX<UniBlockProps>(({ className, context }) => {
35
35
  {inputHasFocus && (
36
36
  <button
37
37
  type="submit"
38
- version="primary"
39
- className="absolute font-sans font-normal cursor-pointer text-sm hover:bg-primary-hover active:bg-primary-active border-none px-9 py-[9px] rounded top-1 right-1 outline-none text-secondary-text text-white bg-primary-main"
38
+ className="absolute font-sans font-normal cursor-pointer text-sm bg-primary-main hover:bg-primary-hover active:bg-primary-active border-none px-9 py-[9px] rounded top-1 right-1 outline-none text-secondary-text text-white"
40
39
  onClick={(e) => {
41
40
  e.preventDefault();
42
41
  console.log('click');