@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwipeListControl.js","sourceRoot":"","sources":["../../../src/ui-kit/SwipeListControl/SwipeListControl.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,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AAS,EAAE,QAAQ,KAAK,eAAe,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,CAAC,aACrF,KAAC,kBAAkB,IACjB,YAAY,EAAE,YAAY,EAC1B,WAAW,EAAE,WAAW,EACxB,gBAAgB,EAAE,CAAC,EACnB,GAAG,EAAE,GAAG,EACR,OAAO,EAAE,OAAO,EAChB,sBAAsB,EAAE,MAAM,CAAC,0BAA0B,EACzD,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,YAEnB,QAAQ,GACU,EACpB,QAAQ,CAAC,CAAC,CAAC,CACV,KAAC,oBAAoB,IACnB,YAAY,EAAE,YAAY,EAC1B,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,SAAS,EACnB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,GAChB,CACH,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -11,7 +11,7 @@ const activeDotStyles = {
|
|
|
11
11
|
};
|
|
12
12
|
const dotStyle = 'cursor-pointer rounded-full transition-width duration-300 bg-primary-main group-data-secondary:bg-white group-data-transparent:bg-white';
|
|
13
13
|
const inactiveDotStyle = 'w-2 h-2 opacity-30';
|
|
14
|
-
export const SwipeListControlDots = JSX(({ containerRef, activeIndex, dotCount = 0, listType = 'horizontal-list', version }) => {
|
|
14
|
+
export const SwipeListControlDots = JSX(({ className = '', containerRef, activeIndex, dotCount = 0, listType = 'horizontal-list', version, }) => {
|
|
15
15
|
const handleClick = (idx) => {
|
|
16
16
|
if (idx !== activeIndex && containerRef?.current) {
|
|
17
17
|
containerRef.current.children[idx]?.scrollIntoView({
|
|
@@ -20,6 +20,6 @@ export const SwipeListControlDots = JSX(({ containerRef, activeIndex, dotCount =
|
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
|
-
return dotCount ? (_jsx("div", { className: style('flex gap-xs
|
|
23
|
+
return dotCount ? (_jsx("div", { className: style('flex gap-xs', containerStyles[listType], version ? 'group' : '', className), ...(version ? { 'data-ver': version } : {}), children: new Array(dotCount).fill(null).map((_, idx) => (_jsx("div", { className: `${dotStyle} ${idx === activeIndex ? activeDotStyles[listType] : inactiveDotStyle}`, role: "button", "aria-hidden": true, onClick: () => handleClick(idx) }, String(idx)))) })) : null;
|
|
24
24
|
});
|
|
25
25
|
//# sourceMappingURL=SwipeListControlDots.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwipeListControlDots.js","sourceRoot":"","sources":["../../../src/ui-kit/SwipeListControl/SwipeListControlDots.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG1C,MAAM,eAAe,GAAyC;IAC5D,iBAAiB,EAAE,qBAAqB;IACxC,eAAe,EAAE,sDAAsD;CACxE,CAAC;AAEF,MAAM,eAAe,GAAyC;IAC5D,iBAAiB,EAAE,KAAK;IACxB,eAAe,EAAE,KAAK;CACvB,CAAC;AAEF,MAAM,QAAQ,GACZ,yIAAyI,CAAC;AAE5I,MAAM,gBAAgB,GAAG,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"SwipeListControlDots.js","sourceRoot":"","sources":["../../../src/ui-kit/SwipeListControl/SwipeListControlDots.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG1C,MAAM,eAAe,GAAyC;IAC5D,iBAAiB,EAAE,qBAAqB;IACxC,eAAe,EAAE,sDAAsD;CACxE,CAAC;AAEF,MAAM,eAAe,GAAyC;IAC5D,iBAAiB,EAAE,KAAK;IACxB,eAAe,EAAE,KAAK;CACvB,CAAC;AAEF,MAAM,QAAQ,GACZ,yIAAyI,CAAC;AAE5I,MAAM,gBAAgB,GAAG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+1 @@
|
|
|
1
|
+
export declare const isShowDots = false;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isShowDots.js","sourceRoot":"","sources":["../../../src/ui-kit/SwipeListControl/isShowDots.tsx"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isShowDots = true;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isShowDots.mobile.js","sourceRoot":"","sources":["../../../src/ui-kit/SwipeListControl/isShowDots.mobile.tsx"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,CAAC"}
|
|
@@ -1546,7 +1546,7 @@
|
|
|
1546
1546
|
};
|
|
1547
1547
|
const dotStyle = 'cursor-pointer rounded-full transition-width duration-300 bg-primary-main group-data-secondary:bg-white group-data-transparent:bg-white';
|
|
1548
1548
|
const inactiveDotStyle = 'w-2 h-2 opacity-30';
|
|
1549
|
-
const SwipeListControlDots = JSX(({ containerRef, activeIndex, dotCount = 0, listType = 'horizontal-list', version }) => {
|
|
1549
|
+
const SwipeListControlDots = JSX(({ className = '', containerRef, activeIndex, dotCount = 0, listType = 'horizontal-list', version, }) => {
|
|
1550
1550
|
const handleClick = (idx) => {
|
|
1551
1551
|
if (idx !== activeIndex && containerRef?.current) {
|
|
1552
1552
|
containerRef.current.children[idx]?.scrollIntoView({
|
|
@@ -1555,7 +1555,7 @@
|
|
|
1555
1555
|
});
|
|
1556
1556
|
}
|
|
1557
1557
|
};
|
|
1558
|
-
return dotCount ? (jsx("div", { className: style('flex gap-xs
|
|
1558
|
+
return dotCount ? (jsx("div", { className: style('flex gap-xs', containerStyles[listType], version ? 'group' : '', className), ...(version ? { 'data-ver': version } : {}), children: new Array(dotCount).fill(null).map((_, idx) => (jsx("div", { className: `${dotStyle} ${idx === activeIndex ? activeDotStyles[listType] : inactiveDotStyle}`, role: "button", "aria-hidden": true, onClick: () => handleClick(idx) }, String(idx)))) })) : null;
|
|
1559
1559
|
});
|
|
1560
1560
|
|
|
1561
1561
|
const areArraysEqual = (as, bs) => as === bs || Boolean(as && bs && as?.length === bs?.length && as.every((_, i) => _ === bs[i]));
|
|
@@ -1637,6 +1637,8 @@
|
|
|
1637
1637
|
];
|
|
1638
1638
|
};
|
|
1639
1639
|
|
|
1640
|
+
const isShowDots = true;
|
|
1641
|
+
|
|
1640
1642
|
const DEFAULT_GAP = 14;
|
|
1641
1643
|
/*
|
|
1642
1644
|
Horizontal padding used on a container above SwipeListControl.
|
|
@@ -1644,7 +1646,7 @@
|
|
|
1644
1646
|
and get rid of a clipping effect caused by overflow: hidden.
|
|
1645
1647
|
*/
|
|
1646
1648
|
const DEFAULT_PADDING = 16;
|
|
1647
|
-
const SwipeListControl = JSX(({ className, version, gap = DEFAULT_GAP, padding = DEFAULT_PADDING, showDots =
|
|
1649
|
+
const SwipeListControl = JSX(({ className, version, gap = DEFAULT_GAP, padding = DEFAULT_PADDING, showDots = isShowDots, minHeight, children, onVisibleIndicesChange, listType = 'horizontal-list', }) => {
|
|
1648
1650
|
const itemCount = Array.isArray(children) ? children.length : 0;
|
|
1649
1651
|
const [containerRef, scroll] = useSwipeListScroll({
|
|
1650
1652
|
itemCount,
|
|
@@ -2620,7 +2622,7 @@
|
|
|
2620
2622
|
const [dotsActiveIndex] = scroll.visibleIndicesRange;
|
|
2621
2623
|
// TODO Remove
|
|
2622
2624
|
const isBankHistoryCarousel = childBlocks && childBlocks[0]?.type === 'CarouselBankHistoryCard';
|
|
2623
|
-
return (jsxs(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: [jsxs("div", { className: style(isAlignCenter ? 'flex justify-center' : '', 'relative max-w-full'), children: [jsx(SwipeListContainer, { containerRef: containerRef, visibleItemCount: visibleItemCount, snapAlign: "snap-start", gap: isGap ? ITEMS_GAP : undefined, onVisibleIndicesChange: scroll.handleVisibleIndicesChange, children: renderCarouselCards({ noCardBorder, activeIndex, cardSize, ...rest }) }), jsx(CarouselScrollButtons, { scroll: scroll, arrowsPadded: arrowsPadded, onScrollLeft: decreaseActiveIndex, onScrollRight: increaseActiveIndex, hasEdgeBlocks: isBankHistoryCarousel, activeIndex: activeIndex, itemCount: count })] }), jsx(SwipeListControlDots, { containerRef: containerRef, activeIndex: dotsActiveIndex, dotCount: count, listType: "horizontal-list" })] }));
|
|
2625
|
+
return (jsxs(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: [jsxs("div", { className: style(isAlignCenter ? 'flex justify-center' : '', 'relative max-w-full'), children: [jsx(SwipeListContainer, { containerRef: containerRef, visibleItemCount: visibleItemCount, snapAlign: "snap-start", gap: isGap ? ITEMS_GAP : undefined, onVisibleIndicesChange: scroll.handleVisibleIndicesChange, children: renderCarouselCards({ noCardBorder, activeIndex, cardSize, ...rest }) }), jsx(CarouselScrollButtons, { scroll: scroll, arrowsPadded: arrowsPadded, onScrollLeft: decreaseActiveIndex, onScrollRight: increaseActiveIndex, hasEdgeBlocks: isBankHistoryCarousel, activeIndex: activeIndex, itemCount: count })] }), jsx(SwipeListControlDots, { className: "@lg:hidden", containerRef: containerRef, activeIndex: dotsActiveIndex, dotCount: count, listType: "horizontal-list" })] }));
|
|
2624
2626
|
});
|
|
2625
2627
|
Carousel.childrenTypes = [
|
|
2626
2628
|
'CarouselCard',
|
|
@@ -3150,7 +3152,7 @@
|
|
|
3150
3152
|
return version === 'primary' ? (jsx(PrimaryFoldButton, { label: label, labelIcon: labelIcon, labelIconBgVersion: labelIconBgVersion, icon: icon, onToggle: onToggle })) : (jsx(DefaultFoldButton, { label: label, icon: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', onClick: onToggle }));
|
|
3151
3153
|
};
|
|
3152
3154
|
|
|
3153
|
-
const Contacts = JSX(({ className = '', items }) => (jsxs("div", { className: className, children: [items?.length ? items.map(renderContactsGroup) : null, jsx(Button, { version: "primary", className: "w-full", href: "https://
|
|
3155
|
+
const Contacts = JSX(({ className = '', items }) => (jsxs("div", { className: className, children: [items?.length ? items.map(renderContactsGroup) : null, jsx(Button, { version: "primary", className: "w-full", href: "https://old.rshb.ru/feedback/question/", target: "_blank", ariaLabel: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C", text: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C" })] })));
|
|
3154
3156
|
const renderContactsGroup = (item, i) => (jsxs("div", { className: "mb-m", children: [jsx("div", { className: "mb-m", children: jsx(Text, { size: "text-l", font: "font-medium", children: item?.title }) }), jsx("div", { children: item.items?.map(renderContact) })] }, String(i)));
|
|
3155
3157
|
const renderContact = (item, index) => (jsxs("div", { className: "mb-m", children: [jsx("div", { children: renderText(item.type, item.text) }), jsx("div", { className: "mt-2xs text-s font-light text-secondary-text", children: item.description })] }, String(index)));
|
|
3156
3158
|
const renderText = (type, text = '') => {
|
|
@@ -3759,6 +3761,23 @@
|
|
|
3759
3761
|
return (jsx("div", { className: style(iconAreaSize, containerStyle, 'z-10 mr-s flex justify-center content-center'), children: jsx("span", { className: "flex max-w-full max-h-full self-center text-h4 text-secondary-text group-data-secondary:text-white", children: checkCanRenderIcon(step?.icon) ? (jsx(Img, { image: { ...step.icon, iconVersion: step.icon?.iconVersion || iconVersion }, imageClassName: "max-w-full max-h-full", width: iconSize, height: iconSize })) : (jsx("span", { children: i + 1 })) }) }));
|
|
3760
3762
|
};
|
|
3761
3763
|
|
|
3764
|
+
const RenderItem = JSX(({ isActive, item, onClick }) => {
|
|
3765
|
+
const isAnotherPortal = projectSettings?.BASE_PATH
|
|
3766
|
+
? !item.href?.startsWith(projectSettings?.BASE_PATH)
|
|
3767
|
+
: true;
|
|
3768
|
+
const link = useLink({ isRemote: isAnotherPortal });
|
|
3769
|
+
const { href, target, onClick: handleClick, } = link({
|
|
3770
|
+
href: item.href,
|
|
3771
|
+
target: '_self',
|
|
3772
|
+
});
|
|
3773
|
+
const isActiveItem = item?.icon?.icon === 'BurgerIcon' ? item.isActive : isActive;
|
|
3774
|
+
const iconVersion = isActiveItem ? 'color' : 'black';
|
|
3775
|
+
return (jsxs("a", { className: style(isActiveItem ? 'text-primary-main' : 'text-primary-text', `w-10 m-4 flex justify-center items-center flex-col text-xs cursor-pointer`), onClick: () => (item?.icon?.icon === 'BurgerIcon' && onClick ? onClick() : handleClick()), href: href, target: target, children: [jsx(Img, { className: "w-6 h-6", image: {
|
|
3776
|
+
icon: item?.icon?.icon,
|
|
3777
|
+
iconVersion: iconVersion,
|
|
3778
|
+
} }), item.title] }));
|
|
3779
|
+
});
|
|
3780
|
+
|
|
3762
3781
|
const isHrefActive = (router) => ({ href }) => !href
|
|
3763
3782
|
? false
|
|
3764
3783
|
: withoutQuery(isURL(href) ? router.href : router.pathname).startsWith(withoutQuery(href));
|
|
@@ -3771,6 +3790,11 @@
|
|
|
3771
3790
|
return [activeIndex, items[activeIndex]];
|
|
3772
3791
|
}
|
|
3773
3792
|
|
|
3793
|
+
const RenderMenuItems = JSX(({ menuItems, onClick }) => {
|
|
3794
|
+
const [activeIndex] = useActiveRoute(menuItems);
|
|
3795
|
+
return (jsx("div", { className: "ml-auto container bg-white flex justify-center shadow-blue-gray", children: menuItems.map((_, i) => (jsx(RenderItem, { isActive: i === activeIndex, item: _, onClick: onClick }, String(i)))) }));
|
|
3796
|
+
});
|
|
3797
|
+
|
|
3774
3798
|
const useLatestEvent = (eventBus, type, initialEvent) => {
|
|
3775
3799
|
const [latestEvent, setLatestEvent] = useState(initialEvent || null);
|
|
3776
3800
|
useEffect(() => eventBus.subscribe(type, (_) => setLatestEvent(_)), [eventBus, type]);
|
|
@@ -4077,28 +4101,6 @@
|
|
|
4077
4101
|
});
|
|
4078
4102
|
const renderOfficeLink = (officesLink) => officesLink ? (jsxs("a", { className: "flex items-center mb-3", href: officesLink, rel: "noopener noreferrer", "aria-label": "\u041E\u0444\u0438\u0441\u044B \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u044B", children: [jsx(Img, { image: { icon: 'MapOpenedIcon', iconVersion: 'black' }, width: "24", height: "24", className: "text-primary-main box-border mr-xs bg-main-divider p-xs rounded-md" }), jsx("span", { children: "\u041E\u0444\u0438\u0441\u044B \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u044B" })] })) : null;
|
|
4079
4103
|
|
|
4080
|
-
const RenderItem = JSX(({ isActive, item, onClick }) => {
|
|
4081
|
-
const isAnotherPortal = projectSettings?.BASE_PATH
|
|
4082
|
-
? !item.href?.startsWith(projectSettings?.BASE_PATH)
|
|
4083
|
-
: true;
|
|
4084
|
-
const link = useLink({ isRemote: isAnotherPortal });
|
|
4085
|
-
const { href, target, onClick: handleClick, } = link({
|
|
4086
|
-
href: item.href,
|
|
4087
|
-
target: '_self',
|
|
4088
|
-
});
|
|
4089
|
-
const isActiveItem = item?.icon?.icon === 'BurgerIcon' ? item.isActive : isActive;
|
|
4090
|
-
const iconVersion = isActiveItem ? 'color' : 'black';
|
|
4091
|
-
return (jsxs("a", { className: style(isActiveItem ? 'text-primary-main' : 'text-primary-text', `w-10 m-4 flex justify-center items-center flex-col text-xs cursor-pointer`), onClick: () => (item?.icon?.icon === 'BurgerIcon' && onClick ? onClick() : handleClick()), href: href, target: target, children: [jsx(Img, { className: "w-6 h-6", image: {
|
|
4092
|
-
icon: item?.icon?.icon,
|
|
4093
|
-
iconVersion: iconVersion,
|
|
4094
|
-
} }), item.title] }));
|
|
4095
|
-
});
|
|
4096
|
-
|
|
4097
|
-
const RenderMenuItems = JSX(({ menuItems, onClick }) => {
|
|
4098
|
-
const [activeIndex] = useActiveRoute(menuItems);
|
|
4099
|
-
return (jsx(BlockWrapper, { className: "fixed bottom-0 left-0 right-0 my-0 mx-auto w-full bg-transparent z-[100]", padding: "p-0", children: jsx("div", { className: "ml-auto container bg-white flex justify-center shadow-blue-gray", children: menuItems.map((_, i) => (jsx(RenderItem, { isActive: i === activeIndex, item: _, onClick: onClick }, String(i)))) }) }));
|
|
4100
|
-
});
|
|
4101
|
-
|
|
4102
4104
|
function useList(initialList = []) {
|
|
4103
4105
|
const [list, setList] = useState(initialList);
|
|
4104
4106
|
const push = useCallback((item) => setList(_ => [..._, item]), []);
|
|
@@ -4174,7 +4176,7 @@
|
|
|
4174
4176
|
burgerMenu,
|
|
4175
4177
|
...menuItems.slice(middleIdx),
|
|
4176
4178
|
], [menuItems, middleIdx, burgerMenu]);
|
|
4177
|
-
return (
|
|
4179
|
+
return (jsx(BlockWrapper, { className: "fixed bottom-0 left-0 right-0 my-0 mx-auto w-full bg-transparent z-[100]", padding: "p-0", children: jsx(RenderMenuItems, { menuItems: menuItemsWithButton, onClick: toggle }) }));
|
|
4178
4180
|
});
|
|
4179
4181
|
|
|
4180
4182
|
const tabPaddingStyleMap = {
|
|
@@ -4903,7 +4905,7 @@
|
|
|
4903
4905
|
parent: data,
|
|
4904
4906
|
};
|
|
4905
4907
|
useBlockRouterProvider();
|
|
4906
|
-
return (jsxs("div", { "data-theme": colorPalette, children: [jsxs("section", { className: style('relative
|
|
4908
|
+
return (jsxs("div", { className: "@container", "data-theme": colorPalette, children: [jsxs("section", { className: style('relative', pageStyle, className), children: [slots?.header ? (jsx("div", { className: "relative z-10 mb-lg shadow-[0_8px_32px_0px_#00000014]", children: renderBlocksList(slots?.header, { ...options, slotName: 'header' }) })) : null, jsxs("div", { className: "container space-y-px @lg:space-y-0 @lg:grid @lg:grid-cols-12 @lg:gap-2xs", children: [renderChildren({ block: data, options, extraProps: { className: 'scroll-mt-12' } }), renderBlocksList(slots?.footer, { ...options, slotName: 'footer' })] }), likeControl ? renderLikeControl() : null] }), jsx(StickyBottomMenu, {}), jsx(DialogManager, {}), jsx(PopupManager, {}), jsx(CookiePopup, { termLink: { href: '/pd-policy#cookie', target: '_blank' }, personalDataPolicyLink: { href: '/pd-policy', target: '_blank' } })] }));
|
|
4907
4909
|
});
|
|
4908
4910
|
ContentPage.childrenTypes = [];
|
|
4909
4911
|
ContentPage.slots = () => ['header', 'footer', 'StickyBottomMenu'];
|
|
@@ -4913,7 +4915,7 @@
|
|
|
4913
4915
|
|
|
4914
4916
|
const joinList = (sep) => (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: `sep-${i}` }, el) : [el]), []);
|
|
4915
4917
|
|
|
4916
|
-
const packageVersion = "0.14.
|
|
4918
|
+
const packageVersion = "0.14.3";
|
|
4917
4919
|
|
|
4918
4920
|
exports.Blocks = Blocks;
|
|
4919
4921
|
exports.ContentPage = ContentPage;
|