@windstream/react-shared-components 0.1.71 → 0.1.73
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 +104 -28
- 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 +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/next/index.esm.js.map +1 -1
- package/dist/next/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/utils/index.d.ts +12 -1
- 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/next-image/index.tsx +3 -1
- package/src/contentful/blocks/accordion/Accordion.stories.mocks.tsx +8 -8
- package/src/contentful/blocks/accordion/Accordion.stories.tsx +5 -13
- package/src/contentful/blocks/anchored-bottom-banner/index.tsx +114 -3
- package/src/contentful/blocks/anchored-bottom-banner/types.ts +4 -1
- package/src/contentful/blocks/callout/index.tsx +201 -37
- package/src/contentful/blocks/callout/types.ts +56 -3
- package/src/contentful/blocks/cards/floating-image-card/index.tsx +119 -0
- package/src/contentful/blocks/cards/floating-image-card/types.ts +30 -0
- package/src/contentful/blocks/cards/full-image-card/index.tsx +130 -0
- package/src/contentful/blocks/cards/full-image-card/types.ts +29 -0
- package/src/contentful/blocks/cards/simple-card/index.tsx +294 -58
- package/src/contentful/blocks/cards/simple-card/types.ts +47 -4
- package/src/contentful/blocks/comparison-table/index.tsx +3 -1
- package/src/contentful/blocks/footer/Footer.stories.tsx +145 -32
- package/src/hooks/contentful/use-contentful-rich-text.tsx +5 -3
- package/src/utils/index.ts +3 -0
- package/src/utils/speed-card-bg.ts +24 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
|
-
import React__default, { ReactNode, FC } from 'react';
|
|
2
|
+
import React__default, { ReactNode, CSSProperties, FC } from 'react';
|
|
3
3
|
import { ResponsiveSize } from '@shared/components/brand-button/types';
|
|
4
4
|
import { Fill, Size } from '@shared/components/material-icon/types';
|
|
5
5
|
import { CheckPlansProps, Asset, Button as Button$1, ButtonGroup } from '@shared/types/micro-components';
|
|
@@ -35,30 +35,6 @@ type ThemeKey$1 = "blue" | "green" | "yellow" | "purple" | "white" | "navy" | "c
|
|
|
35
35
|
|
|
36
36
|
declare const Accordion: React__default.FC<AccordionProps>;
|
|
37
37
|
|
|
38
|
-
type CalloutProps = {
|
|
39
|
-
title?: string;
|
|
40
|
-
enableHeading?: boolean;
|
|
41
|
-
subtitle?: string;
|
|
42
|
-
applyBoxShadow?: boolean;
|
|
43
|
-
cardStackingMobile?: boolean;
|
|
44
|
-
bottomText?: string;
|
|
45
|
-
color?: "dark" | "light";
|
|
46
|
-
cardsWidth?: string;
|
|
47
|
-
maxCardsPerRow?: number;
|
|
48
|
-
noGutter?: boolean;
|
|
49
|
-
items: any[];
|
|
50
|
-
maxWidth?: boolean;
|
|
51
|
-
cardType?: "simple" | "blog";
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
declare const Callout: React__default.FC<CalloutProps>;
|
|
55
|
-
|
|
56
|
-
type CardsProps = {};
|
|
57
|
-
|
|
58
|
-
declare const Cards: React.FC<{
|
|
59
|
-
fields: CardsProps;
|
|
60
|
-
}>;
|
|
61
|
-
|
|
62
38
|
type ButtonProps = {
|
|
63
39
|
showButtonAs?: "solid" | "text" | "unstyled";
|
|
64
40
|
buttonVariant?: "primary_brand" | "secondary" | "primary_inverse";
|
|
@@ -91,20 +67,117 @@ type ButtonProps = {
|
|
|
91
67
|
iconSize?: Size;
|
|
92
68
|
};
|
|
93
69
|
|
|
70
|
+
type CalloutCardType = "simple" | "blog" | "fullImage" | "floatingImage";
|
|
71
|
+
type CalloutCtaProps = ButtonProps & {
|
|
72
|
+
label?: string;
|
|
73
|
+
};
|
|
74
|
+
type CalloutItem = {
|
|
75
|
+
/**
|
|
76
|
+
* Optional per-item card type. When provided, overrides the top-level
|
|
77
|
+
* `cardType` for this single item — enables mixed card variants in one
|
|
78
|
+
* Callout (e.g. one full-image + two simple cards).
|
|
79
|
+
*/
|
|
80
|
+
cardType?: CalloutCardType;
|
|
81
|
+
[key: string]: any;
|
|
82
|
+
};
|
|
83
|
+
type CalloutProps = {
|
|
84
|
+
/** Outer `<section>` id — anchor link target. */
|
|
85
|
+
anchorId?: string;
|
|
86
|
+
title?: string;
|
|
87
|
+
enableHeading?: boolean;
|
|
88
|
+
subtitle?: string;
|
|
89
|
+
description?: string;
|
|
90
|
+
finePrint?: ReactNode;
|
|
91
|
+
cta?: CalloutCtaProps;
|
|
92
|
+
applyBoxShadow?: boolean;
|
|
93
|
+
cardStackingMobile?: boolean;
|
|
94
|
+
bottomText?: string;
|
|
95
|
+
color?: "dark" | "light";
|
|
96
|
+
/**
|
|
97
|
+
* When `true` (default) cards are laid out in a responsive Tailwind
|
|
98
|
+
* grid sized by `maxCardsPerRow`. When `false` the cards stretch
|
|
99
|
+
* full-width and stack vertically (no inner widths).
|
|
100
|
+
*/
|
|
101
|
+
cardsWidth?: boolean;
|
|
102
|
+
maxCardsPerRow?: number;
|
|
103
|
+
noGutter?: boolean;
|
|
104
|
+
items: CalloutItem[];
|
|
105
|
+
maxWidth?: boolean;
|
|
106
|
+
/** Top-level card type used when an item does not specify its own. */
|
|
107
|
+
cardType?: CalloutCardType;
|
|
108
|
+
/**
|
|
109
|
+
* Background color token. When omitted the section has no background
|
|
110
|
+
* (preserves prior behavior for existing 0.1.70 consumers).
|
|
111
|
+
*/
|
|
112
|
+
backgroundColor?: "cream500" | "gray100" | "white" | "transparent" | "blue" | "green" | "navy" | "purple" | "yellow";
|
|
113
|
+
/** Raw background CSS value (overrides `backgroundColor` when present). */
|
|
114
|
+
background?: string;
|
|
115
|
+
/** Inline text color override applied to the heading region. */
|
|
116
|
+
textColor?: string;
|
|
117
|
+
/** Extra class names for the outer <section>. */
|
|
118
|
+
containerClassName?: string;
|
|
119
|
+
/** Extra class names for the inner content wrapper. */
|
|
120
|
+
innerClassName?: string;
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
declare const Callout: React__default.FC<CalloutProps>;
|
|
124
|
+
|
|
125
|
+
type CardsProps = {};
|
|
126
|
+
|
|
127
|
+
declare const Cards: React.FC<{
|
|
128
|
+
fields: CardsProps;
|
|
129
|
+
}>;
|
|
130
|
+
|
|
131
|
+
type PinwheelColor = "Blue-#307998" | "Green-#209A61" | "Orange-#DE7E0A" | "Purple-#7E1458" | (string & {});
|
|
132
|
+
type SimpleCardCtaBottom = {
|
|
133
|
+
title?: string;
|
|
134
|
+
href?: string;
|
|
135
|
+
};
|
|
94
136
|
type Item = {
|
|
95
137
|
title?: string;
|
|
96
138
|
image?: string;
|
|
139
|
+
imageAlt?: string;
|
|
140
|
+
imageWidth?: number;
|
|
141
|
+
imageHeight?: number;
|
|
97
142
|
imageAlignment?: "left" | "right" | "center";
|
|
98
|
-
|
|
143
|
+
iconAlignment?: "left" | "right" | "center";
|
|
144
|
+
/**
|
|
145
|
+
* Layout variant for the image. `standard` / `icon` render an inline
|
|
146
|
+
* icon above the content. `full` renders a full-bleed top image.
|
|
147
|
+
* `margin` is `full` with horizontal padding.
|
|
148
|
+
*/
|
|
149
|
+
imageView?: "standard" | "icon" | "full" | "margin" | "inset";
|
|
150
|
+
body?: ReactNode;
|
|
151
|
+
/** Optional secondary rich-text region (port of local `richText`). */
|
|
152
|
+
richText?: ReactNode;
|
|
99
153
|
cta?: ButtonProps;
|
|
100
154
|
ctaAlignment?: "left" | "right" | "center";
|
|
101
|
-
|
|
155
|
+
/** Top "location" CTA, rendered above the title with a `location_on` icon. */
|
|
156
|
+
ctaBottom?: SimpleCardCtaBottom;
|
|
157
|
+
ctaAlignmentBottom?: "left" | "right" | "center";
|
|
158
|
+
/** Legacy token-based card background (mapped via `backgroundColorMap`). */
|
|
102
159
|
backgroundColor?: string;
|
|
160
|
+
/** Raw color value used when `applyCardBackgroundColor` is true. */
|
|
161
|
+
applyCardBackgroundColor?: boolean;
|
|
162
|
+
textColor?: string;
|
|
163
|
+
showBackgroundImage?: boolean;
|
|
164
|
+
pinwheelColor?: PinwheelColor;
|
|
165
|
+
/** On `lg:` and up, lays out icon + content side-by-side. */
|
|
166
|
+
imageToRichTextAlignment?: boolean;
|
|
167
|
+
/** Bold label between title and the phone/hours table. */
|
|
168
|
+
titleLocation?: string;
|
|
169
|
+
phoneNumber?: string[];
|
|
170
|
+
/** Each entry uses a `label|value` separator. */
|
|
171
|
+
workingHours?: string[];
|
|
172
|
+
shadow?: boolean;
|
|
103
173
|
};
|
|
104
174
|
type SimpleCardProps = {
|
|
105
175
|
card: Item;
|
|
106
176
|
lgWidth?: string;
|
|
107
177
|
mdWidth?: string;
|
|
178
|
+
className?: string;
|
|
179
|
+
contentClassName?: string;
|
|
180
|
+
style?: CSSProperties;
|
|
108
181
|
};
|
|
109
182
|
|
|
110
183
|
declare const SimpleCard: React__default.FC<SimpleCardProps>;
|
|
@@ -662,13 +735,16 @@ declare function DynamicTabs(props: DynamicTabsT): react_jsx_runtime.JSX.Element
|
|
|
662
735
|
|
|
663
736
|
interface AnchoredBottomBannerProps {
|
|
664
737
|
ctaSuffixText?: string;
|
|
665
|
-
backgroundColor?: "navy" | "yellow" | "green" | "purple" | "blue";
|
|
738
|
+
backgroundColor?: "navy" | "yellow" | "green" | "purple" | "blue" | "white";
|
|
666
739
|
iconName?: string;
|
|
667
740
|
boxShadow?: boolean;
|
|
668
741
|
ctaButtonLabel?: string;
|
|
669
742
|
ctaButtonLink?: string;
|
|
670
743
|
ctaButtonTarget?: string;
|
|
671
744
|
anchorId?: string;
|
|
745
|
+
enableCountdownTimer?: boolean;
|
|
746
|
+
countdownStartDateTime?: string;
|
|
747
|
+
countdownEndDateTime?: string;
|
|
672
748
|
}
|
|
673
749
|
|
|
674
750
|
declare const AnchoredBottomBanner: React__default.FC<AnchoredBottomBannerProps>;
|