@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.
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +54 -38
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/Accordion/AccordionBlocks.d.ts +1 -2
- package/dist/components/Accordion/AccordionBlocks.js +2 -2
- package/dist/components/Accordion/AccordionBlocks.js.map +1 -1
- package/dist/components/Accordion/AccordionItem.js +3 -6
- package/dist/components/Accordion/AccordionItem.js.map +1 -1
- package/dist/components/BaseTile/BaseTile.js +7 -2
- package/dist/components/BaseTile/BaseTile.js.map +1 -1
- package/dist/components/CreditCalculator/CreditCalculator.js +3 -3
- package/dist/components/CreditCalculator/CreditCalculator.js.map +1 -1
- package/dist/components/Footer/Footer.js +1 -1
- package/dist/components/Footer/Footer.js.map +1 -1
- package/dist/components/Footer/Sitemap.js +1 -1
- package/dist/components/Footer/Sitemap.js.map +1 -1
- package/dist/components/Gallery/Gallery.mobile.js +1 -1
- package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
- package/dist/components/Gallery/GalleryCardInner.d.ts +2 -0
- package/dist/components/Gallery/GalleryCardInner.js +19 -0
- package/dist/components/Gallery/GalleryCardInner.js.map +1 -0
- package/dist/components/Gallery/GalleryContainer.d.ts +13 -0
- package/dist/components/Gallery/GalleryContainer.js +16 -0
- package/dist/components/Gallery/GalleryContainer.js.map +1 -0
- package/dist/components/Gallery/GalleryContent.d.ts +8 -2
- package/dist/components/Gallery/GalleryInner.d.ts +1 -1
- package/dist/components/Gallery/GalleryInner.js +8 -36
- package/dist/components/Gallery/GalleryInner.js.map +1 -1
- package/dist/components/Gallery/constants.d.ts +6 -0
- package/dist/components/Gallery/constants.js +19 -0
- package/dist/components/Gallery/constants.js.map +1 -0
- package/dist/components/TariffsTable/TariffsTableContent.d.ts +5 -1
- package/dist/ui-kit/BlockItem/BlockItem.js +4 -4
- package/dist/ui-kit/BlockItem/BlockItem.js.map +1 -1
- package/dist/ui-kit/Checkbox/Checkbox.js +2 -2
- package/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/dist/ui-kit/InputRange/InputRange.js +2 -1
- package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/dist/ui-kit/SearchBar.js +1 -1
- package/dist/ui-kit/SearchBar.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Accordion/AccordionBlocks.d.ts +1 -2
- package/lib/components/Accordion/AccordionBlocks.js +1 -2
- package/lib/components/Accordion/AccordionBlocks.js.map +1 -1
- package/lib/components/Accordion/AccordionItem.js +1 -1
- package/lib/components/Accordion/AccordionItem.js.map +1 -1
- package/lib/components/BaseTile/BaseTile.js +7 -2
- package/lib/components/BaseTile/BaseTile.js.map +1 -1
- package/lib/components/CreditCalculator/CreditCalculator.js +3 -3
- package/lib/components/CreditCalculator/CreditCalculator.js.map +1 -1
- package/lib/components/Footer/Footer.js +1 -1
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Footer/Sitemap.js +1 -1
- package/lib/components/Footer/Sitemap.js.map +1 -1
- package/lib/components/Gallery/Gallery.mobile.js +1 -1
- package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
- package/lib/components/Gallery/GalleryCardInner.d.ts +2 -0
- package/lib/components/Gallery/GalleryCardInner.js +17 -0
- package/lib/components/Gallery/GalleryCardInner.js.map +1 -0
- package/lib/components/Gallery/GalleryContainer.d.ts +13 -0
- package/lib/components/Gallery/GalleryContainer.js +14 -0
- package/lib/components/Gallery/GalleryContainer.js.map +1 -0
- package/lib/components/Gallery/GalleryContent.d.ts +8 -2
- package/lib/components/Gallery/GalleryInner.d.ts +1 -1
- package/lib/components/Gallery/GalleryInner.js +6 -34
- package/lib/components/Gallery/GalleryInner.js.map +1 -1
- package/lib/components/Gallery/constants.d.ts +6 -0
- package/lib/components/Gallery/constants.js +17 -0
- package/lib/components/Gallery/constants.js.map +1 -0
- package/lib/components/TariffsTable/TariffsTableContent.d.ts +5 -1
- package/lib/ui-kit/BlockItem/BlockItem.js +4 -4
- package/lib/ui-kit/BlockItem/BlockItem.js.map +1 -1
- package/lib/ui-kit/Checkbox/Checkbox.js +2 -2
- package/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/lib/ui-kit/InputRange/InputRange.js +2 -1
- package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/lib/ui-kit/SearchBar.js +1 -1
- package/lib/ui-kit/SearchBar.js.map +1 -1
- package/package.json +4 -3
- package/src/components/Accordion/Accordion.fixture.tsx +5 -1
- package/src/components/Accordion/AccordionBlocks.tsx +1 -3
- package/src/components/Accordion/AccordionItem.tsx +1 -1
- package/src/components/BaseTile/BaseTile.tsx +8 -3
- package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +31 -28
- package/src/components/ComparisonTable/ComparisonTable.fixture.tsx +43 -53
- package/src/components/CreditCalculator/CreditCalculator.fixture.tsx +9 -1
- package/src/components/CreditCalculator/CreditCalculator.tsx +11 -8
- package/src/components/ExchangeRateTile/ExchangeRateTile.fixture.tsx +1 -1
- package/src/components/Footer/Footer.fixture.tsx +265 -258
- package/src/components/Footer/Footer.tsx +3 -3
- package/src/components/Footer/Sitemap.tsx +1 -1
- package/src/components/Gallery/Gallery.fixture.tsx +52 -48
- package/src/components/Gallery/Gallery.mobile.tsx +1 -3
- package/src/components/Gallery/GalleryCardInner.tsx +53 -0
- package/src/components/Gallery/GalleryContainer.tsx +58 -0
- package/src/components/Gallery/GalleryContent.ts +8 -2
- package/src/components/Gallery/GalleryInner.tsx +15 -94
- package/src/components/Gallery/constants.ts +22 -0
- package/src/components/Headline/Headline.fixture.tsx +25 -3
- package/src/components/LikeControl/LikeControl.fixture.tsx +5 -1
- package/src/components/LinkDocs/LinkDocs.fixture.tsx +21 -4
- package/src/components/MiniGallery/MiniGallery.fixture.tsx +12 -22
- package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +1 -1
- package/src/components/PictureText/PictureText.fixture.tsx +5 -1
- package/src/components/Placeholder/Placeholder.fixture.tsx +5 -1
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +82 -76
- package/src/components/ProductGallery/ProductGallery.fixture.tsx +96 -93
- package/src/components/ProductTile/ProductTile.fixture.tsx +4 -4
- package/src/components/PromoTile/PromoTile.fixture.tsx +1 -1
- package/src/components/StepsBlock/StepsBlock.fixture.tsx +21 -18
- package/src/components/TariffsTable/TariffsTable.fixture.tsx +5 -16
- package/src/components/TariffsTable/TariffsTableContent.ts +5 -1
- package/src/components/TextBlock/TextBlock.fixture.tsx +62 -45
- package/src/components/Tile/Tile.fixture.tsx +11 -8
- package/src/setup-fixture.ts +1 -2
- package/src/ui-kit/BlockItem/BlockItem.tsx +4 -4
- package/src/ui-kit/Checkbox/Checkbox.tsx +7 -3
- package/src/ui-kit/InputRange/InputRange.tsx +7 -6
- 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="
|
|
23
|
-
<div>
|
|
24
|
-
<
|
|
25
|
-
|
|
26
|
-
<
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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
|
-
|
|
57
|
-
'
|
|
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"
|
package/src/setup-fixture.ts
CHANGED
|
@@ -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-
|
|
6
|
-
secondary: 'bg-
|
|
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-
|
|
11
|
-
secondary: '
|
|
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
|
|
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-
|
|
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 ?
|
|
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
|
|
35
|
-
|
|
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
|
|
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
|
|
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
|
))}
|
package/src/ui-kit/SearchBar.tsx
CHANGED
|
@@ -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
|
-
}
|
|
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
|
-
|
|
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');
|