@digital-b2c/coreui-kit 0.10.2 → 0.11.0
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 +949 -209
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +962 -344
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +199 -24
- package/dist/index.d.ts +199 -24
- package/dist/index.mjs +941 -209
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import react__default, { ImgHTMLAttributes, AnchorHTMLAttributes, ReactNode, Ref, HTMLAttributes, ButtonHTMLAttributes, InputHTMLAttributes, PropsWithChildren, JSX, FC, CSSProperties } from 'react';
|
|
4
4
|
|
|
5
5
|
interface IPicture {
|
|
6
6
|
src: string;
|
|
@@ -84,11 +84,11 @@ declare const svgs: {
|
|
|
84
84
|
xWhite: string;
|
|
85
85
|
};
|
|
86
86
|
type IconType = keyof typeof svgs;
|
|
87
|
-
interface IconProps extends
|
|
87
|
+
interface IconProps extends react__default.ComponentPropsWithRef<'svg'> {
|
|
88
88
|
type: IconType;
|
|
89
89
|
size?: number;
|
|
90
90
|
}
|
|
91
|
-
declare const Icon:
|
|
91
|
+
declare const Icon: react__default.FC<IconProps>;
|
|
92
92
|
|
|
93
93
|
interface ICta {
|
|
94
94
|
label?: string;
|
|
@@ -126,6 +126,9 @@ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
126
126
|
icon?: IconType;
|
|
127
127
|
logo?: IPicture;
|
|
128
128
|
isActive?: boolean;
|
|
129
|
+
renderLink?: (props: AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
130
|
+
children: ReactNode;
|
|
131
|
+
}) => ReactNode;
|
|
129
132
|
}
|
|
130
133
|
|
|
131
134
|
declare const Button: React.FC<ButtonProps>;
|
|
@@ -273,24 +276,114 @@ interface SidebarProps {
|
|
|
273
276
|
|
|
274
277
|
declare const Sidebar: ({ categories, isMobile, onToggle, selectedIndex, onSelect, }: SidebarProps) => react_jsx_runtime.JSX.Element;
|
|
275
278
|
|
|
276
|
-
interface
|
|
279
|
+
interface UpcomingEventCardProps {
|
|
277
280
|
className?: string;
|
|
278
|
-
|
|
281
|
+
image?: IPicture;
|
|
282
|
+
date?: string;
|
|
283
|
+
title?: string;
|
|
284
|
+
description?: string;
|
|
285
|
+
location?: string;
|
|
286
|
+
cta?: ICta & {
|
|
287
|
+
icon?: IconType;
|
|
288
|
+
};
|
|
289
|
+
direction?: 'vertical' | 'horizontal';
|
|
290
|
+
showImage?: boolean;
|
|
279
291
|
}
|
|
280
292
|
|
|
281
|
-
declare const
|
|
293
|
+
declare const UpcomingEventCard: ({ className, image, date, title, location, description, cta, direction, showImage, }: UpcomingEventCardProps) => react_jsx_runtime.JSX.Element;
|
|
294
|
+
|
|
295
|
+
type BadgeBaseProps = {
|
|
296
|
+
children?: ReactNode;
|
|
297
|
+
variant?: 'default';
|
|
298
|
+
size?: 'sm' | 'md';
|
|
299
|
+
icon?: IconProps;
|
|
300
|
+
iconOnly?: boolean;
|
|
301
|
+
live?: 'polite' | 'assertive' | 'off';
|
|
302
|
+
};
|
|
303
|
+
type NonClickableBadgeProps = BadgeBaseProps & HTMLAttributes<HTMLSpanElement> & {
|
|
304
|
+
clickable?: false;
|
|
305
|
+
};
|
|
306
|
+
type ClickableBadgeProps = BadgeBaseProps & ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
307
|
+
clickable: true;
|
|
308
|
+
};
|
|
309
|
+
type BadgeProps = NonClickableBadgeProps | ClickableBadgeProps;
|
|
310
|
+
|
|
311
|
+
declare const Badge: react.ForwardRefExoticComponent<BadgeProps & react.RefAttributes<HTMLButtonElement | HTMLSpanElement>>;
|
|
312
|
+
|
|
313
|
+
interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'> {
|
|
314
|
+
label?: string;
|
|
315
|
+
helperText?: string;
|
|
316
|
+
error?: string;
|
|
317
|
+
startAdornment?: ReactNode;
|
|
318
|
+
endAdornment?: ReactNode;
|
|
319
|
+
endAction?: ReactNode;
|
|
320
|
+
hideLabel?: boolean;
|
|
321
|
+
inputClassName?: string;
|
|
322
|
+
type?: 'text' | 'number' | 'password';
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
declare const Input: react.ForwardRefExoticComponent<InputProps & react.RefAttributes<HTMLInputElement>>;
|
|
326
|
+
|
|
327
|
+
interface ResponsiveSpan {
|
|
328
|
+
xl?: number;
|
|
329
|
+
lg?: number;
|
|
330
|
+
md?: number;
|
|
331
|
+
ml?: number;
|
|
332
|
+
mm?: number;
|
|
333
|
+
xs?: number;
|
|
334
|
+
}
|
|
335
|
+
interface GridProps extends PropsWithChildren {
|
|
336
|
+
columns?: number;
|
|
337
|
+
gap?: number | string;
|
|
338
|
+
className?: string;
|
|
339
|
+
as?: keyof JSX.IntrinsicElements;
|
|
340
|
+
role?: React.AriaRole;
|
|
341
|
+
ariaLabel?: string;
|
|
342
|
+
ariaLabelledBy?: string;
|
|
343
|
+
}
|
|
344
|
+
interface GridItemProps extends PropsWithChildren {
|
|
345
|
+
colSpan?: ResponsiveSpan;
|
|
346
|
+
rowSpan?: ResponsiveSpan;
|
|
347
|
+
className?: string;
|
|
348
|
+
as?: keyof JSX.IntrinsicElements;
|
|
349
|
+
role?: React.AriaRole;
|
|
350
|
+
ariaLabel?: string;
|
|
351
|
+
ariaLabelledBy?: string;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
interface NewsCardProps {
|
|
355
|
+
className?: string;
|
|
356
|
+
image?: IPicture;
|
|
357
|
+
tag: string;
|
|
358
|
+
date: {
|
|
359
|
+
label: string;
|
|
360
|
+
value: string;
|
|
361
|
+
};
|
|
362
|
+
title: string;
|
|
363
|
+
description: string;
|
|
364
|
+
cta?: ICtaIcon;
|
|
365
|
+
direction?: 'horizontal' | 'vertical';
|
|
366
|
+
renderLink?: (props: React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
367
|
+
children: React.ReactNode;
|
|
368
|
+
}) => React.ReactNode;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
declare const NewsCard: ({ className, image, date, description, tag, title, cta, direction, renderLink, }: NewsCardProps) => react_jsx_runtime.JSX.Element;
|
|
282
372
|
|
|
283
373
|
interface AnchorProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
284
374
|
isExternal?: boolean;
|
|
375
|
+
renderLink?: (props: AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
376
|
+
children: ReactNode;
|
|
377
|
+
}) => ReactNode;
|
|
285
378
|
}
|
|
286
379
|
|
|
287
|
-
declare const Anchor: ({ children, isExternal, ...props }: AnchorProps) => react_jsx_runtime.JSX.Element;
|
|
380
|
+
declare const Anchor: ({ children, isExternal, renderLink, ...props }: AnchorProps) => react_jsx_runtime.JSX.Element;
|
|
288
381
|
|
|
289
382
|
interface ContainerProps extends HTMLAttributes<HTMLDivElement> {
|
|
290
383
|
children: ReactNode;
|
|
291
384
|
}
|
|
292
385
|
|
|
293
|
-
declare const Container:
|
|
386
|
+
declare const Container: react.ForwardRefExoticComponent<ContainerProps & react.RefAttributes<HTMLDivElement>>;
|
|
294
387
|
|
|
295
388
|
type ConditionalWrapperProps = {
|
|
296
389
|
condition: boolean;
|
|
@@ -561,20 +654,6 @@ type EventListTitleProps = {
|
|
|
561
654
|
children: ReactNode;
|
|
562
655
|
};
|
|
563
656
|
|
|
564
|
-
interface UpcomingEventCardProps {
|
|
565
|
-
className?: string;
|
|
566
|
-
image?: IPicture;
|
|
567
|
-
date?: string;
|
|
568
|
-
title?: string;
|
|
569
|
-
description?: string;
|
|
570
|
-
location?: string;
|
|
571
|
-
cta?: ICta & {
|
|
572
|
-
icon?: IconType;
|
|
573
|
-
};
|
|
574
|
-
direction?: 'vertical' | 'horizontal';
|
|
575
|
-
showImage?: boolean;
|
|
576
|
-
}
|
|
577
|
-
|
|
578
657
|
interface EventListProps extends PropsWithChildren {
|
|
579
658
|
className?: string;
|
|
580
659
|
title?: ReactNode;
|
|
@@ -665,6 +744,102 @@ interface ResourcesGridListProps {
|
|
|
665
744
|
|
|
666
745
|
declare const ResourcesGridList: ({ className, items, categories, defaultView, defaultFilter, defaultSort, }: ResourcesGridListProps) => react_jsx_runtime.JSX.Element;
|
|
667
746
|
|
|
747
|
+
type BlogCardGridTitleProps = {
|
|
748
|
+
children: ReactNode;
|
|
749
|
+
};
|
|
750
|
+
|
|
751
|
+
interface BlogCardGridProps extends PropsWithChildren {
|
|
752
|
+
className?: string;
|
|
753
|
+
title?: ReactNode;
|
|
754
|
+
items: NewsCardProps[];
|
|
755
|
+
cta?: ICtaIcon;
|
|
756
|
+
backgroundColor?: CSSProperties['backgroundColor'];
|
|
757
|
+
hasContainer?: boolean;
|
|
758
|
+
gridProps?: GridProps;
|
|
759
|
+
gridItemProps?: GridItemProps;
|
|
760
|
+
renderLink?: (props: React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
761
|
+
children: React.ReactNode;
|
|
762
|
+
}) => React.ReactNode;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
declare const BlogCardGrid: (({ title, items, backgroundColor, cta, className, hasContainer, gridProps, gridItemProps, renderLink, children, }: BlogCardGridProps) => react_jsx_runtime.JSX.Element) & {
|
|
766
|
+
Title: ({ children }: BlogCardGridTitleProps) => react_jsx_runtime.JSX.Element;
|
|
767
|
+
};
|
|
768
|
+
|
|
769
|
+
type FeaturedNewsHighlightsTitleProps = {
|
|
770
|
+
children: ReactNode;
|
|
771
|
+
};
|
|
772
|
+
|
|
773
|
+
interface FeaturedNewsHighlightsProps extends PropsWithChildren {
|
|
774
|
+
variant?: 'home';
|
|
775
|
+
className?: string;
|
|
776
|
+
title?: ReactNode;
|
|
777
|
+
items: NewsCardProps[];
|
|
778
|
+
cta?: ICtaIcon;
|
|
779
|
+
backgroundColor?: CSSProperties['backgroundColor'];
|
|
780
|
+
hasContainer?: boolean;
|
|
781
|
+
renderLink?: (props: React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
782
|
+
children: React.ReactNode;
|
|
783
|
+
}) => React.ReactNode;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
declare const FeaturedNewsHighlights: (({ variant, title, items, backgroundColor, cta, className, hasContainer, renderLink, children, }: FeaturedNewsHighlightsProps) => react_jsx_runtime.JSX.Element) & {
|
|
787
|
+
Title: ({ children }: FeaturedNewsHighlightsTitleProps) => react_jsx_runtime.JSX.Element;
|
|
788
|
+
};
|
|
789
|
+
|
|
790
|
+
interface NewsCardListProps extends PropsWithChildren {
|
|
791
|
+
className?: string;
|
|
792
|
+
items: NewsCardProps[];
|
|
793
|
+
backgroundColor?: CSSProperties['backgroundColor'];
|
|
794
|
+
searchValue?: string;
|
|
795
|
+
onSearchChange?: (value: string) => void;
|
|
796
|
+
onSearchSubmit?: (value: string) => void;
|
|
797
|
+
searchInputProps?: InputProps;
|
|
798
|
+
currentPage?: number;
|
|
799
|
+
onPageChange?: (page: number) => void;
|
|
800
|
+
totalPages?: number;
|
|
801
|
+
renderLink?: (props: React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
802
|
+
children: React.ReactNode;
|
|
803
|
+
}) => React.ReactNode;
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
declare const NewsCardList: ({ items, backgroundColor, className, currentPage, totalPages, searchValue, onPageChange, onSearchChange, onSearchSubmit, searchInputProps, renderLink, }: NewsCardListProps) => react_jsx_runtime.JSX.Element;
|
|
807
|
+
|
|
808
|
+
type BlogPostBodyProps = {
|
|
809
|
+
children: ReactNode;
|
|
810
|
+
};
|
|
811
|
+
|
|
812
|
+
type BlogPostTitleProps = {
|
|
813
|
+
children: ReactNode;
|
|
814
|
+
};
|
|
815
|
+
|
|
816
|
+
interface BlogPostProps extends PropsWithChildren, Omit<NewsCardProps, 'description' | 'cta' | 'direction'> {
|
|
817
|
+
description: ReactNode;
|
|
818
|
+
relatedArticles?: NewsCardProps[];
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
declare const BlogPost: (({ title, description: body, image, date, tag, relatedArticles, className, children, }: BlogPostProps) => react_jsx_runtime.JSX.Element) & {
|
|
822
|
+
Title: ({ children }: BlogPostTitleProps) => react_jsx_runtime.JSX.Element;
|
|
823
|
+
Body: ({ children }: BlogPostBodyProps) => react_jsx_runtime.JSX.Element;
|
|
824
|
+
};
|
|
825
|
+
|
|
826
|
+
type BlogSearchResultsListSearchProps = {
|
|
827
|
+
children: ReactNode;
|
|
828
|
+
};
|
|
829
|
+
|
|
830
|
+
interface BlogSearchResultsListProps extends PropsWithChildren {
|
|
831
|
+
className?: string;
|
|
832
|
+
searchResult?: ReactNode;
|
|
833
|
+
items: NewsCardProps[];
|
|
834
|
+
searchValue: string;
|
|
835
|
+
onSearchChange: (value: string) => void;
|
|
836
|
+
onSearchSubmit: (value: string) => void;
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
declare const BlogSearchResultsList: (({ items, searchResult, onSearchChange, onSearchSubmit, searchValue, className, children, }: BlogSearchResultsListProps) => react_jsx_runtime.JSX.Element) & {
|
|
840
|
+
Search: ({ children }: BlogSearchResultsListSearchProps) => react_jsx_runtime.JSX.Element;
|
|
841
|
+
};
|
|
842
|
+
|
|
668
843
|
type IntersectionObserverOptions = {
|
|
669
844
|
threshold?: number | number[];
|
|
670
845
|
rootMargin?: string;
|
|
@@ -688,4 +863,4 @@ type SlotMap = Record<string, SlotComponent>;
|
|
|
688
863
|
*/
|
|
689
864
|
declare function resolveCompoundSlots(children: ReactNode, slots: SlotMap): Record<string, ReactNode>;
|
|
690
865
|
|
|
691
|
-
export { Anchor, type AnchorProps, BrandsStrip, type BrandsStripProps, Button, type ButtonProps, Card, CardCollection, type CardCollectionProps, type CardProps, ConditionalWrapper, type ConditionalWrapperProps, ContactModule, type ContactModuleProps, Container, type ContainerProps, CountingCard, type CountingCardProps, EventList, type EventListProps, FilterBar, type FilterBarProps, type FilterOption, Footer, type FooterProps, HeroBanner, HeroBannerCarousel, type HeroBannerCarouselProps, type HeroBannerProps, type ICta, type ICtaHoverLogo, type ICtaIcon, type ICtaLogo, type IPicture, Icon, type IconType, InfoCard, type InfoCardProps,
|
|
866
|
+
export { Anchor, type AnchorProps, Badge, type BadgeProps, BlogCardGrid, type BlogCardGridProps, BlogPost, type BlogPostProps, BlogSearchResultsList, type BlogSearchResultsListProps, BrandsStrip, type BrandsStripProps, Button, type ButtonProps, Card, CardCollection, type CardCollectionProps, type CardProps, ConditionalWrapper, type ConditionalWrapperProps, ContactModule, type ContactModuleProps, Container, type ContainerProps, CountingCard, type CountingCardProps, EventList, type EventListProps, FeaturedNewsHighlights, type FeaturedNewsHighlightsProps, FilterBar, type FilterBarProps, type FilterOption, Footer, type FooterProps, type GridItemProps, type GridProps, HeroBanner, HeroBannerCarousel, type HeroBannerCarouselProps, type HeroBannerProps, type ICta, type ICtaHoverLogo, type ICtaIcon, type ICtaLogo, type IPicture, Icon, type IconType, InfoCard, type InfoCardProps, Input, type InputProps, InternalBrandsTab, type InternalBrandsTabProps, MiniBanner, type MiniBannerProps, MiniSectionCta, type MiniSectionCtaProps, NewsCard, NewsCardList, type NewsCardListProps, type NewsCardProps, Pagination, type PaginationProps, Picture, type PictureProps, PracticeCard, type PracticeCardProps, PracticePathCards, type PracticePathCardsProps, ResourceCardItem, type ResourceCardItemProps, type ResourceItem, type ResourceItemType, type ResourceView, ResourcesGridList, type ResourcesGridListProps, Sidebar, type SidebarCategory, type SidebarProps, type SortOption, Teaser5050With3Text, type Teaser5050With3TextProps, Teaser5050WithCta, type Teaser5050WithCtaProps, TextBody, type TextBodyProps, TextCenterCtaInBottom, type TextCenterCtaInBottomProps, TextEvent, type TextEventProps, UpcomingEventCard, type UpcomingEventCardProps, resolveCompoundSlots, svgs, useIntersectionObserver };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import react__default, { ImgHTMLAttributes, AnchorHTMLAttributes, ReactNode, Ref, HTMLAttributes, ButtonHTMLAttributes, InputHTMLAttributes, PropsWithChildren, JSX, FC, CSSProperties } from 'react';
|
|
4
4
|
|
|
5
5
|
interface IPicture {
|
|
6
6
|
src: string;
|
|
@@ -84,11 +84,11 @@ declare const svgs: {
|
|
|
84
84
|
xWhite: string;
|
|
85
85
|
};
|
|
86
86
|
type IconType = keyof typeof svgs;
|
|
87
|
-
interface IconProps extends
|
|
87
|
+
interface IconProps extends react__default.ComponentPropsWithRef<'svg'> {
|
|
88
88
|
type: IconType;
|
|
89
89
|
size?: number;
|
|
90
90
|
}
|
|
91
|
-
declare const Icon:
|
|
91
|
+
declare const Icon: react__default.FC<IconProps>;
|
|
92
92
|
|
|
93
93
|
interface ICta {
|
|
94
94
|
label?: string;
|
|
@@ -126,6 +126,9 @@ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
126
126
|
icon?: IconType;
|
|
127
127
|
logo?: IPicture;
|
|
128
128
|
isActive?: boolean;
|
|
129
|
+
renderLink?: (props: AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
130
|
+
children: ReactNode;
|
|
131
|
+
}) => ReactNode;
|
|
129
132
|
}
|
|
130
133
|
|
|
131
134
|
declare const Button: React.FC<ButtonProps>;
|
|
@@ -273,24 +276,114 @@ interface SidebarProps {
|
|
|
273
276
|
|
|
274
277
|
declare const Sidebar: ({ categories, isMobile, onToggle, selectedIndex, onSelect, }: SidebarProps) => react_jsx_runtime.JSX.Element;
|
|
275
278
|
|
|
276
|
-
interface
|
|
279
|
+
interface UpcomingEventCardProps {
|
|
277
280
|
className?: string;
|
|
278
|
-
|
|
281
|
+
image?: IPicture;
|
|
282
|
+
date?: string;
|
|
283
|
+
title?: string;
|
|
284
|
+
description?: string;
|
|
285
|
+
location?: string;
|
|
286
|
+
cta?: ICta & {
|
|
287
|
+
icon?: IconType;
|
|
288
|
+
};
|
|
289
|
+
direction?: 'vertical' | 'horizontal';
|
|
290
|
+
showImage?: boolean;
|
|
279
291
|
}
|
|
280
292
|
|
|
281
|
-
declare const
|
|
293
|
+
declare const UpcomingEventCard: ({ className, image, date, title, location, description, cta, direction, showImage, }: UpcomingEventCardProps) => react_jsx_runtime.JSX.Element;
|
|
294
|
+
|
|
295
|
+
type BadgeBaseProps = {
|
|
296
|
+
children?: ReactNode;
|
|
297
|
+
variant?: 'default';
|
|
298
|
+
size?: 'sm' | 'md';
|
|
299
|
+
icon?: IconProps;
|
|
300
|
+
iconOnly?: boolean;
|
|
301
|
+
live?: 'polite' | 'assertive' | 'off';
|
|
302
|
+
};
|
|
303
|
+
type NonClickableBadgeProps = BadgeBaseProps & HTMLAttributes<HTMLSpanElement> & {
|
|
304
|
+
clickable?: false;
|
|
305
|
+
};
|
|
306
|
+
type ClickableBadgeProps = BadgeBaseProps & ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
307
|
+
clickable: true;
|
|
308
|
+
};
|
|
309
|
+
type BadgeProps = NonClickableBadgeProps | ClickableBadgeProps;
|
|
310
|
+
|
|
311
|
+
declare const Badge: react.ForwardRefExoticComponent<BadgeProps & react.RefAttributes<HTMLButtonElement | HTMLSpanElement>>;
|
|
312
|
+
|
|
313
|
+
interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'> {
|
|
314
|
+
label?: string;
|
|
315
|
+
helperText?: string;
|
|
316
|
+
error?: string;
|
|
317
|
+
startAdornment?: ReactNode;
|
|
318
|
+
endAdornment?: ReactNode;
|
|
319
|
+
endAction?: ReactNode;
|
|
320
|
+
hideLabel?: boolean;
|
|
321
|
+
inputClassName?: string;
|
|
322
|
+
type?: 'text' | 'number' | 'password';
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
declare const Input: react.ForwardRefExoticComponent<InputProps & react.RefAttributes<HTMLInputElement>>;
|
|
326
|
+
|
|
327
|
+
interface ResponsiveSpan {
|
|
328
|
+
xl?: number;
|
|
329
|
+
lg?: number;
|
|
330
|
+
md?: number;
|
|
331
|
+
ml?: number;
|
|
332
|
+
mm?: number;
|
|
333
|
+
xs?: number;
|
|
334
|
+
}
|
|
335
|
+
interface GridProps extends PropsWithChildren {
|
|
336
|
+
columns?: number;
|
|
337
|
+
gap?: number | string;
|
|
338
|
+
className?: string;
|
|
339
|
+
as?: keyof JSX.IntrinsicElements;
|
|
340
|
+
role?: React.AriaRole;
|
|
341
|
+
ariaLabel?: string;
|
|
342
|
+
ariaLabelledBy?: string;
|
|
343
|
+
}
|
|
344
|
+
interface GridItemProps extends PropsWithChildren {
|
|
345
|
+
colSpan?: ResponsiveSpan;
|
|
346
|
+
rowSpan?: ResponsiveSpan;
|
|
347
|
+
className?: string;
|
|
348
|
+
as?: keyof JSX.IntrinsicElements;
|
|
349
|
+
role?: React.AriaRole;
|
|
350
|
+
ariaLabel?: string;
|
|
351
|
+
ariaLabelledBy?: string;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
interface NewsCardProps {
|
|
355
|
+
className?: string;
|
|
356
|
+
image?: IPicture;
|
|
357
|
+
tag: string;
|
|
358
|
+
date: {
|
|
359
|
+
label: string;
|
|
360
|
+
value: string;
|
|
361
|
+
};
|
|
362
|
+
title: string;
|
|
363
|
+
description: string;
|
|
364
|
+
cta?: ICtaIcon;
|
|
365
|
+
direction?: 'horizontal' | 'vertical';
|
|
366
|
+
renderLink?: (props: React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
367
|
+
children: React.ReactNode;
|
|
368
|
+
}) => React.ReactNode;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
declare const NewsCard: ({ className, image, date, description, tag, title, cta, direction, renderLink, }: NewsCardProps) => react_jsx_runtime.JSX.Element;
|
|
282
372
|
|
|
283
373
|
interface AnchorProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
284
374
|
isExternal?: boolean;
|
|
375
|
+
renderLink?: (props: AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
376
|
+
children: ReactNode;
|
|
377
|
+
}) => ReactNode;
|
|
285
378
|
}
|
|
286
379
|
|
|
287
|
-
declare const Anchor: ({ children, isExternal, ...props }: AnchorProps) => react_jsx_runtime.JSX.Element;
|
|
380
|
+
declare const Anchor: ({ children, isExternal, renderLink, ...props }: AnchorProps) => react_jsx_runtime.JSX.Element;
|
|
288
381
|
|
|
289
382
|
interface ContainerProps extends HTMLAttributes<HTMLDivElement> {
|
|
290
383
|
children: ReactNode;
|
|
291
384
|
}
|
|
292
385
|
|
|
293
|
-
declare const Container:
|
|
386
|
+
declare const Container: react.ForwardRefExoticComponent<ContainerProps & react.RefAttributes<HTMLDivElement>>;
|
|
294
387
|
|
|
295
388
|
type ConditionalWrapperProps = {
|
|
296
389
|
condition: boolean;
|
|
@@ -561,20 +654,6 @@ type EventListTitleProps = {
|
|
|
561
654
|
children: ReactNode;
|
|
562
655
|
};
|
|
563
656
|
|
|
564
|
-
interface UpcomingEventCardProps {
|
|
565
|
-
className?: string;
|
|
566
|
-
image?: IPicture;
|
|
567
|
-
date?: string;
|
|
568
|
-
title?: string;
|
|
569
|
-
description?: string;
|
|
570
|
-
location?: string;
|
|
571
|
-
cta?: ICta & {
|
|
572
|
-
icon?: IconType;
|
|
573
|
-
};
|
|
574
|
-
direction?: 'vertical' | 'horizontal';
|
|
575
|
-
showImage?: boolean;
|
|
576
|
-
}
|
|
577
|
-
|
|
578
657
|
interface EventListProps extends PropsWithChildren {
|
|
579
658
|
className?: string;
|
|
580
659
|
title?: ReactNode;
|
|
@@ -665,6 +744,102 @@ interface ResourcesGridListProps {
|
|
|
665
744
|
|
|
666
745
|
declare const ResourcesGridList: ({ className, items, categories, defaultView, defaultFilter, defaultSort, }: ResourcesGridListProps) => react_jsx_runtime.JSX.Element;
|
|
667
746
|
|
|
747
|
+
type BlogCardGridTitleProps = {
|
|
748
|
+
children: ReactNode;
|
|
749
|
+
};
|
|
750
|
+
|
|
751
|
+
interface BlogCardGridProps extends PropsWithChildren {
|
|
752
|
+
className?: string;
|
|
753
|
+
title?: ReactNode;
|
|
754
|
+
items: NewsCardProps[];
|
|
755
|
+
cta?: ICtaIcon;
|
|
756
|
+
backgroundColor?: CSSProperties['backgroundColor'];
|
|
757
|
+
hasContainer?: boolean;
|
|
758
|
+
gridProps?: GridProps;
|
|
759
|
+
gridItemProps?: GridItemProps;
|
|
760
|
+
renderLink?: (props: React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
761
|
+
children: React.ReactNode;
|
|
762
|
+
}) => React.ReactNode;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
declare const BlogCardGrid: (({ title, items, backgroundColor, cta, className, hasContainer, gridProps, gridItemProps, renderLink, children, }: BlogCardGridProps) => react_jsx_runtime.JSX.Element) & {
|
|
766
|
+
Title: ({ children }: BlogCardGridTitleProps) => react_jsx_runtime.JSX.Element;
|
|
767
|
+
};
|
|
768
|
+
|
|
769
|
+
type FeaturedNewsHighlightsTitleProps = {
|
|
770
|
+
children: ReactNode;
|
|
771
|
+
};
|
|
772
|
+
|
|
773
|
+
interface FeaturedNewsHighlightsProps extends PropsWithChildren {
|
|
774
|
+
variant?: 'home';
|
|
775
|
+
className?: string;
|
|
776
|
+
title?: ReactNode;
|
|
777
|
+
items: NewsCardProps[];
|
|
778
|
+
cta?: ICtaIcon;
|
|
779
|
+
backgroundColor?: CSSProperties['backgroundColor'];
|
|
780
|
+
hasContainer?: boolean;
|
|
781
|
+
renderLink?: (props: React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
782
|
+
children: React.ReactNode;
|
|
783
|
+
}) => React.ReactNode;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
declare const FeaturedNewsHighlights: (({ variant, title, items, backgroundColor, cta, className, hasContainer, renderLink, children, }: FeaturedNewsHighlightsProps) => react_jsx_runtime.JSX.Element) & {
|
|
787
|
+
Title: ({ children }: FeaturedNewsHighlightsTitleProps) => react_jsx_runtime.JSX.Element;
|
|
788
|
+
};
|
|
789
|
+
|
|
790
|
+
interface NewsCardListProps extends PropsWithChildren {
|
|
791
|
+
className?: string;
|
|
792
|
+
items: NewsCardProps[];
|
|
793
|
+
backgroundColor?: CSSProperties['backgroundColor'];
|
|
794
|
+
searchValue?: string;
|
|
795
|
+
onSearchChange?: (value: string) => void;
|
|
796
|
+
onSearchSubmit?: (value: string) => void;
|
|
797
|
+
searchInputProps?: InputProps;
|
|
798
|
+
currentPage?: number;
|
|
799
|
+
onPageChange?: (page: number) => void;
|
|
800
|
+
totalPages?: number;
|
|
801
|
+
renderLink?: (props: React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
802
|
+
children: React.ReactNode;
|
|
803
|
+
}) => React.ReactNode;
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
declare const NewsCardList: ({ items, backgroundColor, className, currentPage, totalPages, searchValue, onPageChange, onSearchChange, onSearchSubmit, searchInputProps, renderLink, }: NewsCardListProps) => react_jsx_runtime.JSX.Element;
|
|
807
|
+
|
|
808
|
+
type BlogPostBodyProps = {
|
|
809
|
+
children: ReactNode;
|
|
810
|
+
};
|
|
811
|
+
|
|
812
|
+
type BlogPostTitleProps = {
|
|
813
|
+
children: ReactNode;
|
|
814
|
+
};
|
|
815
|
+
|
|
816
|
+
interface BlogPostProps extends PropsWithChildren, Omit<NewsCardProps, 'description' | 'cta' | 'direction'> {
|
|
817
|
+
description: ReactNode;
|
|
818
|
+
relatedArticles?: NewsCardProps[];
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
declare const BlogPost: (({ title, description: body, image, date, tag, relatedArticles, className, children, }: BlogPostProps) => react_jsx_runtime.JSX.Element) & {
|
|
822
|
+
Title: ({ children }: BlogPostTitleProps) => react_jsx_runtime.JSX.Element;
|
|
823
|
+
Body: ({ children }: BlogPostBodyProps) => react_jsx_runtime.JSX.Element;
|
|
824
|
+
};
|
|
825
|
+
|
|
826
|
+
type BlogSearchResultsListSearchProps = {
|
|
827
|
+
children: ReactNode;
|
|
828
|
+
};
|
|
829
|
+
|
|
830
|
+
interface BlogSearchResultsListProps extends PropsWithChildren {
|
|
831
|
+
className?: string;
|
|
832
|
+
searchResult?: ReactNode;
|
|
833
|
+
items: NewsCardProps[];
|
|
834
|
+
searchValue: string;
|
|
835
|
+
onSearchChange: (value: string) => void;
|
|
836
|
+
onSearchSubmit: (value: string) => void;
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
declare const BlogSearchResultsList: (({ items, searchResult, onSearchChange, onSearchSubmit, searchValue, className, children, }: BlogSearchResultsListProps) => react_jsx_runtime.JSX.Element) & {
|
|
840
|
+
Search: ({ children }: BlogSearchResultsListSearchProps) => react_jsx_runtime.JSX.Element;
|
|
841
|
+
};
|
|
842
|
+
|
|
668
843
|
type IntersectionObserverOptions = {
|
|
669
844
|
threshold?: number | number[];
|
|
670
845
|
rootMargin?: string;
|
|
@@ -688,4 +863,4 @@ type SlotMap = Record<string, SlotComponent>;
|
|
|
688
863
|
*/
|
|
689
864
|
declare function resolveCompoundSlots(children: ReactNode, slots: SlotMap): Record<string, ReactNode>;
|
|
690
865
|
|
|
691
|
-
export { Anchor, type AnchorProps, BrandsStrip, type BrandsStripProps, Button, type ButtonProps, Card, CardCollection, type CardCollectionProps, type CardProps, ConditionalWrapper, type ConditionalWrapperProps, ContactModule, type ContactModuleProps, Container, type ContainerProps, CountingCard, type CountingCardProps, EventList, type EventListProps, FilterBar, type FilterBarProps, type FilterOption, Footer, type FooterProps, HeroBanner, HeroBannerCarousel, type HeroBannerCarouselProps, type HeroBannerProps, type ICta, type ICtaHoverLogo, type ICtaIcon, type ICtaLogo, type IPicture, Icon, type IconType, InfoCard, type InfoCardProps,
|
|
866
|
+
export { Anchor, type AnchorProps, Badge, type BadgeProps, BlogCardGrid, type BlogCardGridProps, BlogPost, type BlogPostProps, BlogSearchResultsList, type BlogSearchResultsListProps, BrandsStrip, type BrandsStripProps, Button, type ButtonProps, Card, CardCollection, type CardCollectionProps, type CardProps, ConditionalWrapper, type ConditionalWrapperProps, ContactModule, type ContactModuleProps, Container, type ContainerProps, CountingCard, type CountingCardProps, EventList, type EventListProps, FeaturedNewsHighlights, type FeaturedNewsHighlightsProps, FilterBar, type FilterBarProps, type FilterOption, Footer, type FooterProps, type GridItemProps, type GridProps, HeroBanner, HeroBannerCarousel, type HeroBannerCarouselProps, type HeroBannerProps, type ICta, type ICtaHoverLogo, type ICtaIcon, type ICtaLogo, type IPicture, Icon, type IconType, InfoCard, type InfoCardProps, Input, type InputProps, InternalBrandsTab, type InternalBrandsTabProps, MiniBanner, type MiniBannerProps, MiniSectionCta, type MiniSectionCtaProps, NewsCard, NewsCardList, type NewsCardListProps, type NewsCardProps, Pagination, type PaginationProps, Picture, type PictureProps, PracticeCard, type PracticeCardProps, PracticePathCards, type PracticePathCardsProps, ResourceCardItem, type ResourceCardItemProps, type ResourceItem, type ResourceItemType, type ResourceView, ResourcesGridList, type ResourcesGridListProps, Sidebar, type SidebarCategory, type SidebarProps, type SortOption, Teaser5050With3Text, type Teaser5050With3TextProps, Teaser5050WithCta, type Teaser5050WithCtaProps, TextBody, type TextBodyProps, TextCenterCtaInBottom, type TextCenterCtaInBottomProps, TextEvent, type TextEventProps, UpcomingEventCard, type UpcomingEventCardProps, resolveCompoundSlots, svgs, useIntersectionObserver };
|