@redneckz/wildless-cms-uni-blocks 0.14.1 → 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 +27 -26
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +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/CarouselLinks/CarouselLinkButton.js +2 -2
- package/dist/components/CarouselLinks/CarouselLinkButton.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/Header/HeaderSubMenu.js +2 -1
- package/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js +3 -2
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +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/InnerTable/renderInnerTableRow.js +1 -1
- package/dist/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
- package/dist/ui-kit/Sitemap/Sitemap.js +4 -4
- package/dist/ui-kit/Sitemap/Sitemap.js.map +1 -1
- 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/common.css +1 -1
- package/lib/components/Carousel/Carousel.js +1 -1
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/CarouselLinks/CarouselLinkButton.js +2 -2
- package/lib/components/CarouselLinks/CarouselLinkButton.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/Header/HeaderSubMenu.js +2 -1
- package/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js +3 -2
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +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/InnerTable/renderInnerTableRow.js +1 -1
- package/lib/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
- package/lib/ui-kit/Sitemap/Sitemap.js +4 -4
- package/lib/ui-kit/Sitemap/Sitemap.js.map +1 -1
- 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 +40 -45
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +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/CarouselLinks/CarouselLinkButton.js +2 -2
- package/mobile/dist/components/CarouselLinks/CarouselLinkButton.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/Header/HeaderSubMenu.js +2 -1
- package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js +3 -2
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +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/InnerTable/renderInnerTableRow.js +1 -1
- package/mobile/dist/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
- package/mobile/dist/ui-kit/Sitemap/Sitemap.js +4 -4
- package/mobile/dist/ui-kit/Sitemap/Sitemap.js.map +1 -1
- 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/common.css +1 -1
- package/mobile/lib/components/Carousel/Carousel.js +1 -1
- package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
- package/mobile/lib/components/CarouselLinks/CarouselLinkButton.js +2 -2
- package/mobile/lib/components/CarouselLinks/CarouselLinkButton.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/Header/HeaderSubMenu.js +2 -1
- package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js +3 -2
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +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/InnerTable/renderInnerTableRow.js +1 -1
- package/mobile/lib/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
- package/mobile/lib/ui-kit/Sitemap/Sitemap.js +4 -4
- package/mobile/lib/ui-kit/Sitemap/Sitemap.js.map +1 -1
- 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/CarouselLinks/CarouselLinkButton.tsx +2 -2
- package/mobile/src/components/ContentPage/ContentPage.tsx +2 -2
- package/mobile/src/components/Footer/Contacts.tsx +1 -1
- package/mobile/src/components/Header/HeaderSubMenu.tsx +6 -1
- package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +19 -6
- package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +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/InnerTable/renderInnerTableRow.tsx +2 -2
- package/mobile/src/ui-kit/Sitemap/Sitemap.tsx +10 -6
- 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/CarouselLinks/CarouselLinkButton.tsx +2 -2
- package/src/components/ContentPage/ContentPage.tsx +2 -2
- package/src/components/Footer/Contacts.tsx +1 -1
- package/src/components/Header/HeaderSubMenu.tsx +6 -1
- package/src/components/MobileAppTile/MobileAppTile.tsx +19 -6
- package/src/components/MobileAppTile/MobileAppTileContent.ts +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/InnerTable/renderInnerTableRow.tsx +2 -2
- package/src/ui-kit/Logo/Logo.fixture.tsx +1 -1
- package/src/ui-kit/Sitemap/Sitemap.tsx +10 -6
- 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
- package/bundle/components/MobileAppTile/buttonsConditionStyle.d.ts +0 -3
- package/bundle/components/MobileAppTile/buttonsConditionStyle.mobile.d.ts +0 -3
- package/bundle/components/OfficesAtmsMap/renderCurrentDaySchedule.d.ts +0 -1
- package/bundle/components/OfficesAtmsMap/renderDay.d.ts +0 -1
- package/dist/components/MobileAppTile/buttonsConditionStyle.d.ts +0 -3
- package/dist/components/MobileAppTile/buttonsConditionStyle.js +0 -6
- package/dist/components/MobileAppTile/buttonsConditionStyle.js.map +0 -1
- package/dist/components/MobileAppTile/buttonsConditionStyle.mobile.d.ts +0 -3
- package/dist/components/MobileAppTile/buttonsConditionStyle.mobile.js +0 -13
- package/dist/components/MobileAppTile/buttonsConditionStyle.mobile.js.map +0 -1
- package/dist/components/OfficesAtmsMap/renderCurrentDaySchedule.d.ts +0 -1
- package/dist/components/OfficesAtmsMap/renderCurrentDaySchedule.js +0 -2
- package/dist/components/OfficesAtmsMap/renderCurrentDaySchedule.js.map +0 -1
- package/dist/components/OfficesAtmsMap/renderDay.d.ts +0 -1
- package/dist/components/OfficesAtmsMap/renderDay.js +0 -2
- package/dist/components/OfficesAtmsMap/renderDay.js.map +0 -1
- package/lib/components/MobileAppTile/buttonsConditionStyle.d.ts +0 -3
- package/lib/components/MobileAppTile/buttonsConditionStyle.js +0 -3
- package/lib/components/MobileAppTile/buttonsConditionStyle.js.map +0 -1
- package/lib/components/MobileAppTile/buttonsConditionStyle.mobile.d.ts +0 -2
- package/lib/components/MobileAppTile/buttonsConditionStyle.mobile.js +0 -10
- package/lib/components/MobileAppTile/buttonsConditionStyle.mobile.js.map +0 -1
- package/lib/components/OfficesAtmsMap/renderCurrentDaySchedule.d.ts +0 -1
- package/lib/components/OfficesAtmsMap/renderCurrentDaySchedule.js +0 -2
- package/lib/components/OfficesAtmsMap/renderCurrentDaySchedule.js.map +0 -1
- package/lib/components/OfficesAtmsMap/renderDay.d.ts +0 -1
- package/lib/components/OfficesAtmsMap/renderDay.js +0 -2
- package/lib/components/OfficesAtmsMap/renderDay.js.map +0 -1
- package/mobile/bundle/components/MobileAppTile/buttonsConditionStyle.d.ts +0 -3
- package/mobile/bundle/components/OfficesAtmsMap/renderCurrentDaySchedule.d.ts +0 -1
- package/mobile/bundle/components/OfficesAtmsMap/renderDay.d.ts +0 -1
- package/mobile/dist/components/MobileAppTile/buttonsConditionStyle.d.ts +0 -3
- package/mobile/dist/components/MobileAppTile/buttonsConditionStyle.js +0 -13
- package/mobile/dist/components/MobileAppTile/buttonsConditionStyle.js.map +0 -1
- package/mobile/dist/components/OfficesAtmsMap/renderCurrentDaySchedule.d.ts +0 -1
- package/mobile/dist/components/OfficesAtmsMap/renderCurrentDaySchedule.js +0 -2
- package/mobile/dist/components/OfficesAtmsMap/renderCurrentDaySchedule.js.map +0 -1
- package/mobile/dist/components/OfficesAtmsMap/renderDay.d.ts +0 -1
- package/mobile/dist/components/OfficesAtmsMap/renderDay.js +0 -2
- package/mobile/dist/components/OfficesAtmsMap/renderDay.js.map +0 -1
- package/mobile/lib/components/MobileAppTile/buttonsConditionStyle.d.ts +0 -3
- package/mobile/lib/components/MobileAppTile/buttonsConditionStyle.js +0 -10
- package/mobile/lib/components/MobileAppTile/buttonsConditionStyle.js.map +0 -1
- package/mobile/lib/components/OfficesAtmsMap/renderCurrentDaySchedule.d.ts +0 -1
- package/mobile/lib/components/OfficesAtmsMap/renderCurrentDaySchedule.js +0 -2
- package/mobile/lib/components/OfficesAtmsMap/renderCurrentDaySchedule.js.map +0 -1
- package/mobile/lib/components/OfficesAtmsMap/renderDay.d.ts +0 -1
- package/mobile/lib/components/OfficesAtmsMap/renderDay.js +0 -2
- package/mobile/lib/components/OfficesAtmsMap/renderDay.js.map +0 -1
- package/mobile/src/components/MobileAppTile/buttonsConditionStyle.tsx +0 -12
- package/mobile/src/components/OfficesAtmsMap/renderCurrentDaySchedule.tsx +0 -2
- package/mobile/src/components/OfficesAtmsMap/renderDay.tsx +0 -2
- package/src/components/MobileAppTile/buttonsConditionStyle.mobile.tsx +0 -12
- package/src/components/MobileAppTile/buttonsConditionStyle.tsx +0 -5
- package/src/components/OfficesAtmsMap/renderCurrentDaySchedule.tsx +0 -2
- package/src/components/OfficesAtmsMap/renderDay.tsx +0 -2
package/bundle/bundle.umd.js
CHANGED
|
@@ -2433,7 +2433,7 @@
|
|
|
2433
2433
|
};
|
|
2434
2434
|
const dotStyle = 'cursor-pointer rounded-full transition-width duration-300 bg-primary-main group-data-secondary:bg-white group-data-transparent:bg-white';
|
|
2435
2435
|
const inactiveDotStyle = 'w-2 h-2 opacity-30';
|
|
2436
|
-
const SwipeListControlDots = JSX(({ containerRef, activeIndex, dotCount = 0, listType = 'horizontal-list', version }) => {
|
|
2436
|
+
const SwipeListControlDots = JSX(({ className = '', containerRef, activeIndex, dotCount = 0, listType = 'horizontal-list', version, }) => {
|
|
2437
2437
|
const handleClick = (idx) => {
|
|
2438
2438
|
if (idx !== activeIndex && containerRef?.current) {
|
|
2439
2439
|
containerRef.current.children[idx]?.scrollIntoView({
|
|
@@ -2442,7 +2442,7 @@
|
|
|
2442
2442
|
});
|
|
2443
2443
|
}
|
|
2444
2444
|
};
|
|
2445
|
-
return dotCount ? (jsx("div", { className: style('flex gap-xs
|
|
2445
|
+
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;
|
|
2446
2446
|
});
|
|
2447
2447
|
|
|
2448
2448
|
const areArraysEqual = (as, bs) => as === bs || Boolean(as && bs && as?.length === bs?.length && as.every((_, i) => _ === bs[i]));
|
|
@@ -2640,7 +2640,7 @@
|
|
|
2640
2640
|
const [dotsActiveIndex] = scroll.visibleIndicesRange;
|
|
2641
2641
|
// TODO Remove
|
|
2642
2642
|
const isBankHistoryCarousel = childBlocks && childBlocks[0]?.type === 'CarouselBankHistoryCard';
|
|
2643
|
-
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" })] }));
|
|
2643
|
+
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" })] }));
|
|
2644
2644
|
});
|
|
2645
2645
|
Carousel.childrenTypes = [
|
|
2646
2646
|
'CarouselCard',
|
|
@@ -2722,7 +2722,7 @@
|
|
|
2722
2722
|
const CarouselLinkButton = JSX(({ text, href = '', target = '', className = '' }) => {
|
|
2723
2723
|
const link = useLink();
|
|
2724
2724
|
const adjustedProps = link({ href, target });
|
|
2725
|
-
return text ? (jsx("div", { className: style('flex relative group/link pl-s pb-s min-w-[16rem] xl:min-w-[20rem]', className), children: jsxs("div", { className: "relative min-h-16 w-full", children: [jsxs("a", { className: style(LINK_CLASS_NAME, 'sm:rounded-md rounded-none w-full px-xl py-lg whitespace-nowrap'), role: "link", ...adjustedProps, children: [jsx(Text, { size: "text-l", font: "font-light", color: "text-primary-text", children: text }), jsx(Img, { className: "group-hover/link:brightness-100 hidden xl:block ml-2xs", image: { icon: 'ArrowRightIcon', iconVersion: 'black' }, imageClassName: "group-hover/link:text-primary-main hidden xl:block", width: "24", height: "24" })] }), jsx("div", { className: style(LINK_BORDER_CLASS_NAME, '-bottom-1.5 -left-1.5') }), jsx("div", { className: style(LINK_BORDER_CLASS_NAME, '-bottom-3 -left-3') })] }) })) : null;
|
|
2725
|
+
return text ? (jsx("div", { className: style('flex relative group/link pl-s pb-s min-w-[16rem] xl:min-w-[20rem]', className), children: jsxs("div", { className: "relative min-h-16 w-full", children: [jsxs("a", { className: style(LINK_CLASS_NAME, 'sm:rounded-md rounded-none w-full px-xl py-lg whitespace-nowrap z-10'), role: "link", ...adjustedProps, children: [jsx(Text, { size: "text-l", font: "font-light", color: "text-primary-text", children: text }), jsx(Img, { className: "group-hover/link:brightness-100 hidden xl:block ml-2xs", image: { icon: 'ArrowRightIcon', iconVersion: 'black' }, imageClassName: "group-hover/link:text-primary-main hidden xl:block", width: "24", height: "24" })] }), jsx("div", { className: style(LINK_BORDER_CLASS_NAME, '-bottom-1.5 -left-1.5') }), jsx("div", { className: style(LINK_BORDER_CLASS_NAME, '-bottom-3 -left-3') })] }) })) : null;
|
|
2726
2726
|
});
|
|
2727
2727
|
|
|
2728
2728
|
const MAX_LINKS_COUNT = 10;
|
|
@@ -3475,11 +3475,11 @@
|
|
|
3475
3475
|
const link = useLink({ isRemote: true });
|
|
3476
3476
|
return (jsx("div", { className: style('flex items-start justify-between', className), children: topItems?.map(link).map(renderColumn) }));
|
|
3477
3477
|
});
|
|
3478
|
+
const FOOTER_AREA_KEY = 'footer';
|
|
3478
3479
|
const renderColumn = (menuItem, index) => {
|
|
3479
|
-
const { text, items, href, target, onClick } = menuItem;
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
.map((_, i) => (jsx(ColumnItem, { ..._, basePath: appendSlash(href), index: i }, String(i))))] }, String(index)));
|
|
3480
|
+
const { text, items = [], href, target, onClick } = menuItem;
|
|
3481
|
+
const visibleSubItems = items.filter((_) => !_.displayArea || _.displayArea.toLowerCase() === FOOTER_AREA_KEY);
|
|
3482
|
+
return (jsxs("div", { className: "flex flex-col gap-s w-1/4", children: [jsx("a", { className: "leading-5 text-l text-primary-text hover:text-primary-main no-underline", href: href, target: target || '_self', onClick: onClick, children: text || `Раздел ${index}` }), visibleSubItems.map((_, i) => (jsx(ColumnItem, { ..._, basePath: appendSlash(href), index: i }, String(i))))] }, String(index)));
|
|
3483
3483
|
};
|
|
3484
3484
|
const ColumnItem = JSX(({ text, index, basePath, ...rest }) => {
|
|
3485
3485
|
const isAnotherPortal = projectSettings.BASE_PATH && basePath ? !projectSettings.BASE_PATH.startsWith(basePath) : false;
|
|
@@ -3537,7 +3537,7 @@
|
|
|
3537
3537
|
});
|
|
3538
3538
|
const isQueryLongEnough = (_) => _ && _.length >= MIN_QUERY_LEN;
|
|
3539
3539
|
|
|
3540
|
-
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://
|
|
3540
|
+
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" })] })));
|
|
3541
3541
|
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)));
|
|
3542
3542
|
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)));
|
|
3543
3543
|
const renderText = (type, text = '') => {
|
|
@@ -3847,10 +3847,11 @@
|
|
|
3847
3847
|
};
|
|
3848
3848
|
const InternetBankButton = JSX(({ version, internetBankUrl }) => internetBankUrl ? (jsx(Button, { href: internetBankUrl, ariaLabel: "\u0418\u043D\u0442\u0435\u0440\u043D\u0435\u0442-\u0431\u0430\u043D\u043A", target: "_blank", className: style('py-s ml-s text-l font-light whitespace-nowrap hover:text-primary-main', BUTTON_STYLE[version === 'transparent' ? 'transparent' : 'default']), children: "\u0418\u043D\u0442\u0435\u0440\u043D\u0435\u0442-\u0431\u0430\u043D\u043A" })) : null);
|
|
3849
3849
|
|
|
3850
|
+
const HEADER_AREA_KEY = 'header';
|
|
3850
3851
|
const HeaderSubMenu = JSX(({ subItems = [], version, internetBankUrl }) => {
|
|
3851
3852
|
const iconVersion = version === 'transparent' ? 'white' : 'black';
|
|
3852
3853
|
const router = useRouter();
|
|
3853
|
-
const visibleSubItems = useMemo(() => subItems.filter((item) => !item.displayArea || item.displayArea ===
|
|
3854
|
+
const visibleSubItems = useMemo(() => subItems.filter((item) => !item.displayArea || item.displayArea.toLowerCase() === HEADER_AREA_KEY), [subItems]);
|
|
3854
3855
|
const activeSubItem = findActiveSubItem(router)(subItems);
|
|
3855
3856
|
const [visibleItemsCount, setVisibleItemsCount] = useState(visibleSubItems.length);
|
|
3856
3857
|
const dropDownMenuItems = visibleSubItems.slice(visibleItemsCount);
|
|
@@ -4068,11 +4069,10 @@
|
|
|
4068
4069
|
return items?.length ? (jsx(List, { items: items, listItemSize: listItemSize, className: "text-l font-light" })) : (jsx("span", { className: "text-m font-light text-secondary-text", children: "\u041D\u0430\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u0430\u043C\u0435\u0440\u0443 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430 \u043D\u0430 QR-\u043A\u043E\u0434 \u0438 \u0441\u043A\u0430\u0447\u0430\u0439\u0442\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" }));
|
|
4069
4070
|
};
|
|
4070
4071
|
|
|
4071
|
-
const buttonsConditionStyle = (buttons) => renderButtonsSection(buttons, { isVertical: false });
|
|
4072
|
-
|
|
4073
4072
|
const MobileAppTile = JSX(({ className, padding, align = 'text-left', buttons = [], description, headingType = 'h4', image, items, listItemSize, qr, title = 'Мобильное приложение', version = 'primary', ...rest }) => {
|
|
4074
4073
|
const containerStyle = version === 'secondary' ? 'p-m min-w-32' : 'min-w-24';
|
|
4075
|
-
|
|
4074
|
+
const img = image?.src ? jsx(Img, { className: "hidden lg:block", image: image }) : null;
|
|
4075
|
+
return (jsx(BlockWrapper, { className: style('min-h-80', className), padding: "p-0", version: version, ...rest, children: jsxs(BaseTile, { className: "h-full", padding: padding, defaultPadding: "p-6xl", title: title ? (jsx(Heading, { headingType: headingType, title: title, className: style('whitespace-pre-wrap', align) })) : null, rightImage: img, buttons: renderButtonsSection(buttons), children: [renderDescription$1(description), jsxs("div", { className: style('gap-m', 'flex flex-1 flex-col', 'flex-col items-start @4xl:flex-row @4xl:items-center'), children: [renderList$1(items, listItemSize), qr?.src ? (jsx("div", { className: style('flex justify-center bg-white rounded-md @4xl:-order-1', containerStyle), children: jsx(Img, { className: "w-fit", image: qr }) })) : null, image?.src ? jsx(Img, { className: "lg:hidden", image: image }) : null] })] }) }));
|
|
4076
4076
|
});
|
|
4077
4077
|
|
|
4078
4078
|
const badgeBgStyleMap = {
|
|
@@ -4189,6 +4189,11 @@
|
|
|
4189
4189
|
MortgageFiltration.childrenTypes = ['ProductTile'];
|
|
4190
4190
|
MortgageFiltration.childSchema = (content) => content?.filtrationSchema || {};
|
|
4191
4191
|
|
|
4192
|
+
const isSSR = () => Boolean(typeof globalThis.process === 'object' && globalThis.process && globalThis.process.version);
|
|
4193
|
+
|
|
4194
|
+
const isClient = !isSSR();
|
|
4195
|
+
const ClientOnly = JSX(({ children }) => (isClient ? children : null));
|
|
4196
|
+
|
|
4192
4197
|
const styles$2 = {
|
|
4193
4198
|
focus: 'focus:border-primary-text focus:border',
|
|
4194
4199
|
hover: 'hover:bg-primary-hover',
|
|
@@ -4458,11 +4463,9 @@
|
|
|
4458
4463
|
workAllTime: 'Круглосуточно',
|
|
4459
4464
|
billAcceptorEnable: 'Прием наличных',
|
|
4460
4465
|
};
|
|
4461
|
-
const
|
|
4466
|
+
const FILTRATION_PREDICATES = {
|
|
4462
4467
|
safeBoxCaseVolumes: (item) => Boolean(item.safeBoxCaseVolumes),
|
|
4463
4468
|
workingSaturday: (item) => Boolean(item.workSchedule?.workingSaturday),
|
|
4464
|
-
};
|
|
4465
|
-
const FILTRATION_ATMS_PREDICATES = {
|
|
4466
4469
|
terminalTypeAtms: (item) => item.terminalType?.toLowerCase() === 'банкомат',
|
|
4467
4470
|
terminalTypeTerm: (item) => item.terminalType?.toLowerCase() === 'терминал',
|
|
4468
4471
|
workAllTime: (item) => item.workTime?.toLowerCase() === 'круглосуточно',
|
|
@@ -4480,16 +4483,12 @@
|
|
|
4480
4483
|
const points = filteredOfficesAtmsData
|
|
4481
4484
|
.map((_) => [_.gpsLatitude, _.gpsLongitude].filter(Boolean))
|
|
4482
4485
|
.filter((_) => _ && _.length === 2);
|
|
4483
|
-
return (jsxs(BlockWrapper, { version: "transparent", className: style('grid grid-cols-12 gap-1', className), defaultPadding: "p-0", ...rest, children: [jsxs("div", { className: "col-span-12 bg-white", children: [jsxs("div", { className: "pt-6xl px-6xl", children: [jsxs("div", { className: "flex gap-2 pb-2xl", children: [jsx(Heading, { headingType: "h2", children: title }), lengthOfficesAtms ? (jsx(Text, { size: "text-h2", color: "text-secondary-text", children: `(${lengthOfficesAtms})` })) : null] }), data && 'description' in data ? renderDescriptionBlock$1(data) : null, renderFiltrationForm(Object.keys(initialState), { field, reset })] }), jsx("div", { className: "h-[600px]", children: jsx(YandexMap, { points: points, className: "h-full" }) })] }), filteredOfficesAtmsData.map(dataType === 'offices' ? renderOfficeCard : renderAtmCard)] }));
|
|
4486
|
+
return (jsxs(BlockWrapper, { version: "transparent", className: style('grid grid-cols-12 gap-1', className), defaultPadding: "p-0", ...rest, children: [jsxs("div", { className: "col-span-12 bg-white", children: [jsxs("div", { className: "pt-6xl px-6xl", children: [jsxs("div", { className: "flex gap-2 pb-2xl", children: [jsx(Heading, { headingType: "h2", children: title }), lengthOfficesAtms ? (jsx(Text, { size: "text-h2", color: "text-secondary-text", children: `(${lengthOfficesAtms})` })) : null] }), data && 'description' in data ? renderDescriptionBlock$1(data) : null, renderFiltrationForm(Object.keys(initialState), { field, reset })] }), jsx("div", { className: "h-[600px]", children: jsx(ClientOnly, { children: jsx(YandexMap, { points: points, className: "h-full" }) }) })] }), filteredOfficesAtmsData.map(dataType === 'offices' ? renderOfficeCard : renderAtmCard)] }));
|
|
4484
4487
|
});
|
|
4485
4488
|
const filterOfficesAtms = (data, filtrationState) => {
|
|
4486
4489
|
const truthyFilters = Object.keys(filtrationState).filter((key) => filtrationState[key]);
|
|
4487
|
-
return
|
|
4488
|
-
? data.filter(filterOffices(truthyFilters))
|
|
4489
|
-
: data.filter(filterAtms(truthyFilters));
|
|
4490
|
+
return data.filter((item) => truthyFilters.every((filterName) => FILTRATION_PREDICATES[filterName](item)));
|
|
4490
4491
|
};
|
|
4491
|
-
const filterOffices = (filters) => (item) => filters.every((filterName) => FILTRATION_BRANCHES_PREDICATES[filterName](item));
|
|
4492
|
-
const filterAtms = (filters) => (item) => filters.every((filterName) => FILTRATION_ATMS_PREDICATES[filterName](item));
|
|
4493
4492
|
const getTitle = (name = '', dataType = 'offices') => dataType === 'offices' ? `Офисы филиала ${name}` : `Банкоматы филиала ${name}`;
|
|
4494
4493
|
const renderFiltrationForm = (filters, { field, reset }) => (jsxs("div", { className: "pb-2xl", children: [filters?.length ? (jsx("div", { className: "flex flex-wrap gap-3xl pb-2xl", children: filters.map((key) => (jsx(Checkbox, { text: FILTRATION_LABELS[key], ...field(key) }, key))) })) : null, jsx(Button, { version: "transparent", className: "text-secondary-text [&>*]:p-0", onClick: reset, text: "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0444\u0438\u043B\u044C\u0442\u0440", appendRight: jsx(Icon, { name: "CloseIcon", width: "16", height: "16" }) })] }));
|
|
4495
4494
|
const renderDescriptionBlock$1 = ({ description, list }) => (jsxs("div", { className: "p-xl mb-2xl border border-gray rounded-md", children: [jsx(Paragraph, { size: "text-l", font: "font-light", children: description }), list?.length ? (jsx("div", { className: "flex gap-2xl flex-wrap pt-xs", children: list.map((item, i) => (jsxs("div", { className: "flex gap-xs items-center", children: [item?.image ? jsx(Img, { image: item.image }) : null, item?.text ? (jsx(Text, { size: "text-m", font: "font-light", children: item.text })) : null] }, String(i)))) })) : null] }));
|
|
@@ -4788,6 +4787,8 @@
|
|
|
4788
4787
|
|
|
4789
4788
|
const StickyBottomMenu = JSX(() => jsx("div", {})); // DO not remove "<div></div>". Required to pass tests. With "null" it's falling.
|
|
4790
4789
|
|
|
4790
|
+
const isShowDots = false;
|
|
4791
|
+
|
|
4791
4792
|
const DEFAULT_GAP = 14;
|
|
4792
4793
|
/*
|
|
4793
4794
|
Horizontal padding used on a container above SwipeListControl.
|
|
@@ -4795,7 +4796,7 @@
|
|
|
4795
4796
|
and get rid of a clipping effect caused by overflow: hidden.
|
|
4796
4797
|
*/
|
|
4797
4798
|
const DEFAULT_PADDING = 16;
|
|
4798
|
-
const SwipeListControl = JSX(({ className, version, gap = DEFAULT_GAP, padding = DEFAULT_PADDING, showDots =
|
|
4799
|
+
const SwipeListControl = JSX(({ className, version, gap = DEFAULT_GAP, padding = DEFAULT_PADDING, showDots = isShowDots, minHeight, children, onVisibleIndicesChange, listType = 'horizontal-list', }) => {
|
|
4799
4800
|
const itemCount = Array.isArray(children) ? children.length : 0;
|
|
4800
4801
|
const [containerRef, scroll] = useSwipeListScroll({
|
|
4801
4802
|
itemCount,
|
|
@@ -4949,7 +4950,7 @@
|
|
|
4949
4950
|
}
|
|
4950
4951
|
const [headerColumn, ...columns] = rowData;
|
|
4951
4952
|
const columnsStyle = style('flex duration-1000 text-center', rowIdx !== 0 ? 'font-normal' : 'font-light');
|
|
4952
|
-
return (jsxs("div", { className: "flex border-main-divider border-b border-solid h-full", children: [headerColumn?.data ? (jsx("div", { className: "text-xl font-light min-w-56 py-lg", children: headerColumn.data })) : null, jsx("div", { className: "flex flex-grow overflow-hidden", children: jsx("div", { className: columnsStyle, style: {
|
|
4953
|
+
return (jsxs("div", { className: "flex border-main-divider border-b border-solid h-full", children: [headerColumn?.data ? (jsx("div", { className: "text-xl font-light w-56 min-w-56 py-lg", children: headerColumn.data })) : null, jsx("div", { className: "flex flex-grow overflow-hidden", children: jsx("div", { className: columnsStyle, style: {
|
|
4953
4954
|
transform: `translateX(-${getHorizontalShift(columns, activeColumnIndex)}px)`,
|
|
4954
4955
|
}, children: columns?.map((_, i) => (jsxs("div", { className: "flex flex-col flex-grow gap-s justify-center py-xl odd:bg-main-divider", children: [_?.data ? jsx("div", { className: "text-xl font-light", children: _.data }) : null, _?.cols ? renderCols(_.cols, activeColumnIndex) : null] }, `row${i}`))) }) })] }, String(rowIdx)));
|
|
4955
4956
|
};
|
|
@@ -5358,7 +5359,7 @@
|
|
|
5358
5359
|
parent: data,
|
|
5359
5360
|
};
|
|
5360
5361
|
useBlockRouterProvider();
|
|
5361
|
-
return (jsxs("div", { "data-theme": colorPalette, children: [jsxs("section", { className: style('relative
|
|
5362
|
+
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' } })] }));
|
|
5362
5363
|
});
|
|
5363
5364
|
ContentPage.childrenTypes = [];
|
|
5364
5365
|
ContentPage.slots = () => ['header', 'footer', 'StickyBottomMenu'];
|
|
@@ -5366,7 +5367,7 @@
|
|
|
5366
5367
|
return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-3xl sticky bottom-0 pointer-events-auto" }) }));
|
|
5367
5368
|
}
|
|
5368
5369
|
|
|
5369
|
-
const packageVersion = "0.14.
|
|
5370
|
+
const packageVersion = "0.14.3";
|
|
5370
5371
|
|
|
5371
5372
|
exports.Blocks = Blocks;
|
|
5372
5373
|
exports.ContentPage = ContentPage;
|