@digital-b2c/coreui-kit 0.17.15 → 0.17.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/dist/index.cjs +40 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +80 -23
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +29 -7
- package/dist/index.d.ts +29 -7
- package/dist/index.mjs +40 -19
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -443,6 +443,20 @@ type ConditionalWrapperProps = {
|
|
|
443
443
|
|
|
444
444
|
declare const ConditionalWrapper: React.FC<PropsWithChildren<ConditionalWrapperProps>>;
|
|
445
445
|
|
|
446
|
+
type TextElement = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'div' | 'span';
|
|
447
|
+
interface TextProps extends HTMLAttributes<HTMLElement> {
|
|
448
|
+
tag?: TextElement;
|
|
449
|
+
children: ReactNode;
|
|
450
|
+
className?: string;
|
|
451
|
+
promoteToH1?: boolean;
|
|
452
|
+
ref?: Ref<HTMLElement>;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
declare const Text: {
|
|
456
|
+
({ tag, promoteToH1, ref, children, ...props }: TextProps): react.JSX.Element;
|
|
457
|
+
displayName: string;
|
|
458
|
+
};
|
|
459
|
+
|
|
446
460
|
type IColTextMenuItem = ICta;
|
|
447
461
|
interface ColTextMenuProps extends IColTextMenuItem {
|
|
448
462
|
className?: string;
|
|
@@ -676,10 +690,11 @@ interface MiniBannerProps {
|
|
|
676
690
|
title?: string;
|
|
677
691
|
};
|
|
678
692
|
};
|
|
693
|
+
promoteToH1?: boolean;
|
|
679
694
|
children?: ReactNode;
|
|
680
695
|
}
|
|
681
696
|
|
|
682
|
-
declare const MiniBanner: (({ className, variant, pretitle, title, subtitle, logo, background, cta, children, }: MiniBannerProps) => react.JSX.Element) & {
|
|
697
|
+
declare const MiniBanner: (({ className, variant, pretitle, title, subtitle, logo, background, cta, promoteToH1, children, }: MiniBannerProps) => react.JSX.Element) & {
|
|
683
698
|
Title: ({ children }: MiniBannerTitleProps) => react.JSX.Element;
|
|
684
699
|
Subtitle: ({ children }: MiniBannerSubtitleProps) => react.JSX.Element;
|
|
685
700
|
GoBack: ({ children }: MiniBannerGoBackProps) => react.JSX.Element;
|
|
@@ -696,14 +711,18 @@ type MiniSectionCtaTitleProps = {
|
|
|
696
711
|
interface MiniSectionCtaProps {
|
|
697
712
|
className?: string;
|
|
698
713
|
variant?: 'headerCTA' | 'BgColorBlack' | 'BgColorGrey' | 'infoCallout' | 'miniTextCenterCta';
|
|
699
|
-
theme?: 'light' | '
|
|
714
|
+
theme?: 'dark' | 'light' | 'gray';
|
|
700
715
|
cta?: ICta;
|
|
701
716
|
title?: ReactNode;
|
|
702
717
|
subtitle?: ReactNode;
|
|
703
718
|
children?: ReactNode;
|
|
719
|
+
moduleStyles?: {
|
|
720
|
+
color?: string;
|
|
721
|
+
backgroundColor?: string;
|
|
722
|
+
};
|
|
704
723
|
}
|
|
705
724
|
|
|
706
|
-
declare const MiniSectionCta: (({ className, variant, theme, title, subtitle, cta, children, }: MiniSectionCtaProps) => react.JSX.Element) & {
|
|
725
|
+
declare const MiniSectionCta: (({ className, variant, theme, title, subtitle, cta, moduleStyles, children, }: MiniSectionCtaProps) => react.JSX.Element) & {
|
|
707
726
|
Title: ({ children }: MiniSectionCtaTitleProps) => react.JSX.Element;
|
|
708
727
|
Subtitle: ({ children }: MiniSectionCtaSubtitleProps) => react.JSX.Element;
|
|
709
728
|
};
|
|
@@ -826,10 +845,13 @@ interface Teaser5050WithCtaProps {
|
|
|
826
845
|
ctas: ICtaLogo[];
|
|
827
846
|
image?: PictureProps;
|
|
828
847
|
children?: ReactNode;
|
|
829
|
-
|
|
848
|
+
moduleStyles?: {
|
|
849
|
+
color?: string;
|
|
850
|
+
backgroundColor?: string;
|
|
851
|
+
};
|
|
830
852
|
}
|
|
831
853
|
|
|
832
|
-
declare const Teaser5050WithCta: (({ className, variant, title, subtitle, ctas, image, children,
|
|
854
|
+
declare const Teaser5050WithCta: (({ className, variant, title, subtitle, ctas, image, children, moduleStyles, }: Teaser5050WithCtaProps) => react.JSX.Element) & {
|
|
833
855
|
Title: ({ children }: Teaser5050WithCtaTitleProps) => react.JSX.Element;
|
|
834
856
|
Subtitle: ({ children }: Teaser5050WithCtaSubtitleProps) => react.JSX.Element;
|
|
835
857
|
};
|
|
@@ -849,7 +871,7 @@ interface EventListProps extends PropsWithChildren {
|
|
|
849
871
|
cta?: ICta & {
|
|
850
872
|
icon?: IconType;
|
|
851
873
|
};
|
|
852
|
-
backgroundColor?:
|
|
874
|
+
backgroundColor?: 'light' | 'dark' | 'gray';
|
|
853
875
|
variant?: 'internalEventList';
|
|
854
876
|
}
|
|
855
877
|
|
|
@@ -1158,4 +1180,4 @@ type SlotMap = Record<string, SlotComponent>;
|
|
|
1158
1180
|
*/
|
|
1159
1181
|
declare function resolveCompoundSlots(children: ReactNode, slots: SlotMap): Record<string, ReactNode>;
|
|
1160
1182
|
|
|
1161
|
-
export { Anchor, type AnchorProps, Badge, type BadgeProps, BlogCardGrid, type BlogCardGridProps, BlogPost, BlogPostContent, type BlogPostContentProps, type BlogPostProps, BlogSearchResultsList, type BlogSearchResultsListProps, BrandsStrip, type BrandsStripProps, Button, type ButtonProps, Card, CardCollection, type CardCollectionProps, type CardProps, ColTextMenu, type ColTextMenuProps, 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, GlobalSearchResultsList, type GlobalSearchResultsListProps, type GridItemProps, type GridProps, HeroBanner, HeroBannerCarousel, type HeroBannerCarouselProps, type HeroBannerProps, type IColTextMenuItem, type ICta, type ICtaHoverLogo, type ICtaIcon, type ICtaLogo, type IFooterSupportGroup, type IPicture, type ITwoColTextMenuSection, Icon, type IconType, InfoCard, type InfoCardProps, Input, type InputProps, InternalBrandsTab, type InternalBrandsTabProps, type UserMenuItem as InternalNavMenuItem, Loader, type LoaderProps, MiniBanner, type MiniBannerProps, MiniSectionCta, type MiniSectionCtaProps, type NavItem, Navigation, type NavigationBrandLogos, type NavigationProps, type UserMenuUser as NavigationUser, NewsCard, NewsCardList, type NewsCardListProps, type NewsCardProps, PageLoader, type PageLoaderProps, Pagination, type PaginationProps, Picture, type PictureProps, PracticeCard, type PracticeCardProps, PracticePathCards, type PracticePathCardsProps, QuoteSectionBlock, type QuoteSectionBlockProps, ResourceCardItem, type ResourceCardItemProps, type ResourceItem, type ResourceItemType, type ResourceView, ResourcesGridList, type ResourcesGridListProps, Search, type SearchProps, Sidebar, type SidebarCategory, type SidebarProps, type SortOption, type TButtonVariant, Teaser5050With3Text, type Teaser5050With3TextProps, Teaser5050WithCta, type Teaser5050WithCtaProps, TextBody, type TextBodyProps, TextCenterCtaInBottom, type TextCenterCtaInBottomProps, TextCenterWithMedia, type TextCenterWithMediaProps, TextEvent, type TextEventProps, TwoColTextMenu, type TwoColTextMenuProps, UpcomingEventCard, type UpcomingEventCardProps, UserMenu, type UserMenuItem, type UserMenuProps, type UserMenuUser, resolveCompoundSlots, svgs, useActivePath, useIntersectionObserver, useIsAtTop };
|
|
1183
|
+
export { Anchor, type AnchorProps, Badge, type BadgeProps, BlogCardGrid, type BlogCardGridProps, BlogPost, BlogPostContent, type BlogPostContentProps, type BlogPostProps, BlogSearchResultsList, type BlogSearchResultsListProps, BrandsStrip, type BrandsStripProps, Button, type ButtonProps, Card, CardCollection, type CardCollectionProps, type CardProps, ColTextMenu, type ColTextMenuProps, 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, GlobalSearchResultsList, type GlobalSearchResultsListProps, type GridItemProps, type GridProps, HeroBanner, HeroBannerCarousel, type HeroBannerCarouselProps, type HeroBannerProps, type IColTextMenuItem, type ICta, type ICtaHoverLogo, type ICtaIcon, type ICtaLogo, type IFooterSupportGroup, type IPicture, type ITwoColTextMenuSection, Icon, type IconType, InfoCard, type InfoCardProps, Input, type InputProps, InternalBrandsTab, type InternalBrandsTabProps, type UserMenuItem as InternalNavMenuItem, Loader, type LoaderProps, MiniBanner, type MiniBannerProps, MiniSectionCta, type MiniSectionCtaProps, type NavItem, Navigation, type NavigationBrandLogos, type NavigationProps, type UserMenuUser as NavigationUser, NewsCard, NewsCardList, type NewsCardListProps, type NewsCardProps, PageLoader, type PageLoaderProps, Pagination, type PaginationProps, Picture, type PictureProps, PracticeCard, type PracticeCardProps, PracticePathCards, type PracticePathCardsProps, QuoteSectionBlock, type QuoteSectionBlockProps, ResourceCardItem, type ResourceCardItemProps, type ResourceItem, type ResourceItemType, type ResourceView, ResourcesGridList, type ResourcesGridListProps, Search, type SearchProps, Sidebar, type SidebarCategory, type SidebarProps, type SortOption, type TButtonVariant, Teaser5050With3Text, type Teaser5050With3TextProps, Teaser5050WithCta, type Teaser5050WithCtaProps, Text, TextBody, type TextBodyProps, TextCenterCtaInBottom, type TextCenterCtaInBottomProps, TextCenterWithMedia, type TextCenterWithMediaProps, TextEvent, type TextEventProps, type TextProps, TwoColTextMenu, type TwoColTextMenuProps, UpcomingEventCard, type UpcomingEventCardProps, UserMenu, type UserMenuItem, type UserMenuProps, type UserMenuUser, resolveCompoundSlots, svgs, useActivePath, useIntersectionObserver, useIsAtTop };
|
package/dist/index.d.ts
CHANGED
|
@@ -443,6 +443,20 @@ type ConditionalWrapperProps = {
|
|
|
443
443
|
|
|
444
444
|
declare const ConditionalWrapper: React.FC<PropsWithChildren<ConditionalWrapperProps>>;
|
|
445
445
|
|
|
446
|
+
type TextElement = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'div' | 'span';
|
|
447
|
+
interface TextProps extends HTMLAttributes<HTMLElement> {
|
|
448
|
+
tag?: TextElement;
|
|
449
|
+
children: ReactNode;
|
|
450
|
+
className?: string;
|
|
451
|
+
promoteToH1?: boolean;
|
|
452
|
+
ref?: Ref<HTMLElement>;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
declare const Text: {
|
|
456
|
+
({ tag, promoteToH1, ref, children, ...props }: TextProps): react.JSX.Element;
|
|
457
|
+
displayName: string;
|
|
458
|
+
};
|
|
459
|
+
|
|
446
460
|
type IColTextMenuItem = ICta;
|
|
447
461
|
interface ColTextMenuProps extends IColTextMenuItem {
|
|
448
462
|
className?: string;
|
|
@@ -676,10 +690,11 @@ interface MiniBannerProps {
|
|
|
676
690
|
title?: string;
|
|
677
691
|
};
|
|
678
692
|
};
|
|
693
|
+
promoteToH1?: boolean;
|
|
679
694
|
children?: ReactNode;
|
|
680
695
|
}
|
|
681
696
|
|
|
682
|
-
declare const MiniBanner: (({ className, variant, pretitle, title, subtitle, logo, background, cta, children, }: MiniBannerProps) => react.JSX.Element) & {
|
|
697
|
+
declare const MiniBanner: (({ className, variant, pretitle, title, subtitle, logo, background, cta, promoteToH1, children, }: MiniBannerProps) => react.JSX.Element) & {
|
|
683
698
|
Title: ({ children }: MiniBannerTitleProps) => react.JSX.Element;
|
|
684
699
|
Subtitle: ({ children }: MiniBannerSubtitleProps) => react.JSX.Element;
|
|
685
700
|
GoBack: ({ children }: MiniBannerGoBackProps) => react.JSX.Element;
|
|
@@ -696,14 +711,18 @@ type MiniSectionCtaTitleProps = {
|
|
|
696
711
|
interface MiniSectionCtaProps {
|
|
697
712
|
className?: string;
|
|
698
713
|
variant?: 'headerCTA' | 'BgColorBlack' | 'BgColorGrey' | 'infoCallout' | 'miniTextCenterCta';
|
|
699
|
-
theme?: 'light' | '
|
|
714
|
+
theme?: 'dark' | 'light' | 'gray';
|
|
700
715
|
cta?: ICta;
|
|
701
716
|
title?: ReactNode;
|
|
702
717
|
subtitle?: ReactNode;
|
|
703
718
|
children?: ReactNode;
|
|
719
|
+
moduleStyles?: {
|
|
720
|
+
color?: string;
|
|
721
|
+
backgroundColor?: string;
|
|
722
|
+
};
|
|
704
723
|
}
|
|
705
724
|
|
|
706
|
-
declare const MiniSectionCta: (({ className, variant, theme, title, subtitle, cta, children, }: MiniSectionCtaProps) => react.JSX.Element) & {
|
|
725
|
+
declare const MiniSectionCta: (({ className, variant, theme, title, subtitle, cta, moduleStyles, children, }: MiniSectionCtaProps) => react.JSX.Element) & {
|
|
707
726
|
Title: ({ children }: MiniSectionCtaTitleProps) => react.JSX.Element;
|
|
708
727
|
Subtitle: ({ children }: MiniSectionCtaSubtitleProps) => react.JSX.Element;
|
|
709
728
|
};
|
|
@@ -826,10 +845,13 @@ interface Teaser5050WithCtaProps {
|
|
|
826
845
|
ctas: ICtaLogo[];
|
|
827
846
|
image?: PictureProps;
|
|
828
847
|
children?: ReactNode;
|
|
829
|
-
|
|
848
|
+
moduleStyles?: {
|
|
849
|
+
color?: string;
|
|
850
|
+
backgroundColor?: string;
|
|
851
|
+
};
|
|
830
852
|
}
|
|
831
853
|
|
|
832
|
-
declare const Teaser5050WithCta: (({ className, variant, title, subtitle, ctas, image, children,
|
|
854
|
+
declare const Teaser5050WithCta: (({ className, variant, title, subtitle, ctas, image, children, moduleStyles, }: Teaser5050WithCtaProps) => react.JSX.Element) & {
|
|
833
855
|
Title: ({ children }: Teaser5050WithCtaTitleProps) => react.JSX.Element;
|
|
834
856
|
Subtitle: ({ children }: Teaser5050WithCtaSubtitleProps) => react.JSX.Element;
|
|
835
857
|
};
|
|
@@ -849,7 +871,7 @@ interface EventListProps extends PropsWithChildren {
|
|
|
849
871
|
cta?: ICta & {
|
|
850
872
|
icon?: IconType;
|
|
851
873
|
};
|
|
852
|
-
backgroundColor?:
|
|
874
|
+
backgroundColor?: 'light' | 'dark' | 'gray';
|
|
853
875
|
variant?: 'internalEventList';
|
|
854
876
|
}
|
|
855
877
|
|
|
@@ -1158,4 +1180,4 @@ type SlotMap = Record<string, SlotComponent>;
|
|
|
1158
1180
|
*/
|
|
1159
1181
|
declare function resolveCompoundSlots(children: ReactNode, slots: SlotMap): Record<string, ReactNode>;
|
|
1160
1182
|
|
|
1161
|
-
export { Anchor, type AnchorProps, Badge, type BadgeProps, BlogCardGrid, type BlogCardGridProps, BlogPost, BlogPostContent, type BlogPostContentProps, type BlogPostProps, BlogSearchResultsList, type BlogSearchResultsListProps, BrandsStrip, type BrandsStripProps, Button, type ButtonProps, Card, CardCollection, type CardCollectionProps, type CardProps, ColTextMenu, type ColTextMenuProps, 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, GlobalSearchResultsList, type GlobalSearchResultsListProps, type GridItemProps, type GridProps, HeroBanner, HeroBannerCarousel, type HeroBannerCarouselProps, type HeroBannerProps, type IColTextMenuItem, type ICta, type ICtaHoverLogo, type ICtaIcon, type ICtaLogo, type IFooterSupportGroup, type IPicture, type ITwoColTextMenuSection, Icon, type IconType, InfoCard, type InfoCardProps, Input, type InputProps, InternalBrandsTab, type InternalBrandsTabProps, type UserMenuItem as InternalNavMenuItem, Loader, type LoaderProps, MiniBanner, type MiniBannerProps, MiniSectionCta, type MiniSectionCtaProps, type NavItem, Navigation, type NavigationBrandLogos, type NavigationProps, type UserMenuUser as NavigationUser, NewsCard, NewsCardList, type NewsCardListProps, type NewsCardProps, PageLoader, type PageLoaderProps, Pagination, type PaginationProps, Picture, type PictureProps, PracticeCard, type PracticeCardProps, PracticePathCards, type PracticePathCardsProps, QuoteSectionBlock, type QuoteSectionBlockProps, ResourceCardItem, type ResourceCardItemProps, type ResourceItem, type ResourceItemType, type ResourceView, ResourcesGridList, type ResourcesGridListProps, Search, type SearchProps, Sidebar, type SidebarCategory, type SidebarProps, type SortOption, type TButtonVariant, Teaser5050With3Text, type Teaser5050With3TextProps, Teaser5050WithCta, type Teaser5050WithCtaProps, TextBody, type TextBodyProps, TextCenterCtaInBottom, type TextCenterCtaInBottomProps, TextCenterWithMedia, type TextCenterWithMediaProps, TextEvent, type TextEventProps, TwoColTextMenu, type TwoColTextMenuProps, UpcomingEventCard, type UpcomingEventCardProps, UserMenu, type UserMenuItem, type UserMenuProps, type UserMenuUser, resolveCompoundSlots, svgs, useActivePath, useIntersectionObserver, useIsAtTop };
|
|
1183
|
+
export { Anchor, type AnchorProps, Badge, type BadgeProps, BlogCardGrid, type BlogCardGridProps, BlogPost, BlogPostContent, type BlogPostContentProps, type BlogPostProps, BlogSearchResultsList, type BlogSearchResultsListProps, BrandsStrip, type BrandsStripProps, Button, type ButtonProps, Card, CardCollection, type CardCollectionProps, type CardProps, ColTextMenu, type ColTextMenuProps, 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, GlobalSearchResultsList, type GlobalSearchResultsListProps, type GridItemProps, type GridProps, HeroBanner, HeroBannerCarousel, type HeroBannerCarouselProps, type HeroBannerProps, type IColTextMenuItem, type ICta, type ICtaHoverLogo, type ICtaIcon, type ICtaLogo, type IFooterSupportGroup, type IPicture, type ITwoColTextMenuSection, Icon, type IconType, InfoCard, type InfoCardProps, Input, type InputProps, InternalBrandsTab, type InternalBrandsTabProps, type UserMenuItem as InternalNavMenuItem, Loader, type LoaderProps, MiniBanner, type MiniBannerProps, MiniSectionCta, type MiniSectionCtaProps, type NavItem, Navigation, type NavigationBrandLogos, type NavigationProps, type UserMenuUser as NavigationUser, NewsCard, NewsCardList, type NewsCardListProps, type NewsCardProps, PageLoader, type PageLoaderProps, Pagination, type PaginationProps, Picture, type PictureProps, PracticeCard, type PracticeCardProps, PracticePathCards, type PracticePathCardsProps, QuoteSectionBlock, type QuoteSectionBlockProps, ResourceCardItem, type ResourceCardItemProps, type ResourceItem, type ResourceItemType, type ResourceView, ResourcesGridList, type ResourcesGridListProps, Search, type SearchProps, Sidebar, type SidebarCategory, type SidebarProps, type SortOption, type TButtonVariant, Teaser5050With3Text, type Teaser5050With3TextProps, Teaser5050WithCta, type Teaser5050WithCtaProps, Text, TextBody, type TextBodyProps, TextCenterCtaInBottom, type TextCenterCtaInBottomProps, TextCenterWithMedia, type TextCenterWithMediaProps, TextEvent, type TextEventProps, type TextProps, TwoColTextMenu, type TwoColTextMenuProps, UpcomingEventCard, type UpcomingEventCardProps, UserMenu, type UserMenuItem, type UserMenuProps, type UserMenuUser, resolveCompoundSlots, svgs, useActivePath, useIntersectionObserver, useIsAtTop };
|
package/dist/index.mjs
CHANGED
|
@@ -763,6 +763,12 @@ var Container = forwardRef(
|
|
|
763
763
|
}
|
|
764
764
|
);
|
|
765
765
|
Container.displayName = "Container";
|
|
766
|
+
var Text = (_a) => {
|
|
767
|
+
var _b = _a, { tag = "p", promoteToH1 = false, ref, children } = _b, props = __objRest(_b, ["tag", "promoteToH1", "ref", "children"]);
|
|
768
|
+
const Component = promoteToH1 ? "h1" : tag;
|
|
769
|
+
return /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({ ref }, props), { children }));
|
|
770
|
+
};
|
|
771
|
+
Text.displayName = "Text";
|
|
766
772
|
|
|
767
773
|
// src/components/Card/Card.module.scss
|
|
768
774
|
var Card_module_default = {
|
|
@@ -1846,7 +1852,7 @@ var NewsCard = ({
|
|
|
1846
1852
|
/* @__PURE__ */ jsx("time", { dateTime: date.value, className: clsx49("news-card-date", NewsCard_module_default["news-card-date"]), children: date.label })
|
|
1847
1853
|
] }),
|
|
1848
1854
|
/* @__PURE__ */ jsxs("div", { className: clsx49("news-card-main-content", NewsCard_module_default["news-card-main-content"]), children: [
|
|
1849
|
-
/* @__PURE__ */ jsx("h3", { className: clsx49("news-card-title", NewsCard_module_default["news-card-title"]), children: title }),
|
|
1855
|
+
/* @__PURE__ */ jsx("h3", { id: `title-${id}`, className: clsx49("news-card-title", NewsCard_module_default["news-card-title"]), children: title }),
|
|
1850
1856
|
typeof description === "string" ? /* @__PURE__ */ jsx("p", { className: clsx49("news-card-description", NewsCard_module_default["news-card-description"]), children: description }) : description,
|
|
1851
1857
|
isRestricted && /* @__PURE__ */ jsx("p", { id: `restricted-${id}`, className: "sr-only", children: "This resource is restricted. You do not have permission to access it." })
|
|
1852
1858
|
] }),
|
|
@@ -1855,9 +1861,7 @@ var NewsCard = ({
|
|
|
1855
1861
|
{
|
|
1856
1862
|
variant: "secondary",
|
|
1857
1863
|
className: clsx49("news-card-cta", NewsCard_module_default["news-card-cta"]),
|
|
1858
|
-
href: cta.url,
|
|
1859
1864
|
icon: cta.icon,
|
|
1860
|
-
isExternal: cta == null ? void 0 : cta.isExternal,
|
|
1861
1865
|
"aria-hidden": "true",
|
|
1862
1866
|
tabIndex: -1,
|
|
1863
1867
|
renderLink: renderLink ? (props) => renderLink(__spreadProps(__spreadValues({}, props), { tabIndex: -1 })) : void 0,
|
|
@@ -2535,12 +2539,6 @@ var LogoBar = ({ className, items }) => {
|
|
|
2535
2539
|
] }) }, key);
|
|
2536
2540
|
}) });
|
|
2537
2541
|
};
|
|
2538
|
-
var Text = (_a) => {
|
|
2539
|
-
var _b = _a, { tag = "p", promoteToH1 = false, ref, children } = _b, props = __objRest(_b, ["tag", "promoteToH1", "ref", "children"]);
|
|
2540
|
-
const Component = promoteToH1 ? "h1" : tag;
|
|
2541
|
-
return /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({ ref }, props), { children }));
|
|
2542
|
-
};
|
|
2543
|
-
Text.displayName = "Text";
|
|
2544
2542
|
var HeroBannerTitle = ({ children }) => {
|
|
2545
2543
|
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
2546
2544
|
};
|
|
@@ -2713,7 +2711,7 @@ var HeroBannerCarousel = ({
|
|
|
2713
2711
|
children: items.map((item, index) => /* @__PURE__ */ jsx(SwiperSlide, { children: /* @__PURE__ */ jsxs("div", { className: HeroBannerCarousel_module_default.card, children: [
|
|
2714
2712
|
item.isNewItem && /* @__PURE__ */ jsx("div", { className: HeroBannerCarousel_module_default.cardCorner, children: isMobile ? /* @__PURE__ */ jsx("span", { className: HeroBannerCarousel_module_default.cardCornerDot }) : /* @__PURE__ */ jsx(Icon, { type: "newIcon", className: HeroBannerCarousel_module_default.cardCornerImage }) }),
|
|
2715
2713
|
/* @__PURE__ */ jsxs("div", { className: HeroBannerCarousel_module_default.cardContent, children: [
|
|
2716
|
-
/* @__PURE__ */ jsx("
|
|
2714
|
+
/* @__PURE__ */ jsx("h2", { className: clsx49(HeroBannerCarousel_module_default.cardTitle, "h3"), children: item.title }),
|
|
2717
2715
|
/* @__PURE__ */ jsxs("div", { className: HeroBannerCarousel_module_default.cardBottom, children: [
|
|
2718
2716
|
/* @__PURE__ */ jsx("div", { className: HeroBannerCarousel_module_default.cardBody, children: item.body }),
|
|
2719
2717
|
item.ctas.length > 0 && /* @__PURE__ */ jsx("div", { className: HeroBannerCarousel_module_default.cardCtaContainer, children: item.ctas.map((cta, ctaIndex) => /* @__PURE__ */ jsx(
|
|
@@ -3090,6 +3088,7 @@ var MiniBanner = ({
|
|
|
3090
3088
|
logo,
|
|
3091
3089
|
background,
|
|
3092
3090
|
cta,
|
|
3091
|
+
promoteToH1 = false,
|
|
3093
3092
|
children
|
|
3094
3093
|
}) => {
|
|
3095
3094
|
var _a, _b, _c, _d, _e;
|
|
@@ -3113,11 +3112,19 @@ var MiniBanner = ({
|
|
|
3113
3112
|
/* @__PURE__ */ jsxs("div", { className: MiniBanner_module_default.textContainer, children: [
|
|
3114
3113
|
(logo == null ? void 0 : logo.src) && /* @__PURE__ */ jsx(Picture, __spreadValues({ className: MiniBanner_module_default.logo }, logo)),
|
|
3115
3114
|
pretitleNode && /* @__PURE__ */ jsx("div", { className: clsx49(MiniBanner_module_default.pretitle, "small"), children: pretitleNode }),
|
|
3116
|
-
/* @__PURE__ */ jsxs("div", { className: MiniBanner_module_default.headingWrapper, children: [
|
|
3115
|
+
(titleNode || goBackNode) && /* @__PURE__ */ jsxs("div", { className: MiniBanner_module_default.headingWrapper, children: [
|
|
3117
3116
|
goBackNode ? React71.cloneElement(goBackNode, {
|
|
3118
3117
|
className: clsx49("back-button", MiniBanner_module_default["back-button"])
|
|
3119
3118
|
}) : null,
|
|
3120
|
-
titleNode && /* @__PURE__ */ jsx(
|
|
3119
|
+
titleNode && /* @__PURE__ */ jsx(
|
|
3120
|
+
Text,
|
|
3121
|
+
{
|
|
3122
|
+
tag: "div",
|
|
3123
|
+
promoteToH1,
|
|
3124
|
+
className: clsx49(MiniBanner_module_default.title, isMiniBannerTextLeft ? "h1" : "h4"),
|
|
3125
|
+
children: titleNode
|
|
3126
|
+
}
|
|
3127
|
+
)
|
|
3121
3128
|
] }),
|
|
3122
3129
|
subtitleNode && /* @__PURE__ */ jsx(
|
|
3123
3130
|
"div",
|
|
@@ -3172,6 +3179,7 @@ var MiniSectionCta_module_default = {
|
|
|
3172
3179
|
subtitle: "MiniSectionCta_module_subtitle",
|
|
3173
3180
|
miniTextCenterCta: "MiniSectionCta_module_miniTextCenterCta",
|
|
3174
3181
|
light: "MiniSectionCta_module_light",
|
|
3182
|
+
gray: "MiniSectionCta_module_gray",
|
|
3175
3183
|
dark: "MiniSectionCta_module_dark",
|
|
3176
3184
|
cta: "MiniSectionCta_module_cta",
|
|
3177
3185
|
BgColorGrey: "MiniSectionCta_module_BgColorGrey"
|
|
@@ -3183,6 +3191,7 @@ var MiniSectionCta = ({
|
|
|
3183
3191
|
title,
|
|
3184
3192
|
subtitle,
|
|
3185
3193
|
cta,
|
|
3194
|
+
moduleStyles,
|
|
3186
3195
|
children
|
|
3187
3196
|
}) => {
|
|
3188
3197
|
var _a, _b;
|
|
@@ -3196,6 +3205,10 @@ var MiniSectionCta = ({
|
|
|
3196
3205
|
"div",
|
|
3197
3206
|
{
|
|
3198
3207
|
className: clsx49(MiniSectionCta_module_default.miniSectionCta, MiniSectionCta_module_default[variant], theme && MiniSectionCta_module_default[theme], className),
|
|
3208
|
+
style: __spreadValues({}, moduleStyles && {
|
|
3209
|
+
"--custom-background-color": moduleStyles.backgroundColor,
|
|
3210
|
+
"--custom-color": moduleStyles.color
|
|
3211
|
+
}),
|
|
3199
3212
|
children: /* @__PURE__ */ jsx(Container, { children: /* @__PURE__ */ jsxs("div", { className: MiniSectionCta_module_default.wrapper, children: [
|
|
3200
3213
|
/* @__PURE__ */ jsxs("div", { className: MiniSectionCta_module_default.col, children: [
|
|
3201
3214
|
titleNode && /* @__PURE__ */ jsx("h2", { className: variant === "BgColorBlack" || variant === "BgColorGrey" ? "h3" : "h2", children: titleNode }),
|
|
@@ -4201,7 +4214,7 @@ var Teaser5050WithCta = ({
|
|
|
4201
4214
|
ctas,
|
|
4202
4215
|
image,
|
|
4203
4216
|
children,
|
|
4204
|
-
|
|
4217
|
+
moduleStyles
|
|
4205
4218
|
}) => {
|
|
4206
4219
|
var _a, _b;
|
|
4207
4220
|
const slots = resolveCompoundSlots(children, {
|
|
@@ -4214,7 +4227,10 @@ var Teaser5050WithCta = ({
|
|
|
4214
4227
|
"div",
|
|
4215
4228
|
{
|
|
4216
4229
|
className: clsx49(Teaser5050WithCta_module_default.teaser5050, Teaser5050WithCta_module_default[variant], className),
|
|
4217
|
-
style: {
|
|
4230
|
+
style: __spreadValues({}, moduleStyles && {
|
|
4231
|
+
"--custom-background-color": moduleStyles.backgroundColor,
|
|
4232
|
+
"--custom-color": moduleStyles.color
|
|
4233
|
+
}),
|
|
4218
4234
|
children: /* @__PURE__ */ jsxs(Container, { className: Teaser5050WithCta_module_default.container, children: [
|
|
4219
4235
|
/* @__PURE__ */ jsxs("div", { className: Teaser5050WithCta_module_default.wrapper, children: [
|
|
4220
4236
|
/* @__PURE__ */ jsxs("div", { className: Teaser5050WithCta_module_default.content, children: [
|
|
@@ -4292,6 +4308,7 @@ var Carousel = (_a) => {
|
|
|
4292
4308
|
// src/widgets/EventList/EventList.module.scss
|
|
4293
4309
|
var EventList_module_default = {
|
|
4294
4310
|
"event-list-module": "EventList_module_event-list-module",
|
|
4311
|
+
gray: "EventList_module_gray",
|
|
4295
4312
|
"event-list-header-container": "EventList_module_event-list-header-container",
|
|
4296
4313
|
"event-list-title": "EventList_module_event-list-title",
|
|
4297
4314
|
"event-list-wrapper": "EventList_module_event-list-wrapper",
|
|
@@ -4337,10 +4354,12 @@ var EventList = ({
|
|
|
4337
4354
|
return /* @__PURE__ */ jsx(
|
|
4338
4355
|
"div",
|
|
4339
4356
|
{
|
|
4340
|
-
className: clsx49(
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4357
|
+
className: clsx49(
|
|
4358
|
+
"event-list-module",
|
|
4359
|
+
EventList_module_default["event-list-module"],
|
|
4360
|
+
backgroundColor && EventList_module_default[backgroundColor],
|
|
4361
|
+
className
|
|
4362
|
+
),
|
|
4344
4363
|
children: /* @__PURE__ */ jsxs(Container, { className: clsx49(EventList_module_default["event-list-container"]), children: [
|
|
4345
4364
|
/* @__PURE__ */ jsxs("div", { className: EventList_module_default["event-list-header-container"], children: [
|
|
4346
4365
|
titleNode && /* @__PURE__ */ jsx("h2", { className: clsx49(EventList_module_default["event-list-title"]), children: titleNode }),
|
|
@@ -5064,6 +5083,7 @@ var NewsCardList = ({
|
|
|
5064
5083
|
className: clsx49("search-input", NewsCardList_module_default["search-input"]),
|
|
5065
5084
|
startAdornment: /* @__PURE__ */ jsx(Icon, { type: "search" }),
|
|
5066
5085
|
placeholder: "Search News",
|
|
5086
|
+
"aria-label": "Search News",
|
|
5067
5087
|
endAction: searchValue ? /* @__PURE__ */ jsx(
|
|
5068
5088
|
Button,
|
|
5069
5089
|
{
|
|
@@ -5219,6 +5239,7 @@ var BlogSearchResultsList = ({
|
|
|
5219
5239
|
className: clsx49("search-input", BlogSearchResultsList_module_default["search-input"]),
|
|
5220
5240
|
startAdornment: /* @__PURE__ */ jsx(Icon, { type: "search" }),
|
|
5221
5241
|
placeholder: "Search News",
|
|
5242
|
+
"aria-label": "Search News",
|
|
5222
5243
|
endAction: searchValue ? /* @__PURE__ */ jsx(
|
|
5223
5244
|
Button,
|
|
5224
5245
|
{
|
|
@@ -5550,6 +5571,6 @@ function useIntersectionObserver({
|
|
|
5550
5571
|
return { observeRef, isVisible };
|
|
5551
5572
|
}
|
|
5552
5573
|
|
|
5553
|
-
export { Anchor, Badge, BlogCardGrid2 as BlogCardGrid, BlogPost2 as BlogPost, BlogPostContent2 as BlogPostContent, BlogSearchResultsList2 as BlogSearchResultsList, BrandsStrip, Button, Card2 as Card, CardCollection2 as CardCollection, ColTextMenu, ConditionalWrapper, ContactModule2 as ContactModule, Container, CountingCard2 as CountingCard, EventList2 as EventList, FeaturedNewsHighlights2 as FeaturedNewsHighlights, FilterBar, Footer, GlobalSearchResultsList2 as GlobalSearchResultsList, HeroBanner2 as HeroBanner, HeroBannerCarousel, Icon, InfoCard2 as InfoCard, Input, InternalBrandsTab2 as InternalBrandsTab, Loader, MiniBanner2 as MiniBanner, MiniSectionCta2 as MiniSectionCta, Navigation3 as Navigation, NewsCard, NewsCardList2 as NewsCardList, PageLoader2 as PageLoader, Pagination, Picture, PracticeCard, PracticePathCards2 as PracticePathCards, QuoteSectionBlock, ResourceCardItem, ResourcesGridList, Search, Sidebar, Teaser5050With3Text2 as Teaser5050With3Text, Teaser5050WithCta2 as Teaser5050WithCta, TextBody2 as TextBody, TextCenterCtaInBottom2 as TextCenterCtaInBottom, TextCenterWithMedia2 as TextCenterWithMedia, TextEvent2 as TextEvent, TwoColTextMenu, UpcomingEventCard, UserMenu, resolveCompoundSlots, svgs, useActivePath, useIntersectionObserver, useIsAtTop };
|
|
5574
|
+
export { Anchor, Badge, BlogCardGrid2 as BlogCardGrid, BlogPost2 as BlogPost, BlogPostContent2 as BlogPostContent, BlogSearchResultsList2 as BlogSearchResultsList, BrandsStrip, Button, Card2 as Card, CardCollection2 as CardCollection, ColTextMenu, ConditionalWrapper, ContactModule2 as ContactModule, Container, CountingCard2 as CountingCard, EventList2 as EventList, FeaturedNewsHighlights2 as FeaturedNewsHighlights, FilterBar, Footer, GlobalSearchResultsList2 as GlobalSearchResultsList, HeroBanner2 as HeroBanner, HeroBannerCarousel, Icon, InfoCard2 as InfoCard, Input, InternalBrandsTab2 as InternalBrandsTab, Loader, MiniBanner2 as MiniBanner, MiniSectionCta2 as MiniSectionCta, Navigation3 as Navigation, NewsCard, NewsCardList2 as NewsCardList, PageLoader2 as PageLoader, Pagination, Picture, PracticeCard, PracticePathCards2 as PracticePathCards, QuoteSectionBlock, ResourceCardItem, ResourcesGridList, Search, Sidebar, Teaser5050With3Text2 as Teaser5050With3Text, Teaser5050WithCta2 as Teaser5050WithCta, Text, TextBody2 as TextBody, TextCenterCtaInBottom2 as TextCenterCtaInBottom, TextCenterWithMedia2 as TextCenterWithMedia, TextEvent2 as TextEvent, TwoColTextMenu, UpcomingEventCard, UserMenu, resolveCompoundSlots, svgs, useActivePath, useIntersectionObserver, useIsAtTop };
|
|
5554
5575
|
//# sourceMappingURL=index.mjs.map
|
|
5555
5576
|
//# sourceMappingURL=index.mjs.map
|