@neowhale/storefront 0.2.49 → 0.2.50
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/landing.global.js +22 -2
- package/dist/react/index.cjs +22 -2
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.js +22 -2
- package/dist/react/index.js.map +1 -1
- package/package.json +1 -1
package/dist/react/index.js
CHANGED
|
@@ -2207,7 +2207,7 @@ function AnimatedText({ text }) {
|
|
|
2207
2207
|
) });
|
|
2208
2208
|
}
|
|
2209
2209
|
function HeroSection({ section, theme, tracking, onEvent }) {
|
|
2210
|
-
const { title, subtitle, background_image, cta_text, cta_url } = section.content;
|
|
2210
|
+
const { title, subtitle, background_image, cta_text, cta_url, review_line } = section.content;
|
|
2211
2211
|
return /* @__PURE__ */ jsxs("div", { style: {
|
|
2212
2212
|
position: "relative",
|
|
2213
2213
|
minHeight: "60vh",
|
|
@@ -2261,7 +2261,27 @@ function HeroSection({ section, theme, tracking, onEvent }) {
|
|
|
2261
2261
|
},
|
|
2262
2262
|
children: cta_text
|
|
2263
2263
|
}
|
|
2264
|
-
)
|
|
2264
|
+
),
|
|
2265
|
+
review_line && review_line.count > 0 && /* @__PURE__ */ jsxs("div", { style: { marginTop: "1.25rem", display: "flex", alignItems: "center", justifyContent: "center", gap: "0.5rem" }, children: [
|
|
2266
|
+
/* @__PURE__ */ jsx("span", { style: { display: "inline-flex", gap: "1px" }, children: [1, 2, 3, 4, 5].map((s) => /* @__PURE__ */ jsx(
|
|
2267
|
+
"svg",
|
|
2268
|
+
{
|
|
2269
|
+
width: 14,
|
|
2270
|
+
height: 14,
|
|
2271
|
+
viewBox: "0 0 20 20",
|
|
2272
|
+
fill: s <= Math.round(review_line.rating) ? theme.accent : `${theme.fg}20`,
|
|
2273
|
+
children: /* @__PURE__ */ jsx("path", { d: "M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z" })
|
|
2274
|
+
},
|
|
2275
|
+
s
|
|
2276
|
+
)) }),
|
|
2277
|
+
/* @__PURE__ */ jsxs("span", { style: { fontSize: "0.8rem", color: `${theme.fg}99`, fontWeight: 500 }, children: [
|
|
2278
|
+
review_line.rating.toFixed(1),
|
|
2279
|
+
" \xB7 ",
|
|
2280
|
+
review_line.count,
|
|
2281
|
+
" ",
|
|
2282
|
+
review_line.source || "reviews"
|
|
2283
|
+
] })
|
|
2284
|
+
] })
|
|
2265
2285
|
] })
|
|
2266
2286
|
] });
|
|
2267
2287
|
}
|