@redneckz/wildless-cms-uni-blocks 0.8.2 → 0.8.4
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 +110 -29
- 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/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 +6 -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/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/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 +7 -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/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 +12 -19
- 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/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 +6 -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/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/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 +7 -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/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/hooks/useLink.ts +4 -4
- package/mobile/src/services/sitemap/findActiveSubItem.ts +2 -2
- package/mobile/src/services/sitemap/isHrefActive.ts +14 -6
- package/mobile/src/services/sitemap/isTopItemActive.ts +3 -3
- 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/hooks/useLink.ts +4 -4
- package/src/services/sitemap/findActiveSubItem.ts +2 -2
- package/src/services/sitemap/isHrefActive.ts +14 -6
- package/src/services/sitemap/isTopItemActive.ts +3 -3
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselCatalogCard.js","sourceRoot":"","sources":["../../../src/components/CarouselCatalogCard/CarouselCatalogCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAK9C,MAAM,YAAY,GAAwC;IACxD,KAAK,EAAE,UAAU;IACjB,KAAK,EAAE,UAAU;CAClB,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CACpC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CACjF,MAAC,YAAY,IACX,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"CarouselCatalogCard.js","sourceRoot":"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AY,YACzD,WAAW,GACF,GACR,CACP,CAAC,CAAC,CAAC,IAAI,EACP,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAChB,eAAK,SAAS,EAAC,4CAA4C,aACzD,cAAK,SAAS,EAAC,QAAQ,YACrB,KAAC,IAAI,0GAAyB,GAC1B,EACL,MAAM,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAC1B,CACP,CAAC,CAAC,CAAC,IAAI,EACP,KAAK,CAAC,CAAC,CAAC,CACP,MAAC,IAAI,IAAC,IAAI,EAAC,SAAS,EAAC,KAAK,EAAC,WAAW,aACnC,KAAK,oBACD,CACR,CAAC,CAAC,CAAC,IAAI,EACP,oBAAoB,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,eAAe,EAAE,aAAa,EAAE,CAAC,IACtD,CAChB,CACF,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,KAA0B,EAAE,CAAS,EAAE,EAAE,CAAC,CACnE,eAEE,SAAS,EAAE,qEAAqE,YAAY,CAAC,KAAK,CAAC,EAAE,IADhG,MAAM,CAAC,CAAC,CAAC,CAEd,CACH,CAAC"}
|
|
@@ -12,6 +12,6 @@ export const CarouselRecommendationCard = JSX(({ button, className = '', descrip
|
|
|
12
12
|
const tileTitle = title ? (_jsx(Heading, { headingType: "h5", as: "h3", className: "mb-3.5 z-10", title: title })) : null;
|
|
13
13
|
const tileImage = image?.src ? (_jsx(Img, { className: "absolute bottom-0 right-0 m-0", image: image })) : null;
|
|
14
14
|
const BORDER_STYLE = 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider';
|
|
15
|
-
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' })] }) }) }));
|
|
15
|
+
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' })] }) }) }));
|
|
16
16
|
});
|
|
17
17
|
//# sourceMappingURL=CarouselRecommendationCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselRecommendationCard.js","sourceRoot":"","sources":["../../../src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAI1C,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAAG,CAC3C,CAAC,EACC,MAAM,EACN,SAAS,GAAG,EAAE,EACd,WAAW,EACX,KAAK,EACL,KAAK,GAAG,EAAE,EACV,WAAW,GAAG,EAAE,EAChB,KAAK,EACL,OAAO,GAAG,SAAS,EACnB,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CACxB,KAAC,OAAO,IAAC,WAAW,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,SAAS,EAAC,aAAa,EAAC,KAAK,EAAE,KAAK,GAAI,CAC3E,CAAC,CAAC,CAAC,IAAI,CAAC;IACT,MAAM,SAAS,GAAG,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,CAC7B,KAAC,GAAG,IAAC,SAAS,EAAC,+BAA+B,EAAC,KAAK,EAAE,KAAK,GAAI,CAChE,CAAC,CAAC,CAAC,IAAI,CAAC;IACT,MAAM,YAAY,GAChB,0GAA0G,CAAC;IAE7G,OAAO,CACL,KAAC,YAAY,IACX,SAAS,EAAE,KAAK,CACd,
|
|
1
|
+
{"version":3,"file":"CarouselRecommendationCard.js","sourceRoot":"","sources":["../../../src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,WAAW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,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,KAAC,WAAW,IAAC,SAAS,EAAC,YAAY,EAAC,KAAK,EAAE,WAAW,GAAI,CAAC,CAAC,CAAC,IAAI,EACtF,oBAAoB,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC,IACxD,GACG,GACE,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IconVersion } from '../../model/IconVersion';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
|
|
3
3
|
export declare type ButtonSize = 'default' | 'small';
|
|
4
|
-
interface MediaButtonProps extends
|
|
4
|
+
interface MediaButtonProps extends ButtonWithIconProps {
|
|
5
5
|
iconVersion?: IconVersion;
|
|
6
6
|
buttonSize?: ButtonSize;
|
|
7
7
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
|
|
2
2
|
import { type ButtonSize } from './MediaButton';
|
|
3
3
|
export interface SocialMediaProps {
|
|
4
4
|
className?: string;
|
|
5
|
-
media?:
|
|
5
|
+
media?: ButtonWithIconProps[];
|
|
6
6
|
buttonSize?: ButtonSize;
|
|
7
7
|
}
|
|
8
8
|
export declare const SocialMedia: import("@redneckz/uni-jsx").UNIComponent<SocialMediaProps, any, any>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
import { MediaButton } from './MediaButton.js';
|
|
4
|
-
|
|
4
|
+
import { Text } from '../../ui-kit/Text/Text.js';
|
|
5
|
+
export 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 })] })));
|
|
5
6
|
//# sourceMappingURL=SocialMedia.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SocialMedia.js","sourceRoot":"","sources":["../../../src/components/Footer/SocialMedia.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,WAAW,EAAmB,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"SocialMedia.js","sourceRoot":"","sources":["../../../src/components/Footer/SocialMedia.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,WAAW,EAAmB,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAQ9C,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAC5B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CACnD,eAAK,SAAS,EAAC,WAAW,aACxB,cAAK,SAAS,EAAE,gBAAgB,SAAS,EAAE,YACxC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CACxB,KAAC,WAAW,IAAqB,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,KAAM,CAAC,IAAhE,MAAM,CAAC,KAAK,CAAC,CAAuD,CACvF,CAAC,GACE,EACN,KAAC,IAAI,IAAC,IAAI,EAAC,cAAc,EAAC,KAAK,EAAC,qBAAqB,YAClD,QAAQ,GACJ,IACH,CACP,CACF,CAAC"}
|
package/lib/hooks/useLink.d.ts
CHANGED
|
@@ -4,5 +4,5 @@ interface ClickHandler {
|
|
|
4
4
|
preventDefault: () => void;
|
|
5
5
|
}): void;
|
|
6
6
|
}
|
|
7
|
-
export declare function useLink(): <L extends Partial<LinkProps & ClickHandler>>(props: L) => L & ClickHandler;
|
|
7
|
+
export declare function useLink(isRemote?: boolean): <L extends Partial<LinkProps & ClickHandler>>(props: L) => L & ClickHandler;
|
|
8
8
|
export {};
|
package/lib/hooks/useLink.js
CHANGED
|
@@ -2,11 +2,11 @@ import { useBlockRouter } from '../services/BlockRouter/useBlockRouter.js';
|
|
|
2
2
|
import { isHash, isLocalURL } from '../utils/url.js';
|
|
3
3
|
import { handlerDecorator } from './handlerDecorator.js';
|
|
4
4
|
import { useRouter } from './useRouter.js';
|
|
5
|
-
export function useLink() {
|
|
5
|
+
export function useLink(isRemote) {
|
|
6
6
|
const router = useRouter();
|
|
7
7
|
const blockRouter = useBlockRouter();
|
|
8
8
|
const handleLocalURL = (href, target) => (ev) => {
|
|
9
|
-
if (!isLocalURL(href, target)) {
|
|
9
|
+
if (isRemote || !isLocalURL(href, target)) {
|
|
10
10
|
// Proceed with native handle
|
|
11
11
|
return;
|
|
12
12
|
}
|
package/lib/hooks/useLink.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLink.js","sourceRoot":"","sources":["../../src/hooks/useLink.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACxE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAMxC,MAAM,UAAU,OAAO;
|
|
1
|
+
{"version":3,"file":"useLink.js","sourceRoot":"","sources":["../../src/hooks/useLink.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACxE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAMxC,MAAM,UAAU,OAAO,CACrB,QAAkB;IAElB,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IAErC,MAAM,cAAc,GAClB,CAAC,IAAwB,EAAE,MAAe,EAAE,EAAE,CAAC,CAAC,EAAmC,EAAE,EAAE;QACrF,IAAI,QAAQ,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,EAAE;YACzC,6BAA6B;YAC7B,OAAO;SACR;QAED,iBAAiB;QACjB,EAAE,EAAE,cAAc,EAAE,CAAC;QACrB,IAAI,MAAM,CAAC,IAAI,CAAC,EAAE;YAChB,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACxB;aAAM,IAAI,IAAI,EAAE;YACf,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACnB;IACH,CAAC,CAAC;IAEJ,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACjB,GAAG,KAAK;QACR,YAAY,EAAE,KAAK,CAAC,IAAI;QACxB,OAAO,EAAE,gBAAgB,CAAC,CAAC,EAAmC,EAAE,EAAE;YAChE,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;YAEnC,cAAc,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC;QAC/C,CAAC,EAAE,KAAK,CAAC;KACV,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { maxBy } from '../../utils/maxBy.js';
|
|
2
|
-
import {
|
|
2
|
+
import { isHrefActive } from './isHrefActive.js';
|
|
3
3
|
export const findActiveSubItem = (router) => (items = []) => {
|
|
4
|
-
const possibleActiveSubItems = items?.filter(
|
|
4
|
+
const possibleActiveSubItems = items?.filter(isHrefActive(router));
|
|
5
5
|
return possibleActiveSubItems?.length
|
|
6
6
|
? maxBy((_) => _.href?.length || 0)(possibleActiveSubItems) // More specific item with max length
|
|
7
7
|
: undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"findActiveSubItem.js","sourceRoot":"","sources":["../../../src/services/sitemap/findActiveSubItem.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"findActiveSubItem.js","sourceRoot":"","sources":["../../../src/services/sitemap/findActiveSubItem.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,MAAM,CAAC,MAAM,iBAAiB,GAC5B,CAAC,MAAc,EAAE,EAAE,CACnB,CAAsB,QAAa,EAAE,EAAiB,EAAE;IACtD,MAAM,sBAAsB,GAAG,KAAK,EAAE,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC;IAEnE,OAAO,sBAAsB,EAAE,MAAM;QACnC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAI,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,MAAM,IAAI,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,qCAAqC;QACpG,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC,CAAC"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export const isHrefActive = (
|
|
1
|
+
import { projectSettings } from '../../ProjectSettings.js';
|
|
2
|
+
import { isURL, withoutQuery } from '../../utils/url.js';
|
|
3
|
+
export const isHrefActive = (router) => ({ href }) => {
|
|
4
|
+
const { BASE_PATH } = projectSettings;
|
|
5
|
+
const relativeHref = BASE_PATH && href?.startsWith(BASE_PATH) ? href.substring(BASE_PATH.length) : href;
|
|
6
|
+
return withoutQuery(isURL(href) ? router.href : router.pathname).startsWith(withoutQuery(relativeHref));
|
|
7
|
+
};
|
|
4
8
|
//# sourceMappingURL=isHrefActive.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isHrefActive.js","sourceRoot":"","sources":["../../../src/services/sitemap/isHrefActive.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"isHrefActive.js","sourceRoot":"","sources":["../../../src/services/sitemap/isHrefActive.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEtD,MAAM,CAAC,MAAM,YAAY,GACvB,CAAC,MAAc,EAAE,EAAE,CACnB,CAAC,EAAE,IAAI,EAAqB,EAAW,EAAE;IACvC,MAAM,EAAE,SAAS,EAAE,GAAG,eAAe,CAAC;IACtC,MAAM,YAAY,GAChB,SAAS,IAAI,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAErF,OAAO,YAAY,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,UAAU,CACzE,YAAY,CAAC,YAAY,CAAC,CAC3B,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
+
import type { Router } from '../../hooks/useRouter';
|
|
1
2
|
import { TopMenuItem } from './SitemapProps';
|
|
2
|
-
export declare const isTopItemActive: (router:
|
|
3
|
-
href?: string;
|
|
4
|
-
}) => (topItem: TopMenuItem) => boolean;
|
|
3
|
+
export declare const isTopItemActive: (router: Router) => (topItem: TopMenuItem) => boolean;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { isHrefActive } from './isHrefActive.js';
|
|
2
|
-
|
|
3
|
-
export const isTopItemActive = (router) => (topItem) => topItem.items?.some(isSubItemActive(router)) || isHrefActive(topItem.href, router);
|
|
2
|
+
export const isTopItemActive = (router) => (topItem) => topItem.items?.some(isHrefActive(router)) || isHrefActive(router)(topItem);
|
|
4
3
|
//# sourceMappingURL=isTopItemActive.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isTopItemActive.js","sourceRoot":"","sources":["../../../src/services/sitemap/isTopItemActive.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"isTopItemActive.js","sourceRoot":"","sources":["../../../src/services/sitemap/isTopItemActive.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAG9C,MAAM,CAAC,MAAM,eAAe,GAC1B,CAAC,MAAc,EAAE,EAAE,CACnB,CAAC,OAAoB,EAAW,EAAE,CAChC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,IAAI,YAAY,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
3
3
|
import { useLink } from '../../hooks/useLink.js';
|
|
4
4
|
import { style } from '../../utils/style.js';
|
|
5
5
|
export const TopItem = JSX(({ className = '', active, flat, children, ...rest }) => {
|
|
6
|
-
const link = useLink();
|
|
6
|
+
const link = useLink(true);
|
|
7
7
|
const { href, target, text, onClick } = link(rest);
|
|
8
8
|
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(active, flat), children: text || children }) }));
|
|
9
9
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopItem.js","sourceRoot":"","sources":["../../../src/ui-kit/TopItem/TopItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAa1C,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,CAAe,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC/F,MAAM,IAAI,GAAG,OAAO,
|
|
1
|
+
{"version":3,"file":"TopItem.js","sourceRoot":"","sources":["../../../src/ui-kit/TopItem/TopItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAa1C,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,CAAe,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC/F,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;IAEnD,OAAO,CACL,YACE,SAAS,EAAE,KAAK,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,SAAS,CAAC,EACvD,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,GAAG,EAAC,qBAAqB,gBACb,IAAI,YAEhB,eAAM,SAAS,EAAE,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,YAAG,IAAI,IAAI,QAAQ,GAAQ,GACpE,CACL,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,YAAY,GAAG,CAAC,MAAM,GAAG,KAAK,EAAE,IAAI,GAAG,KAAK,EAAE,EAAE,CACpD,KAAK,CACH,0EAA0E,EAC1E,MAAM;IACJ,CAAC,CAAC,oEAAoE;IACtE,CAAC,CAAC,oBAAoB,EACxB,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,CACxB,CAAC;AAEJ,MAAM,YAAY,GAAG,CAAC,MAAM,GAAG,KAAK,EAAE,IAAI,GAAG,KAAK,EAAE,EAAE,CACpD,KAAK,CACH,wBAAwB,EACxB,MAAM;IACJ,CAAC,CAAC,mBAAmB;IACrB,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,qBAAqB,EAAE,yBAAyB,CAAC,EACxF,mFAAmF,CACpF,CAAC"}
|
package/lib/utils/url.js
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
import { projectSettings } from '../ProjectSettings.js';
|
|
2
1
|
export const isURL = (href) => Boolean(href?.includes('//'));
|
|
3
|
-
export const isLocalURL = (href, target) => Boolean(href &&
|
|
4
|
-
!isURL(href) &&
|
|
5
|
-
(projectSettings.BASE_PATH
|
|
6
|
-
? href.startsWith(projectSettings.BASE_PATH)
|
|
7
|
-
: !href.startsWith('/')) &&
|
|
8
|
-
(!target || target === '_self'));
|
|
2
|
+
export const isLocalURL = (href, target) => Boolean(href && !isURL(href) && (!target || target === '_self'));
|
|
9
3
|
export const isHash = (href) => Boolean(href?.startsWith('#'));
|
|
10
4
|
export const withoutQuery = (href) => (href || '').replace(/\/?\?.*/, '');
|
|
11
5
|
export const getOrigin = (href) => (isURL(href) ? new URL(href).origin : undefined);
|
package/lib/utils/url.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"url.js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,GAAG,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC"}
|
|
@@ -708,12 +708,7 @@
|
|
|
708
708
|
}
|
|
709
709
|
|
|
710
710
|
const isURL = (href) => Boolean(href?.includes('//'));
|
|
711
|
-
const isLocalURL = (href, target) => Boolean(href &&
|
|
712
|
-
!isURL(href) &&
|
|
713
|
-
(projectSettings.BASE_PATH
|
|
714
|
-
? href.startsWith(projectSettings.BASE_PATH)
|
|
715
|
-
: !href.startsWith('/')) &&
|
|
716
|
-
(!target || target === '_self'));
|
|
711
|
+
const isLocalURL = (href, target) => Boolean(href && !isURL(href) && (!target || target === '_self'));
|
|
717
712
|
const isHash = (href) => Boolean(href?.startsWith('#'));
|
|
718
713
|
const withoutQuery = (href) => (href || '').replace(/\/?\?.*/, '');
|
|
719
714
|
const getOrigin = (href) => (isURL(href) ? new URL(href).origin : undefined);
|
|
@@ -758,11 +753,11 @@
|
|
|
758
753
|
useRouter._impl = impl;
|
|
759
754
|
};
|
|
760
755
|
|
|
761
|
-
function useLink() {
|
|
756
|
+
function useLink(isRemote) {
|
|
762
757
|
const router = useRouter();
|
|
763
758
|
const blockRouter = useBlockRouter();
|
|
764
759
|
const handleLocalURL = (href, target) => (ev) => {
|
|
765
|
-
if (!isLocalURL(href, target)) {
|
|
760
|
+
if (isRemote || !isLocalURL(href, target)) {
|
|
766
761
|
// Proceed with native handle
|
|
767
762
|
return;
|
|
768
763
|
}
|
|
@@ -937,7 +932,7 @@
|
|
|
937
932
|
const simpleKey = args[0];
|
|
938
933
|
const fallbackData = fallback && typeof simpleKey === 'string' && fallback[simpleKey];
|
|
939
934
|
return {
|
|
940
|
-
data: !data &&
|
|
935
|
+
data: !data && fallbackData ? fallbackData : data,
|
|
941
936
|
error,
|
|
942
937
|
mutate: () => Promise.resolve(undefined),
|
|
943
938
|
isValidating: false
|
|
@@ -1158,22 +1153,20 @@
|
|
|
1158
1153
|
return (jsx("section", { className: "mt-3", children: items.map((item, i) => (jsxs("div", { children: [isDotted ? (jsx("div", { className: `rounded-full inline-block mr-3 mt-2 w-2 h-2 min-w-2 min-h-2 ${LIST_DOT_STYLE_MAP[version]}` })) : null, jsx("span", { className: "text-m font-medium", children: item.title }), jsx("span", { className: `text-s pl-2 ${version === 'primary' ? 'text-secondary-text' : ''}`, children: item.text })] }, String(i)))) }));
|
|
1159
1154
|
}
|
|
1160
1155
|
|
|
1161
|
-
const
|
|
1162
|
-
|
|
1163
|
-
: href;
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
const isSubItemActive = (router) => (subItem) => isHrefActive(subItem.href, router);
|
|
1156
|
+
const isHrefActive = (router) => ({ href }) => {
|
|
1157
|
+
const { BASE_PATH } = projectSettings;
|
|
1158
|
+
const relativeHref = BASE_PATH && href?.startsWith(BASE_PATH) ? href.substring(BASE_PATH.length) : href;
|
|
1159
|
+
return withoutQuery(isURL(href) ? router.href : router.pathname).startsWith(withoutQuery(relativeHref));
|
|
1160
|
+
};
|
|
1168
1161
|
|
|
1169
1162
|
const findActiveSubItem = (router) => (items = []) => {
|
|
1170
|
-
const possibleActiveSubItems = items?.filter(
|
|
1163
|
+
const possibleActiveSubItems = items?.filter(isHrefActive(router));
|
|
1171
1164
|
return possibleActiveSubItems?.length
|
|
1172
1165
|
? maxBy((_) => _.href?.length || 0)(possibleActiveSubItems) // More specific item with max length
|
|
1173
1166
|
: undefined;
|
|
1174
1167
|
};
|
|
1175
1168
|
|
|
1176
|
-
const isTopItemActive = (router) => (topItem) => topItem.items?.some(
|
|
1169
|
+
const isTopItemActive = (router) => (topItem) => topItem.items?.some(isHrefActive(router)) || isHrefActive(router)(topItem);
|
|
1177
1170
|
|
|
1178
1171
|
const HeaderItem = JSX(({ className = '', active, dataItemName, children, ...rest }) => {
|
|
1179
1172
|
const link = useLink();
|
|
@@ -1732,7 +1725,7 @@
|
|
|
1732
1725
|
return (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: i }, el) : [el]), []);
|
|
1733
1726
|
}
|
|
1734
1727
|
|
|
1735
|
-
const packageVersion = "0.8.
|
|
1728
|
+
const packageVersion = "0.8.4";
|
|
1736
1729
|
|
|
1737
1730
|
exports.Blocks = Blocks;
|
|
1738
1731
|
exports.ContentPage = ContentPage;
|