@appcorp/app-corp-vista 0.2.12 → 0.2.14
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, _b = _a.highlights, highlights =
|
|
66
|
+
var averageReview = _a.averageReview, breadcrumbs = _a.breadcrumbs, description = _a.description, _b = _a.guaranteeInfo, guaranteeInfo = _b === void 0 ? false : _b, _c = _a.helpInfo, helpInfo = _c === void 0 ? false : _c, _d = _a.highlights, highlights = _d === void 0 ? [] : _d, images = _a.images, name = _a.name, price = _a.price, totalCountReview = _a.totalCountReview, _e = _a.variants, variants = _e === void 0 ? [] : _e;
|
|
67
67
|
var slickConfig = {
|
|
68
68
|
dots: true,
|
|
69
69
|
infinite: (images === null || images === void 0 ? void 0 : images.length) === 1 ? false : true,
|
|
@@ -72,7 +72,7 @@ var VistaProductOverviewV3 = function (_a) {
|
|
|
72
72
|
slidesToScroll: 1,
|
|
73
73
|
};
|
|
74
74
|
return (react_1.default.createElement("div", { className: "bg-white" },
|
|
75
|
-
react_1.default.createElement("div", { className: "mx-auto max-w-2xl px-4 py-16 sm:px-6 sm:py-
|
|
75
|
+
react_1.default.createElement("div", { className: "mx-auto max-w-2xl px-4 py-16 sm:px-6 sm:py-20 lg:grid lg:max-w-7xl lg:grid-cols-2 lg:gap-x-8 lg:px-8" },
|
|
76
76
|
react_1.default.createElement("div", { className: "lg:max-w-lg lg:self-end" },
|
|
77
77
|
react_1.default.createElement("nav", { "aria-label": "Breadcrumb" },
|
|
78
78
|
react_1.default.createElement("ol", { role: "list", className: "flex items-center space-x-2" }, breadcrumbs.map(function (_a, breadcrumbIdx) {
|
|
@@ -131,16 +131,16 @@ var VistaProductOverviewV3 = function (_a) {
|
|
|
131
131
|
react_1.default.createElement("p", { className: "text-base font-medium text-primary" }, item.title),
|
|
132
132
|
react_1.default.createElement("p", { className: "mt-1 text-sm text-gray-500" }, item.description),
|
|
133
133
|
react_1.default.createElement("div", { "aria-hidden": "true", className: "pointer-events-none absolute -inset-px rounded-lg border-2 border-transparent group-data-checked:border-primary group-data-focus:border" }))); })))); }))),
|
|
134
|
-
react_1.default.createElement("div", { className: "mt-4" },
|
|
134
|
+
helpInfo && (react_1.default.createElement("div", { className: "mt-4" },
|
|
135
135
|
react_1.default.createElement("a", { href: "#", className: "group inline-flex text-sm text-gray-500 hover:text-gray-700" },
|
|
136
136
|
react_1.default.createElement("span", null, "What size should I buy?"),
|
|
137
|
-
react_1.default.createElement(solid_1.QuestionMarkCircleIcon, { "aria-hidden": "true", className: "ml-2 size-5 shrink-0 text-gray-400 group-hover:text-gray-500" }))),
|
|
137
|
+
react_1.default.createElement(solid_1.QuestionMarkCircleIcon, { "aria-hidden": "true", className: "ml-2 size-5 shrink-0 text-gray-400 group-hover:text-gray-500" })))),
|
|
138
138
|
react_1.default.createElement("div", { className: "mt-10" },
|
|
139
139
|
react_1.default.createElement("button", { type: "submit", className: "flex w-full items-center justify-center rounded-md border border-transparent bg-primary px-8 py-3 text-base font-medium text-white hover:bg-primary/80 focus:ring-2 focus:ring-primary focus:ring-offset-2 focus:ring-offset-gray-50 focus:outline-hidden" }, "Add to bag")),
|
|
140
|
-
react_1.default.createElement("div", { className: "mt-6 text-center" },
|
|
140
|
+
guaranteeInfo && (react_1.default.createElement("div", { className: "mt-6 text-center" },
|
|
141
141
|
react_1.default.createElement("a", { href: "#", className: "group inline-flex text-base font-medium" },
|
|
142
142
|
react_1.default.createElement(outline_1.ShieldCheckIcon, { "aria-hidden": "true", className: "mr-2 size-6 shrink-0 text-gray-400 group-hover:text-gray-500" }),
|
|
143
|
-
react_1.default.createElement("span", { className: "text-gray-500 hover:text-gray-700" }, "Lifetime Guarantee"))))))),
|
|
143
|
+
react_1.default.createElement("span", { className: "text-gray-500 hover:text-gray-700" }, "Lifetime Guarantee")))))))),
|
|
144
144
|
react_1.default.createElement("div", { className: 'mt-10 lg:max-w-lg lg:self-center' },
|
|
145
145
|
react_1.default.createElement(DynamicReactSlick, __assign({}, slickConfig), images.map(function (_a, ind) {
|
|
146
146
|
var url = _a.url, alt = _a.alt;
|
package/package.json
CHANGED
|
@@ -39,6 +39,8 @@ export interface VistaProductOverviewV3Props {
|
|
|
39
39
|
averageReview?: number;
|
|
40
40
|
breadcrumbs: VistaProductOverviewV3BreadcrumbItem[];
|
|
41
41
|
description: string;
|
|
42
|
+
guaranteeInfo?: boolean;
|
|
43
|
+
helpInfo?: boolean;
|
|
42
44
|
highlights?: VistaProductOverviewV3Highlight[];
|
|
43
45
|
images: VistaProductOverviewV3Image[];
|
|
44
46
|
name: string;
|