@sonordev/site-kit 1.4.3 → 1.4.5

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.
@@ -1261,9 +1261,9 @@ function SizeChart({ chart, selectedSize, className }) {
1261
1261
  gap: 0
1262
1262
  },
1263
1263
  children: [
1264
- /* @__PURE__ */ jsx("span", { style: { fontWeight: showAlt ? 400 : 700, opacity: showAlt ? 0.45 : 1 }, children: "in" }),
1264
+ /* @__PURE__ */ jsx("span", { style: { fontWeight: activeUnit === "inches" ? 700 : 400, opacity: activeUnit === "inches" ? 1 : 0.45 }, children: "in" }),
1265
1265
  /* @__PURE__ */ jsx("span", { style: { margin: "0 3px", opacity: 0.3 }, children: "/" }),
1266
- /* @__PURE__ */ jsx("span", { style: { fontWeight: showAlt ? 700 : 400, opacity: showAlt ? 1 : 0.45 }, children: "cm" })
1266
+ /* @__PURE__ */ jsx("span", { style: { fontWeight: activeUnit === "cm" ? 700 : 400, opacity: activeUnit === "cm" ? 1 : 0.45 }, children: "cm" })
1267
1267
  ]
1268
1268
  }
1269
1269
  )
@@ -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 ? "rgba(37,99,235,0.05)" : "white",
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 white"
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?.["Size"]
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-BUJFVIBQ.mjs.map
6548
- //# sourceMappingURL=chunk-BUJFVIBQ.mjs.map
6577
+ //# sourceMappingURL=chunk-LDK2GBEZ.mjs.map
6578
+ //# sourceMappingURL=chunk-LDK2GBEZ.mjs.map