@digital-b2c/coreui-kit 0.11.8 → 0.11.10
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/dist/index.cjs +117 -99
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +5 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +19 -8
- package/dist/index.d.ts +19 -8
- package/dist/index.mjs +64 -46
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -188,6 +188,7 @@ interface ResourceItem {
|
|
|
188
188
|
href: string;
|
|
189
189
|
hasNotification?: boolean;
|
|
190
190
|
category?: string;
|
|
191
|
+
id: string;
|
|
191
192
|
}
|
|
192
193
|
interface ResourceCardItemProps {
|
|
193
194
|
item: ResourceItem;
|
|
@@ -242,9 +243,13 @@ interface PaginationProps {
|
|
|
242
243
|
hasNumber?: boolean;
|
|
243
244
|
disableArrows?: boolean;
|
|
244
245
|
onPageChange?: (page: number) => void;
|
|
246
|
+
renderLink?: (props: AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
247
|
+
page: number;
|
|
248
|
+
children: ReactNode;
|
|
249
|
+
}) => ReactNode;
|
|
245
250
|
}
|
|
246
251
|
|
|
247
|
-
declare const Pagination: ({ className, totalPages, currentPage, loop, hasNumber, disableArrows, onPageChange, }: PaginationProps) => react_jsx_runtime.JSX.Element;
|
|
252
|
+
declare const Pagination: ({ className, totalPages, currentPage, loop, hasNumber, disableArrows, onPageChange, renderLink, }: PaginationProps) => react_jsx_runtime.JSX.Element;
|
|
248
253
|
|
|
249
254
|
declare const Picture: ({ className, ...props }: PictureProps) => react_jsx_runtime.JSX.Element;
|
|
250
255
|
|
|
@@ -793,6 +798,10 @@ declare const FeaturedNewsHighlights: (({ variant, title, items, backgroundColor
|
|
|
793
798
|
Title: ({ children }: FeaturedNewsHighlightsTitleProps) => react_jsx_runtime.JSX.Element;
|
|
794
799
|
};
|
|
795
800
|
|
|
801
|
+
type NewsCardListPaginationProps = {
|
|
802
|
+
children: ReactNode;
|
|
803
|
+
};
|
|
804
|
+
|
|
796
805
|
interface NewsCardListProps extends PropsWithChildren {
|
|
797
806
|
className?: string;
|
|
798
807
|
items: NewsCardProps[];
|
|
@@ -802,14 +811,14 @@ interface NewsCardListProps extends PropsWithChildren {
|
|
|
802
811
|
onSearchSubmit?: (value: string) => void;
|
|
803
812
|
searchInputProps?: InputProps;
|
|
804
813
|
currentPage?: number;
|
|
805
|
-
onPageChange?: (page: number) => void;
|
|
806
|
-
totalPages?: number;
|
|
807
814
|
renderLink?: (props: React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
808
815
|
children: React.ReactNode;
|
|
809
816
|
}) => React.ReactNode;
|
|
810
817
|
}
|
|
811
818
|
|
|
812
|
-
declare const NewsCardList: ({ items, backgroundColor, className, currentPage,
|
|
819
|
+
declare const NewsCardList: (({ items, backgroundColor, className, currentPage, searchValue, onSearchChange, onSearchSubmit, searchInputProps, renderLink, children, }: NewsCardListProps) => react_jsx_runtime.JSX.Element) & {
|
|
820
|
+
Pagination: ({ children }: NewsCardListPaginationProps) => react_jsx_runtime.JSX.Element;
|
|
821
|
+
};
|
|
813
822
|
|
|
814
823
|
type BlogPostBodyProps = {
|
|
815
824
|
children: ReactNode;
|
|
@@ -829,6 +838,10 @@ declare const BlogPost: (({ title, description: body, image, date, tag, relatedA
|
|
|
829
838
|
Body: ({ children }: BlogPostBodyProps) => react_jsx_runtime.JSX.Element;
|
|
830
839
|
};
|
|
831
840
|
|
|
841
|
+
type BlogSearchResultsListPaginationProps = {
|
|
842
|
+
children: ReactNode;
|
|
843
|
+
};
|
|
844
|
+
|
|
832
845
|
type BlogSearchResultsListSearchProps = {
|
|
833
846
|
children: ReactNode;
|
|
834
847
|
};
|
|
@@ -840,16 +853,14 @@ interface BlogSearchResultsListProps extends PropsWithChildren {
|
|
|
840
853
|
searchValue: string;
|
|
841
854
|
onSearchChange: (value: string) => void;
|
|
842
855
|
onSearchSubmit: (value: string) => void;
|
|
843
|
-
currentPage?: number;
|
|
844
|
-
onPageChange?: (page: number) => void;
|
|
845
|
-
totalPages?: number;
|
|
846
856
|
renderLink?: (props: React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
847
857
|
children: React.ReactNode;
|
|
848
858
|
}) => React.ReactNode;
|
|
849
859
|
}
|
|
850
860
|
|
|
851
|
-
declare const BlogSearchResultsList: (({ items, searchResult, onSearchChange, onSearchSubmit,
|
|
861
|
+
declare const BlogSearchResultsList: (({ items, searchResult, onSearchChange, onSearchSubmit, searchValue, className, renderLink, children, }: BlogSearchResultsListProps) => react_jsx_runtime.JSX.Element) & {
|
|
852
862
|
Search: ({ children }: BlogSearchResultsListSearchProps) => react_jsx_runtime.JSX.Element;
|
|
863
|
+
Pagination: ({ children, }: BlogSearchResultsListPaginationProps) => react_jsx_runtime.JSX.Element;
|
|
853
864
|
};
|
|
854
865
|
|
|
855
866
|
type IntersectionObserverOptions = {
|
package/dist/index.d.ts
CHANGED
|
@@ -188,6 +188,7 @@ interface ResourceItem {
|
|
|
188
188
|
href: string;
|
|
189
189
|
hasNotification?: boolean;
|
|
190
190
|
category?: string;
|
|
191
|
+
id: string;
|
|
191
192
|
}
|
|
192
193
|
interface ResourceCardItemProps {
|
|
193
194
|
item: ResourceItem;
|
|
@@ -242,9 +243,13 @@ interface PaginationProps {
|
|
|
242
243
|
hasNumber?: boolean;
|
|
243
244
|
disableArrows?: boolean;
|
|
244
245
|
onPageChange?: (page: number) => void;
|
|
246
|
+
renderLink?: (props: AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
247
|
+
page: number;
|
|
248
|
+
children: ReactNode;
|
|
249
|
+
}) => ReactNode;
|
|
245
250
|
}
|
|
246
251
|
|
|
247
|
-
declare const Pagination: ({ className, totalPages, currentPage, loop, hasNumber, disableArrows, onPageChange, }: PaginationProps) => react_jsx_runtime.JSX.Element;
|
|
252
|
+
declare const Pagination: ({ className, totalPages, currentPage, loop, hasNumber, disableArrows, onPageChange, renderLink, }: PaginationProps) => react_jsx_runtime.JSX.Element;
|
|
248
253
|
|
|
249
254
|
declare const Picture: ({ className, ...props }: PictureProps) => react_jsx_runtime.JSX.Element;
|
|
250
255
|
|
|
@@ -793,6 +798,10 @@ declare const FeaturedNewsHighlights: (({ variant, title, items, backgroundColor
|
|
|
793
798
|
Title: ({ children }: FeaturedNewsHighlightsTitleProps) => react_jsx_runtime.JSX.Element;
|
|
794
799
|
};
|
|
795
800
|
|
|
801
|
+
type NewsCardListPaginationProps = {
|
|
802
|
+
children: ReactNode;
|
|
803
|
+
};
|
|
804
|
+
|
|
796
805
|
interface NewsCardListProps extends PropsWithChildren {
|
|
797
806
|
className?: string;
|
|
798
807
|
items: NewsCardProps[];
|
|
@@ -802,14 +811,14 @@ interface NewsCardListProps extends PropsWithChildren {
|
|
|
802
811
|
onSearchSubmit?: (value: string) => void;
|
|
803
812
|
searchInputProps?: InputProps;
|
|
804
813
|
currentPage?: number;
|
|
805
|
-
onPageChange?: (page: number) => void;
|
|
806
|
-
totalPages?: number;
|
|
807
814
|
renderLink?: (props: React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
808
815
|
children: React.ReactNode;
|
|
809
816
|
}) => React.ReactNode;
|
|
810
817
|
}
|
|
811
818
|
|
|
812
|
-
declare const NewsCardList: ({ items, backgroundColor, className, currentPage,
|
|
819
|
+
declare const NewsCardList: (({ items, backgroundColor, className, currentPage, searchValue, onSearchChange, onSearchSubmit, searchInputProps, renderLink, children, }: NewsCardListProps) => react_jsx_runtime.JSX.Element) & {
|
|
820
|
+
Pagination: ({ children }: NewsCardListPaginationProps) => react_jsx_runtime.JSX.Element;
|
|
821
|
+
};
|
|
813
822
|
|
|
814
823
|
type BlogPostBodyProps = {
|
|
815
824
|
children: ReactNode;
|
|
@@ -829,6 +838,10 @@ declare const BlogPost: (({ title, description: body, image, date, tag, relatedA
|
|
|
829
838
|
Body: ({ children }: BlogPostBodyProps) => react_jsx_runtime.JSX.Element;
|
|
830
839
|
};
|
|
831
840
|
|
|
841
|
+
type BlogSearchResultsListPaginationProps = {
|
|
842
|
+
children: ReactNode;
|
|
843
|
+
};
|
|
844
|
+
|
|
832
845
|
type BlogSearchResultsListSearchProps = {
|
|
833
846
|
children: ReactNode;
|
|
834
847
|
};
|
|
@@ -840,16 +853,14 @@ interface BlogSearchResultsListProps extends PropsWithChildren {
|
|
|
840
853
|
searchValue: string;
|
|
841
854
|
onSearchChange: (value: string) => void;
|
|
842
855
|
onSearchSubmit: (value: string) => void;
|
|
843
|
-
currentPage?: number;
|
|
844
|
-
onPageChange?: (page: number) => void;
|
|
845
|
-
totalPages?: number;
|
|
846
856
|
renderLink?: (props: React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
847
857
|
children: React.ReactNode;
|
|
848
858
|
}) => React.ReactNode;
|
|
849
859
|
}
|
|
850
860
|
|
|
851
|
-
declare const BlogSearchResultsList: (({ items, searchResult, onSearchChange, onSearchSubmit,
|
|
861
|
+
declare const BlogSearchResultsList: (({ items, searchResult, onSearchChange, onSearchSubmit, searchValue, className, renderLink, children, }: BlogSearchResultsListProps) => react_jsx_runtime.JSX.Element) & {
|
|
852
862
|
Search: ({ children }: BlogSearchResultsListSearchProps) => react_jsx_runtime.JSX.Element;
|
|
863
|
+
Pagination: ({ children, }: BlogSearchResultsListPaginationProps) => react_jsx_runtime.JSX.Element;
|
|
853
864
|
};
|
|
854
865
|
|
|
855
866
|
type IntersectionObserverOptions = {
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import clsx15 from 'clsx';
|
|
2
2
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
3
|
-
import
|
|
3
|
+
import React65, { forwardRef, useId, useRef, useState, useCallback, useMemo, Children, isValidElement, useEffect, Fragment as Fragment$1 } from 'react';
|
|
4
4
|
import gsap$1, { gsap } from 'gsap';
|
|
5
5
|
import { useGSAP } from '@gsap/react';
|
|
6
6
|
import { ScrollTrigger } from 'gsap/ScrollTrigger';
|
|
@@ -374,7 +374,7 @@ var svgs = {
|
|
|
374
374
|
xBlack: icon_x_black_default,
|
|
375
375
|
xWhite: icon_x_white_default
|
|
376
376
|
};
|
|
377
|
-
var Icon =
|
|
377
|
+
var Icon = React65.memo(
|
|
378
378
|
(_a) => {
|
|
379
379
|
var _b = _a, { type, size } = _b, props = __objRest(_b, ["type", "size"]);
|
|
380
380
|
if (type) {
|
|
@@ -1129,7 +1129,8 @@ var Pagination = ({
|
|
|
1129
1129
|
loop = true,
|
|
1130
1130
|
hasNumber = false,
|
|
1131
1131
|
disableArrows = false,
|
|
1132
|
-
onPageChange
|
|
1132
|
+
onPageChange,
|
|
1133
|
+
renderLink
|
|
1133
1134
|
}) => {
|
|
1134
1135
|
const [activePage, setActivePage] = useState(currentPage);
|
|
1135
1136
|
const goToPage = (page) => {
|
|
@@ -1161,8 +1162,15 @@ var Pagination = ({
|
|
|
1161
1162
|
setActivePage(page);
|
|
1162
1163
|
onPageChange == null ? void 0 : onPageChange(page);
|
|
1163
1164
|
};
|
|
1165
|
+
const prevPage = activePage === 1 ? loop ? totalPages : 1 : activePage - 1;
|
|
1166
|
+
const nextPage = activePage === totalPages ? loop ? 1 : totalPages : activePage + 1;
|
|
1164
1167
|
return /* @__PURE__ */ jsxs("div", { className: clsx15(Pagination_module_default.pagination, className), children: [
|
|
1165
|
-
!disableArrows &&
|
|
1168
|
+
!disableArrows && (renderLink ? renderLink({
|
|
1169
|
+
page: prevPage,
|
|
1170
|
+
className: Pagination_module_default.prev,
|
|
1171
|
+
"aria-label": "Go to previous page",
|
|
1172
|
+
children: /* @__PURE__ */ jsx(Icon, { type: "filledChevronLeft" })
|
|
1173
|
+
}) : /* @__PURE__ */ jsx(
|
|
1166
1174
|
"button",
|
|
1167
1175
|
{
|
|
1168
1176
|
className: Pagination_module_default.prev,
|
|
@@ -1171,24 +1179,35 @@ var Pagination = ({
|
|
|
1171
1179
|
"aria-label": "Go to previous page",
|
|
1172
1180
|
children: /* @__PURE__ */ jsx(Icon, { type: "filledChevronLeft" })
|
|
1173
1181
|
}
|
|
1174
|
-
),
|
|
1182
|
+
)),
|
|
1175
1183
|
/* @__PURE__ */ jsx("div", { className: Pagination_module_default.pages, children: Array.from({ length: totalPages }, (_, i) => {
|
|
1176
1184
|
const page = i + 1;
|
|
1177
|
-
|
|
1185
|
+
const pageClassName = clsx15(Pagination_module_default.page, {
|
|
1186
|
+
[Pagination_module_default.active]: activePage === page,
|
|
1187
|
+
[Pagination_module_default.number]: hasNumber
|
|
1188
|
+
});
|
|
1189
|
+
return renderLink ? /* @__PURE__ */ jsx(Fragment$1, { children: renderLink({
|
|
1190
|
+
page,
|
|
1191
|
+
className: pageClassName,
|
|
1192
|
+
"aria-label": `Go to page ${page}`,
|
|
1193
|
+
children: hasNumber ? page : null
|
|
1194
|
+
}) }, page) : /* @__PURE__ */ jsx(
|
|
1178
1195
|
"button",
|
|
1179
1196
|
{
|
|
1180
1197
|
onClick: () => goToPage(page),
|
|
1181
|
-
className:
|
|
1182
|
-
[Pagination_module_default.active]: activePage === page,
|
|
1183
|
-
[Pagination_module_default.number]: hasNumber
|
|
1184
|
-
}),
|
|
1198
|
+
className: pageClassName,
|
|
1185
1199
|
"aria-label": `Go to page ${page}`,
|
|
1186
1200
|
children: hasNumber ? page : null
|
|
1187
1201
|
},
|
|
1188
1202
|
page
|
|
1189
1203
|
);
|
|
1190
1204
|
}) }),
|
|
1191
|
-
!disableArrows &&
|
|
1205
|
+
!disableArrows && (renderLink ? renderLink({
|
|
1206
|
+
page: nextPage,
|
|
1207
|
+
className: Pagination_module_default.next,
|
|
1208
|
+
"aria-label": "Go to next page",
|
|
1209
|
+
children: /* @__PURE__ */ jsx(Icon, { type: "filledChevronRight" })
|
|
1210
|
+
}) : /* @__PURE__ */ jsx(
|
|
1192
1211
|
"button",
|
|
1193
1212
|
{
|
|
1194
1213
|
className: Pagination_module_default.next,
|
|
@@ -1197,7 +1216,7 @@ var Pagination = ({
|
|
|
1197
1216
|
"aria-label": "Go to next page",
|
|
1198
1217
|
children: /* @__PURE__ */ jsx(Icon, { type: "filledChevronRight" })
|
|
1199
1218
|
}
|
|
1200
|
-
)
|
|
1219
|
+
))
|
|
1201
1220
|
] });
|
|
1202
1221
|
};
|
|
1203
1222
|
|
|
@@ -3347,10 +3366,7 @@ var ResourcesGridList = ({
|
|
|
3347
3366
|
onSelect: handleSelectCategory
|
|
3348
3367
|
}
|
|
3349
3368
|
),
|
|
3350
|
-
/* @__PURE__ */ jsx("div", { className: clsx15(ResourcesGridList_module_default.cardsArea, ResourcesGridList_module_default[view]), children: paginatedItems.map((item
|
|
3351
|
-
var _a2;
|
|
3352
|
-
return /* @__PURE__ */ jsx(ResourceCardItem, { item, view }, (_a2 = item.href) != null ? _a2 : i);
|
|
3353
|
-
}) })
|
|
3369
|
+
/* @__PURE__ */ jsx("div", { className: clsx15(ResourcesGridList_module_default.cardsArea, ResourcesGridList_module_default[view]), children: paginatedItems.map((item) => /* @__PURE__ */ jsx(ResourceCardItem, { item, view }, item.id)) })
|
|
3354
3370
|
] }),
|
|
3355
3371
|
totalPages > 1 && /* @__PURE__ */ jsx(
|
|
3356
3372
|
Pagination,
|
|
@@ -3623,21 +3639,27 @@ var NewsCardList_module_default = {
|
|
|
3623
3639
|
"end-action-button": "NewsCardList_module_end-action-button",
|
|
3624
3640
|
pagination: "NewsCardList_module_pagination"
|
|
3625
3641
|
};
|
|
3642
|
+
var NewsCardListPagination = ({ children }) => {
|
|
3643
|
+
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
3644
|
+
};
|
|
3626
3645
|
var NewsCardList = ({
|
|
3627
3646
|
items,
|
|
3628
3647
|
backgroundColor,
|
|
3629
3648
|
className,
|
|
3630
3649
|
currentPage,
|
|
3631
|
-
totalPages = 0,
|
|
3632
3650
|
searchValue,
|
|
3633
|
-
onPageChange,
|
|
3634
3651
|
onSearchChange,
|
|
3635
3652
|
onSearchSubmit,
|
|
3636
3653
|
searchInputProps,
|
|
3637
|
-
renderLink
|
|
3654
|
+
renderLink,
|
|
3655
|
+
children
|
|
3638
3656
|
}) => {
|
|
3639
3657
|
const featuredCards = items.slice(0, 4);
|
|
3640
3658
|
const cards = currentPage !== 1 ? items : items.slice(4);
|
|
3659
|
+
const slots = resolveCompoundSlots(children, {
|
|
3660
|
+
pagination: NewsCardListPagination
|
|
3661
|
+
});
|
|
3662
|
+
const paginationNode = slots.pagination;
|
|
3641
3663
|
return /* @__PURE__ */ jsx(
|
|
3642
3664
|
"div",
|
|
3643
3665
|
{
|
|
@@ -3682,21 +3704,19 @@ var NewsCardList = ({
|
|
|
3682
3704
|
/* @__PURE__ */ jsx(BlogCardGrid2, { items: cards, hasContainer: false, renderLink })
|
|
3683
3705
|
] })
|
|
3684
3706
|
] }),
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
currentPage: currentPage || 1,
|
|
3689
|
-
totalPages: totalPages || 0,
|
|
3690
|
-
onPageChange,
|
|
3691
|
-
className: clsx15("pagination", NewsCardList_module_default["pagination"]),
|
|
3692
|
-
hasNumber: true
|
|
3693
|
-
}
|
|
3694
|
-
) : null
|
|
3707
|
+
paginationNode ? React65.cloneElement(paginationNode, {
|
|
3708
|
+
className: clsx15("pagination", NewsCardList_module_default["pagination"])
|
|
3709
|
+
}) : null
|
|
3695
3710
|
] })
|
|
3696
3711
|
}
|
|
3697
3712
|
);
|
|
3698
3713
|
};
|
|
3699
3714
|
|
|
3715
|
+
// src/widgets/NewsCardList/index.ts
|
|
3716
|
+
var NewsCardList2 = Object.assign(NewsCardList, {
|
|
3717
|
+
Pagination: NewsCardListPagination
|
|
3718
|
+
});
|
|
3719
|
+
|
|
3700
3720
|
// src/widgets/BlogPost/BlogPost.module.scss
|
|
3701
3721
|
var BlogPost_module_default = {
|
|
3702
3722
|
"blog-post": "BlogPost_module_blog-post",
|
|
@@ -3776,26 +3796,30 @@ var BlogSearchResultsList_module_default = {
|
|
|
3776
3796
|
"end-action-button": "BlogSearchResultsList_module_end-action-button",
|
|
3777
3797
|
pagination: "BlogSearchResultsList_module_pagination"
|
|
3778
3798
|
};
|
|
3799
|
+
var BlogSearchResultsListPagination = ({
|
|
3800
|
+
children
|
|
3801
|
+
}) => {
|
|
3802
|
+
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
3803
|
+
};
|
|
3779
3804
|
var BlogSearchResultsList = ({
|
|
3780
3805
|
items,
|
|
3781
3806
|
searchResult,
|
|
3782
3807
|
onSearchChange,
|
|
3783
3808
|
onSearchSubmit,
|
|
3784
|
-
onPageChange,
|
|
3785
3809
|
searchValue,
|
|
3786
|
-
currentPage,
|
|
3787
|
-
totalPages = 0,
|
|
3788
3810
|
className,
|
|
3789
3811
|
renderLink,
|
|
3790
3812
|
children
|
|
3791
3813
|
}) => {
|
|
3792
3814
|
var _a;
|
|
3793
3815
|
const slots = resolveCompoundSlots(children, {
|
|
3794
|
-
search: BlogSearchResultsListSearch
|
|
3816
|
+
search: BlogSearchResultsListSearch,
|
|
3817
|
+
pagination: BlogSearchResultsListPagination
|
|
3795
3818
|
});
|
|
3796
3819
|
const searchNode = (_a = slots.search) != null ? _a : searchResult;
|
|
3820
|
+
const paginationNode = slots.pagination;
|
|
3797
3821
|
return /* @__PURE__ */ jsx("div", { className: clsx15("search-results-list", BlogSearchResultsList_module_default["search-results-list"], className), children: /* @__PURE__ */ jsxs(Container, { className: clsx15("container", BlogSearchResultsList_module_default["container"]), children: [
|
|
3798
|
-
typeof searchNode === "string" ? /* @__PURE__ */ jsx("span", { className: clsx15("search-result", BlogSearchResultsList_module_default["search-result"]), children: searchNode }) :
|
|
3822
|
+
typeof searchNode === "string" ? /* @__PURE__ */ jsx("span", { className: clsx15("search-result", BlogSearchResultsList_module_default["search-result"]), children: searchNode }) : React65.isValidElement(searchNode) ? React65.cloneElement(searchNode, {
|
|
3799
3823
|
className: clsx15("search-result", BlogSearchResultsList_module_default["search-result"])
|
|
3800
3824
|
}) : null,
|
|
3801
3825
|
/* @__PURE__ */ jsxs("div", { className: clsx15("wrapper", BlogSearchResultsList_module_default["wrapper"]), children: [
|
|
@@ -3823,22 +3847,16 @@ var BlogSearchResultsList = ({
|
|
|
3823
3847
|
),
|
|
3824
3848
|
/* @__PURE__ */ jsx(BlogCardGrid2, { items, hasContainer: false, renderLink })
|
|
3825
3849
|
] }),
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
currentPage: currentPage || 1,
|
|
3830
|
-
totalPages: totalPages || 0,
|
|
3831
|
-
onPageChange,
|
|
3832
|
-
className: clsx15("pagination", BlogSearchResultsList_module_default["pagination"]),
|
|
3833
|
-
hasNumber: true
|
|
3834
|
-
}
|
|
3835
|
-
) : null
|
|
3850
|
+
paginationNode ? React65.cloneElement(paginationNode, {
|
|
3851
|
+
className: clsx15("pagination", BlogSearchResultsList_module_default["pagination"])
|
|
3852
|
+
}) : null
|
|
3836
3853
|
] }) });
|
|
3837
3854
|
};
|
|
3838
3855
|
|
|
3839
3856
|
// src/widgets/BlogSearchResultsList/index.ts
|
|
3840
3857
|
var BlogSearchResultsList2 = Object.assign(BlogSearchResultsList, {
|
|
3841
|
-
Search: BlogSearchResultsListSearch
|
|
3858
|
+
Search: BlogSearchResultsListSearch,
|
|
3859
|
+
Pagination: BlogSearchResultsListPagination
|
|
3842
3860
|
});
|
|
3843
3861
|
function useIntersectionObserver({
|
|
3844
3862
|
animateOnce = false,
|
|
@@ -3869,6 +3887,6 @@ function useIntersectionObserver({
|
|
|
3869
3887
|
return { observeRef, isVisible };
|
|
3870
3888
|
}
|
|
3871
3889
|
|
|
3872
|
-
export { Anchor, Badge, BlogCardGrid2 as BlogCardGrid, BlogPost2 as BlogPost, BlogSearchResultsList2 as BlogSearchResultsList, BrandsStrip, Button, Card2 as Card, CardCollection2 as CardCollection, ConditionalWrapper, ContactModule2 as ContactModule, Container, CountingCard2 as CountingCard, EventList2 as EventList, FeaturedNewsHighlights2 as FeaturedNewsHighlights, FilterBar, Footer, HeroBanner2 as HeroBanner, HeroBannerCarousel, Icon, InfoCard2 as InfoCard, Input, InternalBrandsTab2 as InternalBrandsTab, MiniBanner2 as MiniBanner, MiniSectionCta2 as MiniSectionCta, NewsCard, NewsCardList, Pagination, Picture, PracticeCard, PracticePathCards2 as PracticePathCards, ResourceCardItem, ResourcesGridList, Sidebar, Teaser5050With3Text2 as Teaser5050With3Text, Teaser5050WithCta2 as Teaser5050WithCta, TextBody2 as TextBody, TextCenterCtaInBottom2 as TextCenterCtaInBottom, TextEvent2 as TextEvent, UpcomingEventCard, resolveCompoundSlots, svgs, useIntersectionObserver };
|
|
3890
|
+
export { Anchor, Badge, BlogCardGrid2 as BlogCardGrid, BlogPost2 as BlogPost, BlogSearchResultsList2 as BlogSearchResultsList, BrandsStrip, Button, Card2 as Card, CardCollection2 as CardCollection, ConditionalWrapper, ContactModule2 as ContactModule, Container, CountingCard2 as CountingCard, EventList2 as EventList, FeaturedNewsHighlights2 as FeaturedNewsHighlights, FilterBar, Footer, HeroBanner2 as HeroBanner, HeroBannerCarousel, Icon, InfoCard2 as InfoCard, Input, InternalBrandsTab2 as InternalBrandsTab, MiniBanner2 as MiniBanner, MiniSectionCta2 as MiniSectionCta, NewsCard, NewsCardList2 as NewsCardList, Pagination, Picture, PracticeCard, PracticePathCards2 as PracticePathCards, ResourceCardItem, ResourcesGridList, Sidebar, Teaser5050With3Text2 as Teaser5050With3Text, Teaser5050WithCta2 as Teaser5050WithCta, TextBody2 as TextBody, TextCenterCtaInBottom2 as TextCenterCtaInBottom, TextEvent2 as TextEvent, UpcomingEventCard, resolveCompoundSlots, svgs, useIntersectionObserver };
|
|
3873
3891
|
//# sourceMappingURL=index.mjs.map
|
|
3874
3892
|
//# sourceMappingURL=index.mjs.map
|