@digital-b2c/coreui-kit 0.11.15 → 0.11.17
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/LICENSE.txt +21 -21
- package/README.md +52 -52
- package/dist/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +72 -73
- package/dist/index.d.ts +72 -73
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/dist/types/global.d.ts +25 -25
- package/package.json +99 -100
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as react from 'react';
|
|
3
2
|
import react__default, { ImgHTMLAttributes, AnchorHTMLAttributes, ReactNode, Ref, HTMLAttributes, ButtonHTMLAttributes, InputHTMLAttributes, PropsWithChildren, JSX, FC, CSSProperties } from 'react';
|
|
4
3
|
|
|
@@ -115,7 +114,7 @@ interface BrandsStripProps {
|
|
|
115
114
|
size?: 'small';
|
|
116
115
|
}
|
|
117
116
|
|
|
118
|
-
declare const BrandsStrip: ({ className, variant, title, logos, cta, size, }: BrandsStripProps) =>
|
|
117
|
+
declare const BrandsStrip: ({ className, variant, title, logos, cta, size, }: BrandsStripProps) => react.JSX.Element;
|
|
119
118
|
|
|
120
119
|
declare const ButtonVariantReadOnly: readonly ["primary", "secondary", "ghost", "nofill", "grey", "nofillblack", "shiny", "tabbutton"];
|
|
121
120
|
type TButtonVariant = (typeof ButtonVariantReadOnly)[number];
|
|
@@ -155,11 +154,11 @@ interface CardProps {
|
|
|
155
154
|
}
|
|
156
155
|
|
|
157
156
|
declare const Card: {
|
|
158
|
-
({ className, variant, title, subtitle, cta, icon, logo, children, ref, }: CardProps):
|
|
157
|
+
({ className, variant, title, subtitle, cta, icon, logo, children, ref, }: CardProps): react.JSX.Element;
|
|
159
158
|
displayName: string;
|
|
160
159
|
} & {
|
|
161
|
-
Title: ({ children }: CardTitleProps) =>
|
|
162
|
-
Subtitle: ({ children }: CardSubtitleProps) =>
|
|
160
|
+
Title: ({ children }: CardTitleProps) => react.JSX.Element;
|
|
161
|
+
Subtitle: ({ children }: CardSubtitleProps) => react.JSX.Element;
|
|
163
162
|
};
|
|
164
163
|
|
|
165
164
|
type CountingCardTitleProps = {
|
|
@@ -174,8 +173,8 @@ interface CountingCardProps {
|
|
|
174
173
|
children?: ReactNode;
|
|
175
174
|
}
|
|
176
175
|
|
|
177
|
-
declare const CountingCard: (({ className, title, count, image, children }: CountingCardProps) =>
|
|
178
|
-
Title: ({ children }: CountingCardTitleProps) =>
|
|
176
|
+
declare const CountingCard: (({ className, title, count, image, children }: CountingCardProps) => react.JSX.Element) & {
|
|
177
|
+
Title: ({ children }: CountingCardTitleProps) => react.JSX.Element;
|
|
179
178
|
};
|
|
180
179
|
|
|
181
180
|
type ResourceView = 'grid' | 'list';
|
|
@@ -194,7 +193,7 @@ interface ResourceCardItemProps {
|
|
|
194
193
|
view: ResourceView;
|
|
195
194
|
}
|
|
196
195
|
|
|
197
|
-
declare const ResourceCardItem: ({ item, view }: ResourceCardItemProps) =>
|
|
196
|
+
declare const ResourceCardItem: ({ item, view }: ResourceCardItemProps) => react.JSX.Element;
|
|
198
197
|
|
|
199
198
|
type FilterOption = 'all' | 'pdf' | 'externalLink';
|
|
200
199
|
type SortOption = 'latest' | 'oldest' | 'az' | 'za';
|
|
@@ -210,7 +209,7 @@ interface FilterBarProps {
|
|
|
210
209
|
onSearchChange: (v: string) => void;
|
|
211
210
|
}
|
|
212
211
|
|
|
213
|
-
declare function FilterBar({ view, onViewChange, isMobile, filterValue, onFilterChange, sortValue, onSortChange, searchValue, onSearchChange, }: FilterBarProps):
|
|
212
|
+
declare function FilterBar({ view, onViewChange, isMobile, filterValue, onFilterChange, sortValue, onSortChange, searchValue, onSearchChange, }: FilterBarProps): react.JSX.Element;
|
|
214
213
|
|
|
215
214
|
type InfoCardSubtitleProps = {
|
|
216
215
|
children: ReactNode;
|
|
@@ -229,9 +228,9 @@ interface InfoCardProps {
|
|
|
229
228
|
children?: ReactNode;
|
|
230
229
|
}
|
|
231
230
|
|
|
232
|
-
declare const InfoCard: (({ className, title, subtitle, icon, badge, children }: InfoCardProps) =>
|
|
233
|
-
Title: ({ children }: InfoCardTitleProps) =>
|
|
234
|
-
Subtitle: ({ children }: InfoCardSubtitleProps) =>
|
|
231
|
+
declare const InfoCard: (({ className, title, subtitle, icon, badge, children }: InfoCardProps) => react.JSX.Element) & {
|
|
232
|
+
Title: ({ children }: InfoCardTitleProps) => react.JSX.Element;
|
|
233
|
+
Subtitle: ({ children }: InfoCardSubtitleProps) => react.JSX.Element;
|
|
235
234
|
};
|
|
236
235
|
|
|
237
236
|
interface PaginationProps {
|
|
@@ -248,9 +247,9 @@ interface PaginationProps {
|
|
|
248
247
|
}) => ReactNode;
|
|
249
248
|
}
|
|
250
249
|
|
|
251
|
-
declare const Pagination: ({ className, totalPages, currentPage, loop, hasNumber, disableArrows, onPageChange, renderLink, }: PaginationProps) =>
|
|
250
|
+
declare const Pagination: ({ className, totalPages, currentPage, loop, hasNumber, disableArrows, onPageChange, renderLink, }: PaginationProps) => react.JSX.Element;
|
|
252
251
|
|
|
253
|
-
declare const Picture: ({ className, ...props }: PictureProps) =>
|
|
252
|
+
declare const Picture: ({ className, ...props }: PictureProps) => react.JSX.Element;
|
|
254
253
|
|
|
255
254
|
interface PracticeCardProps {
|
|
256
255
|
className?: string;
|
|
@@ -259,7 +258,7 @@ interface PracticeCardProps {
|
|
|
259
258
|
image?: IPicture;
|
|
260
259
|
}
|
|
261
260
|
|
|
262
|
-
declare const PracticeCard: ({ className, title, cta, image }: PracticeCardProps) =>
|
|
261
|
+
declare const PracticeCard: ({ className, title, cta, image }: PracticeCardProps) => react.JSX.Element;
|
|
263
262
|
|
|
264
263
|
interface SidebarCategory {
|
|
265
264
|
label: string;
|
|
@@ -279,7 +278,7 @@ interface SidebarProps {
|
|
|
279
278
|
onSelect: (index: number) => void;
|
|
280
279
|
}
|
|
281
280
|
|
|
282
|
-
declare const Sidebar: ({ categories, isMobile, onToggle, selectedIndex, onSelect, }: SidebarProps) =>
|
|
281
|
+
declare const Sidebar: ({ categories, isMobile, onToggle, selectedIndex, onSelect, }: SidebarProps) => react.JSX.Element;
|
|
283
282
|
|
|
284
283
|
interface UpcomingEventCardProps {
|
|
285
284
|
className?: string;
|
|
@@ -295,7 +294,7 @@ interface UpcomingEventCardProps {
|
|
|
295
294
|
showImage?: boolean;
|
|
296
295
|
}
|
|
297
296
|
|
|
298
|
-
declare const UpcomingEventCard: ({ className, image, date, title, location, description, cta, direction, showImage, }: UpcomingEventCardProps) =>
|
|
297
|
+
declare const UpcomingEventCard: ({ className, image, date, title, location, description, cta, direction, showImage, }: UpcomingEventCardProps) => react.JSX.Element;
|
|
299
298
|
|
|
300
299
|
type BadgeBaseProps = {
|
|
301
300
|
children?: ReactNode;
|
|
@@ -373,7 +372,7 @@ interface NewsCardProps {
|
|
|
373
372
|
}) => React.ReactNode;
|
|
374
373
|
}
|
|
375
374
|
|
|
376
|
-
declare const NewsCard: ({ className, image, date, description, tag, title, cta, direction, renderLink, }: NewsCardProps) =>
|
|
375
|
+
declare const NewsCard: ({ className, image, date, description, tag, title, cta, direction, renderLink, }: NewsCardProps) => react.JSX.Element;
|
|
377
376
|
|
|
378
377
|
type BlogPostContentBodyProps = {
|
|
379
378
|
children: ReactNode;
|
|
@@ -385,8 +384,8 @@ interface BlogPostContentProps {
|
|
|
385
384
|
body?: ReactNode;
|
|
386
385
|
}
|
|
387
386
|
|
|
388
|
-
declare const BlogPostContent: (({ className, body, children }: BlogPostContentProps) =>
|
|
389
|
-
Body: ({ children }: BlogPostContentBodyProps) =>
|
|
387
|
+
declare const BlogPostContent: (({ className, body, children }: BlogPostContentProps) => react.JSX.Element) & {
|
|
388
|
+
Body: ({ children }: BlogPostContentBodyProps) => react.JSX.Element;
|
|
390
389
|
};
|
|
391
390
|
|
|
392
391
|
interface AnchorProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
@@ -396,7 +395,7 @@ interface AnchorProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
|
396
395
|
}) => ReactNode;
|
|
397
396
|
}
|
|
398
397
|
|
|
399
|
-
declare const Anchor: ({ children, isExternal, renderLink, ...props }: AnchorProps) =>
|
|
398
|
+
declare const Anchor: ({ children, isExternal, renderLink, ...props }: AnchorProps) => react.JSX.Element;
|
|
400
399
|
|
|
401
400
|
interface ContainerProps extends HTMLAttributes<HTMLDivElement> {
|
|
402
401
|
children: ReactNode;
|
|
@@ -435,9 +434,9 @@ interface CardCollectionProps {
|
|
|
435
434
|
theme?: 'dark' | 'light';
|
|
436
435
|
}
|
|
437
436
|
|
|
438
|
-
declare const CardCollection: (({ className, variant, theme, title, subtitle, cards, ctaLabel, children, }: CardCollectionProps) =>
|
|
439
|
-
Title: ({ children }: CardCollectionTitleProps) =>
|
|
440
|
-
Subtitle: ({ children }: CardCollectionSubtitleProps) =>
|
|
437
|
+
declare const CardCollection: (({ className, variant, theme, title, subtitle, cards, ctaLabel, children, }: CardCollectionProps) => react.JSX.Element) & {
|
|
438
|
+
Title: ({ children }: CardCollectionTitleProps) => react.JSX.Element;
|
|
439
|
+
Subtitle: ({ children }: CardCollectionSubtitleProps) => react.JSX.Element;
|
|
441
440
|
};
|
|
442
441
|
|
|
443
442
|
type ContactModuleSubtitleProps = {
|
|
@@ -459,9 +458,9 @@ interface ContactModuleProps {
|
|
|
459
458
|
animateBlur?: boolean;
|
|
460
459
|
}
|
|
461
460
|
|
|
462
|
-
declare const ContactModule: (({ className, children, title, subtitle, ctas, image, blurred, animateBlur, }: ContactModuleProps) =>
|
|
463
|
-
Title: ({ children }: ContactModuleTitleProps) =>
|
|
464
|
-
Subtitle: ({ children }: ContactModuleSubtitleProps) =>
|
|
461
|
+
declare const ContactModule: (({ className, children, title, subtitle, ctas, image, blurred, animateBlur, }: ContactModuleProps) => react.JSX.Element) & {
|
|
462
|
+
Title: ({ children }: ContactModuleTitleProps) => react.JSX.Element;
|
|
463
|
+
Subtitle: ({ children }: ContactModuleSubtitleProps) => react.JSX.Element;
|
|
465
464
|
};
|
|
466
465
|
|
|
467
466
|
interface IFooterLink {
|
|
@@ -487,7 +486,7 @@ interface FooterProps {
|
|
|
487
486
|
supportContacts?: IFooterSupportGroup[];
|
|
488
487
|
}
|
|
489
488
|
|
|
490
|
-
declare const Footer: ({ className, supporters, navigationLinks, disclaimer, copyright, children, supportContacts, }: FooterProps) =>
|
|
489
|
+
declare const Footer: ({ className, supporters, navigationLinks, disclaimer, copyright, children, supportContacts, }: FooterProps) => react.JSX.Element;
|
|
491
490
|
|
|
492
491
|
type HeroBannerSubtitleProps = {
|
|
493
492
|
children: ReactNode;
|
|
@@ -513,9 +512,9 @@ interface HeroBannerProps {
|
|
|
513
512
|
children?: ReactNode;
|
|
514
513
|
}
|
|
515
514
|
|
|
516
|
-
declare const HeroBanner: (({ className, variant, title, subtitle, backgroundImage, logo, cta, ctaLogo, brands, promoteToH1, children, }: HeroBannerProps) =>
|
|
517
|
-
Title: ({ children }: HeroBannerTitleProps) =>
|
|
518
|
-
Subtitle: ({ children }: HeroBannerSubtitleProps) =>
|
|
515
|
+
declare const HeroBanner: (({ className, variant, title, subtitle, backgroundImage, logo, cta, ctaLogo, brands, promoteToH1, children, }: HeroBannerProps) => react.JSX.Element) & {
|
|
516
|
+
Title: ({ children }: HeroBannerTitleProps) => react.JSX.Element;
|
|
517
|
+
Subtitle: ({ children }: HeroBannerSubtitleProps) => react.JSX.Element;
|
|
519
518
|
};
|
|
520
519
|
|
|
521
520
|
interface HeroBannerCarouselItem {
|
|
@@ -532,7 +531,7 @@ interface HeroBannerCarouselProps {
|
|
|
532
531
|
navNextIcon?: string;
|
|
533
532
|
}
|
|
534
533
|
|
|
535
|
-
declare const HeroBannerCarousel: ({ className, items, navPrevIcon, navNextIcon, }: HeroBannerCarouselProps) =>
|
|
534
|
+
declare const HeroBannerCarousel: ({ className, items, navPrevIcon, navNextIcon, }: HeroBannerCarouselProps) => react.JSX.Element | null;
|
|
536
535
|
|
|
537
536
|
interface InternalBrandsTabProps {
|
|
538
537
|
title?: string;
|
|
@@ -555,7 +554,7 @@ interface InternalBrandsTabProps {
|
|
|
555
554
|
}[];
|
|
556
555
|
}
|
|
557
556
|
|
|
558
|
-
declare const InternalBrandsTab: (props: InternalBrandsTabProps) =>
|
|
557
|
+
declare const InternalBrandsTab: (props: InternalBrandsTabProps) => react.JSX.Element;
|
|
559
558
|
|
|
560
559
|
type MiniBannerGoBackProps = {
|
|
561
560
|
children: ReactNode;
|
|
@@ -592,10 +591,10 @@ interface MiniBannerProps {
|
|
|
592
591
|
children?: ReactNode;
|
|
593
592
|
}
|
|
594
593
|
|
|
595
|
-
declare const MiniBanner: (({ className, variant, pretitle, title, subtitle, logo, background, cta, children, }: MiniBannerProps) =>
|
|
596
|
-
Title: ({ children }: MiniBannerTitleProps) =>
|
|
597
|
-
Subtitle: ({ children }: MiniBannerSubtitleProps) =>
|
|
598
|
-
GoBack: ({ children }: MiniBannerGoBackProps) =>
|
|
594
|
+
declare const MiniBanner: (({ className, variant, pretitle, title, subtitle, logo, background, cta, children, }: MiniBannerProps) => react.JSX.Element) & {
|
|
595
|
+
Title: ({ children }: MiniBannerTitleProps) => react.JSX.Element;
|
|
596
|
+
Subtitle: ({ children }: MiniBannerSubtitleProps) => react.JSX.Element;
|
|
597
|
+
GoBack: ({ children }: MiniBannerGoBackProps) => react.JSX.Element;
|
|
599
598
|
};
|
|
600
599
|
|
|
601
600
|
type MiniSectionCtaSubtitleProps = {
|
|
@@ -616,9 +615,9 @@ interface MiniSectionCtaProps {
|
|
|
616
615
|
children?: ReactNode;
|
|
617
616
|
}
|
|
618
617
|
|
|
619
|
-
declare const MiniSectionCta: (({ className, variant, theme, title, subtitle, cta, children, }: MiniSectionCtaProps) =>
|
|
620
|
-
Title: ({ children }: MiniSectionCtaTitleProps) =>
|
|
621
|
-
Subtitle: ({ children }: MiniSectionCtaSubtitleProps) =>
|
|
618
|
+
declare const MiniSectionCta: (({ className, variant, theme, title, subtitle, cta, children, }: MiniSectionCtaProps) => react.JSX.Element) & {
|
|
619
|
+
Title: ({ children }: MiniSectionCtaTitleProps) => react.JSX.Element;
|
|
620
|
+
Subtitle: ({ children }: MiniSectionCtaSubtitleProps) => react.JSX.Element;
|
|
622
621
|
};
|
|
623
622
|
|
|
624
623
|
type PracticePathCardsFooterProps = {
|
|
@@ -643,10 +642,10 @@ interface PracticePathCardsProps {
|
|
|
643
642
|
cta?: ICta;
|
|
644
643
|
}
|
|
645
644
|
|
|
646
|
-
declare const PracticePathCards: (({ className, children, cards, title, subtitle, footer, cta, }: PracticePathCardsProps) =>
|
|
647
|
-
Title: ({ children }: PracticePathCardsTitleProps) =>
|
|
648
|
-
Subtitle: ({ children }: PracticePathCardsSubtitleProps) =>
|
|
649
|
-
Footer: ({ children }: PracticePathCardsFooterProps) =>
|
|
645
|
+
declare const PracticePathCards: (({ className, children, cards, title, subtitle, footer, cta, }: PracticePathCardsProps) => react.JSX.Element) & {
|
|
646
|
+
Title: ({ children }: PracticePathCardsTitleProps) => react.JSX.Element;
|
|
647
|
+
Subtitle: ({ children }: PracticePathCardsSubtitleProps) => react.JSX.Element;
|
|
648
|
+
Footer: ({ children }: PracticePathCardsFooterProps) => react.JSX.Element;
|
|
650
649
|
};
|
|
651
650
|
|
|
652
651
|
type Teaser5050With3TextTitleProps = {
|
|
@@ -662,8 +661,8 @@ interface Teaser5050With3TextProps {
|
|
|
662
661
|
children?: ReactNode;
|
|
663
662
|
}
|
|
664
663
|
|
|
665
|
-
declare const Teaser5050With3Text: (({ className, variant, title, cards, image, children, }: Teaser5050With3TextProps) =>
|
|
666
|
-
Title: ({ children }: Teaser5050With3TextTitleProps) =>
|
|
664
|
+
declare const Teaser5050With3Text: (({ className, variant, title, cards, image, children, }: Teaser5050With3TextProps) => react.JSX.Element) & {
|
|
665
|
+
Title: ({ children }: Teaser5050With3TextTitleProps) => react.JSX.Element;
|
|
667
666
|
};
|
|
668
667
|
|
|
669
668
|
type Teaser5050WithCtaSubtitleProps = {
|
|
@@ -685,9 +684,9 @@ interface Teaser5050WithCtaProps {
|
|
|
685
684
|
bgColor?: string;
|
|
686
685
|
}
|
|
687
686
|
|
|
688
|
-
declare const Teaser5050WithCta: (({ className, variant, title, subtitle, ctas, image, children, bgColor, }: Teaser5050WithCtaProps) =>
|
|
689
|
-
Title: ({ children }: Teaser5050WithCtaTitleProps) =>
|
|
690
|
-
Subtitle: ({ children }: Teaser5050WithCtaSubtitleProps) =>
|
|
687
|
+
declare const Teaser5050WithCta: (({ className, variant, title, subtitle, ctas, image, children, bgColor, }: Teaser5050WithCtaProps) => react.JSX.Element) & {
|
|
688
|
+
Title: ({ children }: Teaser5050WithCtaTitleProps) => react.JSX.Element;
|
|
689
|
+
Subtitle: ({ children }: Teaser5050WithCtaSubtitleProps) => react.JSX.Element;
|
|
691
690
|
};
|
|
692
691
|
|
|
693
692
|
type EventListTitleProps = {
|
|
@@ -705,8 +704,8 @@ interface EventListProps extends PropsWithChildren {
|
|
|
705
704
|
variant?: 'internalEventList';
|
|
706
705
|
}
|
|
707
706
|
|
|
708
|
-
declare const EventList: (({ className, title, items, cta, backgroundColor, variant, children, }: EventListProps) =>
|
|
709
|
-
Title: ({ children }: EventListTitleProps) =>
|
|
707
|
+
declare const EventList: (({ className, title, items, cta, backgroundColor, variant, children, }: EventListProps) => react.JSX.Element) & {
|
|
708
|
+
Title: ({ children }: EventListTitleProps) => react.JSX.Element;
|
|
710
709
|
};
|
|
711
710
|
|
|
712
711
|
type TextEventRichTextProps = {
|
|
@@ -726,9 +725,9 @@ interface TextEventProps {
|
|
|
726
725
|
children?: ReactNode;
|
|
727
726
|
}
|
|
728
727
|
|
|
729
|
-
declare const TextEvent: ((props: TextEventProps) =>
|
|
730
|
-
Title: ({ children }: TextEventTitleProps) =>
|
|
731
|
-
RichText: ({ children }: TextEventRichTextProps) =>
|
|
728
|
+
declare const TextEvent: ((props: TextEventProps) => react.JSX.Element) & {
|
|
729
|
+
Title: ({ children }: TextEventTitleProps) => react.JSX.Element;
|
|
730
|
+
RichText: ({ children }: TextEventRichTextProps) => react.JSX.Element;
|
|
732
731
|
};
|
|
733
732
|
|
|
734
733
|
type TextBodyBodyProps = {
|
|
@@ -746,9 +745,9 @@ interface TextBodyProps {
|
|
|
746
745
|
children?: ReactNode;
|
|
747
746
|
}
|
|
748
747
|
|
|
749
|
-
declare const TextBody: ((props: TextBodyProps) =>
|
|
750
|
-
Title: ({ children }: TextBodyTitleProps) =>
|
|
751
|
-
Body: ({ children }: TextBodyBodyProps) =>
|
|
748
|
+
declare const TextBody: ((props: TextBodyProps) => react.JSX.Element) & {
|
|
749
|
+
Title: ({ children }: TextBodyTitleProps) => react.JSX.Element;
|
|
750
|
+
Body: ({ children }: TextBodyBodyProps) => react.JSX.Element;
|
|
752
751
|
};
|
|
753
752
|
|
|
754
753
|
type TextCenterCtaInBottomSubtitleProps = {
|
|
@@ -767,9 +766,9 @@ interface TextCenterCtaInBottomProps {
|
|
|
767
766
|
children?: ReactNode;
|
|
768
767
|
}
|
|
769
768
|
|
|
770
|
-
declare const TextCenterCtaInBottom: (({ className, title, subtitle, ctas, children, }: TextCenterCtaInBottomProps) =>
|
|
771
|
-
Title: ({ children }: TextCenterCtaInBottomTitleProps) =>
|
|
772
|
-
Subtitle: ({ children }: TextCenterCtaInBottomSubtitleProps) =>
|
|
769
|
+
declare const TextCenterCtaInBottom: (({ className, title, subtitle, ctas, children, }: TextCenterCtaInBottomProps) => react.JSX.Element) & {
|
|
770
|
+
Title: ({ children }: TextCenterCtaInBottomTitleProps) => react.JSX.Element;
|
|
771
|
+
Subtitle: ({ children }: TextCenterCtaInBottomSubtitleProps) => react.JSX.Element;
|
|
773
772
|
};
|
|
774
773
|
|
|
775
774
|
interface ResourcesGridListProps {
|
|
@@ -782,7 +781,7 @@ interface ResourcesGridListProps {
|
|
|
782
781
|
children?: ReactNode;
|
|
783
782
|
}
|
|
784
783
|
|
|
785
|
-
declare const ResourcesGridList: ({ className, items, categories, defaultView, defaultFilter, defaultSort, }: ResourcesGridListProps) =>
|
|
784
|
+
declare const ResourcesGridList: ({ className, items, categories, defaultView, defaultFilter, defaultSort, }: ResourcesGridListProps) => react.JSX.Element;
|
|
786
785
|
|
|
787
786
|
type BlogCardGridTitleProps = {
|
|
788
787
|
children: ReactNode;
|
|
@@ -802,8 +801,8 @@ interface BlogCardGridProps extends PropsWithChildren {
|
|
|
802
801
|
}) => React.ReactNode;
|
|
803
802
|
}
|
|
804
803
|
|
|
805
|
-
declare const BlogCardGrid: (({ title, items, backgroundColor, cta, className, hasContainer, gridProps, gridItemProps, renderLink, children, }: BlogCardGridProps) =>
|
|
806
|
-
Title: ({ children }: BlogCardGridTitleProps) =>
|
|
804
|
+
declare const BlogCardGrid: (({ title, items, backgroundColor, cta, className, hasContainer, gridProps, gridItemProps, renderLink, children, }: BlogCardGridProps) => react.JSX.Element) & {
|
|
805
|
+
Title: ({ children }: BlogCardGridTitleProps) => react.JSX.Element;
|
|
807
806
|
};
|
|
808
807
|
|
|
809
808
|
type FeaturedNewsHighlightsTitleProps = {
|
|
@@ -823,8 +822,8 @@ interface FeaturedNewsHighlightsProps extends PropsWithChildren {
|
|
|
823
822
|
}) => React.ReactNode;
|
|
824
823
|
}
|
|
825
824
|
|
|
826
|
-
declare const FeaturedNewsHighlights: (({ variant, title, items, backgroundColor, cta, className, hasContainer, renderLink, children, }: FeaturedNewsHighlightsProps) =>
|
|
827
|
-
Title: ({ children }: FeaturedNewsHighlightsTitleProps) =>
|
|
825
|
+
declare const FeaturedNewsHighlights: (({ variant, title, items, backgroundColor, cta, className, hasContainer, renderLink, children, }: FeaturedNewsHighlightsProps) => react.JSX.Element) & {
|
|
826
|
+
Title: ({ children }: FeaturedNewsHighlightsTitleProps) => react.JSX.Element;
|
|
828
827
|
};
|
|
829
828
|
|
|
830
829
|
type NewsCardListPaginationProps = {
|
|
@@ -845,8 +844,8 @@ interface NewsCardListProps extends PropsWithChildren {
|
|
|
845
844
|
}) => React.ReactNode;
|
|
846
845
|
}
|
|
847
846
|
|
|
848
|
-
declare const NewsCardList: (({ items, backgroundColor, className, currentPage, searchValue, onSearchChange, onSearchSubmit, searchInputProps, renderLink, children, }: NewsCardListProps) =>
|
|
849
|
-
Pagination: ({ children }: NewsCardListPaginationProps) =>
|
|
847
|
+
declare const NewsCardList: (({ items, backgroundColor, className, currentPage, searchValue, onSearchChange, onSearchSubmit, searchInputProps, renderLink, children, }: NewsCardListProps) => react.JSX.Element) & {
|
|
848
|
+
Pagination: ({ children }: NewsCardListPaginationProps) => react.JSX.Element;
|
|
850
849
|
};
|
|
851
850
|
|
|
852
851
|
type BlogPostBodyProps = {
|
|
@@ -862,9 +861,9 @@ interface BlogPostProps extends PropsWithChildren, Omit<NewsCardProps, 'descript
|
|
|
862
861
|
relatedArticles?: NewsCardProps[];
|
|
863
862
|
}
|
|
864
863
|
|
|
865
|
-
declare const BlogPost: (({ title, description: body, image, date, tag, relatedArticles, className, children, }: BlogPostProps) =>
|
|
866
|
-
Title: ({ children }: BlogPostTitleProps) =>
|
|
867
|
-
Body: ({ children }: BlogPostBodyProps) =>
|
|
864
|
+
declare const BlogPost: (({ title, description: body, image, date, tag, relatedArticles, className, children, }: BlogPostProps) => react.JSX.Element) & {
|
|
865
|
+
Title: ({ children }: BlogPostTitleProps) => react.JSX.Element;
|
|
866
|
+
Body: ({ children }: BlogPostBodyProps) => react.JSX.Element;
|
|
868
867
|
};
|
|
869
868
|
|
|
870
869
|
type BlogSearchResultsListPaginationProps = {
|
|
@@ -887,9 +886,9 @@ interface BlogSearchResultsListProps extends PropsWithChildren {
|
|
|
887
886
|
}) => React.ReactNode;
|
|
888
887
|
}
|
|
889
888
|
|
|
890
|
-
declare const BlogSearchResultsList: (({ items, searchResult, onSearchChange, onSearchSubmit, searchValue, className, renderLink, children, }: BlogSearchResultsListProps) =>
|
|
891
|
-
Search: ({ children }: BlogSearchResultsListSearchProps) =>
|
|
892
|
-
Pagination: ({ children, }: BlogSearchResultsListPaginationProps) =>
|
|
889
|
+
declare const BlogSearchResultsList: (({ items, searchResult, onSearchChange, onSearchSubmit, searchValue, className, renderLink, children, }: BlogSearchResultsListProps) => react.JSX.Element) & {
|
|
890
|
+
Search: ({ children }: BlogSearchResultsListSearchProps) => react.JSX.Element;
|
|
891
|
+
Pagination: ({ children, }: BlogSearchResultsListPaginationProps) => react.JSX.Element;
|
|
893
892
|
};
|
|
894
893
|
|
|
895
894
|
type IntersectionObserverOptions = {
|
package/dist/index.mjs
CHANGED
|
@@ -3293,8 +3293,10 @@ var ResourcesGridList = ({
|
|
|
3293
3293
|
setCurrentPage(1);
|
|
3294
3294
|
const categoryText = (_b = (_a2 = categories[index]) == null ? void 0 : _a2.label) == null ? void 0 : _b.replaceAll(" ", "-");
|
|
3295
3295
|
if (typeof window !== "undefined" && categoryText) {
|
|
3296
|
-
const
|
|
3296
|
+
const base_url = window.location.pathname.endsWith("/") ? window.location.pathname.slice(0, -1) : window.location.pathname;
|
|
3297
|
+
const url = `${base_url}#${categoryText}`;
|
|
3297
3298
|
window.history.replaceState(null, "", url);
|
|
3299
|
+
window.dispatchEvent(new HashChangeEvent("hashchange"));
|
|
3298
3300
|
}
|
|
3299
3301
|
if (isMobile) setIsSidebarOpen(false);
|
|
3300
3302
|
};
|