@windstream/react-shared-components 0.2.92 → 0.2.93

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 (68) hide show
  1. package/dist/contentful/index.d.ts +46 -6
  2. package/dist/contentful/index.esm.js +4 -4
  3. package/dist/contentful/index.esm.js.map +1 -1
  4. package/dist/contentful/index.js +3 -3
  5. package/dist/contentful/index.js.map +1 -1
  6. package/dist/core.d.ts +4 -1
  7. package/dist/index.d.ts +6 -3
  8. package/dist/index.esm.js +2 -2
  9. package/dist/index.esm.js.map +1 -1
  10. package/dist/index.js +2 -2
  11. package/dist/index.js.map +1 -1
  12. package/dist/utils/index.d.ts +2 -1
  13. package/dist/utils/index.esm.js +1 -1
  14. package/dist/utils/index.esm.js.map +1 -1
  15. package/dist/utils/index.js +1 -1
  16. package/dist/utils/index.js.map +1 -1
  17. package/package.json +1 -1
  18. package/src/components/checklist/index.test.tsx +18 -1
  19. package/src/components/checklist/index.tsx +25 -21
  20. package/src/components/checklist/types.ts +8 -2
  21. package/src/contentful/blocks/address-input-banner/index.test.tsx +14 -0
  22. package/src/contentful/blocks/address-input-banner/index.tsx +3 -1
  23. package/src/contentful/blocks/address-input-banner/types.ts +1 -1
  24. package/src/contentful/blocks/blogs-grid/index.test.tsx +21 -1
  25. package/src/contentful/blocks/blogs-grid/index.tsx +1 -0
  26. package/src/contentful/blocks/blogs-grid/types.ts +3 -0
  27. package/src/contentful/blocks/blogs-grid-base/index.test.tsx +49 -3
  28. package/src/contentful/blocks/blogs-grid-base/index.tsx +11 -2
  29. package/src/contentful/blocks/blogs-grid-base/types.ts +7 -1
  30. package/src/contentful/blocks/cards/blog-card/index.test.tsx +29 -0
  31. package/src/contentful/blocks/cards/blog-card/index.tsx +18 -4
  32. package/src/contentful/blocks/cards/blog-card/types.ts +3 -1
  33. package/src/contentful/blocks/cards/product-card/index.test.tsx +43 -0
  34. package/src/contentful/blocks/cards/product-card/index.tsx +37 -9
  35. package/src/contentful/blocks/cards/product-card/types.ts +3 -0
  36. package/src/contentful/blocks/carousel/helper.test.tsx +13 -0
  37. package/src/contentful/blocks/carousel/helper.tsx +1 -0
  38. package/src/contentful/blocks/carousel/types.ts +2 -0
  39. package/src/contentful/blocks/dynamic-form/conditional-fields.tsx +1 -0
  40. package/src/contentful/blocks/dynamic-form/form-field.tsx +1 -0
  41. package/src/contentful/blocks/dynamic-form/index.test.tsx +48 -0
  42. package/src/contentful/blocks/dynamic-form/index.tsx +19 -7
  43. package/src/contentful/blocks/dynamic-form/render.tsx +13 -7
  44. package/src/contentful/blocks/dynamic-form/types.ts +28 -2
  45. package/src/contentful/blocks/dynamic-tabs/index.test.tsx +52 -2
  46. package/src/contentful/blocks/dynamic-tabs/index.tsx +9 -2
  47. package/src/contentful/blocks/dynamic-tabs/ordered-tab-views.tsx +16 -6
  48. package/src/contentful/blocks/dynamic-tabs/tab-views.tsx +10 -6
  49. package/src/contentful/blocks/dynamic-tabs/types.ts +7 -0
  50. package/src/contentful/blocks/email-input-block/index.test.tsx +51 -3
  51. package/src/contentful/blocks/email-input-block/index.tsx +88 -31
  52. package/src/contentful/blocks/email-input-block/types.ts +14 -1
  53. package/src/contentful/blocks/fiber-form/index.test.tsx +40 -2
  54. package/src/contentful/blocks/fiber-form/index.tsx +32 -13
  55. package/src/contentful/blocks/fiber-form/types.ts +18 -0
  56. package/src/contentful/blocks/iframe-embed/index.test.tsx +44 -7
  57. package/src/contentful/blocks/iframe-embed/index.tsx +3 -2
  58. package/src/contentful/blocks/iframe-embed/types.ts +1 -0
  59. package/src/contentful/blocks/ordered-list/index.test.tsx +54 -4
  60. package/src/contentful/blocks/ordered-list/index.tsx +14 -2
  61. package/src/contentful/blocks/ordered-list/types.ts +15 -2
  62. package/src/contentful/blocks/primary-hero/index.tsx +5 -5
  63. package/src/contentful/blocks/search-block/index.test.tsx +36 -2
  64. package/src/contentful/blocks/search-block/index.tsx +24 -4
  65. package/src/contentful/blocks/search-block/types.ts +10 -0
  66. package/src/utils/index.ts +1 -1
  67. package/src/utils/replace-tokens.test.ts +40 -0
  68. package/src/utils/replace-tokens.ts +13 -0
package/dist/core.d.ts CHANGED
@@ -25,6 +25,7 @@ import { CheckPlansProps } from '@shared/types/micro-components';
25
25
  import { Node } from '@contentful/rich-text-types';
26
26
  import { FormikValues } from 'formik';
27
27
  import * as Yup from 'yup';
28
+ import { FieldProps } from '@shared/types/field-props';
28
29
  import { HTMLMotionProps } from 'framer-motion';
29
30
  import { ClassValue } from 'clsx';
30
31
  export { ClassValue, clsx } from 'clsx';
@@ -71,7 +72,7 @@ declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAtt
71
72
  size?: "slim" | "medium" | "large" | undefined;
72
73
  label?: string | undefined;
73
74
  errorText?: string | undefined;
74
- prefixIconName?: "search" | "location_on" | undefined;
75
+ prefixIconName?: "location_on" | "search" | undefined;
75
76
  prefixIconSize?: 20 | 24 | 40 | 48 | undefined;
76
77
  prefixIconFill?: boolean | undefined;
77
78
  suffixIconFill?: boolean | undefined;
@@ -618,6 +619,8 @@ type FiberFormProps = {
618
619
  }>;
619
620
  className?: string;
620
621
  onAddressEvent?: (address: string) => void;
622
+ /** Inspector attributes for each rendered form field, disclaimer and CTA. */
623
+ fieldProps?: FieldProps<"firstName" | "lastName" | "address" | "unit" | "phoneNumber" | "emailAddress" | "referralCode" | "notes" | "isMarketingCom" | "legalCopy" | "bottomTextDisclaimer" | "copyRightLinks" | "submit">;
621
624
  };
622
625
 
623
626
  declare const fiberFormInputInitialValues: FiberFormValues;
package/dist/index.d.ts CHANGED
@@ -25,6 +25,7 @@ import { CheckPlansProps } from '@shared/types/micro-components';
25
25
  import { Node } from '@contentful/rich-text-types';
26
26
  import { FormikValues } from 'formik';
27
27
  import * as Yup from 'yup';
28
+ import { FieldProps } from '@shared/types/field-props';
28
29
  import { HTMLMotionProps } from 'framer-motion';
29
30
  import { ClassValue } from 'clsx';
30
31
  export { ClassValue, clsx } from 'clsx';
@@ -67,11 +68,11 @@ type InputFieldProps = Omit<InputHTMLAttributes<HTMLInputElement>, "size"> & {
67
68
 
68
69
  declare const InputField: ForwardRefRenderFunction<HTMLInputElement, InputFieldProps>;
69
70
  declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size"> & {
70
- state?: "default" | "error" | "focus" | "active" | "hover" | "filled" | undefined;
71
- size?: "medium" | "slim" | "large" | undefined;
71
+ state?: "default" | "focus" | "active" | "hover" | "filled" | "error" | undefined;
72
+ size?: "slim" | "medium" | "large" | undefined;
72
73
  label?: string | undefined;
73
74
  errorText?: string | undefined;
74
- prefixIconName?: "search" | "location_on" | undefined;
75
+ prefixIconName?: "location_on" | "search" | undefined;
75
76
  prefixIconSize?: 20 | 24 | 40 | 48 | undefined;
76
77
  prefixIconFill?: boolean | undefined;
77
78
  suffixIconFill?: boolean | undefined;
@@ -618,6 +619,8 @@ type FiberFormProps = {
618
619
  }>;
619
620
  className?: string;
620
621
  onAddressEvent?: (address: string) => void;
622
+ /** Inspector attributes for each rendered form field, disclaimer and CTA. */
623
+ fieldProps?: FieldProps<"firstName" | "lastName" | "address" | "unit" | "phoneNumber" | "emailAddress" | "referralCode" | "notes" | "isMarketingCom" | "legalCopy" | "bottomTextDisclaimer" | "copyRightLinks" | "submit">;
621
624
  };
622
625
 
623
626
  declare const fiberFormInputInitialValues: FiberFormValues;