@windstream/react-shared-components 0.2.67 → 0.2.68
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 +13 -4
- package/dist/contentful/index.esm.js +4 -4
- 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/index.d.ts +4 -4
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/contentful/blocks/cards/product-card/index.test.tsx +11 -2
- package/src/contentful/blocks/cards/product-card/index.tsx +25 -22
- package/src/contentful/blocks/cards/product-card/types.ts +3 -0
- package/src/contentful/blocks/carousel/helper.tsx +6 -0
- package/src/contentful/blocks/dynamic-form/DynamicForm.stories.tsx +3 -0
- package/src/contentful/blocks/dynamic-form/render.test.tsx +25 -0
- package/src/contentful/blocks/dynamic-form/render.tsx +15 -0
- package/src/contentful/blocks/dynamic-form/types.ts +8 -3
|
@@ -622,6 +622,9 @@ interface ProductCardProps {
|
|
|
622
622
|
techType?: string;
|
|
623
623
|
ismaxSpeed?: boolean;
|
|
624
624
|
price: string;
|
|
625
|
+
/** The price unit rendered after the cents, e.g. "/mo" or "/mo*". Defaults
|
|
626
|
+
* to "/mo". Lets Contentful control a trailing disclaimer star. */
|
|
627
|
+
priceUnit?: string;
|
|
625
628
|
priceSuffixBottom?: string;
|
|
626
629
|
description: string;
|
|
627
630
|
bestValue?: boolean;
|
|
@@ -1030,16 +1033,22 @@ interface ConditionalFieldConfig {
|
|
|
1030
1033
|
*/
|
|
1031
1034
|
grouped?: boolean;
|
|
1032
1035
|
}
|
|
1036
|
+
interface DynamicFormDividerConfig {
|
|
1037
|
+
dividerLength?: boolean;
|
|
1038
|
+
dividerThickness?: number;
|
|
1039
|
+
}
|
|
1033
1040
|
/**
|
|
1034
|
-
* A flat list item rendered by the form
|
|
1035
|
-
*
|
|
1036
|
-
* the app rendered itself and passes through).
|
|
1041
|
+
* A flat list item rendered by the form: a form field, conditional field,
|
|
1042
|
+
* divider, or custom React node.
|
|
1037
1043
|
*/
|
|
1038
1044
|
type DynamicFormItem = ({
|
|
1039
1045
|
itemType: "formField";
|
|
1040
1046
|
} & DynamicFormFieldConfig) | ({
|
|
1041
1047
|
itemType: "conditional";
|
|
1042
|
-
} & ConditionalFieldConfig) | {
|
|
1048
|
+
} & ConditionalFieldConfig) | ({
|
|
1049
|
+
itemType: "divider";
|
|
1050
|
+
fieldId?: string;
|
|
1051
|
+
} & DynamicFormDividerConfig) | {
|
|
1043
1052
|
itemType: "custom";
|
|
1044
1053
|
fieldId?: string;
|
|
1045
1054
|
content: React__default.ReactNode;
|