@windstream/react-shared-components 0.2.48 → 0.2.50
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 +10 -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 +48 -6
- package/dist/index.d.ts +48 -6
- package/dist/index.esm.js +6 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/components/brand-button/index.tsx +2 -2
- package/src/components/precisely-address-autocomplete/PreciselyAddressAutocomplete.stories.tsx +69 -0
- package/src/components/precisely-address-autocomplete/index.test.tsx +159 -0
- package/src/components/precisely-address-autocomplete/index.tsx +219 -0
- package/src/components/precisely-address-autocomplete/types.ts +54 -0
- package/src/contentful/blocks/callout/index.test.tsx +2 -2
- package/src/contentful/blocks/callout/index.tsx +1 -0
- package/src/contentful/blocks/cards/blog-card/index.tsx +9 -2
- package/src/contentful/blocks/cards/blog-card/types.ts +4 -0
- package/src/contentful/blocks/cards/floating-image-card/index.tsx +24 -9
- package/src/contentful/blocks/cards/floating-image-card/types.ts +4 -0
- package/src/contentful/blocks/cards/full-image-card/index.tsx +2 -1
- package/src/contentful/blocks/cards/full-image-card/types.ts +4 -0
- package/src/contentful/blocks/cards/simple-card/index.tsx +4 -3
- package/src/contentful/blocks/cards/simple-card/types.ts +4 -0
- package/src/contentful/blocks/find-kinetic/index.tsx +20 -7
- package/src/contentful/blocks/find-kinetic/types.ts +1 -0
- package/src/contentful/blocks/image-promo-bar/index.tsx +2 -1
- package/src/contentful/blocks/image-promo-bar/types.ts +1 -0
- package/src/contentful/blocks/primary-hero/index.tsx +6 -6
- package/src/hooks/contentful/use-contentful-rich-text.test.tsx +6 -6
- package/src/index.ts +8 -0
|
@@ -149,6 +149,10 @@ type Item = {
|
|
|
149
149
|
title?: string;
|
|
150
150
|
image?: string;
|
|
151
151
|
imageAlt?: string;
|
|
152
|
+
/** Explicit image alt text; takes priority over the description fallback. */
|
|
153
|
+
imageAltText?: string;
|
|
154
|
+
/** Contentful asset description — used as the alt-text fallback. */
|
|
155
|
+
imageDescription?: string;
|
|
152
156
|
imageWidth?: number;
|
|
153
157
|
imageHeight?: number;
|
|
154
158
|
imageAlignment?: "left" | "right" | "center";
|
|
@@ -342,6 +346,7 @@ type ImagePromoBarProps = {
|
|
|
342
346
|
title: string;
|
|
343
347
|
subTitle: string;
|
|
344
348
|
image: string;
|
|
349
|
+
imageAltText?: string;
|
|
345
350
|
imageWidth: number;
|
|
346
351
|
imageHeight: number;
|
|
347
352
|
useOriginalImageAspectRatio?: boolean;
|
|
@@ -547,6 +552,7 @@ type FindKineticProps = {
|
|
|
547
552
|
localPathPrefix?: string;
|
|
548
553
|
background?: "blue" | "green" | "navy" | "purple" | "white" | "yellow";
|
|
549
554
|
image?: string;
|
|
555
|
+
imageAltText?: string;
|
|
550
556
|
list?: {
|
|
551
557
|
name: string;
|
|
552
558
|
code: string;
|
|
@@ -633,9 +639,13 @@ interface BlogCardProps$2 {
|
|
|
633
639
|
image?: {
|
|
634
640
|
src: string;
|
|
635
641
|
alt: string;
|
|
642
|
+
/** Contentful asset description — used as the alt-text fallback. */
|
|
643
|
+
description?: string;
|
|
636
644
|
width: number;
|
|
637
645
|
height: number;
|
|
638
646
|
};
|
|
647
|
+
/** Explicit image alt text; falls back to the image description then alt. */
|
|
648
|
+
imageAltText?: string;
|
|
639
649
|
/** Pass next/image's Image component here to enable image optimization */
|
|
640
650
|
imageComponent?: React__default.ComponentType<BlogCardImageProps>;
|
|
641
651
|
asGrid?: boolean;
|