@windstream/react-shared-components 0.2.22 → 0.2.24
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 +6 -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 +13 -1
- package/dist/index.d.ts +16 -4
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/next/index.esm.js +1 -1
- package/dist/next/index.esm.js.map +1 -1
- package/dist/next/index.js +1 -1
- package/dist/next/index.js.map +1 -1
- 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/components/link/index.test.tsx +103 -4
- package/src/components/link/index.tsx +9 -1
- package/src/components/link/types.ts +12 -0
- package/src/contentful/blocks/anchored-bottom-banner/AnchoredBottomBanner.stories.tsx +155 -0
- package/src/contentful/blocks/breadcrumbs/index.tsx +3 -2
- 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/find-kinetic/index.test.tsx +35 -0
- package/src/contentful/blocks/find-kinetic/index.tsx +33 -9
- package/src/contentful/blocks/find-kinetic/types.ts +1 -0
- 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
|
|
@@ -543,6 +542,7 @@ type FindKineticProps = {
|
|
|
543
542
|
maxWidth?: boolean;
|
|
544
543
|
color?: "dark" | "light";
|
|
545
544
|
columns?: 2 | 3 | 4;
|
|
545
|
+
addTrailingSlash?: boolean;
|
|
546
546
|
};
|
|
547
547
|
|
|
548
548
|
declare const FindKinetic: React__default.FC<FindKineticProps>;
|
|
@@ -795,10 +795,11 @@ interface EmailInputBlockProps {
|
|
|
795
795
|
emailInputDescription?: string;
|
|
796
796
|
inputPlaceholder?: string;
|
|
797
797
|
successFeedback?: string;
|
|
798
|
+
ctaButtonText?: string;
|
|
798
799
|
ctaText?: string;
|
|
799
800
|
caption?: React__default.ReactNode;
|
|
800
801
|
backgroundColor?: "green" | "white" | "yellow" | "blue" | "navy" | "gray90";
|
|
801
|
-
themeColor?: "blue" | "green" | "orange" | "purple";
|
|
802
|
+
themeColor?: "blue" | "green" | "orange" | "purple" | "white";
|
|
802
803
|
showPinWheel?: boolean;
|
|
803
804
|
padding?: "none" | "large";
|
|
804
805
|
validationErrorMessage?: string;
|
|
@@ -884,7 +885,9 @@ declare const toDocument: (v: unknown | null | undefined) => Document | null;
|
|
|
884
885
|
* Safe to use inside .map() loops.
|
|
885
886
|
*/
|
|
886
887
|
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
|
|
888
|
+
declare function useContentfulRichText(doc: Document | null | undefined, options?: Options, config?: {
|
|
889
|
+
boldClassName?: string;
|
|
890
|
+
}): ReactNode | null;
|
|
888
891
|
declare function renderContentfulRichTextTable(doc: Document | null | undefined, links?: any): ReactNode;
|
|
889
892
|
|
|
890
893
|
declare const label1BoldOptions: {
|