@appcorp/app-corp-vista 0.2.26 → 0.2.27
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.
|
@@ -17,7 +17,7 @@ var VistaProductListV5 = function (_a) {
|
|
|
17
17
|
})
|
|
18
18
|
.sort(function (a, b) { return a.order - b.order; })
|
|
19
19
|
.map(function (_a) {
|
|
20
|
-
var
|
|
20
|
+
var color = _a.color, ctaLabel = _a.ctaLabel, handleOnClick = _a.handleOnClick, id = _a.id, imageAlt = _a.imageAlt, imageSrc = _a.imageSrc, name = _a.name, price = _a.price;
|
|
21
21
|
return (react_1.default.createElement("div", { key: id },
|
|
22
22
|
react_1.default.createElement("div", { className: "relative" },
|
|
23
23
|
react_1.default.createElement("div", { className: "relative h-72 w-full overflow-hidden rounded-lg" },
|
|
@@ -29,8 +29,8 @@ var VistaProductListV5 = function (_a) {
|
|
|
29
29
|
react_1.default.createElement("div", { "aria-hidden": "true", className: "absolute inset-x-0 bottom-0 h-48 bg-linear-to-t from-primary opacity-50" }),
|
|
30
30
|
price && (react_1.default.createElement("p", { className: "relative text-lg font-semibold text-white" }, price)))),
|
|
31
31
|
react_1.default.createElement("div", { className: "mt-6" },
|
|
32
|
-
react_1.default.createElement("
|
|
33
|
-
|
|
32
|
+
react_1.default.createElement("button", { onClick: handleOnClick, className: "relative flex w-full items-center justify-center rounded-md border border-transparent bg-primary/30 px-8 py-2 text-sm font-medium text-gray-900 hover:bg-primary/40" },
|
|
33
|
+
ctaLabel,
|
|
34
34
|
react_1.default.createElement("span", { className: "sr-only" },
|
|
35
35
|
", ",
|
|
36
36
|
name)))));
|
|
@@ -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.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;
|
|
66
|
+
var averageReview = _a.averageReview, breadcrumbs = _a.breadcrumbs, ctaLabel = _a.ctaLabel, description = _a.description, _b = _a.guaranteeInfo, guaranteeInfo = _b === void 0 ? false : _b, handleCtaOnClick = _a.handleCtaOnClick, _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,
|
|
@@ -136,7 +136,7 @@ var VistaProductOverviewV3 = function (_a) {
|
|
|
136
136
|
react_1.default.createElement("span", null, "What size should I buy?"),
|
|
137
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
|
-
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" },
|
|
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", onClick: handleCtaOnClick }, ctaLabel)),
|
|
140
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" }),
|
package/package.json
CHANGED
|
@@ -21,8 +21,9 @@ export interface VistaProductListV4Props {
|
|
|
21
21
|
}
|
|
22
22
|
export interface VistaProductListV5Item {
|
|
23
23
|
color?: string;
|
|
24
|
+
ctaLabel?: string;
|
|
24
25
|
enabled: boolean;
|
|
25
|
-
|
|
26
|
+
handleOnClick: () => void;
|
|
26
27
|
id: string;
|
|
27
28
|
imageAlt: string;
|
|
28
29
|
imageSrc: string;
|
|
@@ -38,6 +38,8 @@ export interface VistaProductOverviewV3Image {
|
|
|
38
38
|
export interface VistaProductOverviewV3Props {
|
|
39
39
|
averageReview?: number;
|
|
40
40
|
breadcrumbs: VistaProductOverviewV3BreadcrumbItem[];
|
|
41
|
+
ctaLabel: string;
|
|
42
|
+
handleCtaOnClick: () => void;
|
|
41
43
|
description: string;
|
|
42
44
|
guaranteeInfo?: boolean;
|
|
43
45
|
helpInfo?: boolean;
|