@windstream/react-shared-components 0.2.81 → 0.2.83
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/contentful/index.d.ts +7 -1
- package/dist/contentful/index.esm.js +2 -2
- package/dist/contentful/index.esm.js.map +1 -1
- package/dist/contentful/index.js +2 -2
- package/dist/contentful/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/contentful/blocks/anchored-bottom-banner/index.test.tsx +35 -0
- package/src/contentful/blocks/anchored-bottom-banner/index.tsx +32 -16
- package/src/contentful/blocks/anchored-bottom-banner/types.ts +18 -1
- package/src/contentful/blocks/award-marquee/AwardMarquee.stories.tsx +45 -1
- package/src/contentful/blocks/award-marquee/index.test.tsx +203 -5
- package/src/contentful/blocks/award-marquee/index.tsx +77 -26
- package/src/contentful/blocks/award-marquee/types.ts +6 -0
|
@@ -45,6 +45,10 @@ type AwardMarqueeItem = {
|
|
|
45
45
|
iconAlt?: string;
|
|
46
46
|
iconWidth?: number;
|
|
47
47
|
iconHeight?: number;
|
|
48
|
+
mobileIconUrl?: string;
|
|
49
|
+
mobileIconAlt?: string;
|
|
50
|
+
mobileIconWidth?: number;
|
|
51
|
+
mobileIconHeight?: number;
|
|
48
52
|
title?: string;
|
|
49
53
|
description?: string;
|
|
50
54
|
};
|
|
@@ -874,6 +878,7 @@ interface DynamicTabsT {
|
|
|
874
878
|
declare function DynamicTabs(props: DynamicTabsT): react_jsx_runtime.JSX.Element;
|
|
875
879
|
|
|
876
880
|
type ScheduledMessageDay = "ALL" | "SUNDAY" | "MONDAY" | "TUESDAY" | "WEDNESDAY" | "THURSDAY" | "FRIDAY" | "SATURDAY" | "SUN" | "MON" | "TUE" | "WED" | "THU" | "FRI" | "SAT";
|
|
881
|
+
type AnchoredBannerBackgroundColor = "navy" | "yellow" | "green" | "purple" | "blue" | "white" | (string & {});
|
|
877
882
|
interface ScheduledMessage {
|
|
878
883
|
id?: string;
|
|
879
884
|
scheduledStart?: string;
|
|
@@ -891,7 +896,7 @@ interface ScheduledMessage {
|
|
|
891
896
|
}
|
|
892
897
|
interface AnchoredBottomBannerProps {
|
|
893
898
|
ctaSuffixText?: string;
|
|
894
|
-
backgroundColor?:
|
|
899
|
+
backgroundColor?: AnchoredBannerBackgroundColor;
|
|
895
900
|
iconName?: string;
|
|
896
901
|
boxShadow?: boolean;
|
|
897
902
|
ctaButtonLabel?: string;
|
|
@@ -902,6 +907,7 @@ interface AnchoredBottomBannerProps {
|
|
|
902
907
|
countdownStartDateTime?: string;
|
|
903
908
|
countdownEndDateTime?: string;
|
|
904
909
|
scheduledMessages?: ScheduledMessage[];
|
|
910
|
+
initialNowMs?: number;
|
|
905
911
|
onResolved?: (result: {
|
|
906
912
|
hasActiveMessage: boolean;
|
|
907
913
|
activeMessage?: ScheduledMessage;
|