@windstream/react-shared-components 0.2.80 → 0.2.82
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 +11 -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/core.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/contentful/blocks/address-input-banner/index.test.tsx +13 -0
- package/src/contentful/blocks/address-input-banner/index.tsx +5 -1
- package/src/contentful/blocks/address-input-banner/types.ts +3 -0
- 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/button/index.test.tsx +45 -2
- package/src/contentful/blocks/button/index.tsx +13 -1
- package/src/contentful/blocks/button/types.ts +2 -0
- package/src/contentful/blocks/footer/index.test.tsx +65 -2
- package/src/contentful/blocks/footer/index.tsx +14 -4
- package/src/contentful/blocks/footer/types.ts +4 -0
- package/src/contentful/blocks/navigation/desktop-link-groups.tsx/index.test.tsx +26 -2
- package/src/contentful/blocks/navigation/desktop-link-groups.tsx/index.tsx +8 -2
- package/src/contentful/blocks/navigation/index.test.tsx +40 -2
- package/src/contentful/blocks/navigation/index.tsx +25 -5
- package/src/contentful/blocks/navigation/mobile-link-groups.tsx/index.test.tsx +14 -0
- package/src/contentful/blocks/navigation/mobile-link-groups.tsx/index.tsx +4 -1
- package/src/contentful/blocks/navigation/types.ts +5 -0
- package/src/types/micro-components.ts +6 -0
|
@@ -94,6 +94,8 @@ type ButtonProps = {
|
|
|
94
94
|
iconSize?: Size;
|
|
95
95
|
disableAnimation?: boolean;
|
|
96
96
|
animationType?: AnimationType | AnimationType[];
|
|
97
|
+
/** Extra DOM attribute props, spread onto the rendered link/button element. */
|
|
98
|
+
fieldProps?: Record<string, unknown>;
|
|
97
99
|
};
|
|
98
100
|
|
|
99
101
|
type CalloutCardType = "simple" | "blog" | "fullImage" | "floatingImage";
|
|
@@ -377,6 +379,8 @@ type FooterProps = {
|
|
|
377
379
|
terms?: string;
|
|
378
380
|
maxWidth?: boolean;
|
|
379
381
|
onClick?: (event: React__default.MouseEvent<HTMLAnchorElement | HTMLButtonElement>) => void;
|
|
382
|
+
/** Extra DOM attribute props, spread onto the respective rendered elements. */
|
|
383
|
+
fieldProps?: FieldProps<"body" | "terms" | "copyrights">;
|
|
380
384
|
};
|
|
381
385
|
|
|
382
386
|
declare const Footer: React__default.FC<FooterProps>;
|
|
@@ -475,6 +479,8 @@ interface Navigation$1 {
|
|
|
475
479
|
/** When true, renders the mobile hamburger navigation in the desktop
|
|
476
480
|
* viewport and hides the inline desktop nav. Defaults to false. */
|
|
477
481
|
enableHamburgerNavigationOnDesktop?: boolean;
|
|
482
|
+
/** Extra DOM attribute props, spread onto the respective rendered elements. */
|
|
483
|
+
fieldProps?: FieldProps<"logo" | "searchBarIcon" | "callNowCtaText" | "callNowCtaIcon">;
|
|
478
484
|
}
|
|
479
485
|
type NavigationProps = Navigation$1;
|
|
480
486
|
|
|
@@ -836,6 +842,8 @@ interface AddressInputBannerProps {
|
|
|
836
842
|
navHeight?: number;
|
|
837
843
|
isVisible?: boolean;
|
|
838
844
|
renderCheckPlans?: (overrides?: CheckPlansProps) => React__default.ReactNode;
|
|
845
|
+
/** Extra DOM attribute props, spread onto the respective rendered elements. */
|
|
846
|
+
fieldProps?: FieldProps<"title">;
|
|
839
847
|
}
|
|
840
848
|
|
|
841
849
|
declare const AddressInputBanner: FC<AddressInputBannerProps>;
|
|
@@ -866,6 +874,7 @@ interface DynamicTabsT {
|
|
|
866
874
|
declare function DynamicTabs(props: DynamicTabsT): react_jsx_runtime.JSX.Element;
|
|
867
875
|
|
|
868
876
|
type ScheduledMessageDay = "ALL" | "SUNDAY" | "MONDAY" | "TUESDAY" | "WEDNESDAY" | "THURSDAY" | "FRIDAY" | "SATURDAY" | "SUN" | "MON" | "TUE" | "WED" | "THU" | "FRI" | "SAT";
|
|
877
|
+
type AnchoredBannerBackgroundColor = "navy" | "yellow" | "green" | "purple" | "blue" | "white" | (string & {});
|
|
869
878
|
interface ScheduledMessage {
|
|
870
879
|
id?: string;
|
|
871
880
|
scheduledStart?: string;
|
|
@@ -883,7 +892,7 @@ interface ScheduledMessage {
|
|
|
883
892
|
}
|
|
884
893
|
interface AnchoredBottomBannerProps {
|
|
885
894
|
ctaSuffixText?: string;
|
|
886
|
-
backgroundColor?:
|
|
895
|
+
backgroundColor?: AnchoredBannerBackgroundColor;
|
|
887
896
|
iconName?: string;
|
|
888
897
|
boxShadow?: boolean;
|
|
889
898
|
ctaButtonLabel?: string;
|
|
@@ -894,6 +903,7 @@ interface AnchoredBottomBannerProps {
|
|
|
894
903
|
countdownStartDateTime?: string;
|
|
895
904
|
countdownEndDateTime?: string;
|
|
896
905
|
scheduledMessages?: ScheduledMessage[];
|
|
906
|
+
initialNowMs?: number;
|
|
897
907
|
onResolved?: (result: {
|
|
898
908
|
hasActiveMessage: boolean;
|
|
899
909
|
activeMessage?: ScheduledMessage;
|