@redneckz/wildless-cms-uni-blocks 0.8.1 → 0.8.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/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +114 -35
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Carousel/CarouselContent.d.ts +6 -1
- package/bundle/components/Carousel/CarouselScrollButtons.d.ts +13 -0
- package/bundle/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +9 -0
- package/bundle/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.d.ts +9 -0
- package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +0 -1
- package/bundle/components/Footer/MediaButton.d.ts +2 -2
- package/bundle/components/Footer/SocialMedia.d.ts +2 -2
- package/bundle/hooks/useLink.d.ts +1 -1
- package/bundle/services/sitemap/isHrefActive.d.ts +2 -1
- package/bundle/services/sitemap/isTopItemActive.d.ts +2 -3
- package/dist/components/Blocks.js +2 -0
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Carousel/Carousel.js +27 -6
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/Carousel/CarouselContent.d.ts +6 -1
- package/dist/components/Carousel/CarouselScrollButtons.d.ts +13 -0
- package/dist/components/Carousel/CarouselScrollButtons.js +35 -0
- package/dist/components/Carousel/CarouselScrollButtons.js.map +1 -0
- package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +9 -0
- package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +46 -0
- package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -0
- package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.d.ts +9 -0
- package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.js +2 -0
- package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.js.map +1 -0
- package/dist/components/CarouselCard/CarouselCard.js +1 -1
- package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
- package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +0 -1
- package/dist/components/Footer/MediaButton.d.ts +2 -2
- package/dist/components/Footer/SocialMedia.d.ts +2 -2
- package/dist/components/Footer/SocialMedia.js +2 -1
- package/dist/components/Footer/SocialMedia.js.map +1 -1
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/Tabs/Tabs.js.map +1 -1
- package/dist/hooks/useLink.d.ts +1 -1
- package/dist/hooks/useLink.js +2 -2
- package/dist/hooks/useLink.js.map +1 -1
- package/dist/services/sitemap/findActiveSubItem.js +2 -2
- package/dist/services/sitemap/findActiveSubItem.js.map +1 -1
- package/dist/services/sitemap/isHrefActive.d.ts +2 -1
- package/dist/services/sitemap/isHrefActive.js +1 -2
- package/dist/services/sitemap/isHrefActive.js.map +1 -1
- package/dist/services/sitemap/isTopItemActive.d.ts +2 -3
- package/dist/services/sitemap/isTopItemActive.js +1 -2
- package/dist/services/sitemap/isTopItemActive.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListContainer.js +7 -5
- package/dist/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
- package/dist/ui-kit/TopItem/TopItem.js +1 -1
- package/dist/ui-kit/TopItem/TopItem.js.map +1 -1
- package/dist/utils/url.js +1 -7
- package/dist/utils/url.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Blocks.js +2 -0
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Carousel/Carousel.fixture.d.ts +1 -0
- package/lib/components/Carousel/Carousel.js +28 -7
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/Carousel/CarouselContent.d.ts +6 -1
- package/lib/components/Carousel/CarouselScrollButtons.d.ts +13 -0
- package/lib/components/Carousel/CarouselScrollButtons.js +33 -0
- package/lib/components/Carousel/CarouselScrollButtons.js.map +1 -0
- package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +9 -0
- package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.fixture.d.ts +15 -0
- package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +44 -0
- package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -0
- package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.d.ts +9 -0
- package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.js +2 -0
- package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.js.map +1 -0
- package/lib/components/CarouselCard/CarouselCard.js +1 -1
- package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +0 -1
- package/lib/components/Footer/MediaButton.d.ts +2 -2
- package/lib/components/Footer/SocialMedia.d.ts +2 -2
- package/lib/components/Footer/SocialMedia.js +2 -1
- package/lib/components/Footer/SocialMedia.js.map +1 -1
- package/lib/components/Tabs/Tabs.js +1 -1
- package/lib/components/Tabs/Tabs.js.map +1 -1
- package/lib/hooks/useLink.d.ts +1 -1
- package/lib/hooks/useLink.js +2 -2
- package/lib/hooks/useLink.js.map +1 -1
- package/lib/services/sitemap/findActiveSubItem.js +2 -2
- package/lib/services/sitemap/findActiveSubItem.js.map +1 -1
- package/lib/services/sitemap/isHrefActive.d.ts +2 -1
- package/lib/services/sitemap/isHrefActive.js +2 -3
- package/lib/services/sitemap/isHrefActive.js.map +1 -1
- package/lib/services/sitemap/isTopItemActive.d.ts +2 -3
- package/lib/services/sitemap/isTopItemActive.js +1 -2
- package/lib/services/sitemap/isTopItemActive.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListContainer.js +7 -5
- package/lib/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
- package/lib/ui-kit/TopItem/TopItem.js +1 -1
- package/lib/ui-kit/TopItem/TopItem.js.map +1 -1
- package/lib/utils/url.js +1 -7
- package/lib/utils/url.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +15 -24
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Carousel/CarouselContent.d.ts +6 -1
- package/mobile/bundle/components/Carousel/CarouselScrollButtons.d.ts +13 -0
- package/mobile/bundle/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +9 -0
- package/mobile/bundle/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.d.ts +9 -0
- package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +0 -1
- package/mobile/bundle/components/Footer/MediaButton.d.ts +2 -2
- package/mobile/bundle/hooks/useLink.d.ts +1 -1
- package/mobile/bundle/services/sitemap/isHrefActive.d.ts +2 -1
- package/mobile/bundle/services/sitemap/isTopItemActive.d.ts +2 -3
- package/mobile/dist/components/Carousel/Carousel.js +27 -6
- package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
- package/mobile/dist/components/Carousel/CarouselContent.d.ts +6 -1
- package/mobile/dist/components/Carousel/CarouselScrollButtons.d.ts +13 -0
- package/mobile/dist/components/Carousel/CarouselScrollButtons.js +35 -0
- package/mobile/dist/components/Carousel/CarouselScrollButtons.js.map +1 -0
- package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +9 -0
- package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +46 -0
- package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -0
- package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.d.ts +9 -0
- package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.js +2 -0
- package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.js.map +1 -0
- package/mobile/dist/components/CarouselCard/CarouselCard.js +1 -1
- package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +0 -1
- package/mobile/dist/components/Footer/MediaButton.d.ts +2 -2
- package/mobile/dist/components/Tabs/Tabs.js +1 -1
- package/mobile/dist/components/Tabs/Tabs.js.map +1 -1
- package/mobile/dist/hooks/useLink.d.ts +1 -1
- package/mobile/dist/hooks/useLink.js +2 -2
- package/mobile/dist/hooks/useLink.js.map +1 -1
- package/mobile/dist/services/sitemap/findActiveSubItem.js +2 -2
- package/mobile/dist/services/sitemap/findActiveSubItem.js.map +1 -1
- package/mobile/dist/services/sitemap/isHrefActive.d.ts +2 -1
- package/mobile/dist/services/sitemap/isHrefActive.js +1 -2
- package/mobile/dist/services/sitemap/isHrefActive.js.map +1 -1
- package/mobile/dist/services/sitemap/isTopItemActive.d.ts +2 -3
- package/mobile/dist/services/sitemap/isTopItemActive.js +1 -2
- package/mobile/dist/services/sitemap/isTopItemActive.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.js +7 -5
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
- package/mobile/dist/ui-kit/TopItem/TopItem.js +1 -1
- package/mobile/dist/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/dist/utils/url.js +1 -7
- package/mobile/dist/utils/url.js.map +1 -1
- package/mobile/lib/components/Carousel/Carousel.js +28 -7
- package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
- package/mobile/lib/components/Carousel/CarouselContent.d.ts +6 -1
- package/mobile/lib/components/Carousel/CarouselScrollButtons.d.ts +13 -0
- package/mobile/lib/components/Carousel/CarouselScrollButtons.js +33 -0
- package/mobile/lib/components/Carousel/CarouselScrollButtons.js.map +1 -0
- package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +9 -0
- package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +44 -0
- package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -0
- package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.d.ts +9 -0
- package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.js +2 -0
- package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.js.map +1 -0
- package/mobile/lib/components/CarouselCard/CarouselCard.js +1 -1
- package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +0 -1
- package/mobile/lib/components/Footer/MediaButton.d.ts +2 -2
- package/mobile/lib/components/Tabs/Tabs.js +1 -1
- package/mobile/lib/components/Tabs/Tabs.js.map +1 -1
- package/mobile/lib/hooks/useLink.d.ts +1 -1
- package/mobile/lib/hooks/useLink.js +2 -2
- package/mobile/lib/hooks/useLink.js.map +1 -1
- package/mobile/lib/services/sitemap/findActiveSubItem.js +2 -2
- package/mobile/lib/services/sitemap/findActiveSubItem.js.map +1 -1
- package/mobile/lib/services/sitemap/isHrefActive.d.ts +2 -1
- package/mobile/lib/services/sitemap/isHrefActive.js +2 -3
- package/mobile/lib/services/sitemap/isHrefActive.js.map +1 -1
- package/mobile/lib/services/sitemap/isTopItemActive.d.ts +2 -3
- package/mobile/lib/services/sitemap/isTopItemActive.js +1 -2
- package/mobile/lib/services/sitemap/isTopItemActive.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.js +7 -5
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
- package/mobile/lib/ui-kit/TopItem/TopItem.js +1 -1
- package/mobile/lib/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/lib/utils/url.js +1 -7
- package/mobile/lib/utils/url.js.map +1 -1
- package/mobile/src/common.css +17 -0
- package/mobile/src/components/Carousel/Carousel.tsx +43 -32
- package/mobile/src/components/Carousel/CarouselContent.ts +6 -1
- package/mobile/src/components/Carousel/CarouselScrollButtons.tsx +81 -0
- package/mobile/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.example.json +4 -0
- package/mobile/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.tsx +85 -0
- package/mobile/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.ui.json +1 -0
- package/mobile/src/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.ts +9 -0
- package/mobile/src/components/CarouselCard/CarouselCard.tsx +2 -2
- package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +1 -1
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -1
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.ui.json +10 -9
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +0 -1
- package/mobile/src/components/Footer/MediaButton.tsx +2 -2
- package/mobile/src/components/Tabs/Tabs.tsx +2 -2
- package/mobile/src/hooks/useLink.ts +4 -4
- package/mobile/src/services/sitemap/findActiveSubItem.ts +2 -2
- package/mobile/src/services/sitemap/isHrefActive.ts +6 -6
- package/mobile/src/services/sitemap/isTopItemActive.ts +3 -3
- package/mobile/src/ui-kit/SwipeListControl/SwipeListContainer.tsx +9 -6
- package/mobile/src/ui-kit/TopItem/TopItem.tsx +1 -1
- package/mobile/src/utils/url.ts +1 -9
- package/package.json +3 -3
- package/src/common.css +17 -0
- package/src/components/Blocks.ts +2 -0
- package/src/components/Carousel/Carousel.fixture.tsx +20 -0
- package/src/components/Carousel/Carousel.tsx +43 -32
- package/src/components/Carousel/CarouselContent.ts +6 -1
- package/src/components/Carousel/CarouselScrollButtons.tsx +81 -0
- package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.example.json +4 -0
- package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.fixture.tsx +19 -0
- package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.tsx +85 -0
- package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.ui.json +1 -0
- package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.ts +9 -0
- package/src/components/CarouselCard/CarouselCard.tsx +2 -2
- package/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +1 -1
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -1
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.ui.json +10 -9
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +0 -1
- package/src/components/Footer/MediaButton.tsx +2 -2
- package/src/components/Footer/SocialMedia.tsx +6 -3
- package/src/components/Tabs/Tabs.tsx +2 -2
- package/src/hooks/useLink.ts +4 -4
- package/src/services/sitemap/findActiveSubItem.ts +2 -2
- package/src/services/sitemap/isHrefActive.ts +6 -6
- package/src/services/sitemap/isTopItemActive.ts +3 -3
- package/src/ui-kit/SwipeListControl/SwipeListContainer.tsx +9 -6
- package/src/ui-kit/TopItem/TopItem.tsx +1 -1
- package/src/utils/url.ts +1 -9
- package/tailwind.config.cjs +2 -0
- package/bundle/services/sitemap/isSubItemActive.d.ts +0 -4
- package/bundle/utils/adjustHref.d.ts +0 -1
- package/dist/services/sitemap/isSubItemActive.d.ts +0 -4
- package/dist/services/sitemap/isSubItemActive.js +0 -6
- package/dist/services/sitemap/isSubItemActive.js.map +0 -1
- package/dist/utils/adjustHref.d.ts +0 -1
- package/dist/utils/adjustHref.js +0 -9
- package/dist/utils/adjustHref.js.map +0 -1
- package/lib/services/sitemap/isSubItemActive.d.ts +0 -4
- package/lib/services/sitemap/isSubItemActive.js +0 -3
- package/lib/services/sitemap/isSubItemActive.js.map +0 -1
- package/lib/utils/adjustHref.d.ts +0 -1
- package/lib/utils/adjustHref.js +0 -6
- package/lib/utils/adjustHref.js.map +0 -1
- package/mobile/bundle/services/sitemap/isSubItemActive.d.ts +0 -4
- package/mobile/bundle/utils/adjustHref.d.ts +0 -1
- package/mobile/dist/services/sitemap/isSubItemActive.d.ts +0 -4
- package/mobile/dist/services/sitemap/isSubItemActive.js +0 -6
- package/mobile/dist/services/sitemap/isSubItemActive.js.map +0 -1
- package/mobile/dist/utils/adjustHref.d.ts +0 -1
- package/mobile/dist/utils/adjustHref.js +0 -9
- package/mobile/dist/utils/adjustHref.js.map +0 -1
- package/mobile/lib/services/sitemap/isSubItemActive.d.ts +0 -4
- package/mobile/lib/services/sitemap/isSubItemActive.js +0 -3
- package/mobile/lib/services/sitemap/isSubItemActive.js.map +0 -1
- package/mobile/lib/utils/adjustHref.d.ts +0 -1
- package/mobile/lib/utils/adjustHref.js +0 -6
- package/mobile/lib/utils/adjustHref.js.map +0 -1
- package/mobile/src/services/sitemap/isSubItemActive.ts +0 -7
- package/mobile/src/utils/adjustHref.ts +0 -7
- package/src/services/sitemap/isSubItemActive.ts +0 -7
- package/src/utils/adjustHref.ts +0 -7
package/bundle/bundle.umd.js
CHANGED
|
@@ -581,7 +581,7 @@
|
|
|
581
581
|
const simpleKey = args[0];
|
|
582
582
|
const fallbackData = fallback && typeof simpleKey === 'string' && fallback[simpleKey];
|
|
583
583
|
return {
|
|
584
|
-
data: !data &&
|
|
584
|
+
data: !data && fallbackData ? fallbackData : data,
|
|
585
585
|
error,
|
|
586
586
|
mutate: () => Promise.resolve(undefined),
|
|
587
587
|
isValidating: false
|
|
@@ -656,12 +656,7 @@
|
|
|
656
656
|
}
|
|
657
657
|
|
|
658
658
|
const isURL = (href) => Boolean(href?.includes('//'));
|
|
659
|
-
const isLocalURL = (href, target) => Boolean(href &&
|
|
660
|
-
!isURL(href) &&
|
|
661
|
-
(projectSettings.BASE_PATH
|
|
662
|
-
? href.startsWith(projectSettings.BASE_PATH)
|
|
663
|
-
: !href.startsWith('/')) &&
|
|
664
|
-
(!target || target === '_self'));
|
|
659
|
+
const isLocalURL = (href, target) => Boolean(href && !isURL(href) && (!target || target === '_self'));
|
|
665
660
|
const isHash = (href) => Boolean(href?.startsWith('#'));
|
|
666
661
|
const withoutQuery = (href) => (href || '').replace(/\/?\?.*/, '');
|
|
667
662
|
const getOrigin = (href) => (isURL(href) ? new URL(href).origin : undefined);
|
|
@@ -706,11 +701,11 @@
|
|
|
706
701
|
useRouter._impl = impl;
|
|
707
702
|
};
|
|
708
703
|
|
|
709
|
-
function useLink() {
|
|
704
|
+
function useLink(isRemote) {
|
|
710
705
|
const router = useRouter();
|
|
711
706
|
const blockRouter = useBlockRouter();
|
|
712
707
|
const handleLocalURL = (href, target) => (ev) => {
|
|
713
|
-
if (!isLocalURL(href, target)) {
|
|
708
|
+
if (isRemote || !isLocalURL(href, target)) {
|
|
714
709
|
// Proceed with native handle
|
|
715
710
|
return;
|
|
716
711
|
}
|
|
@@ -1803,6 +1798,7 @@
|
|
|
1803
1798
|
});
|
|
1804
1799
|
|
|
1805
1800
|
const childStyleMap = ['min-w-[100%]', 'min-w-[50%]', 'min-w-[33.33%]', 'min-w-[25%]'];
|
|
1801
|
+
const DEFAULT_HEIGHT = '866px';
|
|
1806
1802
|
const SwipeListContainer = JSX(({ className = '', containerRef, activeIndex, visibleItemCount = 0, gap = 0, padding = 0, listType = 'horizontal-list', snapAlign = 'snap-center', children, onVisibleItemsChange, onVisibleIndicesChange, }) => {
|
|
1807
1803
|
const observerOptions = {
|
|
1808
1804
|
sensitivity: 1,
|
|
@@ -1821,10 +1817,14 @@
|
|
|
1821
1817
|
const isHorizontalList = listType === 'horizontal-list';
|
|
1822
1818
|
const containerStyle = {
|
|
1823
1819
|
...(isHorizontalList ? getContainerOffset(padding, additionPadding) : {}),
|
|
1824
|
-
...(isVerticalList ?
|
|
1820
|
+
...(isVerticalList ? { height: DEFAULT_HEIGHT } : {}),
|
|
1825
1821
|
gap: `${gap}px`,
|
|
1826
1822
|
};
|
|
1827
|
-
|
|
1823
|
+
const itemContainerStyle = {
|
|
1824
|
+
...(isHorizontalList ? getContainerOffset(padding / 4) : {}),
|
|
1825
|
+
maxHeight: DEFAULT_HEIGHT,
|
|
1826
|
+
};
|
|
1827
|
+
return (jsx("div", { className: style('box-border overflow-auto no-scrollbar', listType, className), style: containerStyle, role: "list", ref: containerRef, children: mapChildren((child, idx) => (jsx(SwipeListItem, { className: style(snapAlign, visibleItemCount ? childStyleMap[visibleItemCount - 1] : '', isVerticalList ? 'h-full' : ''), style: itemContainerStyle, activeIndex: activeIndex, idx: idx, observerOptions: observerOptions, onIntersection: handleIntersection, children: child }, String(idx))))(children) }));
|
|
1828
1828
|
});
|
|
1829
1829
|
// Styles used to compensate outer container padding to get rid of clipping effect
|
|
1830
1830
|
const getContainerOffset = (padding, additionalPadding = 0) => ({
|
|
@@ -1837,9 +1837,6 @@
|
|
|
1837
1837
|
.map((_, i) => [_, i])
|
|
1838
1838
|
.filter(([_]) => _ && _.intersectionRatio >= 0.9)
|
|
1839
1839
|
.map(([, i]) => i);
|
|
1840
|
-
const getContainerHeight = (ref) => ({
|
|
1841
|
-
height: ref?.current?.firstElementChild?.clientHeight || 0,
|
|
1842
|
-
});
|
|
1843
1840
|
|
|
1844
1841
|
const areArraysEqual = (as, bs) => as === bs || Boolean(as && bs && as?.length === bs?.length && as.every((_, i) => _ === bs[i]));
|
|
1845
1842
|
|
|
@@ -1908,20 +1905,54 @@
|
|
|
1908
1905
|
];
|
|
1909
1906
|
};
|
|
1910
1907
|
|
|
1911
|
-
const
|
|
1908
|
+
const scrollButtonStyle$1 = 'absolute top-[calc(50%-24px)] z-50';
|
|
1912
1909
|
const blurBaseStyle = 'absolute top-0 bottom-0 z-50 w-[84px] pointer-events-none';
|
|
1913
|
-
const
|
|
1914
|
-
|
|
1910
|
+
const CarouselScrollButtons = JSX(({ scroll, arrowsPadded, isBlur, onScrollLeft, onScrollRight, hasEdgeBlocks, activeIndex, itemCount, }) => {
|
|
1911
|
+
const { canScrollLeft, canScrollRight, scrollLeft, scrollRight } = scroll;
|
|
1912
|
+
const canMoveLeft = hasEdgeBlocks ? activeIndex > 0 : canScrollLeft;
|
|
1913
|
+
const canMoveRight = hasEdgeBlocks ? activeIndex < itemCount - 1 : canScrollRight;
|
|
1914
|
+
const handleScrollLeft = useCallback(() => {
|
|
1915
|
+
if (!hasEdgeBlocks) {
|
|
1916
|
+
scrollLeft();
|
|
1917
|
+
}
|
|
1918
|
+
else {
|
|
1919
|
+
canScrollLeft && activeIndex !== itemCount - 1 && scrollLeft();
|
|
1920
|
+
onScrollLeft();
|
|
1921
|
+
}
|
|
1922
|
+
}, [scrollLeft, onScrollLeft, hasEdgeBlocks, canScrollLeft, activeIndex, itemCount]);
|
|
1923
|
+
const handleScrollRight = useCallback(() => {
|
|
1924
|
+
if (!hasEdgeBlocks) {
|
|
1925
|
+
scrollRight();
|
|
1926
|
+
}
|
|
1927
|
+
else {
|
|
1928
|
+
canScrollRight && activeIndex !== 0 && scrollRight();
|
|
1929
|
+
onScrollRight();
|
|
1930
|
+
}
|
|
1931
|
+
}, [scrollRight, onScrollRight, hasEdgeBlocks, canScrollLeft, activeIndex, itemCount]);
|
|
1932
|
+
return (jsxs("div", { children: [renderBlur(isBlur, scroll), canMoveLeft ? (jsx(ScrollLeftButton, { className: style(scrollButtonStyle$1, arrowsPadded ? 'left-8' : 'left-0'), onClick: handleScrollLeft })) : null, canMoveRight ? (jsx(ScrollRightButton, { className: style(scrollButtonStyle$1, arrowsPadded ? 'right-8' : 'right-0'), onClick: handleScrollRight })) : null] }));
|
|
1933
|
+
});
|
|
1934
|
+
const renderBlur = (isBlur, scroll) => (scroll.canScrollLeft || scroll.canScrollRight) && isBlur ? (jsxs("div", { children: [jsx("div", { className: style(blurBaseStyle, 'left-0 bg-opacity-from-white') }), jsx("div", { className: style(blurBaseStyle, 'right-0 bg-opacity-to-white') })] })) : null;
|
|
1935
|
+
|
|
1936
|
+
const ITEMS_GAP = 4;
|
|
1937
|
+
const Carousel = JSX(({ className = '', itemCount, visibleItemCount, isBlur = true, isCyclic = false, arrowsPadded = true, isPadding = true, ...rest }) => {
|
|
1915
1938
|
const { blocks: childBlocks } = rest.block || {};
|
|
1916
1939
|
const count = itemCount || childBlocks?.length || 0;
|
|
1940
|
+
const [activeIndex, setActiveIndex] = useState(Math.floor((visibleItemCount || 0) / 2));
|
|
1941
|
+
const increaseActiveIndex = useCallback(() => setActiveIndex((_) => _ + 1), []);
|
|
1942
|
+
const decreaseActiveIndex = useCallback(() => setActiveIndex((_) => _ - 1), []);
|
|
1917
1943
|
const [containerRef, scroll] = useSwipeListScroll({
|
|
1918
1944
|
itemCount: count,
|
|
1919
1945
|
isCyclic,
|
|
1920
1946
|
});
|
|
1921
|
-
|
|
1947
|
+
const isBankHistoryCarousel = childBlocks && childBlocks[0].type === 'CarouselBankHistoryCard';
|
|
1948
|
+
return (jsx(BlockWrapper, { className: style(getPaddingStyle(isPadding), className), ...rest, children: jsxs("div", { className: "relative max-w-full", children: [jsx(SwipeListContainer, { containerRef: containerRef, visibleItemCount: visibleItemCount, snapAlign: "snap-start", gap: ITEMS_GAP, onVisibleIndicesChange: scroll.handleVisibleIndicesChange, children: renderChildren({
|
|
1949
|
+
...rest,
|
|
1950
|
+
block: { ...rest.block, blocks: buildBlocks(childBlocks, activeIndex) },
|
|
1951
|
+
}) }), jsx(CarouselScrollButtons, { scroll: scroll, isBlur: isBlur, arrowsPadded: arrowsPadded, onScrollLeft: decreaseActiveIndex, onScrollRight: increaseActiveIndex, hasEdgeBlocks: isBankHistoryCarousel, activeIndex: activeIndex, itemCount: count })] }) }));
|
|
1922
1952
|
});
|
|
1923
1953
|
Carousel.childrenTypes = [
|
|
1924
1954
|
'CarouselCard',
|
|
1955
|
+
'CarouselBankHistoryCard',
|
|
1925
1956
|
'CarouselCatalogCard',
|
|
1926
1957
|
'CarouselInvestmentCard',
|
|
1927
1958
|
'CarouselProductCard',
|
|
@@ -1930,21 +1961,74 @@
|
|
|
1930
1961
|
'CarouselTariffsCard',
|
|
1931
1962
|
'CarouselInvestmentCard',
|
|
1932
1963
|
];
|
|
1933
|
-
const
|
|
1964
|
+
const buildBlocks = (blocks, activeIndex) => {
|
|
1965
|
+
return blocks && blocks[0].type === 'CarouselBankHistoryCard'
|
|
1966
|
+
? blocks.map((_, i) => {
|
|
1967
|
+
return {
|
|
1968
|
+
..._,
|
|
1969
|
+
content: {
|
|
1970
|
+
..._.content,
|
|
1971
|
+
orderNumber: i,
|
|
1972
|
+
isActive: activeIndex === i,
|
|
1973
|
+
blocksLength: blocks.length,
|
|
1974
|
+
},
|
|
1975
|
+
};
|
|
1976
|
+
})
|
|
1977
|
+
: blocks;
|
|
1978
|
+
};
|
|
1934
1979
|
const getPaddingStyle = (isPadding) => (isPadding ? 'p-12' : '');
|
|
1935
1980
|
|
|
1981
|
+
const CarouselBankHistoryCard = JSX(({ title, description, isActive, orderNumber = 0, blocksLength = 0 }) => {
|
|
1982
|
+
return (jsx(BlockWrapper, { className: "flex h-[485px]", children: isActive ? (jsx("div", { className: "relative flex items-center w-full", children: jsx(Headline, { headlineVersion: "S", title: title, description: description, align: "text-left", className: style('absolute z-10 h-[385px] w-[440px] text-white shadow-dark-blue', getActiveBlockPosition(orderNumber, blocksLength), getBackgroundColor(orderNumber)) }) })) : (jsx("div", { className: "flex w-full items-center justify-center", children: jsx("div", { className: style('flex justify-center items-center h-[300px] w-[340px] font-mohave text-title-large tracking-[-0.03em]', getBackgroundColor(orderNumber)), children: jsx("span", { className: getTextColor(orderNumber), children: title }) }) })) }));
|
|
1983
|
+
});
|
|
1984
|
+
const getBackgroundColor = (orderNumber) => {
|
|
1985
|
+
const division = orderNumber % 3;
|
|
1986
|
+
switch (division) {
|
|
1987
|
+
case 0:
|
|
1988
|
+
return 'bg-primary-main';
|
|
1989
|
+
case 1:
|
|
1990
|
+
return 'bg-green-light';
|
|
1991
|
+
case 2:
|
|
1992
|
+
return 'bg-yellow-light';
|
|
1993
|
+
default:
|
|
1994
|
+
return 'bg-primary-main';
|
|
1995
|
+
}
|
|
1996
|
+
};
|
|
1997
|
+
const getTextColor = (orderNumber) => {
|
|
1998
|
+
const division = orderNumber % 3;
|
|
1999
|
+
switch (division) {
|
|
2000
|
+
case 1:
|
|
2001
|
+
return 'gradient-color-text-on-yellow';
|
|
2002
|
+
case 2:
|
|
2003
|
+
return 'gradient-color-text-on-yellow';
|
|
2004
|
+
default:
|
|
2005
|
+
return 'gradient-color-text-on-green';
|
|
2006
|
+
}
|
|
2007
|
+
};
|
|
2008
|
+
const getActiveBlockPosition = (orderNumber, blocksLength) => {
|
|
2009
|
+
if (orderNumber === 0) {
|
|
2010
|
+
return 'left-9';
|
|
2011
|
+
}
|
|
2012
|
+
else if (orderNumber === blocksLength - 1) {
|
|
2013
|
+
return 'right-9';
|
|
2014
|
+
}
|
|
2015
|
+
else {
|
|
2016
|
+
return '-left-[25px]';
|
|
2017
|
+
}
|
|
2018
|
+
};
|
|
2019
|
+
|
|
1936
2020
|
const BLOCK_CLASSES = 'absolute border border-solid border-gray w-full h-full';
|
|
1937
2021
|
const CARD_WIDTH_MAP = {
|
|
1938
2022
|
normal: 'min-w-[970px]',
|
|
1939
2023
|
mini: 'min-w-[355px]',
|
|
1940
2024
|
};
|
|
1941
|
-
const CarouselCard = JSX(({ className = '', button, description, title, carouselVersion = 'normal' }) => (jsx("section", { className: `flex pb-9 pl-12 border-box ${CARD_WIDTH_MAP[carouselVersion]} ${className}`, children: jsxs("div", { className: "relative w-full", children: [jsx("div", { className: `${BLOCK_CLASSES} z-10 top-9 right-12 bg-green-dark` }), jsx("div", { className: `${BLOCK_CLASSES} z-10 top-6 right-8 bg-green` }), jsx("div", { className: `${BLOCK_CLASSES} z-10 top-3 right-4 bg-green-light` }), jsxs("div", { className: "relative bg-white z-10 p-10 border border-solid border-green-light", children: [jsx(Headline, { className: "!p-0", title: title, description: description, headlineVersion: "L", align: "text-left" }), renderButtonsSection([button], { className: 'mt-14' })] })] }) })));
|
|
2025
|
+
const CarouselCard = JSX(({ className = '', button, description, title, carouselVersion = 'normal' }) => (jsx("section", { className: `flex pb-9 pl-12 border-box h-full ${CARD_WIDTH_MAP[carouselVersion]} ${className}`, children: jsxs("div", { className: "relative w-full", children: [jsx("div", { className: `${BLOCK_CLASSES} z-10 top-9 right-12 bg-green-dark` }), jsx("div", { className: `${BLOCK_CLASSES} z-10 top-6 right-8 bg-green` }), jsx("div", { className: `${BLOCK_CLASSES} z-10 top-3 right-4 bg-green-light` }), jsxs("div", { className: "relative h-full bg-white z-10 p-10 border border-solid border-green-light", children: [jsx(Headline, { className: "!p-0", title: title, description: description, headlineVersion: "L", align: "text-left" }), renderButtonsSection([button], { className: 'mt-14' })] })] }) })));
|
|
1942
2026
|
|
|
1943
2027
|
const cardStyleMap$2 = {
|
|
1944
2028
|
black: 'bg-black',
|
|
1945
2029
|
white: 'bg-white',
|
|
1946
2030
|
};
|
|
1947
|
-
const CarouselCatalogCard = JSX(({ className = '', title, description, image, price, button, colors, ...rest }) => (jsxs(BlockWrapper, { className: `border box-border border-gray p-7 min-w-[392px] flex flex-col justify-left ${className}`, ...rest, children: [image?.src ? jsx(ImgInner, { className: "mb-5 flex justify-center", image: image }) : null, title ? (jsx(Heading, { headingType: "h6", as: "h4", className: "text-left mb-1.5", title: title })) : null, description ? (jsx("div", { className: "mb-4", children: jsx(Paragraph, { size: "text-m", align: "text-left", font: "font-light", children: description }) })) : null, colors?.length ? (jsxs("div", { className: "flex mb-4 text-s-light text-secondary-text", children: [jsx("div", { className: "mr-1.5", children: jsx(Text, { children: "\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0446\u0432\u0435\u0442\u0430: " }) }), colors.map(renderColorOption$1)] })) : null, price ? (jsxs(Text, { size: "text-h3", align: "text-left", children: [price, "\u00A0\u20BD"] })) : null, renderButtonsSection([button], { buttonClassName: 'mt-5 w-full' })] })));
|
|
2031
|
+
const CarouselCatalogCard = JSX(({ className = '', title, description, image, price, button, colors, ...rest }) => (jsxs(BlockWrapper, { className: `border box-border border-gray p-7 min-w-[392px] h-full flex flex-col justify-left ${className}`, ...rest, children: [image?.src ? jsx(ImgInner, { className: "mb-5 flex justify-center", image: image }) : null, title ? (jsx(Heading, { headingType: "h6", as: "h4", className: "text-left mb-1.5", title: title })) : null, description ? (jsx("div", { className: "mb-4", children: jsx(Paragraph, { size: "text-m", align: "text-left", font: "font-light", children: description }) })) : null, colors?.length ? (jsxs("div", { className: "flex mb-4 text-s-light text-secondary-text", children: [jsx("div", { className: "mr-1.5", children: jsx(Text, { children: "\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0446\u0432\u0435\u0442\u0430: " }) }), colors.map(renderColorOption$1)] })) : null, price ? (jsxs(Text, { size: "text-h3", align: "text-left", children: [price, "\u00A0\u20BD"] })) : null, renderButtonsSection([button], { buttonClassName: 'mt-5 w-full' })] })));
|
|
1948
2032
|
const renderColorOption$1 = (color, i) => (jsx("span", { className: `w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${cardStyleMap$2[color]}` }, String(i)));
|
|
1949
2033
|
|
|
1950
2034
|
const BaseTile = JSX(({ className = '', title = '', buttons, image, children }) => (jsxs("div", { className: `font-sans flex flex-col grow h-full items-start ${className}`, children: [title, jsxs("div", { className: "flex grow w-full justify-between", children: [jsxs("div", { className: "flex flex-col justify-between w-full", children: [jsx("div", { className: "h-full", children: children }), buttons ? jsx("div", { className: "mt-auto pt-8", children: buttons }) : null] }), image] })] })));
|
|
@@ -2070,13 +2154,13 @@
|
|
|
2070
2154
|
return (jsx(Button, { className: style('group/media flex items-center justify-center box-border', buttonSizeStyles[buttonSize], rounded ? 'rounded-full' : 'rounded-md', 'border border-solid hover:border-transparent', 'group-data-primary:border-main-divider', 'hover:bg-primary-main hover:text-black', 'group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover', 'group-data-gray:border-green', buttonSizeStyles[buttonSize]), "aria-label": label, target: "_blank", rel: "noopener noreferrer", version: version, ...rest, children: iconWithVersion ? (jsx(ImgInner, { image: iconWithVersion, imageClassName: "group-hover/media:text-white", width: "24", height: "24", asSVG: true })) : null }));
|
|
2071
2155
|
});
|
|
2072
2156
|
|
|
2073
|
-
const SocialMedia = JSX(({ className = '', media, children, buttonSize }) => (jsxs("div", { className: "font-sans", children: [jsx("div", { className: `flex gap-2.5 ${className}`, children: media?.map((_, index) => (jsx(MediaButton, { buttonSize: buttonSize, version: _.version, ..._ }, String(index)))) }), jsx(
|
|
2157
|
+
const SocialMedia = JSX(({ className = '', media, children, buttonSize }) => (jsxs("div", { className: "font-sans", children: [jsx("div", { className: `flex gap-2.5 ${className}`, children: media?.map((_, index) => (jsx(MediaButton, { buttonSize: buttonSize, version: _.version, ..._ }, String(index)))) }), jsx(Text, { size: "text-s-light", color: "text-secondary-text", children: children })] })));
|
|
2074
2158
|
|
|
2075
2159
|
const CarouselRecommendationCard = JSX(({ button, className = '', description, image, items = [], socialMedia = [], title, version = 'primary', ...rest }) => {
|
|
2076
2160
|
const tileTitle = title ? (jsx(Heading, { headingType: "h5", as: "h3", className: "mb-3.5 z-10", title: title })) : null;
|
|
2077
2161
|
const tileImage = image?.src ? (jsx(ImgInner, { className: "absolute bottom-0 right-0 m-0", image: image })) : null;
|
|
2078
2162
|
const BORDER_STYLE = 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider';
|
|
2079
|
-
return (jsx(BlockWrapper, { className: style('relative p-7 min-w-[524px] text-left box-border group-data-gray:bg-main-divider/50', BORDER_STYLE, className), version: version, ...rest, children: jsx(BaseTile, { className: "flex justify-between", title: tileTitle, image: tileImage, children: jsxs("div", { className: "h-full flex flex-col justify-between", children: [description ? (jsx("span", { className: "mb-2 group-data-gray:text-secondary-text group-data-gray:max-w-[265px]", children: description })) : null, items.length ? (jsx(List, { className: "text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]", items: items })) : null, socialMedia.length ? jsx(SocialMedia, { className: "pt-10 pb-0", media: socialMedia }) : null, renderButtonsSection([button], { className: 'pt-2 mt-16' })] }) }) }));
|
|
2163
|
+
return (jsx(BlockWrapper, { className: style('relative p-7 min-w-[524px] h-full text-left box-border group-data-gray:bg-main-divider/50', BORDER_STYLE, className), version: version, ...rest, children: jsx(BaseTile, { className: "flex justify-between", title: tileTitle, image: tileImage, children: jsxs("div", { className: "h-full flex flex-col justify-between", children: [description ? (jsx("span", { className: "mb-2 group-data-gray:text-secondary-text group-data-gray:max-w-[265px]", children: description })) : null, items.length ? (jsx(List, { className: "text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]", items: items })) : null, socialMedia.length ? jsx(SocialMedia, { className: "pt-10 pb-0", media: socialMedia }) : null, renderButtonsSection([button], { className: 'pt-2 mt-16' })] }) }) }));
|
|
2080
2164
|
});
|
|
2081
2165
|
|
|
2082
2166
|
const VISIBLE_CELLS_COUNT = 1;
|
|
@@ -2556,18 +2640,12 @@
|
|
|
2556
2640
|
const renderMonthNames = (item, colSize) => item.month?.map((_, i) => (jsx("div", { style: { flexBasis: `${colSize}%` }, children: _.text }, `monthName-${i}`)));
|
|
2557
2641
|
const renderMonthImages = (item) => item.month?.map((_) => _.image?.src ? (jsx("div", { className: "h-[207px] border-r pr-3 mr-3 border-main-divider last:border-r-0 last:pr-0 last:mr-0", children: jsx(ImgInner, { image: _.image, className: "flex" }) }, `monthImage-${_.image.src}`)) : null);
|
|
2558
2642
|
|
|
2559
|
-
const
|
|
2560
|
-
? `${projectSettings.BASE_PATH}${href}`
|
|
2561
|
-
: href;
|
|
2562
|
-
|
|
2563
|
-
const isHrefActive = (href, router) => withoutQuery(isURL(href) ? router.href : getPathname(router.href)).startsWith(withoutQuery(adjustHref(href)));
|
|
2643
|
+
const isHrefActive = (router) => ({ href }) => withoutQuery(isURL(href) ? router.href : router.pathname).startsWith(withoutQuery(href));
|
|
2564
2644
|
|
|
2565
|
-
const
|
|
2566
|
-
|
|
2567
|
-
const isTopItemActive = (router) => (topItem) => topItem.items?.some(isSubItemActive(router)) || isHrefActive(topItem.href, router);
|
|
2645
|
+
const isTopItemActive = (router) => (topItem) => topItem.items?.some(isHrefActive(router)) || isHrefActive(router)(topItem);
|
|
2568
2646
|
|
|
2569
2647
|
const TopItem = JSX(({ className = '', active, flat, children, ...rest }) => {
|
|
2570
|
-
const link = useLink();
|
|
2648
|
+
const link = useLink(true);
|
|
2571
2649
|
const { href, target, text, onClick } = link(rest);
|
|
2572
2650
|
return (jsx("a", { className: style(getLinkStyle(active, flat), className), href: href, target: target, onClick: onClick, rel: "noopener noreferrer", "aria-label": text, children: jsx("span", { className: getTextStyle$1(active, flat), children: text || children }) }));
|
|
2573
2651
|
});
|
|
@@ -2752,7 +2830,7 @@
|
|
|
2752
2830
|
});
|
|
2753
2831
|
|
|
2754
2832
|
const findActiveSubItem = (router) => (items = []) => {
|
|
2755
|
-
const possibleActiveSubItems = items?.filter(
|
|
2833
|
+
const possibleActiveSubItems = items?.filter(isHrefActive(router));
|
|
2756
2834
|
return possibleActiveSubItems?.length
|
|
2757
2835
|
? maxBy((_) => _.href?.length || 0)(possibleActiveSubItems) // More specific item with max length
|
|
2758
2836
|
: undefined;
|
|
@@ -4053,7 +4131,7 @@
|
|
|
4053
4131
|
return [];
|
|
4054
4132
|
}), [tabs]);
|
|
4055
4133
|
useEffect(() => currentTab?.type === 'group'
|
|
4056
|
-
? EventBus.inst.subject('tab', { label: currentTab.ref })
|
|
4134
|
+
? EventBus.inst.subject('tab', { type: currentTab.type, label: currentTab.ref })
|
|
4057
4135
|
: undefined, [currentTab]);
|
|
4058
4136
|
const handleClick = useCallback((selectedTab) => {
|
|
4059
4137
|
if (selectedTab?.type === 'group') {
|
|
@@ -4304,6 +4382,7 @@
|
|
|
4304
4382
|
Calculator,
|
|
4305
4383
|
CardTransfer,
|
|
4306
4384
|
Carousel,
|
|
4385
|
+
CarouselBankHistoryCard,
|
|
4307
4386
|
CarouselCard,
|
|
4308
4387
|
CarouselCatalogCard,
|
|
4309
4388
|
CarouselInvestmentCard,
|
|
@@ -4479,7 +4558,7 @@
|
|
|
4479
4558
|
return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-lg sticky bottom-0 pointer-events-auto" }) }));
|
|
4480
4559
|
}
|
|
4481
4560
|
|
|
4482
|
-
const packageVersion = "0.8.
|
|
4561
|
+
const packageVersion = "0.8.3";
|
|
4483
4562
|
|
|
4484
4563
|
exports.Blocks = Blocks;
|
|
4485
4564
|
exports.ContentPage = ContentPage;
|