@windstream/react-shared-components 0.1.7 → 0.1.9
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 +39 -3
- 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/styles.css +1 -1
- package/package.json +1 -1
- package/src/contentful/blocks/accordion/index.tsx +1 -0
- package/src/contentful/blocks/address-input-banner/index.tsx +52 -0
- package/src/contentful/blocks/address-input-banner/types.ts +14 -0
- package/src/contentful/blocks/dynamic-tabs/index.tsx +204 -0
- package/src/contentful/blocks/dynamic-tabs/types.ts +21 -0
- package/src/contentful/blocks/primary-hero/index.tsx +11 -11
- package/src/contentful/index.ts +6 -0
|
@@ -30,7 +30,7 @@ export const PrimaryHero: React.FC<PrimaryHeroProps> = props => {
|
|
|
30
30
|
const bottomLinkLabel = bottomLink?.buttonLabel ?? bottomLink?.label;
|
|
31
31
|
|
|
32
32
|
return (
|
|
33
|
-
<div className="component-container p-5 lg:h-[724px] lg:p-0">
|
|
33
|
+
<div className="component-container p-5 lg:min-h-[724px] lg:p-0">
|
|
34
34
|
<div
|
|
35
35
|
className={cx(
|
|
36
36
|
"primary-hero-container mx-auto flex flex-col sm:items-center sm:text-center lg:h-full lg:max-w-120 lg:flex-row lg:items-center lg:justify-between lg:gap-4 lg:px-4 lg:text-left"
|
|
@@ -55,7 +55,7 @@ export const PrimaryHero: React.FC<PrimaryHeroProps> = props => {
|
|
|
55
55
|
|
|
56
56
|
{/* price callout */}
|
|
57
57
|
{price ? (
|
|
58
|
-
<div className="flex">
|
|
58
|
+
<div className="flex sm:justify-center sm:text-left lg:justify-start">
|
|
59
59
|
<div className="mr-2 mt-0.5">
|
|
60
60
|
{priceCallout
|
|
61
61
|
? priceCallout.split("|").map((line, index) => (
|
|
@@ -84,7 +84,7 @@ export const PrimaryHero: React.FC<PrimaryHeroProps> = props => {
|
|
|
84
84
|
{/* checklist */}
|
|
85
85
|
{checklist && (
|
|
86
86
|
<Checklist
|
|
87
|
-
listItemClassName="text-white body2"
|
|
87
|
+
listItemClassName="text-white body2 text-left"
|
|
88
88
|
items={checklist.map(item => item.title)}
|
|
89
89
|
/>
|
|
90
90
|
)}
|
|
@@ -93,7 +93,7 @@ export const PrimaryHero: React.FC<PrimaryHeroProps> = props => {
|
|
|
93
93
|
<div className="flex flex-col gap-3">
|
|
94
94
|
{/* desktop CTA */}
|
|
95
95
|
{primaryCta1 && (
|
|
96
|
-
<div className={cx("hidden
|
|
96
|
+
<div className={cx("hidden md:flex md:flex-col")}>
|
|
97
97
|
<Button
|
|
98
98
|
{...primaryCta1}
|
|
99
99
|
renderCheckPlans={renderCheckPlans}
|
|
@@ -103,7 +103,7 @@ export const PrimaryHero: React.FC<PrimaryHeroProps> = props => {
|
|
|
103
103
|
)}
|
|
104
104
|
|
|
105
105
|
{secondaryCtaPrefix || secondaryCta ? (
|
|
106
|
-
<div className="flex">
|
|
106
|
+
<div className="hidden md:flex">
|
|
107
107
|
{secondaryCtaPrefix && (
|
|
108
108
|
<Text as="span" className="body2 mr-1">
|
|
109
109
|
{secondaryCtaPrefix}
|
|
@@ -121,7 +121,7 @@ export const PrimaryHero: React.FC<PrimaryHeroProps> = props => {
|
|
|
121
121
|
|
|
122
122
|
{/* desktop bottom link */}
|
|
123
123
|
{bottomLink && (bottomLinkLabel || bottomLink?.href) && (
|
|
124
|
-
<div className="hidden
|
|
124
|
+
<div className="hidden md:block">
|
|
125
125
|
<Button
|
|
126
126
|
{...bottomLink}
|
|
127
127
|
linkClassName="text-footnote text-white"
|
|
@@ -131,7 +131,7 @@ export const PrimaryHero: React.FC<PrimaryHeroProps> = props => {
|
|
|
131
131
|
)}
|
|
132
132
|
|
|
133
133
|
{pricingDescriptionDisclaimer ? (
|
|
134
|
-
<Text as="p" className="body3">
|
|
134
|
+
<Text as="p" className="body3 hidden md:block">
|
|
135
135
|
{pricingDescriptionDisclaimer}
|
|
136
136
|
</Text>
|
|
137
137
|
) : null}
|
|
@@ -156,7 +156,7 @@ export const PrimaryHero: React.FC<PrimaryHeroProps> = props => {
|
|
|
156
156
|
<NextImage
|
|
157
157
|
src={carouselImages[0]}
|
|
158
158
|
alt={"Hero"}
|
|
159
|
-
className="aspect-[1.71:1] sm:aspect-[1.41:1] rounded-[40px] object-cover object-center sm:h-[420px]"
|
|
159
|
+
className="aspect-[1.71:1] sm:aspect-[1.41:1] w-full rounded-[40px] object-cover object-center sm:h-[420px]"
|
|
160
160
|
width={350}
|
|
161
161
|
height={205}
|
|
162
162
|
loading="eager"
|
|
@@ -165,7 +165,7 @@ export const PrimaryHero: React.FC<PrimaryHeroProps> = props => {
|
|
|
165
165
|
</div>
|
|
166
166
|
|
|
167
167
|
{bottomLink && (bottomLinkLabel || bottomLink?.href) && (
|
|
168
|
-
<div>
|
|
168
|
+
<div className="md:hidden">
|
|
169
169
|
<Button
|
|
170
170
|
{...bottomLink}
|
|
171
171
|
onModalButtonClick={onModalButtonClick}
|
|
@@ -175,13 +175,13 @@ export const PrimaryHero: React.FC<PrimaryHeroProps> = props => {
|
|
|
175
175
|
)}
|
|
176
176
|
|
|
177
177
|
{pricingDescriptionDisclaimer ? (
|
|
178
|
-
<Text as="p" className="body3">
|
|
178
|
+
<Text as="p" className="body3 md:hidden">
|
|
179
179
|
{pricingDescriptionDisclaimer}
|
|
180
180
|
</Text>
|
|
181
181
|
) : null}
|
|
182
182
|
|
|
183
183
|
{secondaryCtaPrefix || secondaryCta ? (
|
|
184
|
-
<div className="flex">
|
|
184
|
+
<div className="flex md:hidden">
|
|
185
185
|
{secondaryCtaPrefix && (
|
|
186
186
|
<Text as="span" className="body2 mr-1">
|
|
187
187
|
{secondaryCtaPrefix}
|
package/src/contentful/index.ts
CHANGED
|
@@ -67,3 +67,9 @@ export type { BreadcrumbNavigationProps } from "./blocks/breadcrumbs/types";
|
|
|
67
67
|
|
|
68
68
|
export { SearchBlock } from "./blocks/search-block";
|
|
69
69
|
export type { SearchBlockProps } from "./blocks/search-block/types";
|
|
70
|
+
|
|
71
|
+
export { AddressInputBanner } from "./blocks/address-input-banner";
|
|
72
|
+
export type { AddressInputBannerProps } from "./blocks/address-input-banner/types";
|
|
73
|
+
|
|
74
|
+
export { DynamicTabs } from "./blocks/dynamic-tabs";
|
|
75
|
+
export type { DynamicTabsT } from "./blocks/dynamic-tabs/types";
|