@windstream/react-shared-components 0.2.22 → 0.2.23
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 +5 -3
- package/dist/contentful/index.esm.js +3 -3
- 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.d.ts +3 -3
- package/dist/styles.css +1 -1
- package/dist/utils/index.d.ts +3 -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/contentful/blocks/anchored-bottom-banner/AnchoredBottomBanner.stories.tsx +155 -0
- package/src/contentful/blocks/callout/Callout.stories.mocks.ts +327 -0
- package/src/contentful/blocks/callout/Callout.stories.tsx +315 -2
- package/src/contentful/blocks/callout/types.ts +1 -2
- package/src/contentful/blocks/email-input-block/index.tsx +41 -17
- package/src/contentful/blocks/email-input-block/types.ts +2 -1
- package/src/contentful/blocks/primary-hero/index.test.tsx +63 -0
- package/src/contentful/blocks/primary-hero/index.tsx +66 -9
- package/src/hooks/contentful/use-contentful-rich-text.test.tsx +29 -0
- package/src/hooks/contentful/use-contentful-rich-text.tsx +20 -9
- package/src/types/global.d.ts +5 -0
|
@@ -95,7 +95,6 @@ type CalloutProps = {
|
|
|
95
95
|
cta?: CalloutCtaProps;
|
|
96
96
|
applyBoxShadow?: boolean;
|
|
97
97
|
cardStackingMobile?: boolean;
|
|
98
|
-
bottomText?: string;
|
|
99
98
|
color?: "dark" | "light";
|
|
100
99
|
/**
|
|
101
100
|
* When `true` (default) cards are laid out in a responsive Tailwind
|
|
@@ -795,10 +794,11 @@ interface EmailInputBlockProps {
|
|
|
795
794
|
emailInputDescription?: string;
|
|
796
795
|
inputPlaceholder?: string;
|
|
797
796
|
successFeedback?: string;
|
|
797
|
+
ctaButtonText?: string;
|
|
798
798
|
ctaText?: string;
|
|
799
799
|
caption?: React__default.ReactNode;
|
|
800
800
|
backgroundColor?: "green" | "white" | "yellow" | "blue" | "navy" | "gray90";
|
|
801
|
-
themeColor?: "blue" | "green" | "orange" | "purple";
|
|
801
|
+
themeColor?: "blue" | "green" | "orange" | "purple" | "white";
|
|
802
802
|
showPinWheel?: boolean;
|
|
803
803
|
padding?: "none" | "large";
|
|
804
804
|
validationErrorMessage?: string;
|
|
@@ -884,7 +884,9 @@ declare const toDocument: (v: unknown | null | undefined) => Document | null;
|
|
|
884
884
|
* Safe to use inside .map() loops.
|
|
885
885
|
*/
|
|
886
886
|
declare function renderContentfulRichText(doc: Document | null | undefined, target?: boolean, className?: string, linkClassName?: string, options?: Options): ReactNode | null;
|
|
887
|
-
declare function useContentfulRichText(doc: Document | null | undefined, options?: Options
|
|
887
|
+
declare function useContentfulRichText(doc: Document | null | undefined, options?: Options, config?: {
|
|
888
|
+
boldClassName?: string;
|
|
889
|
+
}): ReactNode | null;
|
|
888
890
|
declare function renderContentfulRichTextTable(doc: Document | null | undefined, links?: any): ReactNode;
|
|
889
891
|
|
|
890
892
|
declare const label1BoldOptions: {
|