@digital-b2c/coreui-kit 0.17.19 → 0.17.20
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 +16 -51
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +5 -93
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +94 -99
- package/dist/index.d.ts +94 -99
- package/dist/index.mjs +16 -51
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -12
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
|
|
|
@@ -119,7 +118,7 @@ interface BrandsStripProps {
|
|
|
119
118
|
size?: 'small';
|
|
120
119
|
}
|
|
121
120
|
|
|
122
|
-
declare const BrandsStrip: ({ className, variant, title, logos, cta, size, }: BrandsStripProps) =>
|
|
121
|
+
declare const BrandsStrip: ({ className, variant, title, logos, cta, size, }: BrandsStripProps) => react.JSX.Element;
|
|
123
122
|
|
|
124
123
|
declare const ButtonVariantReadOnly: readonly ["primary", "secondary", "ghost", "nofill", "grey", "nofillblack", "shiny", "tabbutton", "navnofillblack", "textmenu"];
|
|
125
124
|
type TButtonVariant = (typeof ButtonVariantReadOnly)[number];
|
|
@@ -159,11 +158,11 @@ interface CardProps {
|
|
|
159
158
|
}
|
|
160
159
|
|
|
161
160
|
declare const Card: {
|
|
162
|
-
({ className, variant, title, subtitle, cta, icon, logo, children, ref, }: CardProps):
|
|
161
|
+
({ className, variant, title, subtitle, cta, icon, logo, children, ref, }: CardProps): react.JSX.Element;
|
|
163
162
|
displayName: string;
|
|
164
163
|
} & {
|
|
165
|
-
Title: ({ children }: CardTitleProps) =>
|
|
166
|
-
Subtitle: ({ children }: CardSubtitleProps) =>
|
|
164
|
+
Title: ({ children }: CardTitleProps) => react.JSX.Element;
|
|
165
|
+
Subtitle: ({ children }: CardSubtitleProps) => react.JSX.Element;
|
|
167
166
|
};
|
|
168
167
|
|
|
169
168
|
type CountingCardTitleProps = {
|
|
@@ -178,8 +177,8 @@ interface CountingCardProps {
|
|
|
178
177
|
children?: ReactNode;
|
|
179
178
|
}
|
|
180
179
|
|
|
181
|
-
declare const CountingCard: (({ className, title, count, image, children }: CountingCardProps) =>
|
|
182
|
-
Title: ({ children }: CountingCardTitleProps) =>
|
|
180
|
+
declare const CountingCard: (({ className, title, count, image, children }: CountingCardProps) => react.JSX.Element) & {
|
|
181
|
+
Title: ({ children }: CountingCardTitleProps) => react.JSX.Element;
|
|
183
182
|
};
|
|
184
183
|
|
|
185
184
|
type ResourceView = 'grid' | 'list';
|
|
@@ -203,7 +202,7 @@ interface ResourceCardItemProps {
|
|
|
203
202
|
}) => React.ReactNode;
|
|
204
203
|
}
|
|
205
204
|
|
|
206
|
-
declare const ResourceCardItem: ({ item, view, variant, renderLink }: ResourceCardItemProps) =>
|
|
205
|
+
declare const ResourceCardItem: ({ item, view, variant, renderLink }: ResourceCardItemProps) => react.JSX.Element;
|
|
207
206
|
|
|
208
207
|
type FilterOption = 'all' | 'pdf' | 'externalLink';
|
|
209
208
|
type SortOption = 'latest' | 'oldest' | 'az' | 'za';
|
|
@@ -219,7 +218,7 @@ interface FilterBarProps {
|
|
|
219
218
|
onSearchChange: (v: string) => void;
|
|
220
219
|
}
|
|
221
220
|
|
|
222
|
-
declare function FilterBar({ view, onViewChange, isMobile, filterValue, onFilterChange, sortValue, onSortChange, searchValue, onSearchChange, }: FilterBarProps):
|
|
221
|
+
declare function FilterBar({ view, onViewChange, isMobile, filterValue, onFilterChange, sortValue, onSortChange, searchValue, onSearchChange, }: FilterBarProps): react.JSX.Element;
|
|
223
222
|
|
|
224
223
|
type InfoCardSubtitleProps = {
|
|
225
224
|
children: ReactNode;
|
|
@@ -238,9 +237,9 @@ interface InfoCardProps {
|
|
|
238
237
|
children?: ReactNode;
|
|
239
238
|
}
|
|
240
239
|
|
|
241
|
-
declare const InfoCard: (({ className, title, subtitle, icon, badge, children }: InfoCardProps) =>
|
|
242
|
-
Title: ({ children }: InfoCardTitleProps) =>
|
|
243
|
-
Subtitle: ({ children }: InfoCardSubtitleProps) =>
|
|
240
|
+
declare const InfoCard: (({ className, title, subtitle, icon, badge, children }: InfoCardProps) => react.JSX.Element) & {
|
|
241
|
+
Title: ({ children }: InfoCardTitleProps) => react.JSX.Element;
|
|
242
|
+
Subtitle: ({ children }: InfoCardSubtitleProps) => react.JSX.Element;
|
|
244
243
|
};
|
|
245
244
|
|
|
246
245
|
interface PaginationProps {
|
|
@@ -261,9 +260,9 @@ interface PaginationProps {
|
|
|
261
260
|
}) => ReactNode;
|
|
262
261
|
}
|
|
263
262
|
|
|
264
|
-
declare const Pagination: ({ className, totalPages, currentPage, loop, hasNumber, disableArrows, onPageChange, showEllipsis, boundaryCount, siblingCount, hidePagesBorder, renderLink, }: PaginationProps) =>
|
|
263
|
+
declare const Pagination: ({ className, totalPages, currentPage, loop, hasNumber, disableArrows, onPageChange, showEllipsis, boundaryCount, siblingCount, hidePagesBorder, renderLink, }: PaginationProps) => react.JSX.Element;
|
|
265
264
|
|
|
266
|
-
declare const Picture: ({ className, ...props }: PictureProps) =>
|
|
265
|
+
declare const Picture: ({ className, ...props }: PictureProps) => react.JSX.Element;
|
|
267
266
|
|
|
268
267
|
interface PracticeCardProps {
|
|
269
268
|
className?: string;
|
|
@@ -272,7 +271,7 @@ interface PracticeCardProps {
|
|
|
272
271
|
image?: IPicture;
|
|
273
272
|
}
|
|
274
273
|
|
|
275
|
-
declare const PracticeCard: ({ className, title, cta, image }: PracticeCardProps) =>
|
|
274
|
+
declare const PracticeCard: ({ className, title, cta, image }: PracticeCardProps) => react.JSX.Element;
|
|
276
275
|
|
|
277
276
|
interface SidebarCategory {
|
|
278
277
|
label: string;
|
|
@@ -289,7 +288,7 @@ interface SidebarProps {
|
|
|
289
288
|
onSelect: (index: number) => void;
|
|
290
289
|
}
|
|
291
290
|
|
|
292
|
-
declare const Sidebar: ({ categories, isMobile, onToggle, selectedIndex, onSelect, }: SidebarProps) =>
|
|
291
|
+
declare const Sidebar: ({ categories, isMobile, onToggle, selectedIndex, onSelect, }: SidebarProps) => react.JSX.Element;
|
|
293
292
|
|
|
294
293
|
interface UpcomingEventCardProps {
|
|
295
294
|
className?: string;
|
|
@@ -305,7 +304,7 @@ interface UpcomingEventCardProps {
|
|
|
305
304
|
showImage?: boolean;
|
|
306
305
|
}
|
|
307
306
|
|
|
308
|
-
declare const UpcomingEventCard: ({ className, image, date, title, location, description, cta, direction, showImage, }: UpcomingEventCardProps) =>
|
|
307
|
+
declare const UpcomingEventCard: ({ className, image, date, title, location, description, cta, direction, showImage, }: UpcomingEventCardProps) => react.JSX.Element;
|
|
309
308
|
|
|
310
309
|
type BadgeBaseProps = {
|
|
311
310
|
children?: ReactNode;
|
|
@@ -385,7 +384,7 @@ interface NewsCardProps {
|
|
|
385
384
|
}) => React.ReactNode;
|
|
386
385
|
}
|
|
387
386
|
|
|
388
|
-
declare const NewsCard: ({ type, className, image, date, description, tag, title, cta, direction, renderLink, }: NewsCardProps) =>
|
|
387
|
+
declare const NewsCard: ({ type, className, image, date, description, tag, title, cta, direction, renderLink, }: NewsCardProps) => react.JSX.Element;
|
|
389
388
|
|
|
390
389
|
type BlogPostContentBodyProps = {
|
|
391
390
|
children: ReactNode;
|
|
@@ -397,8 +396,8 @@ interface BlogPostContentProps {
|
|
|
397
396
|
body?: ReactNode;
|
|
398
397
|
}
|
|
399
398
|
|
|
400
|
-
declare const BlogPostContent: (({ className, body, children }: BlogPostContentProps) =>
|
|
401
|
-
Body: ({ children }: BlogPostContentBodyProps) =>
|
|
399
|
+
declare const BlogPostContent: (({ className, body, children }: BlogPostContentProps) => react.JSX.Element) & {
|
|
400
|
+
Body: ({ children }: BlogPostContentBodyProps) => react.JSX.Element;
|
|
402
401
|
};
|
|
403
402
|
|
|
404
403
|
interface SearchProps {
|
|
@@ -415,7 +414,7 @@ interface SearchProps {
|
|
|
415
414
|
className?: string;
|
|
416
415
|
}
|
|
417
416
|
|
|
418
|
-
declare const Search: ({ placeholder, searchCta, onSearch, variant, className, }: SearchProps) =>
|
|
417
|
+
declare const Search: ({ placeholder, searchCta, onSearch, variant, className, }: SearchProps) => react.JSX.Element;
|
|
419
418
|
|
|
420
419
|
interface AnchorProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
421
420
|
isExternal?: boolean;
|
|
@@ -424,7 +423,7 @@ interface AnchorProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
|
424
423
|
}) => ReactNode;
|
|
425
424
|
}
|
|
426
425
|
|
|
427
|
-
declare const Anchor: ({ children, isExternal, renderLink, ...props }: AnchorProps) =>
|
|
426
|
+
declare const Anchor: ({ children, isExternal, renderLink, ...props }: AnchorProps) => react.JSX.Element;
|
|
428
427
|
|
|
429
428
|
interface ContainerProps extends HTMLAttributes<HTMLDivElement> {
|
|
430
429
|
children: ReactNode;
|
|
@@ -454,7 +453,7 @@ interface TextProps extends HTMLAttributes<HTMLElement> {
|
|
|
454
453
|
}
|
|
455
454
|
|
|
456
455
|
declare const Text: {
|
|
457
|
-
({ tag, promoteToH1, ref, children, ...props }: TextProps):
|
|
456
|
+
({ tag, promoteToH1, ref, children, ...props }: TextProps): react.JSX.Element;
|
|
458
457
|
displayName: string;
|
|
459
458
|
};
|
|
460
459
|
|
|
@@ -465,7 +464,7 @@ interface ColTextMenuProps extends IColTextMenuItem {
|
|
|
465
464
|
}
|
|
466
465
|
|
|
467
466
|
declare const ColTextMenu: {
|
|
468
|
-
({ label, url, isExternal, className, renderLink, }: ColTextMenuProps):
|
|
467
|
+
({ label, url, isExternal, className, renderLink, }: ColTextMenuProps): react.JSX.Element;
|
|
469
468
|
displayName: string;
|
|
470
469
|
};
|
|
471
470
|
|
|
@@ -506,14 +505,14 @@ interface UserMenuProps {
|
|
|
506
505
|
* Escape or outside interaction).
|
|
507
506
|
* - Without `menuItems`, renders a plain link (when `url` is set) or button.
|
|
508
507
|
*/
|
|
509
|
-
declare const UserMenu: ({ user, className, dropUp, fullWidth }: UserMenuProps) =>
|
|
508
|
+
declare const UserMenu: ({ user, className, dropUp, fullWidth }: UserMenuProps) => react.JSX.Element;
|
|
510
509
|
|
|
511
510
|
interface LoaderProps {
|
|
512
511
|
className?: string;
|
|
513
512
|
}
|
|
514
513
|
|
|
515
514
|
declare const Loader: {
|
|
516
|
-
({ className }: LoaderProps):
|
|
515
|
+
({ className }: LoaderProps): react.JSX.Element;
|
|
517
516
|
displayName: string;
|
|
518
517
|
};
|
|
519
518
|
|
|
@@ -536,9 +535,9 @@ interface CardCollectionProps {
|
|
|
536
535
|
theme?: 'dark' | 'light';
|
|
537
536
|
}
|
|
538
537
|
|
|
539
|
-
declare const CardCollection: (({ className, variant, theme, title, subtitle, cards, ctaLabel, children, }: CardCollectionProps) =>
|
|
540
|
-
Title: ({ children }: CardCollectionTitleProps) =>
|
|
541
|
-
Subtitle: ({ children }: CardCollectionSubtitleProps) =>
|
|
538
|
+
declare const CardCollection: (({ className, variant, theme, title, subtitle, cards, ctaLabel, children, }: CardCollectionProps) => react.JSX.Element) & {
|
|
539
|
+
Title: ({ children }: CardCollectionTitleProps) => react.JSX.Element;
|
|
540
|
+
Subtitle: ({ children }: CardCollectionSubtitleProps) => react.JSX.Element;
|
|
542
541
|
};
|
|
543
542
|
|
|
544
543
|
type ContactModuleSubtitleProps = {
|
|
@@ -560,9 +559,9 @@ interface ContactModuleProps {
|
|
|
560
559
|
animateBlur?: boolean;
|
|
561
560
|
}
|
|
562
561
|
|
|
563
|
-
declare const ContactModule: (({ className, children, title, subtitle, ctas, image, blurred, animateBlur, }: ContactModuleProps) =>
|
|
564
|
-
Title: ({ children }: ContactModuleTitleProps) =>
|
|
565
|
-
Subtitle: ({ children }: ContactModuleSubtitleProps) =>
|
|
562
|
+
declare const ContactModule: (({ className, children, title, subtitle, ctas, image, blurred, animateBlur, }: ContactModuleProps) => react.JSX.Element) & {
|
|
563
|
+
Title: ({ children }: ContactModuleTitleProps) => react.JSX.Element;
|
|
564
|
+
Subtitle: ({ children }: ContactModuleSubtitleProps) => react.JSX.Element;
|
|
566
565
|
};
|
|
567
566
|
|
|
568
567
|
interface IFooterLink {
|
|
@@ -588,7 +587,7 @@ interface FooterProps {
|
|
|
588
587
|
supportContacts?: IFooterSupportGroup[];
|
|
589
588
|
}
|
|
590
589
|
|
|
591
|
-
declare const Footer: ({ className, supporters, navigationLinks, disclaimer, copyright, children, supportContacts, }: FooterProps) =>
|
|
590
|
+
declare const Footer: ({ className, supporters, navigationLinks, disclaimer, copyright, children, supportContacts, }: FooterProps) => react.JSX.Element;
|
|
592
591
|
|
|
593
592
|
type HeroBannerSubtitleProps = {
|
|
594
593
|
children: ReactNode;
|
|
@@ -615,9 +614,9 @@ interface HeroBannerProps {
|
|
|
615
614
|
type?: 'internal' | 'external';
|
|
616
615
|
}
|
|
617
616
|
|
|
618
|
-
declare const HeroBanner: (({ className, variant, title, subtitle, backgroundImage, logo, cta, ctaLogo, brands, promoteToH1, type, children, }: HeroBannerProps) =>
|
|
619
|
-
Title: ({ children }: HeroBannerTitleProps) =>
|
|
620
|
-
Subtitle: ({ children }: HeroBannerSubtitleProps) =>
|
|
617
|
+
declare const HeroBanner: (({ className, variant, title, subtitle, backgroundImage, logo, cta, ctaLogo, brands, promoteToH1, type, children, }: HeroBannerProps) => react.JSX.Element) & {
|
|
618
|
+
Title: ({ children }: HeroBannerTitleProps) => react.JSX.Element;
|
|
619
|
+
Subtitle: ({ children }: HeroBannerSubtitleProps) => react.JSX.Element;
|
|
621
620
|
};
|
|
622
621
|
|
|
623
622
|
interface HeroBannerCarouselItem {
|
|
@@ -634,7 +633,7 @@ interface HeroBannerCarouselProps {
|
|
|
634
633
|
navNextIcon?: string;
|
|
635
634
|
}
|
|
636
635
|
|
|
637
|
-
declare const HeroBannerCarousel: ({ className, items, navPrevIcon, navNextIcon, }: HeroBannerCarouselProps) =>
|
|
636
|
+
declare const HeroBannerCarousel: ({ className, items, navPrevIcon, navNextIcon, }: HeroBannerCarouselProps) => react.JSX.Element | null;
|
|
638
637
|
|
|
639
638
|
interface InternalBrandsTabProps {
|
|
640
639
|
title?: string;
|
|
@@ -657,7 +656,7 @@ interface InternalBrandsTabProps {
|
|
|
657
656
|
}[];
|
|
658
657
|
}
|
|
659
658
|
|
|
660
|
-
declare const InternalBrandsTab: (props: InternalBrandsTabProps) =>
|
|
659
|
+
declare const InternalBrandsTab: (props: InternalBrandsTabProps) => react.JSX.Element;
|
|
661
660
|
|
|
662
661
|
type MiniBannerGoBackProps = {
|
|
663
662
|
children: ReactNode;
|
|
@@ -695,10 +694,10 @@ interface MiniBannerProps {
|
|
|
695
694
|
children?: ReactNode;
|
|
696
695
|
}
|
|
697
696
|
|
|
698
|
-
declare const MiniBanner: (({ className, variant, pretitle, title, subtitle, logo, background, cta, promoteToH1, children, }: MiniBannerProps) =>
|
|
699
|
-
Title: ({ children }: MiniBannerTitleProps) =>
|
|
700
|
-
Subtitle: ({ children }: MiniBannerSubtitleProps) =>
|
|
701
|
-
GoBack: ({ children }: MiniBannerGoBackProps) =>
|
|
697
|
+
declare const MiniBanner: (({ className, variant, pretitle, title, subtitle, logo, background, cta, promoteToH1, children, }: MiniBannerProps) => react.JSX.Element) & {
|
|
698
|
+
Title: ({ children }: MiniBannerTitleProps) => react.JSX.Element;
|
|
699
|
+
Subtitle: ({ children }: MiniBannerSubtitleProps) => react.JSX.Element;
|
|
700
|
+
GoBack: ({ children }: MiniBannerGoBackProps) => react.JSX.Element;
|
|
702
701
|
};
|
|
703
702
|
|
|
704
703
|
type MiniSectionCtaSubtitleProps = {
|
|
@@ -723,9 +722,9 @@ interface MiniSectionCtaProps {
|
|
|
723
722
|
};
|
|
724
723
|
}
|
|
725
724
|
|
|
726
|
-
declare const MiniSectionCta: (({ className, variant, theme, title, subtitle, cta, moduleStyles, children, }: MiniSectionCtaProps) =>
|
|
727
|
-
Title: ({ children }: MiniSectionCtaTitleProps) =>
|
|
728
|
-
Subtitle: ({ children }: MiniSectionCtaSubtitleProps) =>
|
|
725
|
+
declare const MiniSectionCta: (({ className, variant, theme, title, subtitle, cta, moduleStyles, children, }: MiniSectionCtaProps) => react.JSX.Element) & {
|
|
726
|
+
Title: ({ children }: MiniSectionCtaTitleProps) => react.JSX.Element;
|
|
727
|
+
Subtitle: ({ children }: MiniSectionCtaSubtitleProps) => react.JSX.Element;
|
|
729
728
|
};
|
|
730
729
|
|
|
731
730
|
type NavigationUserMenuFallbackProps = {
|
|
@@ -753,14 +752,10 @@ interface NavDropdown extends BaseNavItem {
|
|
|
753
752
|
/** A single top-level navigation entry, shared by the external and internal navigation. */
|
|
754
753
|
type NavItem = NavLink | NavDropdown;
|
|
755
754
|
/**
|
|
756
|
-
* Brand
|
|
757
|
-
* When omitted the color bars stay as thin 8px strips.
|
|
755
|
+
* Brand bar colors shown in the top strip of the navigation.
|
|
758
756
|
*/
|
|
759
|
-
interface
|
|
760
|
-
|
|
761
|
-
forEyes?: IPicture;
|
|
762
|
-
optical?: IPicture;
|
|
763
|
-
pearleVision?: IPicture;
|
|
757
|
+
interface NavigationBrandBar {
|
|
758
|
+
backgroundColor: string;
|
|
764
759
|
}
|
|
765
760
|
interface NavigationProps extends PropsWithChildren {
|
|
766
761
|
className?: string;
|
|
@@ -778,11 +773,11 @@ interface NavigationProps extends PropsWithChildren {
|
|
|
778
773
|
searchPlaceholder?: string;
|
|
779
774
|
searchCta?: ICta;
|
|
780
775
|
onSearch?: (query: string) => void;
|
|
781
|
-
|
|
776
|
+
brandBars?: NavigationBrandBar[];
|
|
782
777
|
}
|
|
783
778
|
|
|
784
|
-
declare const Navigation: ((props: NavigationProps) =>
|
|
785
|
-
UserMenuFallback: ({ children }: NavigationUserMenuFallbackProps) =>
|
|
779
|
+
declare const Navigation: ((props: NavigationProps) => react.JSX.Element) & {
|
|
780
|
+
UserMenuFallback: ({ children }: NavigationUserMenuFallbackProps) => react.JSX.Element;
|
|
786
781
|
};
|
|
787
782
|
|
|
788
783
|
type PracticePathCardsFooterProps = {
|
|
@@ -807,10 +802,10 @@ interface PracticePathCardsProps {
|
|
|
807
802
|
cta?: ICta;
|
|
808
803
|
}
|
|
809
804
|
|
|
810
|
-
declare const PracticePathCards: (({ className, children, cards, title, subtitle, footer, cta, }: PracticePathCardsProps) =>
|
|
811
|
-
Title: ({ children }: PracticePathCardsTitleProps) =>
|
|
812
|
-
Subtitle: ({ children }: PracticePathCardsSubtitleProps) =>
|
|
813
|
-
Footer: ({ children }: PracticePathCardsFooterProps) =>
|
|
805
|
+
declare const PracticePathCards: (({ className, children, cards, title, subtitle, footer, cta, }: PracticePathCardsProps) => react.JSX.Element) & {
|
|
806
|
+
Title: ({ children }: PracticePathCardsTitleProps) => react.JSX.Element;
|
|
807
|
+
Subtitle: ({ children }: PracticePathCardsSubtitleProps) => react.JSX.Element;
|
|
808
|
+
Footer: ({ children }: PracticePathCardsFooterProps) => react.JSX.Element;
|
|
814
809
|
};
|
|
815
810
|
|
|
816
811
|
type Teaser5050With3TextTitleProps = {
|
|
@@ -826,8 +821,8 @@ interface Teaser5050With3TextProps {
|
|
|
826
821
|
children?: ReactNode;
|
|
827
822
|
}
|
|
828
823
|
|
|
829
|
-
declare const Teaser5050With3Text: (({ className, variant, title, cards, image, children, }: Teaser5050With3TextProps) =>
|
|
830
|
-
Title: ({ children }: Teaser5050With3TextTitleProps) =>
|
|
824
|
+
declare const Teaser5050With3Text: (({ className, variant, title, cards, image, children, }: Teaser5050With3TextProps) => react.JSX.Element) & {
|
|
825
|
+
Title: ({ children }: Teaser5050With3TextTitleProps) => react.JSX.Element;
|
|
831
826
|
};
|
|
832
827
|
|
|
833
828
|
type Teaser5050WithCtaSubtitleProps = {
|
|
@@ -852,9 +847,9 @@ interface Teaser5050WithCtaProps {
|
|
|
852
847
|
};
|
|
853
848
|
}
|
|
854
849
|
|
|
855
|
-
declare const Teaser5050WithCta: (({ className, variant, title, subtitle, ctas, image, children, moduleStyles, }: Teaser5050WithCtaProps) =>
|
|
856
|
-
Title: ({ children }: Teaser5050WithCtaTitleProps) =>
|
|
857
|
-
Subtitle: ({ children }: Teaser5050WithCtaSubtitleProps) =>
|
|
850
|
+
declare const Teaser5050WithCta: (({ className, variant, title, subtitle, ctas, image, children, moduleStyles, }: Teaser5050WithCtaProps) => react.JSX.Element) & {
|
|
851
|
+
Title: ({ children }: Teaser5050WithCtaTitleProps) => react.JSX.Element;
|
|
852
|
+
Subtitle: ({ children }: Teaser5050WithCtaSubtitleProps) => react.JSX.Element;
|
|
858
853
|
};
|
|
859
854
|
|
|
860
855
|
type EventListEmptyProps = {
|
|
@@ -876,9 +871,9 @@ interface EventListProps extends PropsWithChildren {
|
|
|
876
871
|
variant?: 'internalEventList';
|
|
877
872
|
}
|
|
878
873
|
|
|
879
|
-
declare const EventList: (({ className, title, items, cta, backgroundColor, variant, children, }: EventListProps) =>
|
|
880
|
-
Title: ({ children }: EventListTitleProps) =>
|
|
881
|
-
Empty: ({ children }: EventListEmptyProps) =>
|
|
874
|
+
declare const EventList: (({ className, title, items, cta, backgroundColor, variant, children, }: EventListProps) => react.JSX.Element) & {
|
|
875
|
+
Title: ({ children }: EventListTitleProps) => react.JSX.Element;
|
|
876
|
+
Empty: ({ children }: EventListEmptyProps) => react.JSX.Element;
|
|
882
877
|
};
|
|
883
878
|
|
|
884
879
|
type TextEventRichTextProps = {
|
|
@@ -898,9 +893,9 @@ interface TextEventProps {
|
|
|
898
893
|
children?: ReactNode;
|
|
899
894
|
}
|
|
900
895
|
|
|
901
|
-
declare const TextEvent: ((props: TextEventProps) =>
|
|
902
|
-
Title: ({ children }: TextEventTitleProps) =>
|
|
903
|
-
RichText: ({ children }: TextEventRichTextProps) =>
|
|
896
|
+
declare const TextEvent: ((props: TextEventProps) => react.JSX.Element) & {
|
|
897
|
+
Title: ({ children }: TextEventTitleProps) => react.JSX.Element;
|
|
898
|
+
RichText: ({ children }: TextEventRichTextProps) => react.JSX.Element;
|
|
904
899
|
};
|
|
905
900
|
|
|
906
901
|
type TextBodyBodyProps = {
|
|
@@ -920,9 +915,9 @@ interface TextBodyProps {
|
|
|
920
915
|
children?: ReactNode;
|
|
921
916
|
}
|
|
922
917
|
|
|
923
|
-
declare const TextBody: ((props: TextBodyProps) =>
|
|
924
|
-
Title: ({ children }: TextBodyTitleProps) =>
|
|
925
|
-
Body: ({ children }: TextBodyBodyProps) =>
|
|
918
|
+
declare const TextBody: ((props: TextBodyProps) => react.JSX.Element) & {
|
|
919
|
+
Title: ({ children }: TextBodyTitleProps) => react.JSX.Element;
|
|
920
|
+
Body: ({ children }: TextBodyBodyProps) => react.JSX.Element;
|
|
926
921
|
};
|
|
927
922
|
|
|
928
923
|
type TextCenterCtaInBottomSubtitleProps = {
|
|
@@ -941,9 +936,9 @@ interface TextCenterCtaInBottomProps {
|
|
|
941
936
|
children?: ReactNode;
|
|
942
937
|
}
|
|
943
938
|
|
|
944
|
-
declare const TextCenterCtaInBottom: (({ className, title, subtitle, ctas, children, }: TextCenterCtaInBottomProps) =>
|
|
945
|
-
Title: ({ children }: TextCenterCtaInBottomTitleProps) =>
|
|
946
|
-
Subtitle: ({ children }: TextCenterCtaInBottomSubtitleProps) =>
|
|
939
|
+
declare const TextCenterCtaInBottom: (({ className, title, subtitle, ctas, children, }: TextCenterCtaInBottomProps) => react.JSX.Element) & {
|
|
940
|
+
Title: ({ children }: TextCenterCtaInBottomTitleProps) => react.JSX.Element;
|
|
941
|
+
Subtitle: ({ children }: TextCenterCtaInBottomSubtitleProps) => react.JSX.Element;
|
|
947
942
|
};
|
|
948
943
|
|
|
949
944
|
interface ResourcesGridListProps {
|
|
@@ -956,7 +951,7 @@ interface ResourcesGridListProps {
|
|
|
956
951
|
children?: ReactNode;
|
|
957
952
|
}
|
|
958
953
|
|
|
959
|
-
declare const ResourcesGridList: ({ className, items, categories, defaultView, defaultFilter, defaultSort, }: ResourcesGridListProps) =>
|
|
954
|
+
declare const ResourcesGridList: ({ className, items, categories, defaultView, defaultFilter, defaultSort, }: ResourcesGridListProps) => react.JSX.Element;
|
|
960
955
|
|
|
961
956
|
type BlogCardGridTitleProps = {
|
|
962
957
|
children: ReactNode;
|
|
@@ -976,8 +971,8 @@ interface BlogCardGridProps extends PropsWithChildren {
|
|
|
976
971
|
}) => React.ReactNode;
|
|
977
972
|
}
|
|
978
973
|
|
|
979
|
-
declare const BlogCardGrid: (({ title, items, backgroundColor, cta, className, hasContainer, gridProps, gridItemProps, renderLink, children, }: BlogCardGridProps) =>
|
|
980
|
-
Title: ({ children }: BlogCardGridTitleProps) =>
|
|
974
|
+
declare const BlogCardGrid: (({ title, items, backgroundColor, cta, className, hasContainer, gridProps, gridItemProps, renderLink, children, }: BlogCardGridProps) => react.JSX.Element) & {
|
|
975
|
+
Title: ({ children }: BlogCardGridTitleProps) => react.JSX.Element;
|
|
981
976
|
};
|
|
982
977
|
|
|
983
978
|
type FeaturedNewsHighlightsTitleProps = {
|
|
@@ -997,8 +992,8 @@ interface FeaturedNewsHighlightsProps extends PropsWithChildren {
|
|
|
997
992
|
}) => React.ReactNode;
|
|
998
993
|
}
|
|
999
994
|
|
|
1000
|
-
declare const FeaturedNewsHighlights: (({ variant, title, items, backgroundColor, cta, className, hasContainer, renderLink, children, }: FeaturedNewsHighlightsProps) =>
|
|
1001
|
-
Title: ({ children }: FeaturedNewsHighlightsTitleProps) =>
|
|
995
|
+
declare const FeaturedNewsHighlights: (({ variant, title, items, backgroundColor, cta, className, hasContainer, renderLink, children, }: FeaturedNewsHighlightsProps) => react.JSX.Element) & {
|
|
996
|
+
Title: ({ children }: FeaturedNewsHighlightsTitleProps) => react.JSX.Element;
|
|
1002
997
|
};
|
|
1003
998
|
|
|
1004
999
|
type NewsCardListPaginationProps = {
|
|
@@ -1019,8 +1014,8 @@ interface NewsCardListProps extends PropsWithChildren {
|
|
|
1019
1014
|
}) => React.ReactNode;
|
|
1020
1015
|
}
|
|
1021
1016
|
|
|
1022
|
-
declare const NewsCardList: (({ items, backgroundColor, className, currentPage, searchValue, onSearchChange, onSearchSubmit, searchInputProps, renderLink, children, }: NewsCardListProps) =>
|
|
1023
|
-
Pagination: ({ children }: NewsCardListPaginationProps) =>
|
|
1017
|
+
declare const NewsCardList: (({ items, backgroundColor, className, currentPage, searchValue, onSearchChange, onSearchSubmit, searchInputProps, renderLink, children, }: NewsCardListProps) => react.JSX.Element) & {
|
|
1018
|
+
Pagination: ({ children }: NewsCardListPaginationProps) => react.JSX.Element;
|
|
1024
1019
|
};
|
|
1025
1020
|
|
|
1026
1021
|
type BlogPostBodyProps = {
|
|
@@ -1036,9 +1031,9 @@ interface BlogPostProps extends PropsWithChildren, Omit<NewsCardProps, 'descript
|
|
|
1036
1031
|
relatedArticles?: NewsCardProps[];
|
|
1037
1032
|
}
|
|
1038
1033
|
|
|
1039
|
-
declare const BlogPost: (({ title, description: body, image, date, tag, relatedArticles, className, children, }: BlogPostProps) =>
|
|
1040
|
-
Title: ({ children }: BlogPostTitleProps) =>
|
|
1041
|
-
Body: ({ children }: BlogPostBodyProps) =>
|
|
1034
|
+
declare const BlogPost: (({ title, description: body, image, date, tag, relatedArticles, className, children, }: BlogPostProps) => react.JSX.Element) & {
|
|
1035
|
+
Title: ({ children }: BlogPostTitleProps) => react.JSX.Element;
|
|
1036
|
+
Body: ({ children }: BlogPostBodyProps) => react.JSX.Element;
|
|
1042
1037
|
};
|
|
1043
1038
|
|
|
1044
1039
|
type BlogSearchResultsListPaginationProps = {
|
|
@@ -1062,9 +1057,9 @@ interface BlogSearchResultsListProps extends PropsWithChildren {
|
|
|
1062
1057
|
}) => React.ReactNode;
|
|
1063
1058
|
}
|
|
1064
1059
|
|
|
1065
|
-
declare const BlogSearchResultsList: (({ items, searchResult, onSearchChange, onSearchSubmit, searchValue, searchInputProps, className, renderLink, children, }: BlogSearchResultsListProps) =>
|
|
1066
|
-
Search: ({ children }: BlogSearchResultsListSearchProps) =>
|
|
1067
|
-
Pagination: ({ children, }: BlogSearchResultsListPaginationProps) =>
|
|
1060
|
+
declare const BlogSearchResultsList: (({ items, searchResult, onSearchChange, onSearchSubmit, searchValue, searchInputProps, className, renderLink, children, }: BlogSearchResultsListProps) => react.JSX.Element) & {
|
|
1061
|
+
Search: ({ children }: BlogSearchResultsListSearchProps) => react.JSX.Element;
|
|
1062
|
+
Pagination: ({ children, }: BlogSearchResultsListPaginationProps) => react.JSX.Element;
|
|
1068
1063
|
};
|
|
1069
1064
|
|
|
1070
1065
|
type GlobalSearchResultsListPaginationProps = {
|
|
@@ -1084,9 +1079,9 @@ interface GlobalSearchResultsListProps extends PropsWithChildren {
|
|
|
1084
1079
|
}) => React.ReactNode;
|
|
1085
1080
|
}
|
|
1086
1081
|
|
|
1087
|
-
declare const GlobalSearchResultsList: (({ items, searchResult, className, renderLink, children, }: GlobalSearchResultsListProps) =>
|
|
1088
|
-
Search: ({ children }: GlobalSearchResultsListSearchProps) =>
|
|
1089
|
-
Pagination: ({ children, }: GlobalSearchResultsListPaginationProps) =>
|
|
1082
|
+
declare const GlobalSearchResultsList: (({ items, searchResult, className, renderLink, children, }: GlobalSearchResultsListProps) => react.JSX.Element) & {
|
|
1083
|
+
Search: ({ children }: GlobalSearchResultsListSearchProps) => react.JSX.Element;
|
|
1084
|
+
Pagination: ({ children, }: GlobalSearchResultsListPaginationProps) => react.JSX.Element;
|
|
1090
1085
|
};
|
|
1091
1086
|
|
|
1092
1087
|
type TextCenterWithMediaTitleProps = {
|
|
@@ -1105,8 +1100,8 @@ interface TextCenterWithMediaProps {
|
|
|
1105
1100
|
children?: ReactNode;
|
|
1106
1101
|
}
|
|
1107
1102
|
|
|
1108
|
-
declare const TextCenterWithMedia: (({ className, title, thumbnail, videoUrl, loop, mute, hideControl, autoPlay, children, }: TextCenterWithMediaProps) =>
|
|
1109
|
-
Title: ({ children }: TextCenterWithMediaTitleProps) =>
|
|
1103
|
+
declare const TextCenterWithMedia: (({ className, title, thumbnail, videoUrl, loop, mute, hideControl, autoPlay, children, }: TextCenterWithMediaProps) => react.JSX.Element) & {
|
|
1104
|
+
Title: ({ children }: TextCenterWithMediaTitleProps) => react.JSX.Element;
|
|
1110
1105
|
};
|
|
1111
1106
|
|
|
1112
1107
|
interface QuoteSectionBlockItem {
|
|
@@ -1122,7 +1117,7 @@ interface QuoteSectionBlockProps {
|
|
|
1122
1117
|
items?: QuoteSectionBlockItem[];
|
|
1123
1118
|
}
|
|
1124
1119
|
|
|
1125
|
-
declare const QuoteSectionBlock: ({ className, title, items }: QuoteSectionBlockProps) =>
|
|
1120
|
+
declare const QuoteSectionBlock: ({ className, title, items }: QuoteSectionBlockProps) => react.JSX.Element | null;
|
|
1126
1121
|
|
|
1127
1122
|
type PageLoaderLogoProps = {
|
|
1128
1123
|
children: ReactNode;
|
|
@@ -1132,8 +1127,8 @@ interface PageLoaderProps extends PropsWithChildren {
|
|
|
1132
1127
|
className?: string;
|
|
1133
1128
|
}
|
|
1134
1129
|
|
|
1135
|
-
declare const PageLoader: (({ className, children }: PageLoaderProps) =>
|
|
1136
|
-
Logo: ({ children }: PageLoaderLogoProps) =>
|
|
1130
|
+
declare const PageLoader: (({ className, children }: PageLoaderProps) => react.JSX.Element) & {
|
|
1131
|
+
Logo: ({ children }: PageLoaderLogoProps) => react.JSX.Element;
|
|
1137
1132
|
};
|
|
1138
1133
|
|
|
1139
1134
|
interface ITwoColTextMenuSection {
|
|
@@ -1149,7 +1144,7 @@ interface TwoColTextMenuProps {
|
|
|
1149
1144
|
}
|
|
1150
1145
|
|
|
1151
1146
|
declare const TwoColTextMenu: {
|
|
1152
|
-
({ className, ariaLabel, sections, renderLink, }: TwoColTextMenuProps):
|
|
1147
|
+
({ className, ariaLabel, sections, renderLink, }: TwoColTextMenuProps): react.JSX.Element | null;
|
|
1153
1148
|
displayName: string;
|
|
1154
1149
|
};
|
|
1155
1150
|
|
|
@@ -1181,4 +1176,4 @@ type SlotMap = Record<string, SlotComponent>;
|
|
|
1181
1176
|
*/
|
|
1182
1177
|
declare function resolveCompoundSlots(children: ReactNode, slots: SlotMap): Record<string, ReactNode>;
|
|
1183
1178
|
|
|
1184
|
-
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
|
|
1179
|
+
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 NavigationBrandBar, 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
|
@@ -3286,39 +3286,18 @@ var NavigationCtas = ({
|
|
|
3286
3286
|
// src/widgets/Navigation/NavigationBrandBars.module.scss
|
|
3287
3287
|
var NavigationBrandBars_module_default = {
|
|
3288
3288
|
brandBars: "NavigationBrandBars_module_brandBars",
|
|
3289
|
-
brandBar: "NavigationBrandBars_module_brandBar"
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
pearleVision: "NavigationBrandBars_module_pearleVision"
|
|
3296
|
-
};
|
|
3297
|
-
var BRANDS = [
|
|
3298
|
-
{ key: "lenscrafters", className: NavigationBrandBars_module_default.lenscrafters, label: "LensCrafters" },
|
|
3299
|
-
{ key: "forEyes", className: NavigationBrandBars_module_default.forEyes, label: "For Eyes" },
|
|
3300
|
-
{ key: "optical", className: NavigationBrandBars_module_default.optical, label: "Target Optical" },
|
|
3301
|
-
{ key: "pearleVision", className: NavigationBrandBars_module_default.pearleVision, label: "Pearle Vision" }
|
|
3302
|
-
];
|
|
3303
|
-
var NavigationBrandBars = ({
|
|
3304
|
-
brandLogos,
|
|
3305
|
-
unfolded = false,
|
|
3306
|
-
className
|
|
3307
|
-
}) => {
|
|
3308
|
-
const hasLogos = !!brandLogos;
|
|
3309
|
-
const isUnfolded = hasLogos && unfolded;
|
|
3310
|
-
return /* @__PURE__ */ jsx(
|
|
3311
|
-
"div",
|
|
3289
|
+
brandBar: "NavigationBrandBars_module_brandBar"
|
|
3290
|
+
};
|
|
3291
|
+
var NavigationBrandBars = ({ brandBars, className }) => {
|
|
3292
|
+
if ((brandBars == null ? void 0 : brandBars.length) === 0) return;
|
|
3293
|
+
return /* @__PURE__ */ jsx("div", { className: clsx49(NavigationBrandBars_module_default.brandBars, className), "aria-hidden": "true", children: brandBars && brandBars.map((bar, index) => /* @__PURE__ */ jsx(
|
|
3294
|
+
"span",
|
|
3312
3295
|
{
|
|
3313
|
-
className:
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
return /* @__PURE__ */ jsx("span", { className: clsx49(NavigationBrandBars_module_default.brandBar, brand.className), children: logo && /* @__PURE__ */ jsx("img", { className: NavigationBrandBars_module_default.brandLogo, src: logo.src, alt: (_a = logo.alt) != null ? _a : brand.label }) }, brand.key);
|
|
3319
|
-
})
|
|
3320
|
-
}
|
|
3321
|
-
);
|
|
3296
|
+
className: NavigationBrandBars_module_default.brandBar,
|
|
3297
|
+
style: { backgroundColor: bar.backgroundColor }
|
|
3298
|
+
},
|
|
3299
|
+
`${bar.backgroundColor}-${index}`
|
|
3300
|
+
)) });
|
|
3322
3301
|
};
|
|
3323
3302
|
var getPathname = () => typeof window === "undefined" ? "" : window.location.pathname;
|
|
3324
3303
|
var useActivePath = () => {
|
|
@@ -3565,7 +3544,7 @@ var NavigationMobile = ({
|
|
|
3565
3544
|
searchPlaceholder,
|
|
3566
3545
|
searchCta,
|
|
3567
3546
|
onSearch,
|
|
3568
|
-
|
|
3547
|
+
brandBars,
|
|
3569
3548
|
isOpen,
|
|
3570
3549
|
onClose,
|
|
3571
3550
|
isExternal = false,
|
|
@@ -3720,14 +3699,7 @@ var NavigationMobile = ({
|
|
|
3720
3699
|
}
|
|
3721
3700
|
)
|
|
3722
3701
|
] }),
|
|
3723
|
-
/* @__PURE__ */ jsx(
|
|
3724
|
-
NavigationBrandBars,
|
|
3725
|
-
{
|
|
3726
|
-
brandLogos,
|
|
3727
|
-
unfolded: false,
|
|
3728
|
-
className: NavigationMobile_module_default.mobileBrandBars
|
|
3729
|
-
}
|
|
3730
|
-
),
|
|
3702
|
+
/* @__PURE__ */ jsx(NavigationBrandBars, { brandBars, className: NavigationMobile_module_default.mobileBrandBars }),
|
|
3731
3703
|
/* @__PURE__ */ jsx("ul", { className: NavigationMobile_module_default.mobileItems, children: navItems == null ? void 0 : navItems.map((item, index) => {
|
|
3732
3704
|
var _a, _b, _c, _d;
|
|
3733
3705
|
const subMenuId = `${baseId}-submenu-${index}`;
|
|
@@ -3855,7 +3827,7 @@ var Navigation2 = (props) => {
|
|
|
3855
3827
|
searchPlaceholder = "Search resources",
|
|
3856
3828
|
searchCta,
|
|
3857
3829
|
onSearch,
|
|
3858
|
-
|
|
3830
|
+
brandBars
|
|
3859
3831
|
} = props;
|
|
3860
3832
|
const isExternal = variant !== "internal";
|
|
3861
3833
|
const slots = resolveCompoundSlots(props.children, {
|
|
@@ -3875,7 +3847,6 @@ var Navigation2 = (props) => {
|
|
|
3875
3847
|
const dropdownOpen = openIndex !== null && !isTabletBelow;
|
|
3876
3848
|
const isTransparent = !!transparent && isAtTop && !isHovered && !dropdownOpen;
|
|
3877
3849
|
const openItem = openIndex !== null ? (_a = navigationItems == null ? void 0 : navigationItems.items) == null ? void 0 : _a[openIndex] : void 0;
|
|
3878
|
-
const showLogoUnfolded = !!brandLogos && isAtTop && !dropdownOpen;
|
|
3879
3850
|
const openDropdown = (index) => {
|
|
3880
3851
|
if (closeTimer.current) clearTimeout(closeTimer.current);
|
|
3881
3852
|
setOpenIndex(index);
|
|
@@ -4031,13 +4002,7 @@ var Navigation2 = (props) => {
|
|
|
4031
4002
|
)
|
|
4032
4003
|
] })
|
|
4033
4004
|
] }) }),
|
|
4034
|
-
!isExternal && /* @__PURE__ */ jsx(
|
|
4035
|
-
NavigationBrandBars,
|
|
4036
|
-
{
|
|
4037
|
-
brandLogos,
|
|
4038
|
-
unfolded: showLogoUnfolded && !isMobileMenuOpen
|
|
4039
|
-
}
|
|
4040
|
-
),
|
|
4005
|
+
!isExternal && /* @__PURE__ */ jsx(NavigationBrandBars, { brandBars }),
|
|
4041
4006
|
dropdownOpen && (openItem == null ? void 0 : openItem.type) === "dropdown" && /* @__PURE__ */ jsx(
|
|
4042
4007
|
NavigationDropdown,
|
|
4043
4008
|
{
|
|
@@ -4066,7 +4031,7 @@ var Navigation2 = (props) => {
|
|
|
4066
4031
|
searchPlaceholder,
|
|
4067
4032
|
searchCta,
|
|
4068
4033
|
onSearch,
|
|
4069
|
-
|
|
4034
|
+
brandBars,
|
|
4070
4035
|
isOpen: isMobileMenuOpen,
|
|
4071
4036
|
onClose: () => setIsMobileMenuOpen(false),
|
|
4072
4037
|
isExternal,
|