@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
|
@@ -1371,6 +1371,9 @@ var STYLE_BLOCK = `
|
|
|
1371
1371
|
grid-template-columns: 1fr 1fr;
|
|
1372
1372
|
gap: 2.5rem;
|
|
1373
1373
|
align-items: start;
|
|
1374
|
+
max-width: 1200px;
|
|
1375
|
+
margin: 0 auto;
|
|
1376
|
+
padding: 1.5rem;
|
|
1374
1377
|
}
|
|
1375
1378
|
|
|
1376
1379
|
@media (max-width: 768px) {
|
|
@@ -1868,7 +1871,7 @@ function VariantSelector({ variants, selected, isClothing, showInventory, onSele
|
|
|
1868
1871
|
padding: "0.5rem 1rem",
|
|
1869
1872
|
borderRadius: "var(--commerce-radius-sm, 8px)",
|
|
1870
1873
|
border: isSelected ? "2px solid var(--commerce-accent, #2563eb)" : "1px solid var(--commerce-border, #e5e7eb)",
|
|
1871
|
-
backgroundColor: isSelected ? "
|
|
1874
|
+
backgroundColor: isSelected ? "color-mix(in srgb, var(--commerce-accent, #2563eb) 8%, transparent)" : "var(--commerce-surface, #f9fafb)",
|
|
1872
1875
|
color: variantOutOfStock ? "var(--commerce-text-muted, #9ca3af)" : "var(--commerce-text, #111827)",
|
|
1873
1876
|
fontSize: "0.875rem",
|
|
1874
1877
|
fontWeight: 500,
|
|
@@ -1890,7 +1893,7 @@ function VariantSelector({ variants, selected, isClothing, showInventory, onSele
|
|
|
1890
1893
|
height: 8,
|
|
1891
1894
|
borderRadius: "50%",
|
|
1892
1895
|
backgroundColor: isLow ? "var(--commerce-warning, #d97706)" : "var(--commerce-success, #059669)",
|
|
1893
|
-
border: "2px solid
|
|
1896
|
+
border: "2px solid var(--commerce-surface, #f9fafb)"
|
|
1894
1897
|
},
|
|
1895
1898
|
title: isLow ? `Only ${variant.inventory_count} left` : "In stock"
|
|
1896
1899
|
}
|
|
@@ -3490,11 +3493,38 @@ function ProductDetail({
|
|
|
3490
3493
|
onSelect: handleVariantChange
|
|
3491
3494
|
}
|
|
3492
3495
|
),
|
|
3496
|
+
product.size_chart?.fit_note && /* @__PURE__ */ jsxs(
|
|
3497
|
+
"div",
|
|
3498
|
+
{
|
|
3499
|
+
style: {
|
|
3500
|
+
marginTop: "0.75rem",
|
|
3501
|
+
padding: "0.625rem 0.875rem",
|
|
3502
|
+
borderRadius: "var(--commerce-radius-sm, 8px)",
|
|
3503
|
+
backgroundColor: "color-mix(in srgb, var(--commerce-warning, #d97706) 10%, transparent)",
|
|
3504
|
+
border: "1px solid color-mix(in srgb, var(--commerce-warning, #d97706) 25%, transparent)",
|
|
3505
|
+
display: "flex",
|
|
3506
|
+
alignItems: "flex-start",
|
|
3507
|
+
gap: "0.5rem",
|
|
3508
|
+
fontSize: "0.8125rem",
|
|
3509
|
+
color: "var(--commerce-warning, #d97706)",
|
|
3510
|
+
fontWeight: 500,
|
|
3511
|
+
lineHeight: 1.4
|
|
3512
|
+
},
|
|
3513
|
+
children: [
|
|
3514
|
+
/* @__PURE__ */ 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: [
|
|
3515
|
+
/* @__PURE__ */ 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" }),
|
|
3516
|
+
/* @__PURE__ */ jsx("line", { x1: "12", y1: "9", x2: "12", y2: "13" }),
|
|
3517
|
+
/* @__PURE__ */ jsx("line", { x1: "12", y1: "17", x2: "12.01", y2: "17" })
|
|
3518
|
+
] }),
|
|
3519
|
+
product.size_chart.fit_note
|
|
3520
|
+
]
|
|
3521
|
+
}
|
|
3522
|
+
),
|
|
3493
3523
|
showSizeChart && product.is_clothing && product.size_chart && /* @__PURE__ */ jsx("div", { style: { marginTop: "0.625rem" }, children: /* @__PURE__ */ jsx(
|
|
3494
3524
|
SizeChart,
|
|
3495
3525
|
{
|
|
3496
3526
|
chart: product.size_chart,
|
|
3497
|
-
selectedSize: selectedVariant?.options?.
|
|
3527
|
+
selectedSize: selectedVariant?.options?.Size || selectedVariant?.name
|
|
3498
3528
|
}
|
|
3499
3529
|
) }),
|
|
3500
3530
|
showQuantity && !isOutOfStock && !isEvent && !isService && /* @__PURE__ */ jsx(
|
|
@@ -6544,5 +6574,5 @@ function getApiKey2() {
|
|
|
6544
6574
|
}
|
|
6545
6575
|
|
|
6546
6576
|
export { CalendarView, CheckoutForm, EventCalendar, EventEmbed, EventModal, EventTile, EventsWidget, OfferingCard, OfferingList, ProductDetail, ProductEmbed, ProductGrid, ProductPage, RegistrationForm, SizeChart, UpcomingEvents, createCheckoutSession, createPaymentIntent, fetchActiveProcessor, fetchCategories, fetchLatestOffering, fetchNextEvent, fetchOffering, fetchOfferings, fetchProcessorConfig, fetchProductBySlug, fetchProducts, fetchProductsPublic, fetchServices, fetchShippingRates, fetchUpcomingEvents, formatDate, formatDateRange, formatDateTime, formatPrice, formatTime, getOfferingUrl, getRelativeTimeUntil, getSpotsRemaining, isEventSoldOut, registerForEvent, useEventModal, validateAddress };
|
|
6547
|
-
//# sourceMappingURL=chunk-
|
|
6548
|
-
//# sourceMappingURL=chunk-
|
|
6577
|
+
//# sourceMappingURL=chunk-GA2MN6CF.mjs.map
|
|
6578
|
+
//# sourceMappingURL=chunk-GA2MN6CF.mjs.map
|