@sonordev/site-kit 1.4.3 → 1.4.4
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/{chunk-B5NQTJ2M.js → chunk-BYXMT7IG.js} +35 -5
- package/dist/chunk-BYXMT7IG.js.map +1 -0
- package/dist/{chunk-BUJFVIBQ.mjs → chunk-GA2MN6CF.mjs} +35 -5
- package/dist/chunk-GA2MN6CF.mjs.map +1 -0
- package/dist/commerce/index.d.mts +3 -3
- package/dist/commerce/index.d.ts +3 -3
- package/dist/commerce/index.js +44 -44
- package/dist/commerce/index.mjs +1 -1
- package/dist/commerce/server.d.mts +1 -1
- package/dist/commerce/server.d.ts +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +25 -25
- package/dist/index.mjs +1 -1
- package/dist/{types-CyUfjlzS.d.mts → types-Bn7nF4Ty.d.mts} +1 -0
- package/dist/{types-CyUfjlzS.d.ts → types-Bn7nF4Ty.d.ts} +1 -0
- package/dist/{useEventModal-BzkdS69g.d.mts → useEventModal-DGZ3Wu1t.d.mts} +1 -1
- package/dist/{useEventModal-a3_W6n-e.d.ts → useEventModal-DojKfkPE.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-B5NQTJ2M.js.map +0 -1
- package/dist/chunk-BUJFVIBQ.mjs.map +0 -1
|
@@ -1377,6 +1377,9 @@ var STYLE_BLOCK = `
|
|
|
1377
1377
|
grid-template-columns: 1fr 1fr;
|
|
1378
1378
|
gap: 2.5rem;
|
|
1379
1379
|
align-items: start;
|
|
1380
|
+
max-width: 1200px;
|
|
1381
|
+
margin: 0 auto;
|
|
1382
|
+
padding: 1.5rem;
|
|
1380
1383
|
}
|
|
1381
1384
|
|
|
1382
1385
|
@media (max-width: 768px) {
|
|
@@ -1874,7 +1877,7 @@ function VariantSelector({ variants, selected, isClothing, showInventory, onSele
|
|
|
1874
1877
|
padding: "0.5rem 1rem",
|
|
1875
1878
|
borderRadius: "var(--commerce-radius-sm, 8px)",
|
|
1876
1879
|
border: isSelected ? "2px solid var(--commerce-accent, #2563eb)" : "1px solid var(--commerce-border, #e5e7eb)",
|
|
1877
|
-
backgroundColor: isSelected ? "
|
|
1880
|
+
backgroundColor: isSelected ? "color-mix(in srgb, var(--commerce-accent, #2563eb) 8%, transparent)" : "var(--commerce-surface, #f9fafb)",
|
|
1878
1881
|
color: variantOutOfStock ? "var(--commerce-text-muted, #9ca3af)" : "var(--commerce-text, #111827)",
|
|
1879
1882
|
fontSize: "0.875rem",
|
|
1880
1883
|
fontWeight: 500,
|
|
@@ -1896,7 +1899,7 @@ function VariantSelector({ variants, selected, isClothing, showInventory, onSele
|
|
|
1896
1899
|
height: 8,
|
|
1897
1900
|
borderRadius: "50%",
|
|
1898
1901
|
backgroundColor: isLow ? "var(--commerce-warning, #d97706)" : "var(--commerce-success, #059669)",
|
|
1899
|
-
border: "2px solid
|
|
1902
|
+
border: "2px solid var(--commerce-surface, #f9fafb)"
|
|
1900
1903
|
},
|
|
1901
1904
|
title: isLow ? `Only ${variant.inventory_count} left` : "In stock"
|
|
1902
1905
|
}
|
|
@@ -3496,11 +3499,38 @@ function ProductDetail({
|
|
|
3496
3499
|
onSelect: handleVariantChange
|
|
3497
3500
|
}
|
|
3498
3501
|
),
|
|
3502
|
+
product.size_chart?.fit_note && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3503
|
+
"div",
|
|
3504
|
+
{
|
|
3505
|
+
style: {
|
|
3506
|
+
marginTop: "0.75rem",
|
|
3507
|
+
padding: "0.625rem 0.875rem",
|
|
3508
|
+
borderRadius: "var(--commerce-radius-sm, 8px)",
|
|
3509
|
+
backgroundColor: "color-mix(in srgb, var(--commerce-warning, #d97706) 10%, transparent)",
|
|
3510
|
+
border: "1px solid color-mix(in srgb, var(--commerce-warning, #d97706) 25%, transparent)",
|
|
3511
|
+
display: "flex",
|
|
3512
|
+
alignItems: "flex-start",
|
|
3513
|
+
gap: "0.5rem",
|
|
3514
|
+
fontSize: "0.8125rem",
|
|
3515
|
+
color: "var(--commerce-warning, #d97706)",
|
|
3516
|
+
fontWeight: 500,
|
|
3517
|
+
lineHeight: 1.4
|
|
3518
|
+
},
|
|
3519
|
+
children: [
|
|
3520
|
+
/* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", style: { flexShrink: 0, marginTop: 1 }, children: [
|
|
3521
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0z" }),
|
|
3522
|
+
/* @__PURE__ */ jsxRuntime.jsx("line", { x1: "12", y1: "9", x2: "12", y2: "13" }),
|
|
3523
|
+
/* @__PURE__ */ jsxRuntime.jsx("line", { x1: "12", y1: "17", x2: "12.01", y2: "17" })
|
|
3524
|
+
] }),
|
|
3525
|
+
product.size_chart.fit_note
|
|
3526
|
+
]
|
|
3527
|
+
}
|
|
3528
|
+
),
|
|
3499
3529
|
showSizeChart && product.is_clothing && product.size_chart && /* @__PURE__ */ jsxRuntime.jsx("div", { style: { marginTop: "0.625rem" }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3500
3530
|
SizeChart,
|
|
3501
3531
|
{
|
|
3502
3532
|
chart: product.size_chart,
|
|
3503
|
-
selectedSize: selectedVariant?.options?.
|
|
3533
|
+
selectedSize: selectedVariant?.options?.Size || selectedVariant?.name
|
|
3504
3534
|
}
|
|
3505
3535
|
) }),
|
|
3506
3536
|
showQuantity && !isOutOfStock && !isEvent && !isService && /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -6592,5 +6622,5 @@ exports.isEventSoldOut = isEventSoldOut;
|
|
|
6592
6622
|
exports.registerForEvent = registerForEvent;
|
|
6593
6623
|
exports.useEventModal = useEventModal;
|
|
6594
6624
|
exports.validateAddress = validateAddress;
|
|
6595
|
-
//# sourceMappingURL=chunk-
|
|
6596
|
-
//# sourceMappingURL=chunk-
|
|
6625
|
+
//# sourceMappingURL=chunk-BYXMT7IG.js.map
|
|
6626
|
+
//# sourceMappingURL=chunk-BYXMT7IG.js.map
|