@windstream/react-shared-components 0.1.40 → 0.1.42

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windstream/react-shared-components",
3
- "version": "0.1.40",
3
+ "version": "0.1.42",
4
4
  "type": "module",
5
5
  "description": "Shared React components for Kinetic applications",
6
6
  "main": "dist/index.js",
@@ -32,7 +32,7 @@ export const BrandButton = forwardRef<
32
32
  const getVariantClasses = () => {
33
33
  const baseClasses = cx(
34
34
  sizeToClassNames(size),
35
- "rounded-button pl-15 pr-15 inline-flex gap-2 items-center justify-center outline-none focus:ring-2 focus:ring-offset-2 cursor-pointer transition-colors duration-200 align-top",
35
+ "rounded-button pl-15 pr-15 inline-flex gap-2 items-center justify-center outline-none focus:ring-2 focus:ring-offset-2 cursor-pointer transition-colors duration-200 align-top whitespace-nowrap",
36
36
  fullWidth && "w-full"
37
37
  );
38
38
 
@@ -25,6 +25,8 @@ export const PrimaryHero: React.FC<PrimaryHeroProps> = props => {
25
25
  secondaryCta,
26
26
  secondaryCtaPrefix,
27
27
  onModalButtonClick,
28
+ hideOnMobileCta1,
29
+ hideOnMobileCta2,
28
30
  } = props;
29
31
 
30
32
  const bottomLinkLabel = bottomLink?.buttonLabel ?? bottomLink?.label;
@@ -92,16 +94,21 @@ export const PrimaryHero: React.FC<PrimaryHeroProps> = props => {
92
94
  {/* CTA section */}
93
95
  <div className="flex flex-col gap-3">
94
96
  {/* desktop CTA */}
95
- {primaryCta1 && (
96
- <div className={cx("flex justify-center md:flex-col md:items-start [&_a]:whitespace-nowrap [&_button]:whitespace-nowrap")}>
97
- <Button
97
+ {primaryCta1 && (
98
+ <div
99
+ className={cx(
100
+ "md:flex md:flex-col",
101
+ hideOnMobileCta1 && "hidden"
102
+ )}
103
+ >
104
+ <Button
98
105
  {...primaryCta1}
99
106
  renderCheckPlans={renderCheckPlans}
100
107
  onModalButtonClick={onModalButtonClick}
108
+ fullWidth={true}
101
109
  />
102
110
  </div>
103
111
  )}
104
-
105
112
  {secondaryCtaPrefix || secondaryCta ? (
106
113
  <div className="hidden md:flex">
107
114
  {secondaryCtaPrefix && (
@@ -22,6 +22,8 @@ export type PrimaryHeroProps = {
22
22
  primaryCtaPrefix2?: string;
23
23
  primaryCta1?: any;
24
24
  primaryCta2?: any;
25
+ hideOnMobileCta1?: boolean;
26
+ hideOnMobileCta2?: boolean;
25
27
  secondaryCtaPrefix?: string;
26
28
  secondaryCta?: any;
27
29
  bottomLink?: any;
@@ -8,7 +8,7 @@ import { Base64 } from "js-base64";
8
8
  import Cookies from "js-cookie";
9
9
 
10
10
  const UTM_COOKIE_KEY = "utm_parameters";
11
- const DEFAULT_DOMAIN = ".windstream.com";
11
+ const DEFAULT_DOMAIN = ".gokinetic.com";
12
12
 
13
13
  /**
14
14
  * Reads UTM parameters from the Base64-encoded cookie.
@@ -31,7 +31,7 @@ export function getUTMs(): UTMProperties | null {
31
31
  /**
32
32
  * Stores UTM parameters as a Base64-encoded JSON cookie.
33
33
  * @param utms - The UTM properties to store.
34
- * @param domain - Cookie domain (defaults to `.windstream.com`).
34
+ * @param domain - Cookie domain (defaults to `.gokinetic.com`).
35
35
  */
36
36
  export function setUTMs(
37
37
  utms: UTMProperties,
@@ -51,7 +51,7 @@ export function setUTMs(
51
51
 
52
52
  /**
53
53
  * Removes the UTM cookie.
54
- * @param domain - Cookie domain (defaults to `.windstream.com`).
54
+ * @param domain - Cookie domain (defaults to `.gokinetic.com`).
55
55
  */
56
56
  export function removeUTMs(domain: string = DEFAULT_DOMAIN): void {
57
57
  Cookies.remove(UTM_COOKIE_KEY, { domain, path: "/" });