@redneckz/wildless-cms-uni-blocks 0.14.2 → 0.14.3
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/bundle.umd.js +17 -16
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/ui-kit/ClientOnly.d.ts +1 -0
- package/bundle/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +1 -0
- package/bundle/ui-kit/SwipeListControl/isShowDots.d.ts +1 -0
- package/bundle/ui-kit/SwipeListControl/isShowDots.mobile.d.ts +1 -0
- package/dist/components/Carousel/Carousel.js +1 -1
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/ContentPage/ContentPage.js +1 -1
- package/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/dist/components/Footer/Contacts.js +1 -1
- package/dist/components/OfficesAtmsMap/OfficesAtmsMap.js +4 -9
- package/dist/components/OfficesAtmsMap/OfficesAtmsMap.js.map +1 -1
- package/dist/components/StickyBottomMenu/RenderMenuItems.js +1 -2
- package/dist/components/StickyBottomMenu/RenderMenuItems.js.map +1 -1
- package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.js +2 -2
- package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.js.map +1 -1
- package/dist/ui-kit/ClientOnly.d.ts +1 -0
- package/dist/ui-kit/ClientOnly.js +7 -0
- package/dist/ui-kit/ClientOnly.js.map +1 -0
- package/dist/ui-kit/SwipeListControl/SwipeListControl.js +2 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +1 -0
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +2 -2
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/isShowDots.d.ts +1 -0
- package/dist/ui-kit/SwipeListControl/isShowDots.js +4 -0
- package/dist/ui-kit/SwipeListControl/isShowDots.js.map +1 -0
- package/dist/ui-kit/SwipeListControl/isShowDots.mobile.d.ts +1 -0
- package/dist/ui-kit/SwipeListControl/isShowDots.mobile.js +4 -0
- package/dist/ui-kit/SwipeListControl/isShowDots.mobile.js.map +1 -0
- package/lib/components/Carousel/Carousel.js +1 -1
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/ContentPage/ContentPage.js +1 -1
- package/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/lib/components/Footer/Contacts.js +1 -1
- package/lib/components/OfficesAtmsMap/OfficesAtmsMap.js +4 -9
- package/lib/components/OfficesAtmsMap/OfficesAtmsMap.js.map +1 -1
- package/lib/components/StickyBottomMenu/RenderMenuItems.js +1 -2
- package/lib/components/StickyBottomMenu/RenderMenuItems.js.map +1 -1
- package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.js +3 -3
- package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.js.map +1 -1
- package/lib/components/SwipeListControlBlock/SwipeListControlBlock.fixture.d.ts +1 -0
- package/lib/components/SwipeListControlBlock/SwipeListControlBlock.fixture.mobile.d.ts +8 -0
- package/lib/ui-kit/ClientOnly.d.ts +1 -0
- package/lib/ui-kit/ClientOnly.js +5 -0
- package/lib/ui-kit/ClientOnly.js.map +1 -0
- package/lib/ui-kit/SwipeListControl/SwipeListControl.js +2 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +1 -0
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +2 -2
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/isShowDots.d.ts +1 -0
- package/lib/ui-kit/SwipeListControl/isShowDots.js +2 -0
- package/lib/ui-kit/SwipeListControl/isShowDots.js.map +1 -0
- package/lib/ui-kit/SwipeListControl/isShowDots.mobile.d.ts +1 -0
- package/lib/ui-kit/SwipeListControl/isShowDots.mobile.js +2 -0
- package/lib/ui-kit/SwipeListControl/isShowDots.mobile.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +32 -30
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/ui-kit/ClientOnly.d.ts +1 -0
- package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +1 -0
- package/mobile/bundle/ui-kit/SwipeListControl/isShowDots.d.ts +1 -0
- package/mobile/dist/components/Carousel/Carousel.js +1 -1
- package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.js +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/dist/components/Footer/Contacts.js +1 -1
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMap.js +4 -9
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMap.js.map +1 -1
- package/mobile/dist/components/StickyBottomMenu/RenderMenuItems.js +1 -2
- package/mobile/dist/components/StickyBottomMenu/RenderMenuItems.js.map +1 -1
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.js +2 -2
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -1
- package/mobile/dist/ui-kit/ClientOnly.d.ts +1 -0
- package/mobile/dist/ui-kit/ClientOnly.js +7 -0
- package/mobile/dist/ui-kit/ClientOnly.js.map +1 -0
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js +2 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +1 -0
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +2 -2
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/isShowDots.d.ts +1 -0
- package/mobile/dist/ui-kit/SwipeListControl/isShowDots.js +4 -0
- package/mobile/dist/ui-kit/SwipeListControl/isShowDots.js.map +1 -0
- package/mobile/lib/components/Carousel/Carousel.js +1 -1
- package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.js +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/lib/components/Footer/Contacts.js +1 -1
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMap.js +4 -9
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMap.js.map +1 -1
- package/mobile/lib/components/StickyBottomMenu/RenderMenuItems.js +1 -2
- package/mobile/lib/components/StickyBottomMenu/RenderMenuItems.js.map +1 -1
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.js +3 -3
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -1
- package/mobile/lib/ui-kit/ClientOnly.d.ts +1 -0
- package/mobile/lib/ui-kit/ClientOnly.js +5 -0
- package/mobile/lib/ui-kit/ClientOnly.js.map +1 -0
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js +2 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +1 -0
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +2 -2
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/isShowDots.d.ts +1 -0
- package/mobile/lib/ui-kit/SwipeListControl/isShowDots.js +2 -0
- package/mobile/lib/ui-kit/SwipeListControl/isShowDots.js.map +1 -0
- package/mobile/src/components/Carousel/Carousel.tsx +1 -0
- package/mobile/src/components/ContentPage/ContentPage.tsx +2 -2
- package/mobile/src/components/Footer/Contacts.tsx +1 -1
- package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMap.tsx +8 -14
- package/mobile/src/components/StickyBottomMenu/RenderMenuItems.tsx +5 -11
- package/mobile/src/components/StickyBottomMenu/StickyBottomMenu.tsx +6 -4
- package/mobile/src/ui-kit/ClientOnly.tsx +6 -0
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControl.tsx +2 -1
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +11 -2
- package/mobile/src/ui-kit/SwipeListControl/isShowDots.tsx +1 -0
- package/package.json +1 -1
- package/src/components/Carousel/Carousel.tsx +1 -0
- package/src/components/ContentPage/ContentPage.tsx +2 -2
- package/src/components/Footer/Contacts.tsx +1 -1
- package/src/components/OfficesAtmsMap/OfficesAtmsMap.tsx +8 -14
- package/src/components/StepsBlock/StepsBlock.fixture.mobile.tsx +1 -1
- package/src/components/StepsBlock/StepsBlock.fixture.tsx +1 -1
- package/src/components/StickyBottomMenu/RenderMenuItems.tsx +5 -11
- package/src/components/StickyBottomMenu/StickyBottomMenu.mobile.tsx +6 -4
- package/src/components/SwipeListControlBlock/SwipeListControlBlock.fixture.mobile.tsx +66 -0
- package/src/components/SwipeListControlBlock/SwipeListControlBlock.fixture.tsx +19 -0
- package/src/ui-kit/Button/Button.fixture.tsx +22 -22
- package/src/ui-kit/ClientOnly.tsx +6 -0
- package/src/ui-kit/HeaderItem/HeaderItem.fixture.tsx +2 -2
- package/src/ui-kit/Logo/Logo.fixture.tsx +1 -1
- package/src/ui-kit/SwipeListControl/SwipeListControl.tsx +2 -1
- package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +11 -2
- package/src/ui-kit/SwipeListControl/isShowDots.mobile.tsx +1 -0
- package/src/ui-kit/SwipeListControl/isShowDots.tsx +1 -0
- package/src/ui-kit/TopItem/TopItem.fixture.tsx +2 -2
|
@@ -9,17 +9,17 @@ export default {
|
|
|
9
9
|
<div>
|
|
10
10
|
<p>Private clients</p>
|
|
11
11
|
<div className="flex gap-xl" data-theme="pc">
|
|
12
|
-
<Button href="https://
|
|
13
|
-
<Button href="https://
|
|
14
|
-
<Button href="https://
|
|
12
|
+
<Button href="https://old.rshb.ru/" target="_blank" text="Primary" version="primary" />
|
|
13
|
+
<Button href="https://old.rshb.ru/" target="_blank" text="Link" version="secondary" />
|
|
14
|
+
<Button href="https://old.rshb.ru/" target="_blank" text="Secondary" version="link" />
|
|
15
15
|
</div>
|
|
16
16
|
</div>
|
|
17
17
|
<div>
|
|
18
18
|
<p>Business clients</p>
|
|
19
19
|
<div className="flex gap-xl" data-theme="bc">
|
|
20
|
-
<Button href="https://
|
|
20
|
+
<Button href="https://old.rshb.ru/" target="_blank" text="Primary" version="primary" />
|
|
21
21
|
<Button
|
|
22
|
-
href="https://
|
|
22
|
+
href="https://old.rshb.ru/"
|
|
23
23
|
target="_blank"
|
|
24
24
|
text="Secondary"
|
|
25
25
|
version="secondary"
|
|
@@ -29,9 +29,9 @@ export default {
|
|
|
29
29
|
<div>
|
|
30
30
|
<p>Ecosystem own</p>
|
|
31
31
|
<div className="flex gap-xl" data-theme="eo">
|
|
32
|
-
<Button href="https://
|
|
32
|
+
<Button href="https://old.rshb.ru/" target="_blank" text="Primary" version="primary" />
|
|
33
33
|
<Button
|
|
34
|
-
href="https://
|
|
34
|
+
href="https://old.rshb.ru/"
|
|
35
35
|
target="_blank"
|
|
36
36
|
text="Secondary"
|
|
37
37
|
version="secondary"
|
|
@@ -42,14 +42,14 @@ export default {
|
|
|
42
42
|
<p>Disabled</p>
|
|
43
43
|
<div className="flex gap-xl">
|
|
44
44
|
<Button
|
|
45
|
-
href="https://
|
|
45
|
+
href="https://old.rshb.ru/"
|
|
46
46
|
target="_blank"
|
|
47
47
|
text="Primary"
|
|
48
48
|
version="primary"
|
|
49
49
|
disabled
|
|
50
50
|
/>
|
|
51
51
|
<Button
|
|
52
|
-
href="https://
|
|
52
|
+
href="https://old.rshb.ru/"
|
|
53
53
|
target="_blank"
|
|
54
54
|
text="Secondary"
|
|
55
55
|
version="secondary"
|
|
@@ -61,7 +61,7 @@ export default {
|
|
|
61
61
|
<p>With Icon</p>
|
|
62
62
|
<div className="flex gap-xl" data-theme="pc">
|
|
63
63
|
<Button
|
|
64
|
-
href="https://
|
|
64
|
+
href="https://old.rshb.ru/"
|
|
65
65
|
target="_blank"
|
|
66
66
|
aboveText="Доступно в"
|
|
67
67
|
appendLeft={
|
|
@@ -74,7 +74,7 @@ export default {
|
|
|
74
74
|
version="secondary"
|
|
75
75
|
/>
|
|
76
76
|
<Button
|
|
77
|
-
href="https://
|
|
77
|
+
href="https://old.rshb.ru/"
|
|
78
78
|
target="_blank"
|
|
79
79
|
aboveText="Загрузите в"
|
|
80
80
|
appendLeft={
|
|
@@ -87,7 +87,7 @@ export default {
|
|
|
87
87
|
/>
|
|
88
88
|
|
|
89
89
|
<Button
|
|
90
|
-
href="https://
|
|
90
|
+
href="https://old.rshb.ru/"
|
|
91
91
|
target="_blank"
|
|
92
92
|
appendRight={
|
|
93
93
|
<div>
|
|
@@ -104,14 +104,14 @@ export default {
|
|
|
104
104
|
<div className="flex gap-xl" data-theme="pc">
|
|
105
105
|
<Button
|
|
106
106
|
rounded
|
|
107
|
-
href="https://
|
|
107
|
+
href="https://old.rshb.ru/"
|
|
108
108
|
target="_blank"
|
|
109
109
|
version="secondary"
|
|
110
110
|
appendLeft={<Img image={{ icon: 'PlayMarketIcon' }} width="20" height="21" />}
|
|
111
111
|
/>
|
|
112
112
|
<Button
|
|
113
113
|
rounded
|
|
114
|
-
href="https://
|
|
114
|
+
href="https://old.rshb.ru/"
|
|
115
115
|
target="_blank"
|
|
116
116
|
version="secondary"
|
|
117
117
|
appendLeft={<Img image={{ icon: 'AppleIcon' }} width="18" height="20" />}
|
|
@@ -123,7 +123,7 @@ export default {
|
|
|
123
123
|
'primary (Private clients)': (
|
|
124
124
|
<div data-theme="pc">
|
|
125
125
|
<Button
|
|
126
|
-
href="https://
|
|
126
|
+
href="https://old.rshb.ru/"
|
|
127
127
|
target="_blank"
|
|
128
128
|
text="Оформить кредит"
|
|
129
129
|
version="primary"
|
|
@@ -133,7 +133,7 @@ export default {
|
|
|
133
133
|
'secondary (Private clients)': (
|
|
134
134
|
<div data-theme="pc">
|
|
135
135
|
<Button
|
|
136
|
-
href="https://
|
|
136
|
+
href="https://old.rshb.ru/"
|
|
137
137
|
target="_blank"
|
|
138
138
|
text="Оформить кредит"
|
|
139
139
|
version="secondary"
|
|
@@ -143,7 +143,7 @@ export default {
|
|
|
143
143
|
'primary (Business clients)': (
|
|
144
144
|
<div data-theme="bc">
|
|
145
145
|
<Button
|
|
146
|
-
href="https://
|
|
146
|
+
href="https://old.rshb.ru/"
|
|
147
147
|
target="_blank"
|
|
148
148
|
text="Оформить кредит"
|
|
149
149
|
version="primary"
|
|
@@ -153,7 +153,7 @@ export default {
|
|
|
153
153
|
'secondary (Business clients)': (
|
|
154
154
|
<div data-theme="bc">
|
|
155
155
|
<Button
|
|
156
|
-
href="https://
|
|
156
|
+
href="https://old.rshb.ru/"
|
|
157
157
|
target="_blank"
|
|
158
158
|
text="Оформить кредит"
|
|
159
159
|
version="secondary"
|
|
@@ -163,7 +163,7 @@ export default {
|
|
|
163
163
|
'primary (Ecosystem own)': (
|
|
164
164
|
<div data-theme="eo">
|
|
165
165
|
<Button
|
|
166
|
-
href="https://
|
|
166
|
+
href="https://old.rshb.ru/"
|
|
167
167
|
target="_blank"
|
|
168
168
|
text="Оформить кредит"
|
|
169
169
|
version="primary"
|
|
@@ -173,7 +173,7 @@ export default {
|
|
|
173
173
|
'secondary (Ecosystem own)': (
|
|
174
174
|
<div data-theme="eo">
|
|
175
175
|
<Button
|
|
176
|
-
href="https://
|
|
176
|
+
href="https://old.rshb.ru/"
|
|
177
177
|
target="_blank"
|
|
178
178
|
text="Оформить кредит"
|
|
179
179
|
version="secondary"
|
|
@@ -182,7 +182,7 @@ export default {
|
|
|
182
182
|
),
|
|
183
183
|
'primary (disabled)': (
|
|
184
184
|
<Button
|
|
185
|
-
href="https://
|
|
185
|
+
href="https://old.rshb.ru/"
|
|
186
186
|
target="_blank"
|
|
187
187
|
text="Оформить кредит"
|
|
188
188
|
version="primary"
|
|
@@ -191,7 +191,7 @@ export default {
|
|
|
191
191
|
),
|
|
192
192
|
'secondary (disabled)': (
|
|
193
193
|
<Button
|
|
194
|
-
href="https://
|
|
194
|
+
href="https://old.rshb.ru/"
|
|
195
195
|
target="_blank"
|
|
196
196
|
text="Оформить кредит"
|
|
197
197
|
version="secondary"
|
|
@@ -3,6 +3,6 @@ import '../../setup-fixture';
|
|
|
3
3
|
import { HeaderItem } from './HeaderItem';
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
|
-
default: <HeaderItem href="https://
|
|
7
|
-
active: <HeaderItem href="https://
|
|
6
|
+
default: <HeaderItem href="https://old.rshb.ru/" target="_blank" text="Россельхозбанк" />,
|
|
7
|
+
active: <HeaderItem href="https://old.rshb.ru/" target="_blank" text="Россельхозбанк" active />,
|
|
8
8
|
};
|
|
@@ -5,6 +5,7 @@ import { SwipeListContainer } from './SwipeListContainer';
|
|
|
5
5
|
import type { SwipeListControlContent } from './SwipeListControlContent';
|
|
6
6
|
import { SwipeListControlDots } from './SwipeListControlDots';
|
|
7
7
|
import { useSwipeListScroll } from './useSwipeListScroll';
|
|
8
|
+
import { isShowDots } from './isShowDots';
|
|
8
9
|
|
|
9
10
|
const DEFAULT_GAP = 14;
|
|
10
11
|
|
|
@@ -29,7 +30,7 @@ export const SwipeListControl = JSX<SwipeListControlProps>(
|
|
|
29
30
|
version,
|
|
30
31
|
gap = DEFAULT_GAP,
|
|
31
32
|
padding = DEFAULT_PADDING,
|
|
32
|
-
showDots =
|
|
33
|
+
showDots = isShowDots,
|
|
33
34
|
minHeight,
|
|
34
35
|
children,
|
|
35
36
|
onVisibleIndicesChange,
|
|
@@ -19,6 +19,7 @@ const dotStyle =
|
|
|
19
19
|
const inactiveDotStyle = 'w-2 h-2 opacity-30';
|
|
20
20
|
|
|
21
21
|
export interface SwipeListControlDotsProps {
|
|
22
|
+
className?: string;
|
|
22
23
|
containerRef?: { current: HTMLDivElement | null };
|
|
23
24
|
activeIndex?: number;
|
|
24
25
|
dotCount?: number;
|
|
@@ -27,7 +28,14 @@ export interface SwipeListControlDotsProps {
|
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
export const SwipeListControlDots = JSX<SwipeListControlDotsProps>(
|
|
30
|
-
({
|
|
31
|
+
({
|
|
32
|
+
className = '',
|
|
33
|
+
containerRef,
|
|
34
|
+
activeIndex,
|
|
35
|
+
dotCount = 0,
|
|
36
|
+
listType = 'horizontal-list',
|
|
37
|
+
version,
|
|
38
|
+
}) => {
|
|
31
39
|
const handleClick = (idx: number) => {
|
|
32
40
|
if (idx !== activeIndex && containerRef?.current) {
|
|
33
41
|
containerRef.current.children[idx]?.scrollIntoView({
|
|
@@ -40,9 +48,10 @@ export const SwipeListControlDots = JSX<SwipeListControlDotsProps>(
|
|
|
40
48
|
return dotCount ? (
|
|
41
49
|
<div
|
|
42
50
|
className={style(
|
|
43
|
-
'flex gap-xs
|
|
51
|
+
'flex gap-xs',
|
|
44
52
|
containerStyles[listType],
|
|
45
53
|
version ? 'group' : '',
|
|
54
|
+
className,
|
|
46
55
|
)}
|
|
47
56
|
{...(version ? { 'data-ver': version } : {})}
|
|
48
57
|
>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const isShowDots = true;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const isShowDots = false;
|
|
@@ -3,6 +3,6 @@ import '../../setup-fixture';
|
|
|
3
3
|
import { TopItem } from './TopItem';
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
|
-
default: <TopItem href="https://
|
|
7
|
-
active: <TopItem href="https://
|
|
6
|
+
default: <TopItem href="https://old.rshb.ru/" target="_blank" text="Экосистема Своё" />,
|
|
7
|
+
active: <TopItem href="https://old.rshb.ru/" target="_blank" text="Экосистема Своё" active />,
|
|
8
8
|
};
|