@windstream/react-shared-components 0.0.17 → 0.0.18
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 +35 -5
- package/dist/contentful/index.esm.js +1 -1
- package/dist/contentful/index.esm.js.map +1 -1
- package/dist/contentful/index.js +1 -1
- package/dist/contentful/index.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/package.json +1 -1
- package/src/contentful/blocks/image-promo-bar/index.tsx +83 -2
- package/src/contentful/blocks/image-promo-bar/types.ts +28 -1
- package/src/contentful/blocks/primary-hero/types.ts +5 -1
package/dist/index.d.ts
CHANGED
|
@@ -55,15 +55,15 @@ type InputFieldProps = Omit<InputHTMLAttributes<HTMLInputElement>, "size"> & {
|
|
|
55
55
|
|
|
56
56
|
declare const InputField: ForwardRefRenderFunction<HTMLInputElement, InputFieldProps>;
|
|
57
57
|
declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size"> & {
|
|
58
|
-
state?: "default" | "
|
|
59
|
-
size?: "
|
|
58
|
+
state?: "default" | "focus" | "active" | "hover" | "filled" | "error" | undefined;
|
|
59
|
+
size?: "slim" | "medium" | "large" | undefined;
|
|
60
60
|
label?: string | undefined;
|
|
61
61
|
errorText?: string | undefined;
|
|
62
62
|
prefixIconName?: "search" | "location_on" | undefined;
|
|
63
63
|
prefixIconSize?: 20 | 24 | 40 | 48 | undefined;
|
|
64
64
|
prefixIconFill?: boolean | undefined;
|
|
65
65
|
suffixIconFill?: boolean | undefined;
|
|
66
|
-
suffixIconName?: "visibility" | "
|
|
66
|
+
suffixIconName?: "visibility" | "visibility_off" | "lock" | undefined;
|
|
67
67
|
suffixIconSize?: 20 | 24 | 40 | 48 | undefined;
|
|
68
68
|
containerClassName?: string | undefined;
|
|
69
69
|
prefixIconClassName?: string | undefined;
|
|
@@ -130,7 +130,7 @@ interface ListItemProps extends LiHTMLAttributes<HTMLLIElement> {
|
|
|
130
130
|
|
|
131
131
|
declare const ListItem: React$1.ForwardRefExoticComponent<ListItemProps & React$1.RefAttributes<HTMLLIElement>>;
|
|
132
132
|
|
|
133
|
-
declare const List: React__default.ForwardRefExoticComponent<ListProps & React__default.RefAttributes<
|
|
133
|
+
declare const List: React__default.ForwardRefExoticComponent<ListProps & React__default.RefAttributes<HTMLUListElement | HTMLOListElement>>;
|
|
134
134
|
|
|
135
135
|
declare const iconNameList: readonly ["info", "download", "featured_seasonal_and_gifts", "visibility", "paid", "check_box", "check_box_outline_blank", "radio_button_unchecked", "radio_button_checked", "counter_1", "counter_2", "counter_3", "error", "search", "cancel", "router", "broadcast_on_home", "check", "check_circle", "lock", "shield_lock", "phone_in_talk", "call", "chevron_left", "chevron_right", "keyboard_arrow_down", "keyboard_arrow_up", "arrow_back", "arrow_forward", "help", "home_pin", "location_on", "timer", "schedule", "add", "remove", "bolt", "rocket", "cloud_sync", "close", "groups", "speed", "mail", "credit_card", "language", "forum", "contract", "local_atm", "headset_mic", "sensors", "wifi", "settings", "home", "devices", "build", "thumb_up", "desktop_windows", "block", "all_inclusive", "verified_user", "extension", "stadia_controller", "visibility_off", "close_fullscreen", "progress_activity", "travel_explore", "share", "business_center", "upload", "videocam", "expand_circle_right", "add_circle", "do_not_disturb_on", "expand_circle_up", "expand_circle_down", "replay", "fiber_manual_record", "menu", "dangerous"];
|
|
136
136
|
declare const OpticalSizes: readonly ["20dp", "24dp", "40dp", "48dp"];
|
package/package.json
CHANGED
|
@@ -1,7 +1,88 @@
|
|
|
1
1
|
import { ImagePromoBarProps } from "./types";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export const ImagePromoBar: React.FC<ImagePromoBarProps> = ({
|
|
4
|
+
brow,
|
|
5
|
+
showAsHeading,
|
|
6
|
+
title,
|
|
7
|
+
subTitle,
|
|
8
|
+
ctaDisclaimer,
|
|
9
|
+
disclaimer,
|
|
10
|
+
description,
|
|
11
|
+
image,
|
|
12
|
+
imageLinks,
|
|
13
|
+
mediaPosition,
|
|
14
|
+
openDescriptionLinksOnANewTab,
|
|
15
|
+
checklist,
|
|
16
|
+
secondaryCta,
|
|
17
|
+
cta,
|
|
18
|
+
videoLink,
|
|
19
|
+
maxWidth = true,
|
|
20
|
+
}) => {
|
|
21
|
+
return (
|
|
22
|
+
<div className="component-container">
|
|
23
|
+
<div
|
|
24
|
+
className={`image-promo-bar-content ${maxWidth ? "mx-auto max-w-120" : ""}`}
|
|
25
|
+
>
|
|
26
|
+
{/* Header Section */}
|
|
27
|
+
{brow && <div>{brow}</div>}
|
|
28
|
+
{title && (showAsHeading ? <h1>{title}</h1> : <div>{title}</div>)}
|
|
29
|
+
{subTitle && <div>{subTitle}</div>}
|
|
2
30
|
|
|
3
|
-
|
|
4
|
-
|
|
31
|
+
{/* Media Section */}
|
|
32
|
+
{image && (
|
|
33
|
+
<img
|
|
34
|
+
className={`${mediaPosition ? "media-right" : "media-left"}`}
|
|
35
|
+
src={image}
|
|
36
|
+
alt={title}
|
|
37
|
+
/>
|
|
38
|
+
)}
|
|
39
|
+
|
|
40
|
+
{/* Content Section */}
|
|
41
|
+
{description && <div>{description}</div>}
|
|
42
|
+
{openDescriptionLinksOnANewTab && <div>Links open in new tab: Yes</div>}
|
|
43
|
+
|
|
44
|
+
{/* Checklist Rendering */}
|
|
45
|
+
{checklist?.map((item, index) => (
|
|
46
|
+
<div key={item.anchorId || index} className="checklist-item">
|
|
47
|
+
{item.iconUrl && <img src={item.iconUrl} alt="" />}
|
|
48
|
+
<span>{item.title}</span>
|
|
49
|
+
</div>
|
|
50
|
+
))}
|
|
51
|
+
|
|
52
|
+
{/* Image Links Collection */}
|
|
53
|
+
{imageLinks?.map((link, index) => (
|
|
54
|
+
<div key={index} className="image-link">
|
|
55
|
+
<a href={link.url}>image : {link.image}</a>
|
|
56
|
+
</div>
|
|
57
|
+
))}
|
|
58
|
+
|
|
59
|
+
{/* Video Link Section */}
|
|
60
|
+
{videoLink?.link && (
|
|
61
|
+
<div className="video-section">
|
|
62
|
+
{videoLink.image && (
|
|
63
|
+
<img src={videoLink.image} alt="Video preview" />
|
|
64
|
+
)}
|
|
65
|
+
<div>Video URL: {videoLink.link}</div>
|
|
66
|
+
{videoLink.videoPopup && <div>Mode: Popup</div>}
|
|
67
|
+
</div>
|
|
68
|
+
)}
|
|
69
|
+
|
|
70
|
+
{/* CTAs and Disclaimers */}
|
|
71
|
+
{cta && (
|
|
72
|
+
<div className="primary-cta">
|
|
73
|
+
{/* Render Button component here */}
|
|
74
|
+
</div>
|
|
75
|
+
)}
|
|
76
|
+
{secondaryCta && (
|
|
77
|
+
<div className="secondary-cta">
|
|
78
|
+
{/* Render Button component here */}
|
|
79
|
+
</div>
|
|
80
|
+
)}
|
|
81
|
+
{ctaDisclaimer && <div>{ctaDisclaimer}</div>}
|
|
82
|
+
{disclaimer && <div>{disclaimer}</div>}
|
|
83
|
+
</div>
|
|
84
|
+
</div>
|
|
85
|
+
);
|
|
5
86
|
};
|
|
6
87
|
|
|
7
88
|
export default ImagePromoBar;
|
|
@@ -1 +1,28 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
export type ImagePromoBarProps = {
|
|
4
|
+
brow: string;
|
|
5
|
+
showAsHeading: boolean;
|
|
6
|
+
title: string;
|
|
7
|
+
subTitle: string;
|
|
8
|
+
image: string;
|
|
9
|
+
mediaPosition: boolean;
|
|
10
|
+
description: React.ReactNode;
|
|
11
|
+
openDescriptionLinksOnANewTab: boolean;
|
|
12
|
+
checklist: {
|
|
13
|
+
title: string;
|
|
14
|
+
iconUrl?: string;
|
|
15
|
+
anchorId?: string;
|
|
16
|
+
}[];
|
|
17
|
+
disclaimer: React.ReactNode;
|
|
18
|
+
imageLinks: { url: string; image: string }[];
|
|
19
|
+
cta: any;
|
|
20
|
+
secondaryCta: any;
|
|
21
|
+
ctaDisclaimer: React.ReactNode;
|
|
22
|
+
videoLink: {
|
|
23
|
+
image?: string;
|
|
24
|
+
videoPopup?: boolean;
|
|
25
|
+
link?: string;
|
|
26
|
+
};
|
|
27
|
+
maxWidth?: boolean;
|
|
28
|
+
};
|
|
@@ -7,7 +7,11 @@ export type PrimaryHeroProps = {
|
|
|
7
7
|
priceCallout?: string;
|
|
8
8
|
pricingDescription?: string;
|
|
9
9
|
pricingDescriptionDisclaimer?: string;
|
|
10
|
-
checklist?:
|
|
10
|
+
checklist?: {
|
|
11
|
+
title: string;
|
|
12
|
+
iconUrl?: string;
|
|
13
|
+
anchorId?: string;
|
|
14
|
+
}[];
|
|
11
15
|
logoLockup?: string;
|
|
12
16
|
checkAvailabilityEyebrow?: string;
|
|
13
17
|
primaryCtaPrefix1?: string;
|