@ably/ui 15.8.1 → 16.0.0-dev.308accbb
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/core/.DS_Store +0 -0
- package/core/FeaturedLink.js +1 -1
- package/core/FeaturedLink.js.map +1 -1
- package/core/Flyout.js +1 -1
- package/core/Flyout.js.map +1 -1
- package/core/Footer/data.js +2 -0
- package/core/Footer/data.js.map +1 -0
- package/core/Footer.js +1 -1
- package/core/Footer.js.map +1 -1
- package/core/Header/HeaderLinks.js +1 -1
- package/core/Header/HeaderLinks.js.map +1 -1
- package/core/Header.js +1 -1
- package/core/Header.js.map +1 -1
- package/core/LegacyFooter/LegacyFooter.js +2 -0
- package/core/LegacyFooter/LegacyFooter.js.map +1 -0
- package/core/LegacyMeganav/LegacyMeganav.js +2 -0
- package/core/LegacyMeganav/LegacyMeganav.js.map +1 -0
- package/core/LegacyMeganav/MeganavBlogPostsList/component.js +2 -0
- package/core/LegacyMeganav/MeganavBlogPostsList/component.js.map +1 -0
- package/core/LegacyMeganav/MeganavBlogPostsList.js +2 -0
- package/core/LegacyMeganav/MeganavBlogPostsList.js.map +1 -0
- package/core/LegacyMeganav/MeganavContentCompany.js +2 -0
- package/core/LegacyMeganav/MeganavContentCompany.js.map +1 -0
- package/core/LegacyMeganav/MeganavContentDevelopers.js +2 -0
- package/core/LegacyMeganav/MeganavContentDevelopers.js.map +1 -0
- package/core/LegacyMeganav/MeganavContentProducts.js +2 -0
- package/core/LegacyMeganav/MeganavContentProducts.js.map +1 -0
- package/core/LegacyMeganav/MeganavContentUseCases.js +2 -0
- package/core/LegacyMeganav/MeganavContentUseCases.js.map +1 -0
- package/core/LegacyMeganav/MeganavControl/component.js +2 -0
- package/core/LegacyMeganav/MeganavControl/component.js.map +1 -0
- package/core/LegacyMeganav/MeganavControl.js +2 -0
- package/core/LegacyMeganav/MeganavControl.js.map +1 -0
- package/core/LegacyMeganav/MeganavControlMobileDropdown/component.js +2 -0
- package/core/LegacyMeganav/MeganavControlMobileDropdown/component.js.map +1 -0
- package/core/LegacyMeganav/MeganavControlMobileDropdown.js +2 -0
- package/core/LegacyMeganav/MeganavControlMobileDropdown.js.map +1 -0
- package/core/LegacyMeganav/MeganavControlMobilePanelClose/component.js +2 -0
- package/core/LegacyMeganav/MeganavControlMobilePanelClose/component.js.map +1 -0
- package/core/LegacyMeganav/MeganavControlMobilePanelClose.js +2 -0
- package/core/LegacyMeganav/MeganavControlMobilePanelClose.js.map +1 -0
- package/core/LegacyMeganav/MeganavControlMobilePanelOpen/component.js +2 -0
- package/core/LegacyMeganav/MeganavControlMobilePanelOpen/component.js.map +1 -0
- package/core/LegacyMeganav/MeganavControlMobilePanelOpen.js +2 -0
- package/core/LegacyMeganav/MeganavControlMobilePanelOpen.js.map +1 -0
- package/core/LegacyMeganav/MeganavItemsDesktop.js +2 -0
- package/core/LegacyMeganav/MeganavItemsDesktop.js.map +1 -0
- package/core/LegacyMeganav/MeganavItemsMobile.js +2 -0
- package/core/LegacyMeganav/MeganavItemsMobile.js.map +1 -0
- package/core/LegacyMeganav/MeganavItemsSignedIn.js.map +1 -0
- package/core/LegacyMeganav/MeganavSearch.js +2 -0
- package/core/LegacyMeganav/MeganavSearch.js.map +1 -0
- package/core/LegacyMeganav/MeganavSearchAutocomplete/component.js +2 -0
- package/core/LegacyMeganav/MeganavSearchAutocomplete/component.js.map +1 -0
- package/core/LegacyMeganav/MeganavSearchAutocomplete.js.map +1 -0
- package/core/LegacyMeganav/MeganavSearchPanel.js +2 -0
- package/core/LegacyMeganav/MeganavSearchPanel.js.map +1 -0
- package/core/LegacyMeganav/MeganavSearchSuggestions/component.js +2 -0
- package/core/LegacyMeganav/MeganavSearchSuggestions/component.js.map +1 -0
- package/core/LegacyMeganav/MeganavSearchSuggestions.js +2 -0
- package/core/LegacyMeganav/MeganavSearchSuggestions.js.map +1 -0
- package/core/LegacyMeganav/SignOutLink.js.map +1 -0
- package/core/LegacyMeganav/component.js +2 -0
- package/core/{Meganav → LegacyMeganav}/component.js.map +1 -1
- package/core/Meganav/.DS_Store +0 -0
- package/core/Meganav/MeganavMobile.js +2 -0
- package/core/Meganav/MeganavMobile.js.map +1 -0
- package/core/Meganav/MeganavPanel.js +2 -0
- package/core/Meganav/MeganavPanel.js.map +1 -0
- package/core/Meganav/data.js +2 -0
- package/core/Meganav/data.js.map +1 -0
- package/core/Meganav/images/fan-engagement-nav-image.png +0 -0
- package/core/Meganav/images/founders-nav-image.png +0 -0
- package/core/Meganav.js +1 -1
- package/core/Meganav.js.map +1 -1
- package/core/Notice/component.js +1 -1
- package/core/Notice/component.js.map +1 -1
- package/core/Notice.js +1 -1
- package/core/Notice.js.map +1 -1
- package/core/ProductTile/ProductDescription.js +1 -1
- package/core/ProductTile/ProductDescription.js.map +1 -1
- package/core/ProductTile/ProductLabel.js +1 -1
- package/core/ProductTile/ProductLabel.js.map +1 -1
- package/core/ProductTile/data.js +1 -1
- package/core/ProductTile/data.js.map +1 -1
- package/index.d.ts +260 -131
- package/package.json +1 -1
- package/core/Meganav/component.js +0 -2
- package/core/MeganavBlogPostsList/component.js +0 -2
- package/core/MeganavBlogPostsList/component.js.map +0 -1
- package/core/MeganavBlogPostsList.js +0 -2
- package/core/MeganavBlogPostsList.js.map +0 -1
- package/core/MeganavContentCompany.js +0 -2
- package/core/MeganavContentCompany.js.map +0 -1
- package/core/MeganavContentDevelopers.js +0 -2
- package/core/MeganavContentDevelopers.js.map +0 -1
- package/core/MeganavContentProducts.js +0 -2
- package/core/MeganavContentProducts.js.map +0 -1
- package/core/MeganavContentUseCases.js +0 -2
- package/core/MeganavContentUseCases.js.map +0 -1
- package/core/MeganavControl/component.js +0 -2
- package/core/MeganavControl/component.js.map +0 -1
- package/core/MeganavControl.js +0 -2
- package/core/MeganavControl.js.map +0 -1
- package/core/MeganavControlMobileDropdown/component.js +0 -2
- package/core/MeganavControlMobileDropdown/component.js.map +0 -1
- package/core/MeganavControlMobileDropdown.js +0 -2
- package/core/MeganavControlMobileDropdown.js.map +0 -1
- package/core/MeganavControlMobilePanelClose/component.js +0 -2
- package/core/MeganavControlMobilePanelClose/component.js.map +0 -1
- package/core/MeganavControlMobilePanelClose.js +0 -2
- package/core/MeganavControlMobilePanelClose.js.map +0 -1
- package/core/MeganavControlMobilePanelOpen/component.js +0 -2
- package/core/MeganavControlMobilePanelOpen/component.js.map +0 -1
- package/core/MeganavControlMobilePanelOpen.js +0 -2
- package/core/MeganavControlMobilePanelOpen.js.map +0 -1
- package/core/MeganavItemsDesktop.js +0 -2
- package/core/MeganavItemsDesktop.js.map +0 -1
- package/core/MeganavItemsMobile.js +0 -2
- package/core/MeganavItemsMobile.js.map +0 -1
- package/core/MeganavItemsSignedIn.js.map +0 -1
- package/core/MeganavSearch.js +0 -2
- package/core/MeganavSearch.js.map +0 -1
- package/core/MeganavSearchAutocomplete/component.js +0 -2
- package/core/MeganavSearchAutocomplete/component.js.map +0 -1
- package/core/MeganavSearchAutocomplete.js.map +0 -1
- package/core/MeganavSearchPanel.js +0 -2
- package/core/MeganavSearchPanel.js.map +0 -1
- package/core/MeganavSearchSuggestions/component.js +0 -2
- package/core/MeganavSearchSuggestions/component.js.map +0 -1
- package/core/MeganavSearchSuggestions.js +0 -2
- package/core/MeganavSearchSuggestions.js.map +0 -1
- package/core/SignOutLink.js.map +0 -1
- /package/core/{Footer → LegacyFooter}/component.css +0 -0
- /package/core/{MeganavItemsSignedIn.js → LegacyMeganav/MeganavItemsSignedIn.js} +0 -0
- /package/core/{MeganavSearchAutocomplete.js → LegacyMeganav/MeganavSearchAutocomplete.js} +0 -0
- /package/core/{SignOutLink.js → LegacyMeganav/SignOutLink.js} +0 -0
- /package/core/{Meganav → LegacyMeganav}/component.css +0 -0
- /package/core/{Meganav → LegacyMeganav}/component.json +0 -0
package/index.d.ts
CHANGED
|
@@ -420,8 +420,12 @@ type FeaturedLinkProps = {
|
|
|
420
420
|
newWindow?: boolean;
|
|
421
421
|
onClick?: () => void;
|
|
422
422
|
disabled?: boolean;
|
|
423
|
+
/**
|
|
424
|
+
* Optional class name for the icon.
|
|
425
|
+
*/
|
|
426
|
+
iconClassName?: string;
|
|
423
427
|
};
|
|
424
|
-
const FeaturedLink: ({ url, textSize, iconColor, flush, reverse, additionalCSS, newWindow, onClick, children, disabled, }: FeaturedLinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
428
|
+
const FeaturedLink: ({ url, textSize, iconColor, flush, reverse, additionalCSS, newWindow, onClick, children, disabled, iconClassName, }: FeaturedLinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
425
429
|
export default FeaturedLink;
|
|
426
430
|
//# sourceMappingURL=FeaturedLink.d.ts.map
|
|
427
431
|
}
|
|
@@ -472,9 +476,9 @@ type FlyoutProps = {
|
|
|
472
476
|
*/
|
|
473
477
|
menuItems: {
|
|
474
478
|
/**
|
|
475
|
-
*
|
|
479
|
+
* Name for the menu item.
|
|
476
480
|
*/
|
|
477
|
-
|
|
481
|
+
name: string;
|
|
478
482
|
/**
|
|
479
483
|
* Optional content to be displayed in the flyout panel.
|
|
480
484
|
*/
|
|
@@ -504,29 +508,39 @@ type FlyoutProps = {
|
|
|
504
508
|
* Optional class name for the viewport.
|
|
505
509
|
*/
|
|
506
510
|
viewPortClassName?: string;
|
|
507
|
-
/**
|
|
508
|
-
* Flag to indicate if animation should be applied.
|
|
509
|
-
*/
|
|
510
|
-
hasAnimation: boolean;
|
|
511
511
|
};
|
|
512
|
-
const Flyout: ({ menuItems, className, flyOutClassName, menuLinkClassName, viewPortClassName,
|
|
512
|
+
const Flyout: ({ menuItems, className, flyOutClassName, menuLinkClassName, viewPortClassName, }: FlyoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
513
513
|
export default Flyout;
|
|
514
514
|
//# sourceMappingURL=Flyout.d.ts.map
|
|
515
515
|
}
|
|
516
516
|
|
|
517
|
-
declare module '@ably/ui/core/Footer' {
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
};
|
|
526
|
-
urlBase: string;
|
|
527
|
-
statusUrl: string;
|
|
517
|
+
declare module '@ably/ui/core/Footer/data' {
|
|
518
|
+
import { IconName } from ".@ably/ui/core/Icon/types";
|
|
519
|
+
type FooterLinksProps = {
|
|
520
|
+
title: string;
|
|
521
|
+
links: {
|
|
522
|
+
label: string;
|
|
523
|
+
link: string;
|
|
524
|
+
badge?: string;
|
|
525
|
+
}[];
|
|
528
526
|
};
|
|
529
|
-
const
|
|
527
|
+
export const footerLinks: FooterLinksProps[];
|
|
528
|
+
export const bottomFooterLinks: {
|
|
529
|
+
label: string;
|
|
530
|
+
link: string;
|
|
531
|
+
}[];
|
|
532
|
+
export const socialLinks: {
|
|
533
|
+
key: string;
|
|
534
|
+
colorIcon: IconName;
|
|
535
|
+
monoIcon: IconName;
|
|
536
|
+
link: string;
|
|
537
|
+
}[];
|
|
538
|
+
export {};
|
|
539
|
+
//# sourceMappingURL=data.d.ts.map
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
declare module '@ably/ui/core/Footer' {
|
|
543
|
+
const Footer: () => import("react/jsx-runtime").JSX.Element;
|
|
530
544
|
export default Footer;
|
|
531
545
|
//# sourceMappingURL=Footer.d.ts.map
|
|
532
546
|
}
|
|
@@ -534,9 +548,7 @@ export default Footer;
|
|
|
534
548
|
declare module '@ably/ui/core/Header/HeaderLinks' {
|
|
535
549
|
import React from "react";
|
|
536
550
|
import { HeaderProps } from ".@ably/ui/core/Header";
|
|
537
|
-
export const HeaderLinks: React.FC<Pick<HeaderProps, "sessionState" | "headerLinks" | "searchButtonVisibility" | "searchButton"
|
|
538
|
-
className?: string;
|
|
539
|
-
}>;
|
|
551
|
+
export const HeaderLinks: React.FC<Pick<HeaderProps, "sessionState" | "headerLinks" | "searchButtonVisibility" | "searchButton" | "className">>;
|
|
540
552
|
//# sourceMappingURL=HeaderLinks.d.ts.map
|
|
541
553
|
}
|
|
542
554
|
|
|
@@ -576,6 +588,14 @@ export type HeaderSessionState = {
|
|
|
576
588
|
* Props for the Header component.
|
|
577
589
|
*/
|
|
578
590
|
export type HeaderProps = {
|
|
591
|
+
/**
|
|
592
|
+
* Optional classnames to add to the header
|
|
593
|
+
*/
|
|
594
|
+
className?: string;
|
|
595
|
+
/**
|
|
596
|
+
* Indicates if the notice banner is visible.
|
|
597
|
+
*/
|
|
598
|
+
isNoticeVisible?: boolean;
|
|
579
599
|
/**
|
|
580
600
|
* Optional search bar element.
|
|
581
601
|
*/
|
|
@@ -605,6 +625,10 @@ export type HeaderProps = {
|
|
|
605
625
|
*/
|
|
606
626
|
external?: boolean;
|
|
607
627
|
}[];
|
|
628
|
+
/**
|
|
629
|
+
* Optional classname for styling the header links container.
|
|
630
|
+
*/
|
|
631
|
+
headerLinksClassName?: string;
|
|
608
632
|
/**
|
|
609
633
|
* Optional desktop navigation element.
|
|
610
634
|
*/
|
|
@@ -684,60 +708,26 @@ export default Icon;
|
|
|
684
708
|
//# sourceMappingURL=Icon.d.ts.map
|
|
685
709
|
}
|
|
686
710
|
|
|
687
|
-
declare module '@ably/ui/core/
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
}
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
//# sourceMappingURL=LinkButton.d.ts.map
|
|
699
|
-
}
|
|
700
|
-
|
|
701
|
-
declare module '@ably/ui/core/Loader' {
|
|
702
|
-
type LoaderProps = {
|
|
703
|
-
size?: string;
|
|
704
|
-
ringColor?: string;
|
|
705
|
-
additionalCSS?: string;
|
|
706
|
-
};
|
|
707
|
-
const Loader: ({ ringColor, size, additionalCSS, }: LoaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
708
|
-
export default Loader;
|
|
709
|
-
//# sourceMappingURL=Loader.d.ts.map
|
|
710
|
-
}
|
|
711
|
-
|
|
712
|
-
declare module '@ably/ui/core/Logo' {
|
|
713
|
-
import React from "react";
|
|
714
|
-
type LogoProps = {
|
|
715
|
-
dataId?: string;
|
|
716
|
-
logoUrl?: string;
|
|
717
|
-
logoAlt?: string;
|
|
718
|
-
href?: string;
|
|
719
|
-
additionalImgAttrs?: object;
|
|
720
|
-
additionalLinkAttrs?: object;
|
|
721
|
-
theme?: "light" | "dark";
|
|
722
|
-
variant?: "default" | "mono";
|
|
723
|
-
orientation?: "default" | "stacked";
|
|
711
|
+
declare module '@ably/ui/core/LegacyFooter/LegacyFooter' {
|
|
712
|
+
type LegacyFooterProps = {
|
|
713
|
+
paths: {
|
|
714
|
+
ablyStack: string;
|
|
715
|
+
bestSupport: string;
|
|
716
|
+
highPerformer: string;
|
|
717
|
+
usersMostLikely: string;
|
|
718
|
+
bestMeetsRequirements: string;
|
|
719
|
+
};
|
|
720
|
+
urlBase: string;
|
|
721
|
+
statusUrl: string;
|
|
724
722
|
};
|
|
725
|
-
const
|
|
726
|
-
export default
|
|
727
|
-
//# sourceMappingURL=
|
|
728
|
-
}
|
|
729
|
-
|
|
730
|
-
declare module '@ably/ui/core/Meganav/component' {
|
|
731
|
-
export default function Meganav({ themeName, addSearchApiKey }: {
|
|
732
|
-
themeName: any;
|
|
733
|
-
addSearchApiKey: any;
|
|
734
|
-
}): () => void;
|
|
735
|
-
//# sourceMappingURL=component.d.ts.map
|
|
723
|
+
const LegacyFooter: ({ paths, urlBase, statusUrl }: LegacyFooterProps) => import("react/jsx-runtime").JSX.Element;
|
|
724
|
+
export default LegacyFooter;
|
|
725
|
+
//# sourceMappingURL=LegacyFooter.d.ts.map
|
|
736
726
|
}
|
|
737
727
|
|
|
738
|
-
declare module '@ably/ui/core/
|
|
728
|
+
declare module '@ably/ui/core/LegacyMeganav/LegacyMeganav' {
|
|
739
729
|
import { ReactNode } from "react";
|
|
740
|
-
import { ColorClass } from "
|
|
730
|
+
import { ColorClass } from ".@ably/ui/core/styles/colors/types";
|
|
741
731
|
export type MeganavTheme = {
|
|
742
732
|
backgroundColor?: ColorClass;
|
|
743
733
|
textColor?: ColorClass;
|
|
@@ -815,13 +805,13 @@ type MeganavProps = {
|
|
|
815
805
|
statusUrl: string;
|
|
816
806
|
searchDataId?: string;
|
|
817
807
|
};
|
|
818
|
-
const
|
|
819
|
-
export default
|
|
820
|
-
//# sourceMappingURL=
|
|
808
|
+
const LegacyMeganav: ({ paths, themeName, notice, loginLink, urlBase, addSearchApiKey, statusUrl, searchDataId, }: MeganavProps) => import("react/jsx-runtime").JSX.Element;
|
|
809
|
+
export default LegacyMeganav;
|
|
810
|
+
//# sourceMappingURL=LegacyMeganav.d.ts.map
|
|
821
811
|
}
|
|
822
812
|
|
|
823
|
-
declare module '@ably/ui/core/MeganavBlogPostsList' {
|
|
824
|
-
import { AbsUrl } from "@ably/ui/core/
|
|
813
|
+
declare module '@ably/ui/core/LegacyMeganav/MeganavBlogPostsList' {
|
|
814
|
+
import { AbsUrl } from "@ably/ui/core/LegacyMeganav";
|
|
825
815
|
type MeganavBlogPostsListProps = {
|
|
826
816
|
recentBlogPosts: {
|
|
827
817
|
link: string;
|
|
@@ -835,8 +825,8 @@ export default MeganavBlogPostsList;
|
|
|
835
825
|
//# sourceMappingURL=MeganavBlogPostsList.d.ts.map
|
|
836
826
|
}
|
|
837
827
|
|
|
838
|
-
declare module '@ably/ui/core/MeganavContentCompany' {
|
|
839
|
-
import { AbsUrl, MeganavPaths } from "@ably/ui/core/
|
|
828
|
+
declare module '@ably/ui/core/LegacyMeganav/MeganavContentCompany' {
|
|
829
|
+
import { AbsUrl, MeganavPaths } from "@ably/ui/core/LegacyMeganav";
|
|
840
830
|
type MeganavContentCompanyProps = {
|
|
841
831
|
absUrl: AbsUrl;
|
|
842
832
|
paths?: MeganavPaths;
|
|
@@ -846,8 +836,8 @@ export default MeganavContentCompany;
|
|
|
846
836
|
//# sourceMappingURL=MeganavContentCompany.d.ts.map
|
|
847
837
|
}
|
|
848
838
|
|
|
849
|
-
declare module '@ably/ui/core/MeganavContentDevelopers' {
|
|
850
|
-
import { AbsUrl } from "@ably/ui/core/
|
|
839
|
+
declare module '@ably/ui/core/LegacyMeganav/MeganavContentDevelopers' {
|
|
840
|
+
import { AbsUrl } from "@ably/ui/core/LegacyMeganav";
|
|
851
841
|
const MeganavContentDevelopers: ({ absUrl, statusUrl, }: {
|
|
852
842
|
absUrl: AbsUrl;
|
|
853
843
|
statusUrl: string;
|
|
@@ -856,8 +846,8 @@ export default MeganavContentDevelopers;
|
|
|
856
846
|
//# sourceMappingURL=MeganavContentDevelopers.d.ts.map
|
|
857
847
|
}
|
|
858
848
|
|
|
859
|
-
declare module '@ably/ui/core/MeganavContentProducts' {
|
|
860
|
-
import { AbsUrl, MeganavPaths } from "@ably/ui/core/
|
|
849
|
+
declare module '@ably/ui/core/LegacyMeganav/MeganavContentProducts' {
|
|
850
|
+
import { AbsUrl, MeganavPaths } from "@ably/ui/core/LegacyMeganav";
|
|
861
851
|
type MeganavContentProductsProps = {
|
|
862
852
|
paths?: MeganavPaths;
|
|
863
853
|
absUrl: AbsUrl;
|
|
@@ -867,8 +857,8 @@ export default MeganavContentProducts;
|
|
|
867
857
|
//# sourceMappingURL=MeganavContentProducts.d.ts.map
|
|
868
858
|
}
|
|
869
859
|
|
|
870
|
-
declare module '@ably/ui/core/MeganavContentUseCases' {
|
|
871
|
-
import { AbsUrl } from "@ably/ui/core/
|
|
860
|
+
declare module '@ably/ui/core/LegacyMeganav/MeganavContentUseCases' {
|
|
861
|
+
import { AbsUrl } from "@ably/ui/core/LegacyMeganav";
|
|
872
862
|
const MeganavContentUseCases: ({ absUrl }: {
|
|
873
863
|
absUrl: AbsUrl;
|
|
874
864
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -876,7 +866,7 @@ export default MeganavContentUseCases;
|
|
|
876
866
|
//# sourceMappingURL=MeganavContentUseCases.d.ts.map
|
|
877
867
|
}
|
|
878
868
|
|
|
879
|
-
declare module '@ably/ui/core/MeganavControl/component' {
|
|
869
|
+
declare module '@ably/ui/core/LegacyMeganav/MeganavControl/component' {
|
|
880
870
|
export default MeganavControl;
|
|
881
871
|
function MeganavControl(): {
|
|
882
872
|
teardown: () => void;
|
|
@@ -885,9 +875,9 @@ function MeganavControl(): {
|
|
|
885
875
|
//# sourceMappingURL=component.d.ts.map
|
|
886
876
|
}
|
|
887
877
|
|
|
888
|
-
declare module '@ably/ui/core/MeganavControl' {
|
|
878
|
+
declare module '@ably/ui/core/LegacyMeganav/MeganavControl' {
|
|
889
879
|
import { ReactNode } from "react";
|
|
890
|
-
import { MeganavTheme } from "@ably/ui/core/
|
|
880
|
+
import { MeganavTheme } from "@ably/ui/core/LegacyMeganav";
|
|
891
881
|
type MeganavControlProps = {
|
|
892
882
|
ariaControls: string;
|
|
893
883
|
ariaLabel: string;
|
|
@@ -900,7 +890,7 @@ export default MeganavControl;
|
|
|
900
890
|
//# sourceMappingURL=MeganavControl.d.ts.map
|
|
901
891
|
}
|
|
902
892
|
|
|
903
|
-
declare module '@ably/ui/core/MeganavControlMobileDropdown/component' {
|
|
893
|
+
declare module '@ably/ui/core/LegacyMeganav/MeganavControlMobileDropdown/component' {
|
|
904
894
|
export default MeganavControlMobileDropdown;
|
|
905
895
|
function MeganavControlMobileDropdown({ clearPanels }: {
|
|
906
896
|
clearPanels: any;
|
|
@@ -911,8 +901,8 @@ function MeganavControlMobileDropdown({ clearPanels }: {
|
|
|
911
901
|
//# sourceMappingURL=component.d.ts.map
|
|
912
902
|
}
|
|
913
903
|
|
|
914
|
-
declare module '@ably/ui/core/MeganavControlMobileDropdown' {
|
|
915
|
-
import { MeganavTheme } from "@ably/ui/core/
|
|
904
|
+
declare module '@ably/ui/core/LegacyMeganav/MeganavControlMobileDropdown' {
|
|
905
|
+
import { MeganavTheme } from "@ably/ui/core/LegacyMeganav";
|
|
916
906
|
const MeganavControlMobileDropdown: ({ theme }: {
|
|
917
907
|
theme: MeganavTheme;
|
|
918
908
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -920,7 +910,7 @@ export default MeganavControlMobileDropdown;
|
|
|
920
910
|
//# sourceMappingURL=MeganavControlMobileDropdown.d.ts.map
|
|
921
911
|
}
|
|
922
912
|
|
|
923
|
-
declare module '@ably/ui/core/MeganavControlMobilePanelClose/component' {
|
|
913
|
+
declare module '@ably/ui/core/LegacyMeganav/MeganavControlMobilePanelClose/component' {
|
|
924
914
|
function _default(): {
|
|
925
915
|
teardown: () => void;
|
|
926
916
|
clear: () => void;
|
|
@@ -929,7 +919,7 @@ export default _default;
|
|
|
929
919
|
//# sourceMappingURL=component.d.ts.map
|
|
930
920
|
}
|
|
931
921
|
|
|
932
|
-
declare module '@ably/ui/core/MeganavControlMobilePanelClose' {
|
|
922
|
+
declare module '@ably/ui/core/LegacyMeganav/MeganavControlMobilePanelClose' {
|
|
933
923
|
type MeganavControlMobilePanelCloseProps = {
|
|
934
924
|
ariaControls: string;
|
|
935
925
|
displayHr?: boolean;
|
|
@@ -939,7 +929,7 @@ export default MeganavControlMobilePanelClose;
|
|
|
939
929
|
//# sourceMappingURL=MeganavControlMobilePanelClose.d.ts.map
|
|
940
930
|
}
|
|
941
931
|
|
|
942
|
-
declare module '@ably/ui/core/MeganavControlMobilePanelOpen/component' {
|
|
932
|
+
declare module '@ably/ui/core/LegacyMeganav/MeganavControlMobilePanelOpen/component' {
|
|
943
933
|
function _default(): {
|
|
944
934
|
teardown: () => void;
|
|
945
935
|
clear: () => void;
|
|
@@ -948,7 +938,7 @@ export default _default;
|
|
|
948
938
|
//# sourceMappingURL=component.d.ts.map
|
|
949
939
|
}
|
|
950
940
|
|
|
951
|
-
declare module '@ably/ui/core/MeganavControlMobilePanelOpen' {
|
|
941
|
+
declare module '@ably/ui/core/LegacyMeganav/MeganavControlMobilePanelOpen' {
|
|
952
942
|
import { ReactNode } from "react";
|
|
953
943
|
type MeganavControlMobilePanelOpenProps = {
|
|
954
944
|
ariaControls: string;
|
|
@@ -959,9 +949,9 @@ export default MeganavControlMobilePanelOpen;
|
|
|
959
949
|
//# sourceMappingURL=MeganavControlMobilePanelOpen.d.ts.map
|
|
960
950
|
}
|
|
961
951
|
|
|
962
|
-
declare module '@ably/ui/core/MeganavItemsDesktop' {
|
|
952
|
+
declare module '@ably/ui/core/LegacyMeganav/MeganavItemsDesktop' {
|
|
963
953
|
import React from "react";
|
|
964
|
-
import { AbsUrl, MeganavPanels, MeganavPaths, MeganavTheme } from "@ably/ui/core/
|
|
954
|
+
import { AbsUrl, MeganavPanels, MeganavPaths, MeganavTheme } from "@ably/ui/core/LegacyMeganav";
|
|
965
955
|
type MeganavDesktopItems = {
|
|
966
956
|
panels: MeganavPanels;
|
|
967
957
|
paths?: MeganavPaths;
|
|
@@ -975,9 +965,9 @@ export default _default;
|
|
|
975
965
|
//# sourceMappingURL=MeganavItemsDesktop.d.ts.map
|
|
976
966
|
}
|
|
977
967
|
|
|
978
|
-
declare module '@ably/ui/core/MeganavItemsMobile' {
|
|
968
|
+
declare module '@ably/ui/core/LegacyMeganav/MeganavItemsMobile' {
|
|
979
969
|
import React from "react";
|
|
980
|
-
import { AbsUrl, MeganavPanels, MeganavPaths, MeganavSessionState, MeganavTheme } from "@ably/ui/core/
|
|
970
|
+
import { AbsUrl, MeganavPanels, MeganavPaths, MeganavSessionState, MeganavTheme } from "@ably/ui/core/LegacyMeganav";
|
|
981
971
|
type MeganavItemsMobileProps = {
|
|
982
972
|
panels: MeganavPanels;
|
|
983
973
|
paths?: MeganavPaths;
|
|
@@ -993,8 +983,8 @@ export default _default;
|
|
|
993
983
|
//# sourceMappingURL=MeganavItemsMobile.d.ts.map
|
|
994
984
|
}
|
|
995
985
|
|
|
996
|
-
declare module '@ably/ui/core/MeganavItemsSignedIn' {
|
|
997
|
-
import { AbsUrl, MeganavSessionState, MeganavTheme } from "@ably/ui/core/
|
|
986
|
+
declare module '@ably/ui/core/LegacyMeganav/MeganavItemsSignedIn' {
|
|
987
|
+
import { AbsUrl, MeganavSessionState, MeganavTheme } from "@ably/ui/core/LegacyMeganav";
|
|
998
988
|
type MeganavItemsSignedIn = {
|
|
999
989
|
sessionState: MeganavSessionState;
|
|
1000
990
|
theme: MeganavTheme;
|
|
@@ -1006,8 +996,8 @@ export default MeganavItemsSignedIn;
|
|
|
1006
996
|
//# sourceMappingURL=MeganavItemsSignedIn.d.ts.map
|
|
1007
997
|
}
|
|
1008
998
|
|
|
1009
|
-
declare module '@ably/ui/core/MeganavSearch' {
|
|
1010
|
-
import { AbsUrl } from "@ably/ui/core/
|
|
999
|
+
declare module '@ably/ui/core/LegacyMeganav/MeganavSearch' {
|
|
1000
|
+
import { AbsUrl } from "@ably/ui/core/LegacyMeganav";
|
|
1011
1001
|
const MeganavSearch: ({ absUrl, dataId, }: {
|
|
1012
1002
|
absUrl: AbsUrl;
|
|
1013
1003
|
dataId?: string;
|
|
@@ -1016,7 +1006,7 @@ export default MeganavSearch;
|
|
|
1016
1006
|
//# sourceMappingURL=MeganavSearch.d.ts.map
|
|
1017
1007
|
}
|
|
1018
1008
|
|
|
1019
|
-
declare module '@ably/ui/core/MeganavSearchAutocomplete/component' {
|
|
1009
|
+
declare module '@ably/ui/core/LegacyMeganav/MeganavSearchAutocomplete/component' {
|
|
1020
1010
|
function _default(apiKey: any): {
|
|
1021
1011
|
teardown: () => void;
|
|
1022
1012
|
clear: () => void;
|
|
@@ -1025,14 +1015,14 @@ export default _default;
|
|
|
1025
1015
|
//# sourceMappingURL=component.d.ts.map
|
|
1026
1016
|
}
|
|
1027
1017
|
|
|
1028
|
-
declare module '@ably/ui/core/MeganavSearchAutocomplete' {
|
|
1018
|
+
declare module '@ably/ui/core/LegacyMeganav/MeganavSearchAutocomplete' {
|
|
1029
1019
|
const MeganavSearchAutocomplete: () => import("react/jsx-runtime").JSX.Element;
|
|
1030
1020
|
export default MeganavSearchAutocomplete;
|
|
1031
1021
|
//# sourceMappingURL=MeganavSearchAutocomplete.d.ts.map
|
|
1032
1022
|
}
|
|
1033
1023
|
|
|
1034
|
-
declare module '@ably/ui/core/MeganavSearchPanel' {
|
|
1035
|
-
import { AbsUrl } from "@ably/ui/core/
|
|
1024
|
+
declare module '@ably/ui/core/LegacyMeganav/MeganavSearchPanel' {
|
|
1025
|
+
import { AbsUrl } from "@ably/ui/core/LegacyMeganav";
|
|
1036
1026
|
const MeganavSearchPanel: ({ absUrl }: {
|
|
1037
1027
|
absUrl: AbsUrl;
|
|
1038
1028
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1040,7 +1030,7 @@ export default MeganavSearchPanel;
|
|
|
1040
1030
|
//# sourceMappingURL=MeganavSearchPanel.d.ts.map
|
|
1041
1031
|
}
|
|
1042
1032
|
|
|
1043
|
-
declare module '@ably/ui/core/MeganavSearchSuggestions/component' {
|
|
1033
|
+
declare module '@ably/ui/core/LegacyMeganav/MeganavSearchSuggestions/component' {
|
|
1044
1034
|
export default MeganavSearchSuggestions;
|
|
1045
1035
|
function MeganavSearchSuggestions(): {
|
|
1046
1036
|
teardown: () => void;
|
|
@@ -1049,8 +1039,8 @@ function MeganavSearchSuggestions(): {
|
|
|
1049
1039
|
//# sourceMappingURL=component.d.ts.map
|
|
1050
1040
|
}
|
|
1051
1041
|
|
|
1052
|
-
declare module '@ably/ui/core/MeganavSearchSuggestions' {
|
|
1053
|
-
import { AbsUrl } from "@ably/ui/core/
|
|
1042
|
+
declare module '@ably/ui/core/LegacyMeganav/MeganavSearchSuggestions' {
|
|
1043
|
+
import { AbsUrl } from "@ably/ui/core/LegacyMeganav";
|
|
1054
1044
|
type MeganavSearchSuggestionsProps = {
|
|
1055
1045
|
absUrl: AbsUrl;
|
|
1056
1046
|
displaySupportLink: boolean;
|
|
@@ -1060,7 +1050,164 @@ export default MeganavSearchSuggestions;
|
|
|
1060
1050
|
//# sourceMappingURL=MeganavSearchSuggestions.d.ts.map
|
|
1061
1051
|
}
|
|
1062
1052
|
|
|
1053
|
+
declare module '@ably/ui/core/LegacyMeganav/SignOutLink' {
|
|
1054
|
+
import { MouseEventHandler, ReactNode } from "react";
|
|
1055
|
+
import { AbsUrl } from "@ably/ui/core/LegacyMeganav";
|
|
1056
|
+
type SignOutLinkProps = {
|
|
1057
|
+
token: string;
|
|
1058
|
+
href: string;
|
|
1059
|
+
text: string;
|
|
1060
|
+
children: ({ href, text, onClick, }: {
|
|
1061
|
+
href: string;
|
|
1062
|
+
text: string;
|
|
1063
|
+
onClick: MouseEventHandler<HTMLAnchorElement>;
|
|
1064
|
+
}) => ReactNode;
|
|
1065
|
+
absUrl: AbsUrl;
|
|
1066
|
+
};
|
|
1067
|
+
const SignOutLink: ({ token, href, text, children, absUrl, }: SignOutLinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
1068
|
+
export default SignOutLink;
|
|
1069
|
+
//# sourceMappingURL=SignOutLink.d.ts.map
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
declare module '@ably/ui/core/LegacyMeganav/component' {
|
|
1073
|
+
export default function Meganav({ themeName, addSearchApiKey }: {
|
|
1074
|
+
themeName: any;
|
|
1075
|
+
addSearchApiKey: any;
|
|
1076
|
+
}): () => void;
|
|
1077
|
+
//# sourceMappingURL=component.d.ts.map
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
declare module '@ably/ui/core/LinkButton' {
|
|
1081
|
+
import React from "react";
|
|
1082
|
+
import { ButtonPropsBase } from "@ably/ui/core/Button";
|
|
1083
|
+
import { ColorClass, ColorThemeSet } from "@ably/ui/core/styles/colors/types";
|
|
1084
|
+
export type LinkButtonProps = ButtonPropsBase & {
|
|
1085
|
+
disabled?: boolean;
|
|
1086
|
+
onClick?: (event: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
1087
|
+
iconColor?: ColorClass | ColorThemeSet;
|
|
1088
|
+
} & React.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
1089
|
+
const LinkButton: React.FC<LinkButtonProps>;
|
|
1090
|
+
export default LinkButton;
|
|
1091
|
+
//# sourceMappingURL=LinkButton.d.ts.map
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
declare module '@ably/ui/core/Loader' {
|
|
1095
|
+
type LoaderProps = {
|
|
1096
|
+
size?: string;
|
|
1097
|
+
ringColor?: string;
|
|
1098
|
+
additionalCSS?: string;
|
|
1099
|
+
};
|
|
1100
|
+
const Loader: ({ ringColor, size, additionalCSS, }: LoaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
1101
|
+
export default Loader;
|
|
1102
|
+
//# sourceMappingURL=Loader.d.ts.map
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
declare module '@ably/ui/core/Logo' {
|
|
1106
|
+
import React from "react";
|
|
1107
|
+
type LogoProps = {
|
|
1108
|
+
dataId?: string;
|
|
1109
|
+
logoUrl?: string;
|
|
1110
|
+
logoAlt?: string;
|
|
1111
|
+
href?: string;
|
|
1112
|
+
additionalImgAttrs?: object;
|
|
1113
|
+
additionalLinkAttrs?: object;
|
|
1114
|
+
theme?: "light" | "dark";
|
|
1115
|
+
variant?: "default" | "mono";
|
|
1116
|
+
orientation?: "default" | "stacked";
|
|
1117
|
+
};
|
|
1118
|
+
const _default: React.MemoExoticComponent<({ dataId, href, additionalImgAttrs, additionalLinkAttrs, theme, variant, orientation, logoUrl, logoAlt, }: LogoProps) => import("react/jsx-runtime").JSX.Element>;
|
|
1119
|
+
export default _default;
|
|
1120
|
+
//# sourceMappingURL=Logo.d.ts.map
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
declare module '@ably/ui/core/Meganav/MeganavMobile' {
|
|
1124
|
+
import { AccordionData } from ".@ably/ui/core/Accordion/types";
|
|
1125
|
+
export const MeganavMobile: ({ navItems }: {
|
|
1126
|
+
navItems: AccordionData[];
|
|
1127
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
1128
|
+
//# sourceMappingURL=MeganavMobile.d.ts.map
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
declare module '@ably/ui/core/Meganav/MeganavPanel' {
|
|
1132
|
+
import React from "react";
|
|
1133
|
+
import { FlyoutPanelHighlight, FlyoutPanelList } from "@ably/ui/core/data";
|
|
1134
|
+
export const MeganavPanel: ({ displayProductTile, panelLeft, panelLeftClassName, panelRightHeading, panelRightItems, panelRightBottom, }: {
|
|
1135
|
+
displayProductTile?: boolean;
|
|
1136
|
+
panelLeft?: FlyoutPanelHighlight;
|
|
1137
|
+
panelLeftClassName?: string;
|
|
1138
|
+
panelRightHeading?: string;
|
|
1139
|
+
panelRightItems: FlyoutPanelList[];
|
|
1140
|
+
panelRightBottom?: React.ReactNode;
|
|
1141
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
1142
|
+
//# sourceMappingURL=MeganavPanel.d.ts.map
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
declare module '@ably/ui/core/Meganav/data' {
|
|
1146
|
+
import React from "react";
|
|
1147
|
+
import { IconName } from ".@ably/ui/core/Icon/types";
|
|
1148
|
+
export type FlyoutPanelList = {
|
|
1149
|
+
label: string;
|
|
1150
|
+
icon: IconName;
|
|
1151
|
+
link: string;
|
|
1152
|
+
isMobile?: boolean;
|
|
1153
|
+
};
|
|
1154
|
+
export type FlyoutPanelHighlight = {
|
|
1155
|
+
heading: string;
|
|
1156
|
+
content: string;
|
|
1157
|
+
labelLink: string;
|
|
1158
|
+
url: string;
|
|
1159
|
+
image: string;
|
|
1160
|
+
};
|
|
1161
|
+
export type MenuItem = {
|
|
1162
|
+
name: string;
|
|
1163
|
+
link?: string;
|
|
1164
|
+
isHiddenMobile?: boolean;
|
|
1165
|
+
content?: React.ReactNode;
|
|
1166
|
+
panelClassName?: string;
|
|
1167
|
+
};
|
|
1168
|
+
export const ablyAwards: {
|
|
1169
|
+
image: string;
|
|
1170
|
+
desc: string;
|
|
1171
|
+
}[];
|
|
1172
|
+
export const menuItemLinks: {
|
|
1173
|
+
name: string;
|
|
1174
|
+
link: string;
|
|
1175
|
+
isHiddenMobile: boolean;
|
|
1176
|
+
}[];
|
|
1177
|
+
export const menuItemsForHeader: MenuItem[];
|
|
1178
|
+
//# sourceMappingURL=data.d.ts.map
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
declare module '@ably/ui/core/Meganav' {
|
|
1182
|
+
import { HeaderSessionState } from "@ably/ui/core/Header";
|
|
1183
|
+
export type MeganavNoticeBannerProps = {
|
|
1184
|
+
props: {
|
|
1185
|
+
title: string;
|
|
1186
|
+
bodyText: string;
|
|
1187
|
+
buttonLink: string;
|
|
1188
|
+
buttonLabel: string;
|
|
1189
|
+
closeBtn: boolean;
|
|
1190
|
+
};
|
|
1191
|
+
config: {
|
|
1192
|
+
cookieId: string;
|
|
1193
|
+
noticeId: string | number;
|
|
1194
|
+
options: {
|
|
1195
|
+
collapse: boolean;
|
|
1196
|
+
};
|
|
1197
|
+
};
|
|
1198
|
+
};
|
|
1199
|
+
export type MeganavProps = {
|
|
1200
|
+
sessionState: HeaderSessionState;
|
|
1201
|
+
notice?: MeganavNoticeBannerProps;
|
|
1202
|
+
theme?: string;
|
|
1203
|
+
};
|
|
1204
|
+
const Meganav: ({ sessionState, notice, theme }: MeganavProps) => import("react/jsx-runtime").JSX.Element;
|
|
1205
|
+
export default Meganav;
|
|
1206
|
+
//# sourceMappingURL=Meganav.d.ts.map
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1063
1209
|
declare module '@ably/ui/core/Notice/component' {
|
|
1210
|
+
export const COLLAPSE_TRIGGER_DISTANCE: 5;
|
|
1064
1211
|
export default Notice;
|
|
1065
1212
|
function Notice({ bannerContainer, cookieId, noticeId, options }: {
|
|
1066
1213
|
bannerContainer: any;
|
|
@@ -1206,7 +1353,8 @@ export default ProductLabel;
|
|
|
1206
1353
|
|
|
1207
1354
|
declare module '@ably/ui/core/ProductTile/data' {
|
|
1208
1355
|
import { IconName } from ".@ably/ui/core/Icon/types";
|
|
1209
|
-
export
|
|
1356
|
+
export const productNames: readonly ["pubsub", "chat", "spaces", "liveSync", "assetTracking", "liveObjects"];
|
|
1357
|
+
export type ProductName = (typeof productNames)[number];
|
|
1210
1358
|
type Products = Record<ProductName, {
|
|
1211
1359
|
label: string;
|
|
1212
1360
|
description: string;
|
|
@@ -1295,25 +1443,6 @@ export default SegmentedControl;
|
|
|
1295
1443
|
//# sourceMappingURL=SegmentedControl.d.ts.map
|
|
1296
1444
|
}
|
|
1297
1445
|
|
|
1298
|
-
declare module '@ably/ui/core/SignOutLink' {
|
|
1299
|
-
import { MouseEventHandler, ReactNode } from "react";
|
|
1300
|
-
import { AbsUrl } from "@ably/ui/core/Meganav";
|
|
1301
|
-
type SignOutLinkProps = {
|
|
1302
|
-
token: string;
|
|
1303
|
-
href: string;
|
|
1304
|
-
text: string;
|
|
1305
|
-
children: ({ href, text, onClick, }: {
|
|
1306
|
-
href: string;
|
|
1307
|
-
text: string;
|
|
1308
|
-
onClick: MouseEventHandler<HTMLAnchorElement>;
|
|
1309
|
-
}) => ReactNode;
|
|
1310
|
-
absUrl: AbsUrl;
|
|
1311
|
-
};
|
|
1312
|
-
const SignOutLink: ({ token, href, text, children, absUrl, }: SignOutLinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
1313
|
-
export default SignOutLink;
|
|
1314
|
-
//# sourceMappingURL=SignOutLink.d.ts.map
|
|
1315
|
-
}
|
|
1316
|
-
|
|
1317
1446
|
declare module '@ably/ui/core/Slider' {
|
|
1318
1447
|
import { ReactNode } from "react";
|
|
1319
1448
|
interface SliderProps {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ably/ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "16.0.0-dev.308accbb",
|
|
4
4
|
"description": "Home of the Ably design system library ([design.ably.com](https://design.ably.com)). It provides a showcase, development/test environment and a publishing pipeline for different distributables.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import throttle from"lodash.throttle";import{queryId,queryIdAll}from"../dom-query";import MeganavControl from"../MeganavControl/component.js";import MeganavControlMobileDropdown from"../MeganavControlMobileDropdown/component.js";import MobilePanelOpenClick from"../MeganavControlMobilePanelOpen/component.js";import MobilePanelCloseClick from"../MeganavControlMobilePanelClose/component.js";import MeganavSearchAutocomplete from"../MeganavSearchAutocomplete/component.js";import MeganavSearchSuggestions from"../MeganavSearchSuggestions/component.js";const windowOnBlur=closeAll=>{window.onblur=()=>closeAll();return{teardown:()=>window.onblur=null}};const documentClick=closeAll=>{const meganav=queryId("meganav");const clickHandler=e=>{if(meganav.contains(e.target))return;closeAll()};document.addEventListener("click",clickHandler);return{teardown:()=>document.removeEventListener("click",clickHandler)}};const documentScroll=themeName=>{if(themeName!=="transparentToWhite")return{teardown:()=>{}};const meganav=queryId("meganav");const navItems=queryIdAll("meganav-link");const controlMobileDropdownMenu=queryId("meganav-control-mobile-dropdown-menu");const controlMobileDropdownClose=queryId("meganav-control-mobile-dropdown-close");const controls=queryIdAll("meganav-control");const signUpBtn=queryId("meganav-sign-up-btn");const invertTextCollection=[...Array.from(controls),...Array.from(navItems),queryId("meganav-logo")];const invertMobleDropdownColor=invert=>{const whiteToBlack=["ui-icon-white","ui-icon-cool-black"];const blackToWhite=[...whiteToBlack].reverse();if(invert){controlMobileDropdownMenu?.classList.replace(...whiteToBlack);controlMobileDropdownClose?.classList.replace(...whiteToBlack)}else{controlMobileDropdownMenu?.classList.replace(...blackToWhite);controlMobileDropdownClose?.classList.replace(...blackToWhite)}};const inverSignupBtnColors=invert=>{if(invert){signUpBtn?.classList.replace("bg-white","bg-cool-black");signUpBtn?.classList.replace("text-cool-black","text-white")}else{signUpBtn?.classList.replace("bg-cool-black","bg-white");signUpBtn?.classList.replace("text-white","text-cool-black")}};const scrollHandler=throttle(()=>{if(window.scrollY>5){meganav.classList.replace("bg-transparent","bg-white");inverSignupBtnColors(true);invertMobleDropdownColor(true);invertTextCollection.forEach(n=>n.classList.replace("text-white","text-cool-black"))}else{meganav.classList.replace("bg-white","bg-transparent");inverSignupBtnColors(false);invertMobleDropdownColor(false);invertTextCollection.forEach(n=>n.classList.replace("text-cool-black","text-white"))}},150);document.addEventListener("scroll",scrollHandler);return{teardown:()=>document.removeEventListener("scroll",scrollHandler)}};export default function Meganav({themeName,addSearchApiKey}){const controls=MeganavControl();const panelOpenControls=MobilePanelOpenClick();const panelCloseControls=MobilePanelCloseClick();const search=MeganavSearchAutocomplete(addSearchApiKey);const searchSuggestions=MeganavSearchSuggestions();const mobileDropdownControl=MeganavControlMobileDropdown({clearPanels:()=>[...panelOpenControls,...panelCloseControls].forEach(i=>i.clear())});const closeAll=()=>[mobileDropdownControl,searchSuggestions,...panelOpenControls,...panelCloseControls,...controls,...search].forEach(i=>i.clear());const teardowns=[documentScroll(themeName??null),documentClick(closeAll),windowOnBlur(closeAll),mobileDropdownControl,searchSuggestions,...controls,...panelOpenControls,...panelCloseControls,...search].map(i=>i.teardown);return()=>teardowns.forEach(teardown=>teardown())}
|
|
2
|
-
//# sourceMappingURL=component.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{queryIdAll}from"../dom-query";import{selectRecentBlogPosts}from"../remote-blogs-posts";import{connectState}from"../remote-data-store";const template=({link,title,pubDate})=>{const[li,a,heading,copy]=["li","a","p","p"].map(el=>document.createElement(el));a.href=link;a.classList.add("ui-meganav-media","group");heading.textContent=title;heading.classList.add("ui-meganav-media-heading");copy.textContent=pubDate;copy.classList.add("ui-meganav-media-copy");a.appendChild(heading);a.appendChild(copy);li.appendChild(a);return li};export default(()=>{connectState(selectRecentBlogPosts,recentBlogPosts=>{if(Array.isArray(recentBlogPosts)&&recentBlogPosts.length>0){const sections=queryIdAll("meganav-company-panel-blog-section");const containers=queryIdAll("meganav-company-panel-recent-blog-posts");Array.from(containers).forEach(container=>{const fragment=document.createDocumentFragment();recentBlogPosts.forEach(post=>fragment.appendChild(template(post)));container.appendChild(fragment)});Array.from(sections).forEach(section=>section.classList.remove("hidden"))}})});
|
|
2
|
-
//# sourceMappingURL=component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/core/MeganavBlogPostsList/component.js"],"sourcesContent":["import { queryIdAll } from \"../dom-query\";\nimport { selectRecentBlogPosts } from \"../remote-blogs-posts\";\nimport { connectState } from \"../remote-data-store\";\n\nconst template = ({ link, title, pubDate }) => {\n const [li, a, heading, copy] = [\"li\", \"a\", \"p\", \"p\"].map((el) =>\n document.createElement(el),\n );\n\n a.href = link;\n a.classList.add(\"ui-meganav-media\", \"group\");\n\n heading.textContent = title;\n heading.classList.add(\"ui-meganav-media-heading\");\n\n copy.textContent = pubDate;\n copy.classList.add(\"ui-meganav-media-copy\");\n\n a.appendChild(heading);\n a.appendChild(copy);\n li.appendChild(a);\n\n return li;\n};\n\nexport default () => {\n connectState(selectRecentBlogPosts, (recentBlogPosts) => {\n if (Array.isArray(recentBlogPosts) && recentBlogPosts.length > 0) {\n const sections = queryIdAll(\"meganav-company-panel-blog-section\");\n const containers = queryIdAll(\"meganav-company-panel-recent-blog-posts\");\n\n Array.from(containers).forEach((container) => {\n const fragment = document.createDocumentFragment();\n recentBlogPosts.forEach((post) => fragment.appendChild(template(post)));\n container.appendChild(fragment);\n });\n\n Array.from(sections).forEach((section) =>\n section.classList.remove(\"hidden\"),\n );\n }\n });\n};\n"],"names":["queryIdAll","selectRecentBlogPosts","connectState","template","link","title","pubDate","li","a","heading","copy","map","el","document","createElement","href","classList","add","textContent","appendChild","recentBlogPosts","Array","isArray","length","sections","containers","from","forEach","container","fragment","createDocumentFragment","post","section","remove"],"mappings":"AAAA,OAASA,UAAU,KAAQ,cAAe,AAC1C,QAASC,qBAAqB,KAAQ,uBAAwB,AAC9D,QAASC,YAAY,KAAQ,sBAAuB,CAEpD,MAAMC,SAAW,CAAC,CAAEC,IAAI,CAAEC,KAAK,CAAEC,OAAO,CAAE,IACxC,KAAM,CAACC,GAAIC,EAAGC,QAASC,KAAK,CAAG,CAAC,KAAM,IAAK,IAAK,IAAI,CAACC,GAAG,CAAC,AAACC,IACxDC,SAASC,aAAa,CAACF,IAGzBJ,CAAAA,EAAEO,IAAI,CAAGX,KACTI,EAAEQ,SAAS,CAACC,GAAG,CAAC,mBAAoB,QAEpCR,CAAAA,QAAQS,WAAW,CAAGb,MACtBI,QAAQO,SAAS,CAACC,GAAG,CAAC,2BAEtBP,CAAAA,KAAKQ,WAAW,CAAGZ,QACnBI,KAAKM,SAAS,CAACC,GAAG,CAAC,yBAEnBT,EAAEW,WAAW,CAACV,SACdD,EAAEW,WAAW,CAACT,MACdH,GAAGY,WAAW,CAACX,GAEf,OAAOD,EACT,CAEA,eAAe,CAAA,KACbL,aAAaD,sBAAuB,AAACmB,kBACnC,GAAIC,MAAMC,OAAO,CAACF,kBAAoBA,gBAAgBG,MAAM,CAAG,EAAG,CAChE,MAAMC,SAAWxB,WAAW,sCAC5B,MAAMyB,WAAazB,WAAW,2CAE9BqB,MAAMK,IAAI,CAACD,YAAYE,OAAO,CAAC,AAACC,YAC9B,MAAMC,SAAWhB,SAASiB,sBAAsB,GAChDV,gBAAgBO,OAAO,CAAC,AAACI,MAASF,SAASV,WAAW,CAAChB,SAAS4B,QAChEH,UAAUT,WAAW,CAACU,SACxB,GAEAR,MAAMK,IAAI,CAACF,UAAUG,OAAO,CAAC,AAACK,SAC5BA,QAAQhB,SAAS,CAACiB,MAAM,CAAC,UAE7B,CACF,EACF,CAAA,CAAE"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import React from"react";import FeaturedLink from"./FeaturedLink";const MeganavBlogPostsList=({recentBlogPosts,absUrl})=>recentBlogPosts?React.createElement("div",{className:"col-span-full md:col-span-4 pt-8 pb-24 md:py-24 lg:py-32 px-24 sm:px-32 md:px-0"},React.createElement("h3",{className:"ui-meganav-overline",id:"meganav-company-panel-list-blog"},"Blog"),React.createElement("ul",{className:"mb-8","aria-labelledby":"meganav-company-panel-list-blog"},recentBlogPosts.map(post=>React.createElement("li",{key:post.link},React.createElement("a",{href:post.link,className:"ui-meganav-media group"},React.createElement("p",{className:"ui-meganav-media-heading"},post.title),React.createElement("p",{className:"ui-meganav-media-copy"},post.pubDate))))),React.createElement(FeaturedLink,{url:absUrl("/blog"),textSize:"text-p3"},"More from our Blog")):null;export default MeganavBlogPostsList;
|
|
2
|
-
//# sourceMappingURL=MeganavBlogPostsList.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/core/MeganavBlogPostsList.tsx"],"sourcesContent":["import React from \"react\";\n\nimport FeaturedLink from \"./FeaturedLink\";\nimport { AbsUrl } from \"./Meganav\";\n\ntype MeganavBlogPostsListProps = {\n recentBlogPosts: {\n link: string;\n title: string;\n pubDate: string;\n }[];\n absUrl: AbsUrl;\n};\n\nconst MeganavBlogPostsList = ({\n recentBlogPosts,\n absUrl,\n}: MeganavBlogPostsListProps) =>\n recentBlogPosts ? (\n <div className=\"col-span-full md:col-span-4 pt-8 pb-24 md:py-24 lg:py-32 px-24 sm:px-32 md:px-0\">\n <h3 className=\"ui-meganav-overline\" id=\"meganav-company-panel-list-blog\">\n Blog\n </h3>\n <ul className=\"mb-8\" aria-labelledby=\"meganav-company-panel-list-blog\">\n {recentBlogPosts.map((post) => (\n <li key={post.link}>\n <a href={post.link} className=\"ui-meganav-media group\">\n <p className=\"ui-meganav-media-heading\">{post.title}</p>\n <p className=\"ui-meganav-media-copy\">{post.pubDate}</p>\n </a>\n </li>\n ))}\n </ul>\n\n <FeaturedLink url={absUrl(\"/blog\")} textSize=\"text-p3\">\n More from our Blog\n </FeaturedLink>\n </div>\n ) : null;\n\nexport default MeganavBlogPostsList;\n"],"names":["React","FeaturedLink","MeganavBlogPostsList","recentBlogPosts","absUrl","div","className","h3","id","ul","aria-labelledby","map","post","li","key","link","a","href","p","title","pubDate","url","textSize"],"mappings":"AAAA,OAAOA,UAAW,OAAQ,AAE1B,QAAOC,iBAAkB,gBAAiB,CAY1C,MAAMC,qBAAuB,CAAC,CAC5BC,eAAe,CACfC,MAAM,CACoB,GAC1BD,gBACE,oBAACE,OAAIC,UAAU,mFACb,oBAACC,MAAGD,UAAU,sBAAsBE,GAAG,mCAAkC,QAGzE,oBAACC,MAAGH,UAAU,OAAOI,kBAAgB,mCAClCP,gBAAgBQ,GAAG,CAAC,AAACC,MACpB,oBAACC,MAAGC,IAAKF,KAAKG,IAAI,EAChB,oBAACC,KAAEC,KAAML,KAAKG,IAAI,CAAET,UAAU,0BAC5B,oBAACY,KAAEZ,UAAU,4BAA4BM,KAAKO,KAAK,EACnD,oBAACD,KAAEZ,UAAU,yBAAyBM,KAAKQ,OAAO,MAM1D,oBAACnB,cAAaoB,IAAKjB,OAAO,SAAUkB,SAAS,WAAU,uBAIvD,IAEN,gBAAepB,oBAAqB"}
|