@windstream/react-shared-components 0.2.91 → 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.
- package/dist/contentful/index.d.ts +54 -10
- package/dist/contentful/index.esm.js +4 -4
- package/dist/contentful/index.esm.js.map +1 -1
- package/dist/contentful/index.js +3 -3
- package/dist/contentful/index.js.map +1 -1
- package/dist/core.d.ts +6 -3
- package/dist/index.d.ts +3 -0
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/utils/index.d.ts +2 -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/checklist/index.test.tsx +18 -1
- package/src/components/checklist/index.tsx +25 -21
- package/src/components/checklist/types.ts +8 -2
- package/src/contentful/blocks/address-input-banner/index.test.tsx +14 -0
- package/src/contentful/blocks/address-input-banner/index.tsx +3 -1
- package/src/contentful/blocks/address-input-banner/types.ts +1 -1
- package/src/contentful/blocks/blogs-grid/index.test.tsx +21 -1
- package/src/contentful/blocks/blogs-grid/index.tsx +1 -0
- package/src/contentful/blocks/blogs-grid/types.ts +3 -0
- package/src/contentful/blocks/blogs-grid-base/index.test.tsx +49 -3
- package/src/contentful/blocks/blogs-grid-base/index.tsx +11 -2
- package/src/contentful/blocks/blogs-grid-base/types.ts +7 -1
- package/src/contentful/blocks/callout/{callout.stories.tsx → Callout.stories.tsx} +1 -1
- package/src/contentful/blocks/cards/blog-card/index.test.tsx +29 -0
- package/src/contentful/blocks/cards/blog-card/index.tsx +18 -4
- package/src/contentful/blocks/cards/blog-card/types.ts +3 -1
- package/src/contentful/blocks/cards/product-card/index.test.tsx +61 -0
- package/src/contentful/blocks/cards/product-card/index.tsx +38 -9
- package/src/contentful/blocks/cards/product-card/types.ts +11 -1
- package/src/contentful/blocks/carousel/helper.test.tsx +13 -0
- package/src/contentful/blocks/carousel/helper.tsx +1 -0
- package/src/contentful/blocks/carousel/types.ts +2 -0
- package/src/contentful/blocks/dynamic-form/conditional-fields.tsx +1 -0
- package/src/contentful/blocks/dynamic-form/form-field.tsx +1 -0
- package/src/contentful/blocks/dynamic-form/index.test.tsx +48 -0
- package/src/contentful/blocks/dynamic-form/index.tsx +19 -7
- package/src/contentful/blocks/dynamic-form/render.tsx +13 -7
- package/src/contentful/blocks/dynamic-form/types.ts +28 -2
- package/src/contentful/blocks/dynamic-tabs/index.test.tsx +52 -2
- package/src/contentful/blocks/dynamic-tabs/index.tsx +9 -2
- package/src/contentful/blocks/dynamic-tabs/ordered-tab-views.tsx +16 -6
- package/src/contentful/blocks/dynamic-tabs/tab-views.tsx +10 -6
- package/src/contentful/blocks/dynamic-tabs/types.ts +7 -0
- package/src/contentful/blocks/email-input-block/index.test.tsx +51 -3
- package/src/contentful/blocks/email-input-block/index.tsx +88 -31
- package/src/contentful/blocks/email-input-block/types.ts +14 -1
- package/src/contentful/blocks/fiber-form/index.test.tsx +40 -2
- package/src/contentful/blocks/fiber-form/index.tsx +32 -13
- package/src/contentful/blocks/fiber-form/types.ts +18 -0
- package/src/contentful/blocks/iframe-embed/index.test.tsx +44 -7
- package/src/contentful/blocks/iframe-embed/index.tsx +3 -2
- package/src/contentful/blocks/iframe-embed/types.ts +1 -0
- package/src/contentful/blocks/navigation/{navigation.stories.tsx → Navigation.stories.tsx} +1 -1
- package/src/contentful/blocks/ordered-list/index.test.tsx +54 -4
- package/src/contentful/blocks/ordered-list/index.tsx +14 -2
- package/src/contentful/blocks/ordered-list/types.ts +15 -2
- package/src/contentful/blocks/primary-hero/index.test.tsx +2 -2
- package/src/contentful/blocks/primary-hero/index.tsx +5 -5
- package/src/contentful/blocks/search-block/index.test.tsx +36 -2
- package/src/contentful/blocks/search-block/index.tsx +24 -4
- package/src/contentful/blocks/search-block/types.ts +10 -0
- package/src/utils/index.ts +1 -1
- package/src/utils/replace-tokens.test.ts +40 -0
- package/src/utils/replace-tokens.ts +13 -0
- /package/src/contentful/blocks/carousel/{carousel.stories.tsx → Carousel.stories.tsx} +0 -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';
|
|
@@ -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?: "
|
|
71
|
-
size?: "
|
|
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?: "
|
|
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';
|
|
@@ -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;
|