@windstream/react-shared-components 0.2.21 → 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.
Files changed (37) hide show
  1. package/dist/contentful/index.d.ts +6 -3
  2. package/dist/contentful/index.esm.js +3 -3
  3. package/dist/contentful/index.esm.js.map +1 -1
  4. package/dist/contentful/index.js +2 -2
  5. package/dist/contentful/index.js.map +1 -1
  6. package/dist/core.d.ts +10 -5
  7. package/dist/index.d.ts +6 -1
  8. package/dist/index.esm.js +1 -1
  9. package/dist/index.esm.js.map +1 -1
  10. package/dist/index.js +5 -5
  11. package/dist/index.js.map +1 -1
  12. package/dist/styles.css +1 -1
  13. package/dist/utils/index.d.ts +3 -1
  14. package/dist/utils/index.esm.js +1 -1
  15. package/dist/utils/index.esm.js.map +1 -1
  16. package/dist/utils/index.js +1 -1
  17. package/dist/utils/index.js.map +1 -1
  18. package/package.json +1 -1
  19. package/src/components/animation-wrapper/index.tsx +8 -2
  20. package/src/components/animation-wrapper/types.ts +6 -0
  21. package/src/components/brand-button/index.tsx +12 -3
  22. package/src/contentful/blocks/anchored-bottom-banner/AnchoredBottomBanner.stories.tsx +155 -0
  23. package/src/contentful/blocks/button/index.tsx +12 -3
  24. package/src/contentful/blocks/callout/Callout.stories.mocks.ts +327 -0
  25. package/src/contentful/blocks/callout/Callout.stories.tsx +315 -2
  26. package/src/contentful/blocks/callout/types.ts +1 -2
  27. package/src/contentful/blocks/email-input-block/index.tsx +41 -17
  28. package/src/contentful/blocks/email-input-block/types.ts +2 -1
  29. package/src/contentful/blocks/image-promo-bar/index.test.tsx +45 -4
  30. package/src/contentful/blocks/image-promo-bar/index.tsx +4 -1
  31. package/src/contentful/blocks/image-promo-bar/types.ts +1 -0
  32. package/src/contentful/blocks/primary-hero/index.test.tsx +63 -0
  33. package/src/contentful/blocks/primary-hero/index.tsx +66 -9
  34. package/src/hooks/contentful/use-contentful-rich-text.test.tsx +29 -0
  35. package/src/hooks/contentful/use-contentful-rich-text.tsx +20 -9
  36. package/src/index.ts +1 -0
  37. 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
@@ -366,6 +365,7 @@ type ImagePromoBarProps = {
366
365
  videoLink: VideoLinkProps;
367
366
  maxWidth?: boolean;
368
367
  color: "light" | "dark";
368
+ enableAnimation?: boolean;
369
369
  onModalButtonClick?: (id?: string) => void;
370
370
  onClick?: (event: React__default.MouseEvent, source: "primary" | "secondary") => void;
371
371
  renderCheckPlans?: (overrides?: CheckPlansProps) => React__default.ReactNode;
@@ -794,10 +794,11 @@ interface EmailInputBlockProps {
794
794
  emailInputDescription?: string;
795
795
  inputPlaceholder?: string;
796
796
  successFeedback?: string;
797
+ ctaButtonText?: string;
797
798
  ctaText?: string;
798
799
  caption?: React__default.ReactNode;
799
800
  backgroundColor?: "green" | "white" | "yellow" | "blue" | "navy" | "gray90";
800
- themeColor?: "blue" | "green" | "orange" | "purple";
801
+ themeColor?: "blue" | "green" | "orange" | "purple" | "white";
801
802
  showPinWheel?: boolean;
802
803
  padding?: "none" | "large";
803
804
  validationErrorMessage?: string;
@@ -883,7 +884,9 @@ declare const toDocument: (v: unknown | null | undefined) => Document | null;
883
884
  * Safe to use inside .map() loops.
884
885
  */
885
886
  declare function renderContentfulRichText(doc: Document | null | undefined, target?: boolean, className?: string, linkClassName?: string, options?: Options): ReactNode | null;
886
- declare function useContentfulRichText(doc: Document | null | undefined, options?: Options): ReactNode | null;
887
+ declare function useContentfulRichText(doc: Document | null | undefined, options?: Options, config?: {
888
+ boldClassName?: string;
889
+ }): ReactNode | null;
887
890
  declare function renderContentfulRichTextTable(doc: Document | null | undefined, links?: any): ReactNode;
888
891
 
889
892
  declare const label1BoldOptions: {