@windstream/react-shared-components 0.0.16 → 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/core.d.ts CHANGED
@@ -59,7 +59,7 @@ declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAtt
59
59
  size?: "slim" | "medium" | "large" | undefined;
60
60
  label?: string | undefined;
61
61
  errorText?: string | undefined;
62
- prefixIconName?: "search" | "location_on" | undefined;
62
+ prefixIconName?: "location_on" | "search" | undefined;
63
63
  prefixIconSize?: 20 | 24 | 40 | 48 | undefined;
64
64
  prefixIconFill?: boolean | undefined;
65
65
  suffixIconFill?: boolean | undefined;
@@ -295,7 +295,7 @@ type ButtonCustomProps = {
295
295
  };
296
296
  type ButtonProps = ButtonCustomProps & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "className">;
297
297
 
298
- declare const BrandButton: React$1.ForwardRefExoticComponent<_shared_components_brand_button_types.ButtonCustomProps & Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "children" | "className"> & React$1.RefAttributes<HTMLButtonElement>>;
298
+ declare const BrandButton: React$1.ForwardRefExoticComponent<_shared_components_brand_button_types.ButtonCustomProps & Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "className" | "children"> & React$1.RefAttributes<HTMLButtonElement>>;
299
299
 
300
300
  declare const Checklist: React__default.FC<ChecklistProps>;
301
301
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windstream/react-shared-components",
3
- "version": "0.0.16",
3
+ "version": "0.0.18",
4
4
  "type": "module",
5
5
  "description": "Shared React components for Kinetic applications",
6
6
  "main": "dist/index.js",
@@ -1,4 +1,3 @@
1
- "use client";
2
1
  import React from "react";
3
2
  import { CtaCalloutProps, ThemeKey } from "./types";
4
3
  import { Text } from "@shared/components/text";
@@ -22,7 +22,7 @@ export const Footer: React.FC<FooterProps> = ({
22
22
  />
23
23
  <div className="grid-1 grid gap-8 md:grid-cols-2 lg:grid-cols-4 py-8">
24
24
  {links?.map((link: any, index: number) => (
25
- <>
25
+ <div key={`footer-link-group-${index}`}>
26
26
  <div className="site-links-group" key={`link-group-${index}`}>
27
27
  <div>{link?.title}</div>
28
28
  <div className="flex flex-col">
@@ -40,7 +40,7 @@ export const Footer: React.FC<FooterProps> = ({
40
40
  "bg-white h-[1px] border-t-0 opacity-100 dark:opacity-50 block md:hidden "
41
41
  }
42
42
  />
43
- </>
43
+ </div>
44
44
  ))}
45
45
  </div>
46
46
 
@@ -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
- export const ImagePromoBar: React.FC<{ fields: ImagePromoBarProps }> = ({ fields }) => {
4
- return <div>Image Promo Bar</div>;
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
- export type ImagePromoBarProps = {}
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
+ };
@@ -1,7 +1,77 @@
1
1
  import { PrimaryHeroProps } from "./types";
2
+ import React from "react";
3
+ export const PrimaryHero: React.FC<PrimaryHeroProps> = ({
4
+ maxWidth = true,
5
+ title,
6
+ showAsHeading,
7
+ subTitle,
8
+ price,
9
+ priceSuffix,
10
+ priceCallout,
11
+ pricingDescription,
12
+ pricingDescriptionDisclaimer,
13
+ checklist,
14
+ logoLockup,
15
+ checkAvailabilityEyebrow,
16
+ primaryCtaPrefix1,
17
+ primaryCtaPrefix2,
18
+ primaryCta1,
19
+ primaryCta2,
20
+ secondaryCtaPrefix,
21
+ secondaryCta,
22
+ carouselImages,
23
+ squareImage,
24
+ badgeImage,
25
+ bottomLink,
26
+ }) => {
27
+ return (
28
+ <div className="component-container">
29
+ <div
30
+ className={`primary-hero-container ${maxWidth ? "mx-auto max-w-120" : ""}`}
31
+ >
32
+ {/* Text Content */}
33
+ {title && <div>{title}</div>}
34
+ {showAsHeading && <div>Heading Mode: {String(showAsHeading)}</div>}
35
+ {subTitle && <div>{subTitle}</div>}
2
36
 
3
- export const PrimaryHero: React.FC<{ fields: PrimaryHeroProps }> = ({ fields }) => {
4
- return <div>Primary Hero</div>;
37
+ {/* Pricing Section */}
38
+ {price && <div>{price}</div>}
39
+ {priceSuffix && <div>{priceSuffix}</div>}
40
+ {priceCallout && <div>{priceCallout}</div>}
41
+ {pricingDescription && <div>{pricingDescription}</div>}
42
+ {pricingDescriptionDisclaimer && (
43
+ <div>{pricingDescriptionDisclaimer}</div>
44
+ )}
45
+
46
+ {/* Assets & Logos */}
47
+ {logoLockup && <div>Logo: {logoLockup}</div>}
48
+ {badgeImage && <div>Badge: {badgeImage}</div>}
49
+ {squareImage && <div>Square Layout: {String(squareImage)}</div>}
50
+
51
+ {/* Checklist */}
52
+ {checklist?.map((item) => (
53
+ <div key={item.anchorId}>Checklist Item: {item.title}</div>
54
+ ))}
55
+
56
+ {/* CTAs & Availability */}
57
+ {checkAvailabilityEyebrow && <div>{checkAvailabilityEyebrow}</div>}
58
+ {primaryCtaPrefix1 && <div>{primaryCtaPrefix1}</div>}
59
+ {primaryCta1 && <div>CTA 1: {primaryCta1.label}</div>}
60
+ {primaryCtaPrefix2 && <div>{primaryCtaPrefix2}</div>}
61
+ {primaryCta2 && <div>CTA 2: {primaryCta2.label}</div>}
62
+ {secondaryCtaPrefix && <div>{secondaryCtaPrefix}</div>}
63
+ {secondaryCta && <div>Secondary: {secondaryCta.label}</div>}
64
+ {bottomLink && <div>Bottom Link: {bottomLink.label}</div>}
65
+
66
+ {/* Carousel URLs via hook */}
67
+ {carouselImages?.map((url, index) => (
68
+ <div key={index}>
69
+ Carousel Image {index + 1}: {url}
70
+ </div>
71
+ ))}
72
+ </div>
73
+ </div>
74
+ );
5
75
  };
6
76
 
7
77
  export default PrimaryHero;
@@ -1 +1,29 @@
1
- export type PrimaryHeroProps = {}
1
+ export type PrimaryHeroProps = {
2
+ title: string;
3
+ showAsHeading?: boolean;
4
+ subTitle?: string;
5
+ price?: string;
6
+ priceSuffix?: string;
7
+ priceCallout?: string;
8
+ pricingDescription?: string;
9
+ pricingDescriptionDisclaimer?: string;
10
+ checklist?: {
11
+ title: string;
12
+ iconUrl?: string;
13
+ anchorId?: string;
14
+ }[];
15
+ logoLockup?: string;
16
+ checkAvailabilityEyebrow?: string;
17
+ primaryCtaPrefix1?: string;
18
+ primaryCtaPrefix2?: string;
19
+ primaryCta1?: any;
20
+ primaryCta2?: any;
21
+ secondaryCtaPrefix?: string;
22
+ secondaryCta?: any;
23
+ bottomLink?: any;
24
+ carouselImages?: string[];
25
+ squareImage?: boolean;
26
+ badgeImage?: string;
27
+ textColor?: string;
28
+ maxWidth?: boolean;
29
+ };