@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/dist/contentful/index.d.ts +2 -0
- package/dist/contentful/index.esm.js +1 -1
- 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.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.esm.js +1 -1
- package/dist/utils/index.esm.js.map +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/brand-button/index.tsx +1 -1
- package/src/contentful/blocks/primary-hero/index.tsx +11 -4
- package/src/contentful/blocks/primary-hero/types.ts +2 -0
- package/src/utils/cookie.ts +3 -3
package/package.json
CHANGED
|
@@ -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
|
-
|
|
96
|
-
<div
|
|
97
|
-
|
|
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 && (
|
package/src/utils/cookie.ts
CHANGED
|
@@ -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 = ".
|
|
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 `.
|
|
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 `.
|
|
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: "/" });
|