@appcorp/app-corp-vista 0.2.10 → 0.2.12
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.
|
@@ -63,7 +63,7 @@ var DynamicReactSlick = (0, dynamic_1.default)(function () { return Promise.reso
|
|
|
63
63
|
ssr: false,
|
|
64
64
|
});
|
|
65
65
|
var VistaProductOverviewV3 = function (_a) {
|
|
66
|
-
var averageReview = _a.averageReview, breadcrumbs = _a.breadcrumbs, description = _a.description,
|
|
66
|
+
var averageReview = _a.averageReview, breadcrumbs = _a.breadcrumbs, description = _a.description, _b = _a.highlights, highlights = _b === void 0 ? [] : _b, images = _a.images, name = _a.name, price = _a.price, totalCountReview = _a.totalCountReview, _c = _a.variants, variants = _c === void 0 ? [] : _c;
|
|
67
67
|
var slickConfig = {
|
|
68
68
|
dots: true,
|
|
69
69
|
infinite: (images === null || images === void 0 ? void 0 : images.length) === 1 ? false : true,
|
|
@@ -88,8 +88,8 @@ var VistaProductOverviewV3 = function (_a) {
|
|
|
88
88
|
react_1.default.createElement("section", { "aria-labelledby": "information-heading", className: "mt-4" },
|
|
89
89
|
react_1.default.createElement("h2", { id: "information-heading", className: "sr-only" }, "Product information"),
|
|
90
90
|
react_1.default.createElement("div", { className: "flex items-center" },
|
|
91
|
-
react_1.default.createElement("p", { className: "text-lg text-primary sm:text-xl" }, price),
|
|
92
|
-
react_1.default.createElement("div", { className: "ml-4 border-l border-gray-300 pl-4" },
|
|
91
|
+
price && (react_1.default.createElement("p", { className: "text-lg text-primary sm:text-xl" }, price)),
|
|
92
|
+
averageReview && (react_1.default.createElement("div", { className: "ml-4 border-l border-gray-300 pl-4" },
|
|
93
93
|
react_1.default.createElement("h2", { className: "sr-only" }, "Reviews"),
|
|
94
94
|
react_1.default.createElement("div", { className: "flex items-center" },
|
|
95
95
|
react_1.default.createElement("div", null,
|
|
@@ -99,10 +99,10 @@ var VistaProductOverviewV3 = function (_a) {
|
|
|
99
99
|
" out of 5 stars")),
|
|
100
100
|
react_1.default.createElement("p", { className: "ml-2 text-sm text-gray-500" },
|
|
101
101
|
totalCountReview,
|
|
102
|
-
" reviews")))),
|
|
102
|
+
" reviews"))))),
|
|
103
103
|
react_1.default.createElement("div", { className: "mt-4 space-y-6" },
|
|
104
104
|
react_1.default.createElement("p", { className: "text-base text-gray-500" }, description)),
|
|
105
|
-
highlights
|
|
105
|
+
highlights.length > 1 && highlights
|
|
106
106
|
.filter(function (_a) {
|
|
107
107
|
var enabled = _a.enabled;
|
|
108
108
|
return enabled;
|
|
@@ -119,7 +119,7 @@ var VistaProductOverviewV3 = function (_a) {
|
|
|
119
119
|
react_1.default.createElement("h2", { id: "options-heading", className: "sr-only" }, "Product options"),
|
|
120
120
|
react_1.default.createElement("form", null,
|
|
121
121
|
react_1.default.createElement("div", { className: "sm:flex sm:justify-between" },
|
|
122
|
-
react_1.default.createElement("fieldset", { className: 'flex flex-col gap-4' }, variants
|
|
122
|
+
react_1.default.createElement("fieldset", { className: 'flex flex-col gap-4' }, variants.length > 1 && variants
|
|
123
123
|
.filter(function (_a) {
|
|
124
124
|
var enabled = _a.enabled;
|
|
125
125
|
return enabled;
|
package/package.json
CHANGED
|
@@ -36,15 +36,15 @@ export interface VistaProductOverviewV3Image {
|
|
|
36
36
|
url: string;
|
|
37
37
|
}
|
|
38
38
|
export interface VistaProductOverviewV3Props {
|
|
39
|
-
averageReview
|
|
39
|
+
averageReview?: number;
|
|
40
40
|
breadcrumbs: VistaProductOverviewV3BreadcrumbItem[];
|
|
41
41
|
description: string;
|
|
42
|
-
highlights
|
|
42
|
+
highlights?: VistaProductOverviewV3Highlight[];
|
|
43
43
|
images: VistaProductOverviewV3Image[];
|
|
44
44
|
name: string;
|
|
45
|
-
price
|
|
46
|
-
totalCountReview
|
|
47
|
-
variants
|
|
45
|
+
price?: string;
|
|
46
|
+
totalCountReview?: number;
|
|
47
|
+
variants?: VistaProductOverviewV3Variant[];
|
|
48
48
|
}
|
|
49
49
|
export interface VistaProductOverviewV4Props {
|
|
50
50
|
id: string;
|