@sonordev/site-kit 1.4.1 → 1.4.3
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-EDQSKBFX.js → chunk-B5NQTJ2M.js} +183 -194
- package/dist/chunk-B5NQTJ2M.js.map +1 -0
- package/dist/{chunk-VE2GYLFG.mjs → chunk-BUJFVIBQ.mjs} +183 -194
- package/dist/chunk-BUJFVIBQ.mjs.map +1 -0
- package/dist/commerce/index.js +44 -44
- package/dist/commerce/index.mjs +1 -1
- package/dist/index.js +25 -25
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-EDQSKBFX.js.map +0 -1
- package/dist/chunk-VE2GYLFG.mjs.map +0 -1
|
@@ -1356,25 +1356,18 @@ var STYLE_BLOCK = `
|
|
|
1356
1356
|
}
|
|
1357
1357
|
|
|
1358
1358
|
.skc-detail {
|
|
1359
|
-
--commerce-bg: transparent;
|
|
1360
|
-
--commerce-surface: #f9fafb;
|
|
1361
|
-
--commerce-surface-hover: #f3f4f6;
|
|
1362
|
-
--commerce-border: #e5e7eb;
|
|
1363
|
-
--commerce-text: #111827;
|
|
1364
|
-
--commerce-text-secondary: #6b7280;
|
|
1365
|
-
--commerce-text-muted: #9ca3af;
|
|
1366
|
-
--commerce-accent: #2563eb;
|
|
1367
|
-
--commerce-accent-hover: #1d4ed8;
|
|
1368
|
-
--commerce-accent-text: #ffffff;
|
|
1369
|
-
--commerce-success: #059669;
|
|
1370
|
-
--commerce-warning: #d97706;
|
|
1371
|
-
--commerce-danger: #dc2626;
|
|
1372
|
-
--commerce-radius: 12px;
|
|
1373
|
-
--commerce-radius-sm: 8px;
|
|
1374
|
-
|
|
1375
1359
|
animation: skc-fadeIn 0.3s ease-out;
|
|
1376
1360
|
}
|
|
1377
1361
|
|
|
1362
|
+
/*
|
|
1363
|
+
* Commerce CSS custom properties are NOT set here \u2014 they inherit from the host site's :root.
|
|
1364
|
+
* If the host site does not define them, the inline var() fallbacks in each usage provide defaults.
|
|
1365
|
+
* Example: color: var(--commerce-text, #111827) \u2014 uses #111827 if --commerce-text is not defined.
|
|
1366
|
+
*
|
|
1367
|
+
* Host sites should define these in their CSS:
|
|
1368
|
+
* :root { --commerce-accent: #d9b338; --commerce-surface: #0f0f17; ... }
|
|
1369
|
+
*/
|
|
1370
|
+
|
|
1378
1371
|
.skc-detail *, .skc-detail *::before, .skc-detail *::after {
|
|
1379
1372
|
box-sizing: border-box;
|
|
1380
1373
|
}
|
|
@@ -1405,8 +1398,8 @@ var STYLE_BLOCK = `
|
|
|
1405
1398
|
.skc-gallery-main {
|
|
1406
1399
|
position: relative;
|
|
1407
1400
|
overflow: hidden;
|
|
1408
|
-
border-radius: var(--commerce-radius);
|
|
1409
|
-
background: var(--commerce-surface);
|
|
1401
|
+
border-radius: var(--commerce-radius, 12px);
|
|
1402
|
+
background: var(--commerce-surface, #f9fafb);
|
|
1410
1403
|
cursor: crosshair;
|
|
1411
1404
|
aspect-ratio: 1;
|
|
1412
1405
|
}
|
|
@@ -1430,19 +1423,19 @@ var STYLE_BLOCK = `
|
|
|
1430
1423
|
flex: 0 0 auto;
|
|
1431
1424
|
width: 64px;
|
|
1432
1425
|
height: 64px;
|
|
1433
|
-
border-radius: var(--commerce-radius-sm);
|
|
1426
|
+
border-radius: var(--commerce-radius-sm, 8px);
|
|
1434
1427
|
overflow: hidden;
|
|
1435
1428
|
border: 2px solid transparent;
|
|
1436
1429
|
padding: 0;
|
|
1437
1430
|
cursor: pointer;
|
|
1438
|
-
background: var(--commerce-surface);
|
|
1431
|
+
background: var(--commerce-surface, #f9fafb);
|
|
1439
1432
|
transition: border-color 0.15s ease;
|
|
1440
1433
|
}
|
|
1441
1434
|
.skc-gallery-thumb:hover {
|
|
1442
|
-
border-color: var(--commerce-text-muted);
|
|
1435
|
+
border-color: var(--commerce-text-muted, #9ca3af);
|
|
1443
1436
|
}
|
|
1444
1437
|
.skc-gallery-thumb.skc-active {
|
|
1445
|
-
border-color: var(--commerce-accent);
|
|
1438
|
+
border-color: var(--commerce-accent, #2563eb);
|
|
1446
1439
|
}
|
|
1447
1440
|
.skc-gallery-thumb img {
|
|
1448
1441
|
width: 100%;
|
|
@@ -1458,7 +1451,7 @@ var STYLE_BLOCK = `
|
|
|
1458
1451
|
right: 0;
|
|
1459
1452
|
z-index: 999;
|
|
1460
1453
|
background: white;
|
|
1461
|
-
border-top: 1px solid var(--commerce-border);
|
|
1454
|
+
border-top: 1px solid var(--commerce-border, #e5e7eb);
|
|
1462
1455
|
padding: 0.75rem 1rem;
|
|
1463
1456
|
display: flex;
|
|
1464
1457
|
align-items: center;
|
|
@@ -1474,7 +1467,7 @@ var STYLE_BLOCK = `
|
|
|
1474
1467
|
/* Tabs */
|
|
1475
1468
|
.skc-tabs-list {
|
|
1476
1469
|
display: flex;
|
|
1477
|
-
border-bottom: 1px solid var(--commerce-border);
|
|
1470
|
+
border-bottom: 1px solid var(--commerce-border, #e5e7eb);
|
|
1478
1471
|
gap: 0;
|
|
1479
1472
|
overflow-x: auto;
|
|
1480
1473
|
scrollbar-width: none;
|
|
@@ -1486,18 +1479,18 @@ var STYLE_BLOCK = `
|
|
|
1486
1479
|
background: none;
|
|
1487
1480
|
font-size: 0.875rem;
|
|
1488
1481
|
font-weight: 500;
|
|
1489
|
-
color: var(--commerce-text-secondary);
|
|
1482
|
+
color: var(--commerce-text-secondary, #6b7280);
|
|
1490
1483
|
cursor: pointer;
|
|
1491
1484
|
border-bottom: 2px solid transparent;
|
|
1492
1485
|
white-space: nowrap;
|
|
1493
1486
|
transition: color 0.15s ease, border-color 0.15s ease;
|
|
1494
1487
|
}
|
|
1495
1488
|
.skc-tab-btn:hover {
|
|
1496
|
-
color: var(--commerce-text);
|
|
1489
|
+
color: var(--commerce-text, #111827);
|
|
1497
1490
|
}
|
|
1498
1491
|
.skc-tab-btn.skc-active {
|
|
1499
|
-
color: var(--commerce-accent);
|
|
1500
|
-
border-bottom-color: var(--commerce-accent);
|
|
1492
|
+
color: var(--commerce-accent, #2563eb);
|
|
1493
|
+
border-bottom-color: var(--commerce-accent, #2563eb);
|
|
1501
1494
|
}
|
|
1502
1495
|
|
|
1503
1496
|
/* Checkout overlay */
|
|
@@ -1520,7 +1513,7 @@ var STYLE_BLOCK = `
|
|
|
1520
1513
|
max-height: 90vh;
|
|
1521
1514
|
overflow-y: auto;
|
|
1522
1515
|
background: white;
|
|
1523
|
-
border-radius: calc(var(--commerce-radius) + 4px);
|
|
1516
|
+
border-radius: calc(var(--commerce-radius, 12px) + 4px);
|
|
1524
1517
|
box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
|
|
1525
1518
|
animation: skc-scaleIn 0.25s ease-out;
|
|
1526
1519
|
}
|
|
@@ -1529,20 +1522,20 @@ var STYLE_BLOCK = `
|
|
|
1529
1522
|
.skc-input {
|
|
1530
1523
|
width: 100%;
|
|
1531
1524
|
padding: 0.625rem 0.75rem;
|
|
1532
|
-
border-radius: var(--commerce-radius-sm);
|
|
1533
|
-
border: 1px solid var(--commerce-border);
|
|
1525
|
+
border-radius: var(--commerce-radius-sm, 8px);
|
|
1526
|
+
border: 1px solid var(--commerce-border, #e5e7eb);
|
|
1534
1527
|
font-size: 0.9375rem;
|
|
1535
|
-
color: var(--commerce-text);
|
|
1528
|
+
color: var(--commerce-text, #111827);
|
|
1536
1529
|
background: white;
|
|
1537
1530
|
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
|
1538
1531
|
outline: none;
|
|
1539
1532
|
}
|
|
1540
1533
|
.skc-input:focus {
|
|
1541
|
-
border-color: var(--commerce-accent);
|
|
1534
|
+
border-color: var(--commerce-accent, #2563eb);
|
|
1542
1535
|
box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
|
|
1543
1536
|
}
|
|
1544
1537
|
.skc-input::placeholder {
|
|
1545
|
-
color: var(--commerce-text-muted);
|
|
1538
|
+
color: var(--commerce-text-muted, #9ca3af);
|
|
1546
1539
|
}
|
|
1547
1540
|
|
|
1548
1541
|
/* Primary button */
|
|
@@ -1553,17 +1546,17 @@ var STYLE_BLOCK = `
|
|
|
1553
1546
|
gap: 0.5rem;
|
|
1554
1547
|
width: 100%;
|
|
1555
1548
|
padding: 0.875rem 1.5rem;
|
|
1556
|
-
border-radius: var(--commerce-radius-sm);
|
|
1549
|
+
border-radius: var(--commerce-radius-sm, 8px);
|
|
1557
1550
|
border: none;
|
|
1558
|
-
background: var(--commerce-accent);
|
|
1559
|
-
color: var(--commerce-accent-text);
|
|
1551
|
+
background: var(--commerce-accent, #2563eb);
|
|
1552
|
+
color: var(--commerce-accent-text, #ffffff);
|
|
1560
1553
|
font-size: 1rem;
|
|
1561
1554
|
font-weight: 600;
|
|
1562
1555
|
cursor: pointer;
|
|
1563
1556
|
transition: background-color 0.15s ease, transform 0.1s ease;
|
|
1564
1557
|
}
|
|
1565
1558
|
.skc-btn-primary:hover:not(:disabled) {
|
|
1566
|
-
background: var(--commerce-accent-hover);
|
|
1559
|
+
background: var(--commerce-accent-hover, #1d4ed8);
|
|
1567
1560
|
}
|
|
1568
1561
|
.skc-btn-primary:active:not(:disabled) {
|
|
1569
1562
|
transform: scale(0.98);
|
|
@@ -1581,10 +1574,10 @@ var STYLE_BLOCK = `
|
|
|
1581
1574
|
gap: 0.5rem;
|
|
1582
1575
|
width: 100%;
|
|
1583
1576
|
padding: 0.875rem 1.5rem;
|
|
1584
|
-
border-radius: var(--commerce-radius-sm);
|
|
1585
|
-
border: 2px solid var(--commerce-accent);
|
|
1577
|
+
border-radius: var(--commerce-radius-sm, 8px);
|
|
1578
|
+
border: 2px solid var(--commerce-accent, #2563eb);
|
|
1586
1579
|
background: transparent;
|
|
1587
|
-
color: var(--commerce-accent);
|
|
1580
|
+
color: var(--commerce-accent, #2563eb);
|
|
1588
1581
|
font-size: 1rem;
|
|
1589
1582
|
font-weight: 600;
|
|
1590
1583
|
cursor: pointer;
|
|
@@ -1615,24 +1608,24 @@ var STYLE_BLOCK = `
|
|
|
1615
1608
|
width: 8px;
|
|
1616
1609
|
height: 8px;
|
|
1617
1610
|
border-radius: 50%;
|
|
1618
|
-
background: var(--commerce-border);
|
|
1611
|
+
background: var(--commerce-border, #e5e7eb);
|
|
1619
1612
|
transition: background 0.2s ease, transform 0.2s ease;
|
|
1620
1613
|
}
|
|
1621
1614
|
.skc-step-dot.skc-active {
|
|
1622
|
-
background: var(--commerce-accent);
|
|
1615
|
+
background: var(--commerce-accent, #2563eb);
|
|
1623
1616
|
transform: scale(1.3);
|
|
1624
1617
|
}
|
|
1625
1618
|
.skc-step-dot.skc-done {
|
|
1626
|
-
background: var(--commerce-success);
|
|
1619
|
+
background: var(--commerce-success, #059669);
|
|
1627
1620
|
}
|
|
1628
1621
|
.skc-step-connector {
|
|
1629
1622
|
width: 24px;
|
|
1630
1623
|
height: 2px;
|
|
1631
|
-
background: var(--commerce-border);
|
|
1624
|
+
background: var(--commerce-border, #e5e7eb);
|
|
1632
1625
|
transition: background 0.2s ease;
|
|
1633
1626
|
}
|
|
1634
1627
|
.skc-step-connector.skc-done {
|
|
1635
|
-
background: var(--commerce-success);
|
|
1628
|
+
background: var(--commerce-success, #059669);
|
|
1636
1629
|
}
|
|
1637
1630
|
`;
|
|
1638
1631
|
function loadSquareSDK(env) {
|
|
@@ -1853,11 +1846,11 @@ function VariantSelector({ variants, selected, isClothing, showInventory, onSele
|
|
|
1853
1846
|
style: {
|
|
1854
1847
|
fontSize: "0.875rem",
|
|
1855
1848
|
fontWeight: 600,
|
|
1856
|
-
color: "var(--commerce-text)"
|
|
1849
|
+
color: "var(--commerce-text, #111827)"
|
|
1857
1850
|
},
|
|
1858
1851
|
children: [
|
|
1859
1852
|
label,
|
|
1860
|
-
selected && /* @__PURE__ */ jsxRuntime.jsxs("span", { style: { fontWeight: 400, color: "var(--commerce-text-secondary)", marginLeft: 6 }, children: [
|
|
1853
|
+
selected && /* @__PURE__ */ jsxRuntime.jsxs("span", { style: { fontWeight: 400, color: "var(--commerce-text-secondary, #6b7280)", marginLeft: 6 }, children: [
|
|
1861
1854
|
"\u2014 ",
|
|
1862
1855
|
selected.options?.Size || selected.name
|
|
1863
1856
|
] })
|
|
@@ -1879,10 +1872,10 @@ function VariantSelector({ variants, selected, isClothing, showInventory, onSele
|
|
|
1879
1872
|
style: {
|
|
1880
1873
|
position: "relative",
|
|
1881
1874
|
padding: "0.5rem 1rem",
|
|
1882
|
-
borderRadius: "var(--commerce-radius-sm)",
|
|
1883
|
-
border: isSelected ? "2px solid var(--commerce-accent)" : "1px solid var(--commerce-border)",
|
|
1875
|
+
borderRadius: "var(--commerce-radius-sm, 8px)",
|
|
1876
|
+
border: isSelected ? "2px solid var(--commerce-accent, #2563eb)" : "1px solid var(--commerce-border, #e5e7eb)",
|
|
1884
1877
|
backgroundColor: isSelected ? "rgba(37,99,235,0.05)" : "white",
|
|
1885
|
-
color: variantOutOfStock ? "var(--commerce-text-muted)" : "var(--commerce-text)",
|
|
1878
|
+
color: variantOutOfStock ? "var(--commerce-text-muted, #9ca3af)" : "var(--commerce-text, #111827)",
|
|
1886
1879
|
fontSize: "0.875rem",
|
|
1887
1880
|
fontWeight: 500,
|
|
1888
1881
|
cursor: variantOutOfStock ? "not-allowed" : "pointer",
|
|
@@ -1902,7 +1895,7 @@ function VariantSelector({ variants, selected, isClothing, showInventory, onSele
|
|
|
1902
1895
|
width: 8,
|
|
1903
1896
|
height: 8,
|
|
1904
1897
|
borderRadius: "50%",
|
|
1905
|
-
backgroundColor: isLow ? "var(--commerce-warning)" : "var(--commerce-success)",
|
|
1898
|
+
backgroundColor: isLow ? "var(--commerce-warning, #d97706)" : "var(--commerce-success, #059669)",
|
|
1906
1899
|
border: "2px solid white"
|
|
1907
1900
|
},
|
|
1908
1901
|
title: isLow ? `Only ${variant.inventory_count} left` : "In stock"
|
|
@@ -1924,7 +1917,7 @@ function QuantitySelector({ quantity, max, onChange }) {
|
|
|
1924
1917
|
display: "block",
|
|
1925
1918
|
fontSize: "0.875rem",
|
|
1926
1919
|
fontWeight: 600,
|
|
1927
|
-
color: "var(--commerce-text)",
|
|
1920
|
+
color: "var(--commerce-text, #111827)",
|
|
1928
1921
|
marginBottom: "0.5rem"
|
|
1929
1922
|
},
|
|
1930
1923
|
children: "Quantity"
|
|
@@ -1936,8 +1929,8 @@ function QuantitySelector({ quantity, max, onChange }) {
|
|
|
1936
1929
|
style: {
|
|
1937
1930
|
display: "inline-flex",
|
|
1938
1931
|
alignItems: "center",
|
|
1939
|
-
border: "1px solid var(--commerce-border)",
|
|
1940
|
-
borderRadius: "var(--commerce-radius-sm)",
|
|
1932
|
+
border: "1px solid var(--commerce-border, #e5e7eb)",
|
|
1933
|
+
borderRadius: "var(--commerce-radius-sm, 8px)",
|
|
1941
1934
|
overflow: "hidden"
|
|
1942
1935
|
},
|
|
1943
1936
|
children: [
|
|
@@ -1951,14 +1944,14 @@ function QuantitySelector({ quantity, max, onChange }) {
|
|
|
1951
1944
|
width: 40,
|
|
1952
1945
|
height: 40,
|
|
1953
1946
|
border: "none",
|
|
1954
|
-
background: "var(--commerce-surface)",
|
|
1947
|
+
background: "var(--commerce-surface, #f9fafb)",
|
|
1955
1948
|
fontSize: "1.125rem",
|
|
1956
1949
|
cursor: quantity <= 1 ? "not-allowed" : "pointer",
|
|
1957
1950
|
opacity: quantity <= 1 ? 0.4 : 1,
|
|
1958
1951
|
display: "flex",
|
|
1959
1952
|
alignItems: "center",
|
|
1960
1953
|
justifyContent: "center",
|
|
1961
|
-
color: "var(--commerce-text)"
|
|
1954
|
+
color: "var(--commerce-text, #111827)"
|
|
1962
1955
|
},
|
|
1963
1956
|
children: "-"
|
|
1964
1957
|
}
|
|
@@ -1980,11 +1973,11 @@ function QuantitySelector({ quantity, max, onChange }) {
|
|
|
1980
1973
|
height: 40,
|
|
1981
1974
|
textAlign: "center",
|
|
1982
1975
|
border: "none",
|
|
1983
|
-
borderLeft: "1px solid var(--commerce-border)",
|
|
1984
|
-
borderRight: "1px solid var(--commerce-border)",
|
|
1976
|
+
borderLeft: "1px solid var(--commerce-border, #e5e7eb)",
|
|
1977
|
+
borderRight: "1px solid var(--commerce-border, #e5e7eb)",
|
|
1985
1978
|
fontSize: "0.9375rem",
|
|
1986
1979
|
fontWeight: 500,
|
|
1987
|
-
color: "var(--commerce-text)",
|
|
1980
|
+
color: "var(--commerce-text, #111827)",
|
|
1988
1981
|
outline: "none",
|
|
1989
1982
|
MozAppearance: "textfield",
|
|
1990
1983
|
appearance: "textfield"
|
|
@@ -2001,14 +1994,14 @@ function QuantitySelector({ quantity, max, onChange }) {
|
|
|
2001
1994
|
width: 40,
|
|
2002
1995
|
height: 40,
|
|
2003
1996
|
border: "none",
|
|
2004
|
-
background: "var(--commerce-surface)",
|
|
1997
|
+
background: "var(--commerce-surface, #f9fafb)",
|
|
2005
1998
|
fontSize: "1.125rem",
|
|
2006
1999
|
cursor: quantity >= max ? "not-allowed" : "pointer",
|
|
2007
2000
|
opacity: quantity >= max ? 0.4 : 1,
|
|
2008
2001
|
display: "flex",
|
|
2009
2002
|
alignItems: "center",
|
|
2010
2003
|
justifyContent: "center",
|
|
2011
|
-
color: "var(--commerce-text)"
|
|
2004
|
+
color: "var(--commerce-text, #111827)"
|
|
2012
2005
|
},
|
|
2013
2006
|
children: "+"
|
|
2014
2007
|
}
|
|
@@ -2044,18 +2037,18 @@ function TrustBadges({ badges = DEFAULT_TRUST_BADGES }) {
|
|
|
2044
2037
|
alignItems: "center",
|
|
2045
2038
|
textAlign: "center",
|
|
2046
2039
|
padding: "0.75rem 0.5rem",
|
|
2047
|
-
borderRadius: "var(--commerce-radius-sm)",
|
|
2048
|
-
background: "var(--commerce-surface)"
|
|
2040
|
+
borderRadius: "var(--commerce-radius-sm, 8px)",
|
|
2041
|
+
background: "var(--commerce-surface, #f9fafb)"
|
|
2049
2042
|
},
|
|
2050
2043
|
children: [
|
|
2051
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { style: { color: "var(--commerce-text-secondary)", marginBottom: 4 }, children: Icon && /* @__PURE__ */ jsxRuntime.jsx(Icon, {}) }),
|
|
2044
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { style: { color: "var(--commerce-text-secondary, #6b7280)", marginBottom: 4 }, children: Icon && /* @__PURE__ */ jsxRuntime.jsx(Icon, {}) }),
|
|
2052
2045
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2053
2046
|
"span",
|
|
2054
2047
|
{
|
|
2055
2048
|
style: {
|
|
2056
2049
|
fontSize: "0.75rem",
|
|
2057
2050
|
fontWeight: 600,
|
|
2058
|
-
color: "var(--commerce-text)",
|
|
2051
|
+
color: "var(--commerce-text, #111827)",
|
|
2059
2052
|
lineHeight: 1.3
|
|
2060
2053
|
},
|
|
2061
2054
|
children: badge.label
|
|
@@ -2066,7 +2059,7 @@ function TrustBadges({ badges = DEFAULT_TRUST_BADGES }) {
|
|
|
2066
2059
|
{
|
|
2067
2060
|
style: {
|
|
2068
2061
|
fontSize: "0.6875rem",
|
|
2069
|
-
color: "var(--commerce-text-muted)",
|
|
2062
|
+
color: "var(--commerce-text-muted, #9ca3af)",
|
|
2070
2063
|
lineHeight: 1.3
|
|
2071
2064
|
},
|
|
2072
2065
|
children: badge.sublabel
|
|
@@ -2128,7 +2121,7 @@ function ProductTabs({
|
|
|
2128
2121
|
"li",
|
|
2129
2122
|
{
|
|
2130
2123
|
style: {
|
|
2131
|
-
color: "var(--commerce-text-secondary)",
|
|
2124
|
+
color: "var(--commerce-text-secondary, #6b7280)",
|
|
2132
2125
|
fontSize: "0.9375rem",
|
|
2133
2126
|
lineHeight: 1.6
|
|
2134
2127
|
},
|
|
@@ -2153,7 +2146,7 @@ function ProductTabs({
|
|
|
2153
2146
|
{
|
|
2154
2147
|
style: {
|
|
2155
2148
|
fontSize: "0.875rem",
|
|
2156
|
-
color: "var(--commerce-text-muted)",
|
|
2149
|
+
color: "var(--commerce-text-muted, #9ca3af)",
|
|
2157
2150
|
fontWeight: 500
|
|
2158
2151
|
},
|
|
2159
2152
|
children: key
|
|
@@ -2165,7 +2158,7 @@ function ProductTabs({
|
|
|
2165
2158
|
style: {
|
|
2166
2159
|
margin: 0,
|
|
2167
2160
|
fontSize: "0.875rem",
|
|
2168
|
-
color: "var(--commerce-text)"
|
|
2161
|
+
color: "var(--commerce-text, #111827)"
|
|
2169
2162
|
},
|
|
2170
2163
|
children: value
|
|
2171
2164
|
}
|
|
@@ -2179,7 +2172,7 @@ function ProductTabs({
|
|
|
2179
2172
|
id: "skc-tabpanel-description",
|
|
2180
2173
|
role: "tabpanel",
|
|
2181
2174
|
style: {
|
|
2182
|
-
color: "var(--commerce-text-secondary)",
|
|
2175
|
+
color: "var(--commerce-text-secondary, #6b7280)",
|
|
2183
2176
|
lineHeight: 1.7,
|
|
2184
2177
|
fontSize: "0.9375rem"
|
|
2185
2178
|
},
|
|
@@ -2198,14 +2191,14 @@ function EventInfoBlock({ product, schedule }) {
|
|
|
2198
2191
|
style: {
|
|
2199
2192
|
marginTop: "1.25rem",
|
|
2200
2193
|
padding: "1rem",
|
|
2201
|
-
borderRadius: "var(--commerce-radius-sm)",
|
|
2202
|
-
background: "var(--commerce-surface)",
|
|
2194
|
+
borderRadius: "var(--commerce-radius-sm, 8px)",
|
|
2195
|
+
background: "var(--commerce-surface, #f9fafb)",
|
|
2203
2196
|
display: "flex",
|
|
2204
2197
|
flexDirection: "column",
|
|
2205
2198
|
gap: "0.5rem"
|
|
2206
2199
|
},
|
|
2207
2200
|
children: [
|
|
2208
|
-
schedule && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", alignItems: "center", gap: 6, fontSize: "0.875rem", color: "var(--commerce-text-secondary)" }, children: [
|
|
2201
|
+
schedule && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", alignItems: "center", gap: 6, fontSize: "0.875rem", color: "var(--commerce-text-secondary, #6b7280)" }, children: [
|
|
2209
2202
|
/* @__PURE__ */ jsxRuntime.jsx(IconCalendar, {}),
|
|
2210
2203
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
|
|
2211
2204
|
formatDate(schedule.starts_at),
|
|
@@ -2213,17 +2206,17 @@ function EventInfoBlock({ product, schedule }) {
|
|
|
2213
2206
|
formatTime(schedule.starts_at)
|
|
2214
2207
|
] })
|
|
2215
2208
|
] }),
|
|
2216
|
-
product.location && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", alignItems: "center", gap: 6, fontSize: "0.875rem", color: "var(--commerce-text-secondary)" }, children: [
|
|
2209
|
+
product.location && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", alignItems: "center", gap: 6, fontSize: "0.875rem", color: "var(--commerce-text-secondary, #6b7280)" }, children: [
|
|
2217
2210
|
/* @__PURE__ */ jsxRuntime.jsx(IconMapPin, {}),
|
|
2218
2211
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: product.location })
|
|
2219
2212
|
] }),
|
|
2220
|
-
product.is_virtual && product.virtual_meeting_url && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", alignItems: "center", gap: 6, fontSize: "0.875rem", color: "var(--commerce-accent)" }, children: [
|
|
2213
|
+
product.is_virtual && product.virtual_meeting_url && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", alignItems: "center", gap: 6, fontSize: "0.875rem", color: "var(--commerce-accent, #2563eb)" }, children: [
|
|
2221
2214
|
/* @__PURE__ */ jsxRuntime.jsx(IconExternalLink, {}),
|
|
2222
2215
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Virtual Event" })
|
|
2223
2216
|
] }),
|
|
2224
|
-
schedule?.capacity != null && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", alignItems: "center", gap: 6, fontSize: "0.875rem", color: "var(--commerce-text-secondary)" }, children: [
|
|
2217
|
+
schedule?.capacity != null && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", alignItems: "center", gap: 6, fontSize: "0.875rem", color: "var(--commerce-text-secondary, #6b7280)" }, children: [
|
|
2225
2218
|
/* @__PURE__ */ jsxRuntime.jsx(IconUsers, {}),
|
|
2226
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { children: soldOut ? /* @__PURE__ */ jsxRuntime.jsx("span", { style: { color: "var(--commerce-danger)", fontWeight: 600 }, children: "Sold Out" }) : schedule.spots_remaining != null && schedule.spots_remaining <= 10 ? /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "skc-pulse", style: { color: "var(--commerce-warning)", fontWeight: 600 }, children: [
|
|
2219
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: soldOut ? /* @__PURE__ */ jsxRuntime.jsx("span", { style: { color: "var(--commerce-danger, #dc2626)", fontWeight: 600 }, children: "Sold Out" }) : schedule.spots_remaining != null && schedule.spots_remaining <= 10 ? /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "skc-pulse", style: { color: "var(--commerce-warning, #d97706)", fontWeight: 600 }, children: [
|
|
2227
2220
|
"Only ",
|
|
2228
2221
|
schedule.spots_remaining,
|
|
2229
2222
|
" spot",
|
|
@@ -2257,9 +2250,9 @@ function CustomerInfoStep({ customer, onChange, onNext, onBack }) {
|
|
|
2257
2250
|
onNext();
|
|
2258
2251
|
};
|
|
2259
2252
|
return /* @__PURE__ */ jsxRuntime.jsxs("form", { onSubmit: handleSubmit, style: { display: "flex", flexDirection: "column", gap: "0.875rem" }, children: [
|
|
2260
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { style: { margin: 0, fontSize: "1.125rem", fontWeight: 600, color: "var(--commerce-text)" }, children: "Contact Information" }),
|
|
2253
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { style: { margin: 0, fontSize: "1.125rem", fontWeight: 600, color: "var(--commerce-text, #111827)" }, children: "Contact Information" }),
|
|
2261
2254
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
2262
|
-
/* @__PURE__ */ jsxRuntime.jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--commerce-text-secondary)", marginBottom: 4 }, children: "Full Name *" }),
|
|
2255
|
+
/* @__PURE__ */ jsxRuntime.jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--commerce-text-secondary, #6b7280)", marginBottom: 4 }, children: "Full Name *" }),
|
|
2263
2256
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2264
2257
|
"input",
|
|
2265
2258
|
{
|
|
@@ -2274,7 +2267,7 @@ function CustomerInfoStep({ customer, onChange, onNext, onBack }) {
|
|
|
2274
2267
|
)
|
|
2275
2268
|
] }),
|
|
2276
2269
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
2277
|
-
/* @__PURE__ */ jsxRuntime.jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--commerce-text-secondary)", marginBottom: 4 }, children: "Email Address *" }),
|
|
2270
|
+
/* @__PURE__ */ jsxRuntime.jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--commerce-text-secondary, #6b7280)", marginBottom: 4 }, children: "Email Address *" }),
|
|
2278
2271
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2279
2272
|
"input",
|
|
2280
2273
|
{
|
|
@@ -2288,7 +2281,7 @@ function CustomerInfoStep({ customer, onChange, onNext, onBack }) {
|
|
|
2288
2281
|
)
|
|
2289
2282
|
] }),
|
|
2290
2283
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
2291
|
-
/* @__PURE__ */ jsxRuntime.jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--commerce-text-secondary)", marginBottom: 4 }, children: "Phone Number" }),
|
|
2284
|
+
/* @__PURE__ */ jsxRuntime.jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--commerce-text-secondary, #6b7280)", marginBottom: 4 }, children: "Phone Number" }),
|
|
2292
2285
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2293
2286
|
"input",
|
|
2294
2287
|
{
|
|
@@ -2308,10 +2301,10 @@ function CustomerInfoStep({ customer, onChange, onNext, onBack }) {
|
|
|
2308
2301
|
onClick: onBack,
|
|
2309
2302
|
style: {
|
|
2310
2303
|
padding: "0.75rem 1.25rem",
|
|
2311
|
-
borderRadius: "var(--commerce-radius-sm)",
|
|
2312
|
-
border: "1px solid var(--commerce-border)",
|
|
2304
|
+
borderRadius: "var(--commerce-radius-sm, 8px)",
|
|
2305
|
+
border: "1px solid var(--commerce-border, #e5e7eb)",
|
|
2313
2306
|
background: "white",
|
|
2314
|
-
color: "var(--commerce-text-secondary)",
|
|
2307
|
+
color: "var(--commerce-text-secondary, #6b7280)",
|
|
2315
2308
|
fontSize: "0.875rem",
|
|
2316
2309
|
fontWeight: 500,
|
|
2317
2310
|
cursor: "pointer"
|
|
@@ -2332,9 +2325,9 @@ function ShippingAddressStep({ address, onChange, onNext, onBack, loading }) {
|
|
|
2332
2325
|
onChange({ ...address, [field]: value });
|
|
2333
2326
|
};
|
|
2334
2327
|
return /* @__PURE__ */ jsxRuntime.jsxs("form", { onSubmit: handleSubmit, style: { display: "flex", flexDirection: "column", gap: "0.875rem" }, children: [
|
|
2335
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { style: { margin: 0, fontSize: "1.125rem", fontWeight: 600, color: "var(--commerce-text)" }, children: "Shipping Address" }),
|
|
2328
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { style: { margin: 0, fontSize: "1.125rem", fontWeight: 600, color: "var(--commerce-text, #111827)" }, children: "Shipping Address" }),
|
|
2336
2329
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
2337
|
-
/* @__PURE__ */ jsxRuntime.jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--commerce-text-secondary)", marginBottom: 4 }, children: "Street Address *" }),
|
|
2330
|
+
/* @__PURE__ */ jsxRuntime.jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--commerce-text-secondary, #6b7280)", marginBottom: 4 }, children: "Street Address *" }),
|
|
2338
2331
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2339
2332
|
"input",
|
|
2340
2333
|
{
|
|
@@ -2349,7 +2342,7 @@ function ShippingAddressStep({ address, onChange, onNext, onBack, loading }) {
|
|
|
2349
2342
|
)
|
|
2350
2343
|
] }),
|
|
2351
2344
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
2352
|
-
/* @__PURE__ */ jsxRuntime.jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--commerce-text-secondary)", marginBottom: 4 }, children: "Apt / Suite" }),
|
|
2345
|
+
/* @__PURE__ */ jsxRuntime.jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--commerce-text-secondary, #6b7280)", marginBottom: 4 }, children: "Apt / Suite" }),
|
|
2353
2346
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2354
2347
|
"input",
|
|
2355
2348
|
{
|
|
@@ -2363,7 +2356,7 @@ function ShippingAddressStep({ address, onChange, onNext, onBack, loading }) {
|
|
|
2363
2356
|
] }),
|
|
2364
2357
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: "0.75rem" }, children: [
|
|
2365
2358
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
2366
|
-
/* @__PURE__ */ jsxRuntime.jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--commerce-text-secondary)", marginBottom: 4 }, children: "City *" }),
|
|
2359
|
+
/* @__PURE__ */ jsxRuntime.jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--commerce-text-secondary, #6b7280)", marginBottom: 4 }, children: "City *" }),
|
|
2367
2360
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2368
2361
|
"input",
|
|
2369
2362
|
{
|
|
@@ -2377,7 +2370,7 @@ function ShippingAddressStep({ address, onChange, onNext, onBack, loading }) {
|
|
|
2377
2370
|
)
|
|
2378
2371
|
] }),
|
|
2379
2372
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
2380
|
-
/* @__PURE__ */ jsxRuntime.jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--commerce-text-secondary)", marginBottom: 4 }, children: "State *" }),
|
|
2373
|
+
/* @__PURE__ */ jsxRuntime.jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--commerce-text-secondary, #6b7280)", marginBottom: 4 }, children: "State *" }),
|
|
2381
2374
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2382
2375
|
"input",
|
|
2383
2376
|
{
|
|
@@ -2393,7 +2386,7 @@ function ShippingAddressStep({ address, onChange, onNext, onBack, loading }) {
|
|
|
2393
2386
|
] }),
|
|
2394
2387
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: "0.75rem" }, children: [
|
|
2395
2388
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
2396
|
-
/* @__PURE__ */ jsxRuntime.jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--commerce-text-secondary)", marginBottom: 4 }, children: "ZIP Code *" }),
|
|
2389
|
+
/* @__PURE__ */ jsxRuntime.jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--commerce-text-secondary, #6b7280)", marginBottom: 4 }, children: "ZIP Code *" }),
|
|
2397
2390
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2398
2391
|
"input",
|
|
2399
2392
|
{
|
|
@@ -2407,7 +2400,7 @@ function ShippingAddressStep({ address, onChange, onNext, onBack, loading }) {
|
|
|
2407
2400
|
)
|
|
2408
2401
|
] }),
|
|
2409
2402
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
2410
|
-
/* @__PURE__ */ jsxRuntime.jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--commerce-text-secondary)", marginBottom: 4 }, children: "Country" }),
|
|
2403
|
+
/* @__PURE__ */ jsxRuntime.jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--commerce-text-secondary, #6b7280)", marginBottom: 4 }, children: "Country" }),
|
|
2411
2404
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2412
2405
|
"input",
|
|
2413
2406
|
{
|
|
@@ -2428,10 +2421,10 @@ function ShippingAddressStep({ address, onChange, onNext, onBack, loading }) {
|
|
|
2428
2421
|
onClick: onBack,
|
|
2429
2422
|
style: {
|
|
2430
2423
|
padding: "0.75rem 1.25rem",
|
|
2431
|
-
borderRadius: "var(--commerce-radius-sm)",
|
|
2432
|
-
border: "1px solid var(--commerce-border)",
|
|
2424
|
+
borderRadius: "var(--commerce-radius-sm, 8px)",
|
|
2425
|
+
border: "1px solid var(--commerce-border, #e5e7eb)",
|
|
2433
2426
|
background: "white",
|
|
2434
|
-
color: "var(--commerce-text-secondary)",
|
|
2427
|
+
color: "var(--commerce-text-secondary, #6b7280)",
|
|
2435
2428
|
fontSize: "0.875rem",
|
|
2436
2429
|
fontWeight: 500,
|
|
2437
2430
|
cursor: "pointer"
|
|
@@ -2452,20 +2445,20 @@ function ShippingRatesStep({ rates, selected, onSelect, onNext, onBack, loading,
|
|
|
2452
2445
|
style: {
|
|
2453
2446
|
width: 32,
|
|
2454
2447
|
height: 32,
|
|
2455
|
-
border: "3px solid var(--commerce-border)",
|
|
2456
|
-
borderTopColor: "var(--commerce-accent)",
|
|
2448
|
+
border: "3px solid var(--commerce-border, #e5e7eb)",
|
|
2449
|
+
borderTopColor: "var(--commerce-accent, #2563eb)",
|
|
2457
2450
|
borderRadius: "50%",
|
|
2458
2451
|
animation: "skc-spin 1s linear infinite",
|
|
2459
2452
|
margin: "0 auto 1rem"
|
|
2460
2453
|
}
|
|
2461
2454
|
}
|
|
2462
2455
|
),
|
|
2463
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { color: "var(--commerce-text-secondary)", fontSize: "0.875rem", margin: 0 }, children: "Calculating shipping rates..." })
|
|
2456
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { color: "var(--commerce-text-secondary, #6b7280)", fontSize: "0.875rem", margin: 0 }, children: "Calculating shipping rates..." })
|
|
2464
2457
|
] });
|
|
2465
2458
|
}
|
|
2466
2459
|
if (!rates.length) {
|
|
2467
2460
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { textAlign: "center", padding: "1.5rem 0" }, children: [
|
|
2468
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { color: "var(--commerce-text-secondary)", fontSize: "0.875rem", margin: "0 0 1rem" }, children: "No shipping rates available for this address. Please check your address and try again." }),
|
|
2461
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { color: "var(--commerce-text-secondary, #6b7280)", fontSize: "0.875rem", margin: "0 0 1rem" }, children: "No shipping rates available for this address. Please check your address and try again." }),
|
|
2469
2462
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2470
2463
|
"button",
|
|
2471
2464
|
{
|
|
@@ -2473,10 +2466,10 @@ function ShippingRatesStep({ rates, selected, onSelect, onNext, onBack, loading,
|
|
|
2473
2466
|
onClick: onBack,
|
|
2474
2467
|
style: {
|
|
2475
2468
|
padding: "0.75rem 1.5rem",
|
|
2476
|
-
borderRadius: "var(--commerce-radius-sm)",
|
|
2477
|
-
border: "1px solid var(--commerce-border)",
|
|
2469
|
+
borderRadius: "var(--commerce-radius-sm, 8px)",
|
|
2470
|
+
border: "1px solid var(--commerce-border, #e5e7eb)",
|
|
2478
2471
|
background: "white",
|
|
2479
|
-
color: "var(--commerce-text-secondary)",
|
|
2472
|
+
color: "var(--commerce-text-secondary, #6b7280)",
|
|
2480
2473
|
fontSize: "0.875rem",
|
|
2481
2474
|
fontWeight: 500,
|
|
2482
2475
|
cursor: "pointer"
|
|
@@ -2487,7 +2480,7 @@ function ShippingRatesStep({ rates, selected, onSelect, onNext, onBack, loading,
|
|
|
2487
2480
|
] });
|
|
2488
2481
|
}
|
|
2489
2482
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "0.875rem" }, children: [
|
|
2490
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { style: { margin: 0, fontSize: "1.125rem", fontWeight: 600, color: "var(--commerce-text)" }, children: "Shipping Method" }),
|
|
2483
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { style: { margin: 0, fontSize: "1.125rem", fontWeight: 600, color: "var(--commerce-text, #111827)" }, children: "Shipping Method" }),
|
|
2491
2484
|
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { display: "flex", flexDirection: "column", gap: "0.5rem" }, role: "radiogroup", "aria-label": "Shipping options", children: rates.map((rate, idx) => {
|
|
2492
2485
|
const isSelected = selected?.objectId === rate.objectId || selected === null && idx === 0;
|
|
2493
2486
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -2501,8 +2494,8 @@ function ShippingRatesStep({ rates, selected, onSelect, onNext, onBack, loading,
|
|
|
2501
2494
|
alignItems: "center",
|
|
2502
2495
|
justifyContent: "space-between",
|
|
2503
2496
|
padding: "0.875rem 1rem",
|
|
2504
|
-
borderRadius: "var(--commerce-radius-sm)",
|
|
2505
|
-
border: isSelected ? "2px solid var(--commerce-accent)" : "1px solid var(--commerce-border)",
|
|
2497
|
+
borderRadius: "var(--commerce-radius-sm, 8px)",
|
|
2498
|
+
border: isSelected ? "2px solid var(--commerce-accent, #2563eb)" : "1px solid var(--commerce-border, #e5e7eb)",
|
|
2506
2499
|
background: isSelected ? "rgba(37,99,235,0.03)" : "white",
|
|
2507
2500
|
cursor: "pointer",
|
|
2508
2501
|
textAlign: "left",
|
|
@@ -2510,14 +2503,14 @@ function ShippingRatesStep({ rates, selected, onSelect, onNext, onBack, loading,
|
|
|
2510
2503
|
},
|
|
2511
2504
|
children: [
|
|
2512
2505
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
2513
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { fontSize: "0.875rem", fontWeight: 600, color: "var(--commerce-text)" }, children: [
|
|
2506
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { fontSize: "0.875rem", fontWeight: 600, color: "var(--commerce-text, #111827)" }, children: [
|
|
2514
2507
|
rate.carrier,
|
|
2515
2508
|
" \u2014 ",
|
|
2516
2509
|
rate.service
|
|
2517
2510
|
] }),
|
|
2518
|
-
rate.estimatedDays != null && /* @__PURE__ */ jsxRuntime.jsx("div", { style: { fontSize: "0.8125rem", color: "var(--commerce-text-muted)", marginTop: 2 }, children: rate.estimatedDays === 1 ? "1 business day" : `${rate.estimatedDays} business days` })
|
|
2511
|
+
rate.estimatedDays != null && /* @__PURE__ */ jsxRuntime.jsx("div", { style: { fontSize: "0.8125rem", color: "var(--commerce-text-muted, #9ca3af)", marginTop: 2 }, children: rate.estimatedDays === 1 ? "1 business day" : `${rate.estimatedDays} business days` })
|
|
2519
2512
|
] }),
|
|
2520
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { style: { fontSize: "0.9375rem", fontWeight: 600, color: "var(--commerce-text)" }, children: formatPrice(parseFloat(rate.amount), rate.currency || currency) })
|
|
2513
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { style: { fontSize: "0.9375rem", fontWeight: 600, color: "var(--commerce-text, #111827)" }, children: formatPrice(parseFloat(rate.amount), rate.currency || currency) })
|
|
2521
2514
|
]
|
|
2522
2515
|
},
|
|
2523
2516
|
rate.objectId || idx
|
|
@@ -2531,10 +2524,10 @@ function ShippingRatesStep({ rates, selected, onSelect, onNext, onBack, loading,
|
|
|
2531
2524
|
onClick: onBack,
|
|
2532
2525
|
style: {
|
|
2533
2526
|
padding: "0.75rem 1.25rem",
|
|
2534
|
-
borderRadius: "var(--commerce-radius-sm)",
|
|
2535
|
-
border: "1px solid var(--commerce-border)",
|
|
2527
|
+
borderRadius: "var(--commerce-radius-sm, 8px)",
|
|
2528
|
+
border: "1px solid var(--commerce-border, #e5e7eb)",
|
|
2536
2529
|
background: "white",
|
|
2537
|
-
color: "var(--commerce-text-secondary)",
|
|
2530
|
+
color: "var(--commerce-text-secondary, #6b7280)",
|
|
2538
2531
|
fontSize: "0.875rem",
|
|
2539
2532
|
fontWeight: 500,
|
|
2540
2533
|
cursor: "pointer"
|
|
@@ -2757,21 +2750,21 @@ function PaymentStep({
|
|
|
2757
2750
|
}
|
|
2758
2751
|
};
|
|
2759
2752
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "1rem" }, children: [
|
|
2760
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { style: { margin: 0, fontSize: "1.125rem", fontWeight: 600, color: "var(--commerce-text)" }, children: "Payment" }),
|
|
2753
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { style: { margin: 0, fontSize: "1.125rem", fontWeight: 600, color: "var(--commerce-text, #111827)" }, children: "Payment" }),
|
|
2761
2754
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2762
2755
|
"div",
|
|
2763
2756
|
{
|
|
2764
2757
|
style: {
|
|
2765
2758
|
padding: "1rem",
|
|
2766
|
-
borderRadius: "var(--commerce-radius-sm)",
|
|
2767
|
-
background: "var(--commerce-surface)",
|
|
2759
|
+
borderRadius: "var(--commerce-radius-sm, 8px)",
|
|
2760
|
+
background: "var(--commerce-surface, #f9fafb)",
|
|
2768
2761
|
display: "flex",
|
|
2769
2762
|
flexDirection: "column",
|
|
2770
2763
|
gap: "0.375rem",
|
|
2771
2764
|
fontSize: "0.875rem"
|
|
2772
2765
|
},
|
|
2773
2766
|
children: [
|
|
2774
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", justifyContent: "space-between", color: "var(--commerce-text-secondary)" }, children: [
|
|
2767
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", justifyContent: "space-between", color: "var(--commerce-text-secondary, #6b7280)" }, children: [
|
|
2775
2768
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
|
|
2776
2769
|
product.name,
|
|
2777
2770
|
" ",
|
|
@@ -2781,7 +2774,7 @@ function PaymentStep({
|
|
|
2781
2774
|
] }),
|
|
2782
2775
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: formatPrice(subtotal, product.currency) })
|
|
2783
2776
|
] }),
|
|
2784
|
-
shippingRate && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", justifyContent: "space-between", color: "var(--commerce-text-secondary)" }, children: [
|
|
2777
|
+
shippingRate && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", justifyContent: "space-between", color: "var(--commerce-text-secondary, #6b7280)" }, children: [
|
|
2785
2778
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
|
|
2786
2779
|
"Shipping (",
|
|
2787
2780
|
shippingRate.carrier,
|
|
@@ -2798,10 +2791,10 @@ function PaymentStep({
|
|
|
2798
2791
|
display: "flex",
|
|
2799
2792
|
justifyContent: "space-between",
|
|
2800
2793
|
fontWeight: 700,
|
|
2801
|
-
color: "var(--commerce-text)",
|
|
2794
|
+
color: "var(--commerce-text, #111827)",
|
|
2802
2795
|
fontSize: "1rem",
|
|
2803
2796
|
paddingTop: "0.5rem",
|
|
2804
|
-
borderTop: "1px solid var(--commerce-border)",
|
|
2797
|
+
borderTop: "1px solid var(--commerce-border, #e5e7eb)",
|
|
2805
2798
|
marginTop: "0.25rem"
|
|
2806
2799
|
},
|
|
2807
2800
|
children: [
|
|
@@ -2821,7 +2814,7 @@ function PaymentStep({
|
|
|
2821
2814
|
display: "block",
|
|
2822
2815
|
fontSize: "0.8125rem",
|
|
2823
2816
|
fontWeight: 500,
|
|
2824
|
-
color: "var(--commerce-text-secondary)",
|
|
2817
|
+
color: "var(--commerce-text-secondary, #6b7280)",
|
|
2825
2818
|
marginBottom: 6
|
|
2826
2819
|
},
|
|
2827
2820
|
children: "Card Details"
|
|
@@ -2834,14 +2827,14 @@ function PaymentStep({
|
|
|
2834
2827
|
ref: cardContainerRef,
|
|
2835
2828
|
style: {
|
|
2836
2829
|
minHeight: processor === "stripe" ? 80 : 44,
|
|
2837
|
-
border: "1px solid var(--commerce-border)",
|
|
2838
|
-
borderRadius: "var(--commerce-radius-sm)",
|
|
2830
|
+
border: "1px solid var(--commerce-border, #e5e7eb)",
|
|
2831
|
+
borderRadius: "var(--commerce-radius-sm, 8px)",
|
|
2839
2832
|
padding: processor === "stripe" ? "0.75rem" : "0.5rem 0.75rem",
|
|
2840
2833
|
background: "white"
|
|
2841
2834
|
}
|
|
2842
2835
|
}
|
|
2843
2836
|
),
|
|
2844
|
-
!cardReady && !error && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { fontSize: "0.75rem", color: "var(--commerce-text-muted)", marginTop: 4, marginBottom: 0 }, children: "Loading secure payment form..." })
|
|
2837
|
+
!cardReady && !error && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { fontSize: "0.75rem", color: "var(--commerce-text-muted, #9ca3af)", marginTop: 4, marginBottom: 0 }, children: "Loading secure payment form..." })
|
|
2845
2838
|
] }),
|
|
2846
2839
|
error && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2847
2840
|
"div",
|
|
@@ -2853,8 +2846,8 @@ function PaymentStep({
|
|
|
2853
2846
|
padding: "0.75rem",
|
|
2854
2847
|
background: "#fef2f2",
|
|
2855
2848
|
border: "1px solid #fecaca",
|
|
2856
|
-
borderRadius: "var(--commerce-radius-sm)",
|
|
2857
|
-
color: "var(--commerce-danger)",
|
|
2849
|
+
borderRadius: "var(--commerce-radius-sm, 8px)",
|
|
2850
|
+
color: "var(--commerce-danger, #dc2626)",
|
|
2858
2851
|
fontSize: "0.875rem"
|
|
2859
2852
|
},
|
|
2860
2853
|
children: [
|
|
@@ -2872,10 +2865,10 @@ function PaymentStep({
|
|
|
2872
2865
|
disabled: submitting,
|
|
2873
2866
|
style: {
|
|
2874
2867
|
padding: "0.75rem 1.25rem",
|
|
2875
|
-
borderRadius: "var(--commerce-radius-sm)",
|
|
2876
|
-
border: "1px solid var(--commerce-border)",
|
|
2868
|
+
borderRadius: "var(--commerce-radius-sm, 8px)",
|
|
2869
|
+
border: "1px solid var(--commerce-border, #e5e7eb)",
|
|
2877
2870
|
background: "white",
|
|
2878
|
-
color: "var(--commerce-text-secondary)",
|
|
2871
|
+
color: "var(--commerce-text-secondary, #6b7280)",
|
|
2879
2872
|
fontSize: "0.875rem",
|
|
2880
2873
|
fontWeight: 500,
|
|
2881
2874
|
cursor: submitting ? "not-allowed" : "pointer",
|
|
@@ -2922,7 +2915,7 @@ function PaymentStep({
|
|
|
2922
2915
|
style: {
|
|
2923
2916
|
textAlign: "center",
|
|
2924
2917
|
fontSize: "0.6875rem",
|
|
2925
|
-
color: "var(--commerce-text-muted)",
|
|
2918
|
+
color: "var(--commerce-text-muted, #9ca3af)",
|
|
2926
2919
|
margin: "0.25rem 0 0"
|
|
2927
2920
|
},
|
|
2928
2921
|
children: [
|
|
@@ -2963,7 +2956,7 @@ function SuccessStep({ result, product, onClose }) {
|
|
|
2963
2956
|
height: "32",
|
|
2964
2957
|
viewBox: "0 0 24 24",
|
|
2965
2958
|
fill: "none",
|
|
2966
|
-
stroke: "var(--commerce-success)",
|
|
2959
|
+
stroke: "var(--commerce-success, #059669)",
|
|
2967
2960
|
strokeWidth: "2.5",
|
|
2968
2961
|
strokeLinecap: "round",
|
|
2969
2962
|
strokeLinejoin: "round",
|
|
@@ -2985,21 +2978,21 @@ function SuccessStep({ result, product, onClose }) {
|
|
|
2985
2978
|
margin: "0 0 0.5rem",
|
|
2986
2979
|
fontSize: "1.375rem",
|
|
2987
2980
|
fontWeight: 700,
|
|
2988
|
-
color: "var(--commerce-success)"
|
|
2981
|
+
color: "var(--commerce-success, #059669)"
|
|
2989
2982
|
},
|
|
2990
2983
|
children: "Order Confirmed!"
|
|
2991
2984
|
}
|
|
2992
2985
|
),
|
|
2993
|
-
/* @__PURE__ */ jsxRuntime.jsxs("p", { style: { color: "var(--commerce-text-secondary)", margin: "0 0 0.5rem", fontSize: "0.9375rem" }, children: [
|
|
2986
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { style: { color: "var(--commerce-text-secondary, #6b7280)", margin: "0 0 0.5rem", fontSize: "0.9375rem" }, children: [
|
|
2994
2987
|
"Thank you for your purchase of ",
|
|
2995
2988
|
product.name,
|
|
2996
2989
|
"."
|
|
2997
2990
|
] }),
|
|
2998
|
-
result.confirmation_number && /* @__PURE__ */ jsxRuntime.jsxs("p", { style: { color: "var(--commerce-text-muted)", margin: "0 0 1rem", fontSize: "0.8125rem" }, children: [
|
|
2991
|
+
result.confirmation_number && /* @__PURE__ */ jsxRuntime.jsxs("p", { style: { color: "var(--commerce-text-muted, #9ca3af)", margin: "0 0 1rem", fontSize: "0.8125rem" }, children: [
|
|
2999
2992
|
"Confirmation: ",
|
|
3000
|
-
/* @__PURE__ */ jsxRuntime.jsx("strong", { style: { color: "var(--commerce-text)" }, children: result.confirmation_number })
|
|
2993
|
+
/* @__PURE__ */ jsxRuntime.jsx("strong", { style: { color: "var(--commerce-text, #111827)" }, children: result.confirmation_number })
|
|
3001
2994
|
] }),
|
|
3002
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { color: "var(--commerce-text-muted)", margin: "0 0 1.5rem", fontSize: "0.875rem" }, children: "A confirmation email has been sent to your inbox." }),
|
|
2995
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { color: "var(--commerce-text-muted, #9ca3af)", margin: "0 0 1.5rem", fontSize: "0.875rem" }, children: "A confirmation email has been sent to your inbox." }),
|
|
3003
2996
|
/* @__PURE__ */ jsxRuntime.jsx("button", { className: "skc-btn-primary", onClick: onClose, style: { maxWidth: 240 }, children: "Done" })
|
|
3004
2997
|
]
|
|
3005
2998
|
}
|
|
@@ -3128,6 +3121,34 @@ function ProductDetail({
|
|
|
3128
3121
|
...product.variants?.map((v) => v.image_url).filter(Boolean) || []
|
|
3129
3122
|
].filter(Boolean);
|
|
3130
3123
|
}, [product]);
|
|
3124
|
+
const currentPrice = product ? selectedVariant?.price ?? product.price ?? 0 : 0;
|
|
3125
|
+
const compareAtPrice = product?.compare_at_price;
|
|
3126
|
+
const hasDiscount = compareAtPrice != null && compareAtPrice > currentPrice;
|
|
3127
|
+
const discountPercent = hasDiscount ? Math.round((compareAtPrice - currentPrice) / compareAtPrice * 100) : 0;
|
|
3128
|
+
const inventoryCount = selectedVariant?.inventory_count ?? product?.inventory_count;
|
|
3129
|
+
const isOutOfStock = !!product?.track_inventory && inventoryCount != null && inventoryCount <= 0;
|
|
3130
|
+
const isLowStock = !!product?.track_inventory && inventoryCount != null && inventoryCount > 0 && inventoryCount <= 5;
|
|
3131
|
+
const needsVariantSelection = product ? (product.is_clothing || (product.variants?.length ?? 0) > 1) && !selectedVariant : false;
|
|
3132
|
+
const hasExternalUrl = !!product?.external_url;
|
|
3133
|
+
const isEvent = product?.type === "event" || product?.type === "class";
|
|
3134
|
+
const isService = product?.type === "service";
|
|
3135
|
+
const isFree = !currentPrice || currentPrice === 0;
|
|
3136
|
+
const needsShipping = !!processorConfig?.shipping_enabled && product?.type === "product";
|
|
3137
|
+
const schedule = product?.schedules?.[0] || product?.next_schedule;
|
|
3138
|
+
const checkoutSteps = React5.useMemo(() => {
|
|
3139
|
+
const steps = ["customer-info"];
|
|
3140
|
+
if (needsShipping) steps.push("shipping", "rates");
|
|
3141
|
+
if (!isFree) steps.push("payment");
|
|
3142
|
+
return steps;
|
|
3143
|
+
}, [needsShipping, isFree]);
|
|
3144
|
+
const ctaLabel = React5.useMemo(() => {
|
|
3145
|
+
if (isOutOfStock) return "Out of Stock";
|
|
3146
|
+
if (needsVariantSelection) return product?.is_clothing ? "Select Size" : "Select Option";
|
|
3147
|
+
if (hasExternalUrl) return product?.type === "event" ? "Get Tickets" : "Learn More";
|
|
3148
|
+
if (isEvent) return isFree ? "Register Free" : "Get Tickets";
|
|
3149
|
+
if (isService) return "Book Now";
|
|
3150
|
+
return isFree ? "Get It Free" : "Buy Now";
|
|
3151
|
+
}, [isOutOfStock, needsVariantSelection, hasExternalUrl, isEvent, isService, isFree, product?.is_clothing, product?.type]);
|
|
3131
3152
|
if (!product) {
|
|
3132
3153
|
if (loading) {
|
|
3133
3154
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `skc-detail ${className}`, style: customStyle, children: [
|
|
@@ -3138,8 +3159,8 @@ function ProductDetail({
|
|
|
3138
3159
|
style: {
|
|
3139
3160
|
width: 48,
|
|
3140
3161
|
height: 48,
|
|
3141
|
-
border: "3px solid var(--commerce-border)",
|
|
3142
|
-
borderTopColor: "var(--commerce-accent)",
|
|
3162
|
+
border: "3px solid var(--commerce-border, #e5e7eb)",
|
|
3163
|
+
borderTopColor: "var(--commerce-accent, #2563eb)",
|
|
3143
3164
|
borderRadius: "50%",
|
|
3144
3165
|
animation: "skc-spin 1s linear infinite"
|
|
3145
3166
|
}
|
|
@@ -3149,36 +3170,12 @@ function ProductDetail({
|
|
|
3149
3170
|
}
|
|
3150
3171
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `skc-detail ${className}`, style: customStyle, children: [
|
|
3151
3172
|
/* @__PURE__ */ jsxRuntime.jsx("style", { children: STYLE_BLOCK }),
|
|
3152
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { textAlign: "center", padding: "4rem 2rem", color: "var(--commerce-text-secondary)" }, children: [
|
|
3153
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { style: { margin: 0, fontSize: "1.5rem", color: "var(--commerce-text)" }, children: "Product Not Found" }),
|
|
3173
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { textAlign: "center", padding: "4rem 2rem", color: "var(--commerce-text-secondary, #6b7280)" }, children: [
|
|
3174
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { style: { margin: 0, fontSize: "1.5rem", color: "var(--commerce-text, #111827)" }, children: "Product Not Found" }),
|
|
3154
3175
|
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginTop: "0.5rem" }, children: "The product you are looking for does not exist or has been removed." })
|
|
3155
3176
|
] })
|
|
3156
3177
|
] });
|
|
3157
3178
|
}
|
|
3158
|
-
const currentPrice = selectedVariant?.price ?? product.price ?? 0;
|
|
3159
|
-
const compareAtPrice = product.compare_at_price;
|
|
3160
|
-
const hasDiscount = compareAtPrice != null && compareAtPrice > currentPrice;
|
|
3161
|
-
const discountPercent = hasDiscount ? Math.round((compareAtPrice - currentPrice) / compareAtPrice * 100) : 0;
|
|
3162
|
-
const inventoryCount = selectedVariant?.inventory_count ?? product.inventory_count;
|
|
3163
|
-
const isOutOfStock = product.track_inventory && inventoryCount != null && inventoryCount <= 0;
|
|
3164
|
-
const isLowStock = product.track_inventory && inventoryCount != null && inventoryCount > 0 && inventoryCount <= 5;
|
|
3165
|
-
const needsVariantSelection = (product.is_clothing || (product.variants?.length ?? 0) > 1) && !selectedVariant;
|
|
3166
|
-
const isEvent = product.type === "event";
|
|
3167
|
-
const isService = product.type === "service";
|
|
3168
|
-
const hasExternalUrl = !!product.external_url;
|
|
3169
|
-
const isFree = !product.price || product.price === 0;
|
|
3170
|
-
const needsShipping = !!processorConfig?.shipping_enabled && product.type === "product";
|
|
3171
|
-
const schedule = product.schedules?.[0] || product.next_schedule;
|
|
3172
|
-
const checkoutSteps = React5.useMemo(() => {
|
|
3173
|
-
const steps = ["customer-info"];
|
|
3174
|
-
if (needsShipping) {
|
|
3175
|
-
steps.push("shipping", "rates");
|
|
3176
|
-
}
|
|
3177
|
-
if (!isFree) {
|
|
3178
|
-
steps.push("payment");
|
|
3179
|
-
}
|
|
3180
|
-
return steps;
|
|
3181
|
-
}, [needsShipping, isFree]);
|
|
3182
3179
|
const handleVariantChange = (variant) => {
|
|
3183
3180
|
setSelectedVariant(variant);
|
|
3184
3181
|
if (variant.image_url) {
|
|
@@ -3323,14 +3320,6 @@ function ProductDetail({
|
|
|
3323
3320
|
setCheckoutResult(null);
|
|
3324
3321
|
}
|
|
3325
3322
|
};
|
|
3326
|
-
const ctaLabel = React5.useMemo(() => {
|
|
3327
|
-
if (isOutOfStock) return "Out of Stock";
|
|
3328
|
-
if (needsVariantSelection) return product.is_clothing ? "Select Size" : "Select Option";
|
|
3329
|
-
if (hasExternalUrl) return product.type === "event" ? "Get Tickets" : "Learn More";
|
|
3330
|
-
if (isEvent) return isFree ? "Register Free" : "Get Tickets";
|
|
3331
|
-
if (isService) return "Book Now";
|
|
3332
|
-
return isFree ? "Get It Free" : "Buy Now";
|
|
3333
|
-
}, [isOutOfStock, needsVariantSelection, hasExternalUrl, isEvent, isService, isFree, product.is_clothing]);
|
|
3334
3323
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `skc-detail ${className}`, style: customStyle, children: [
|
|
3335
3324
|
/* @__PURE__ */ jsxRuntime.jsx("style", { children: STYLE_BLOCK }),
|
|
3336
3325
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: `skc-detail-layout${layout === "stacked" ? " skc-stacked" : ""}`, children: [
|
|
@@ -3350,7 +3339,7 @@ function ProductDetail({
|
|
|
3350
3339
|
style: {
|
|
3351
3340
|
fontSize: "0.75rem",
|
|
3352
3341
|
fontWeight: 600,
|
|
3353
|
-
color: "var(--commerce-accent)",
|
|
3342
|
+
color: "var(--commerce-accent, #2563eb)",
|
|
3354
3343
|
textTransform: "uppercase",
|
|
3355
3344
|
letterSpacing: "0.05em",
|
|
3356
3345
|
marginBottom: "0.375rem"
|
|
@@ -3365,7 +3354,7 @@ function ProductDetail({
|
|
|
3365
3354
|
margin: 0,
|
|
3366
3355
|
fontSize: "1.875rem",
|
|
3367
3356
|
fontWeight: 700,
|
|
3368
|
-
color: "var(--commerce-text)",
|
|
3357
|
+
color: "var(--commerce-text, #111827)",
|
|
3369
3358
|
lineHeight: 1.2
|
|
3370
3359
|
},
|
|
3371
3360
|
children: product.name
|
|
@@ -3378,7 +3367,7 @@ function ProductDetail({
|
|
|
3378
3367
|
marginTop: "0.625rem",
|
|
3379
3368
|
marginBottom: 0,
|
|
3380
3369
|
fontSize: "1rem",
|
|
3381
|
-
color: "var(--commerce-text-secondary)",
|
|
3370
|
+
color: "var(--commerce-text-secondary, #6b7280)",
|
|
3382
3371
|
lineHeight: 1.6
|
|
3383
3372
|
},
|
|
3384
3373
|
children: product.short_description
|
|
@@ -3401,7 +3390,7 @@ function ProductDetail({
|
|
|
3401
3390
|
style: {
|
|
3402
3391
|
fontSize: "1.75rem",
|
|
3403
3392
|
fontWeight: 700,
|
|
3404
|
-
color: hasDiscount ? "var(--commerce-danger)" : "var(--commerce-text)"
|
|
3393
|
+
color: hasDiscount ? "var(--commerce-danger, #dc2626)" : "var(--commerce-text, #111827)"
|
|
3405
3394
|
},
|
|
3406
3395
|
children: formatPrice(currentPrice, product.currency)
|
|
3407
3396
|
}
|
|
@@ -3412,7 +3401,7 @@ function ProductDetail({
|
|
|
3412
3401
|
{
|
|
3413
3402
|
style: {
|
|
3414
3403
|
fontSize: "1.125rem",
|
|
3415
|
-
color: "var(--commerce-text-muted)",
|
|
3404
|
+
color: "var(--commerce-text-muted, #9ca3af)",
|
|
3416
3405
|
textDecoration: "line-through"
|
|
3417
3406
|
},
|
|
3418
3407
|
children: formatPrice(compareAtPrice, product.currency)
|
|
@@ -3424,8 +3413,8 @@ function ProductDetail({
|
|
|
3424
3413
|
style: {
|
|
3425
3414
|
fontSize: "0.75rem",
|
|
3426
3415
|
fontWeight: 700,
|
|
3427
|
-
color: "var(--commerce-accent-text)",
|
|
3428
|
-
background: "var(--commerce-danger)",
|
|
3416
|
+
color: "var(--commerce-accent-text, #ffffff)",
|
|
3417
|
+
background: "var(--commerce-danger, #dc2626)",
|
|
3429
3418
|
padding: "2px 8px",
|
|
3430
3419
|
borderRadius: 4
|
|
3431
3420
|
},
|
|
@@ -3437,7 +3426,7 @@ function ProductDetail({
|
|
|
3437
3426
|
}
|
|
3438
3427
|
)
|
|
3439
3428
|
] }),
|
|
3440
|
-
product.billing_period && /* @__PURE__ */ jsxRuntime.jsxs("span", { style: { fontSize: "0.875rem", color: "var(--commerce-text-muted)" }, children: [
|
|
3429
|
+
product.billing_period && /* @__PURE__ */ jsxRuntime.jsxs("span", { style: { fontSize: "0.875rem", color: "var(--commerce-text-muted, #9ca3af)" }, children: [
|
|
3441
3430
|
"/ ",
|
|
3442
3431
|
product.billing_period
|
|
3443
3432
|
] })
|
|
@@ -3450,7 +3439,7 @@ function ProductDetail({
|
|
|
3450
3439
|
style: {
|
|
3451
3440
|
fontSize: "0.8125rem",
|
|
3452
3441
|
fontWeight: 600,
|
|
3453
|
-
color: "var(--commerce-danger)",
|
|
3442
|
+
color: "var(--commerce-danger, #dc2626)",
|
|
3454
3443
|
display: "flex",
|
|
3455
3444
|
alignItems: "center",
|
|
3456
3445
|
gap: 4
|
|
@@ -3467,7 +3456,7 @@ function ProductDetail({
|
|
|
3467
3456
|
style: {
|
|
3468
3457
|
fontSize: "0.8125rem",
|
|
3469
3458
|
fontWeight: 600,
|
|
3470
|
-
color: "var(--commerce-warning)",
|
|
3459
|
+
color: "var(--commerce-warning, #d97706)",
|
|
3471
3460
|
display: "flex",
|
|
3472
3461
|
alignItems: "center",
|
|
3473
3462
|
gap: 4
|
|
@@ -3485,7 +3474,7 @@ function ProductDetail({
|
|
|
3485
3474
|
style: {
|
|
3486
3475
|
fontSize: "0.8125rem",
|
|
3487
3476
|
fontWeight: 500,
|
|
3488
|
-
color: "var(--commerce-success)",
|
|
3477
|
+
color: "var(--commerce-success, #059669)",
|
|
3489
3478
|
display: "flex",
|
|
3490
3479
|
alignItems: "center",
|
|
3491
3480
|
gap: 4
|
|
@@ -3555,8 +3544,8 @@ function ProductDetail({
|
|
|
3555
3544
|
padding: "0.75rem",
|
|
3556
3545
|
background: "#fef2f2",
|
|
3557
3546
|
border: "1px solid #fecaca",
|
|
3558
|
-
borderRadius: "var(--commerce-radius-sm)",
|
|
3559
|
-
color: "var(--commerce-danger)",
|
|
3547
|
+
borderRadius: "var(--commerce-radius-sm, 8px)",
|
|
3548
|
+
color: "var(--commerce-danger, #dc2626)",
|
|
3560
3549
|
fontSize: "0.875rem",
|
|
3561
3550
|
display: "flex",
|
|
3562
3551
|
alignItems: "flex-start",
|
|
@@ -3584,8 +3573,8 @@ function ProductDetail({
|
|
|
3584
3573
|
] }),
|
|
3585
3574
|
showStickyBar && checkoutState === "browsing" && !isOutOfStock && !needsVariantSelection && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "skc-sticky-bar", children: [
|
|
3586
3575
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
3587
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { fontWeight: 600, fontSize: "0.875rem", color: "var(--commerce-text)", lineHeight: 1.2 }, children: product.name }),
|
|
3588
|
-
product.price_is_public && currentPrice != null && /* @__PURE__ */ jsxRuntime.jsx("div", { style: { fontWeight: 700, fontSize: "1rem", color: hasDiscount ? "var(--commerce-danger)" : "var(--commerce-text)" }, children: formatPrice(currentPrice, product.currency) })
|
|
3576
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { fontWeight: 600, fontSize: "0.875rem", color: "var(--commerce-text, #111827)", lineHeight: 1.2 }, children: product.name }),
|
|
3577
|
+
product.price_is_public && currentPrice != null && /* @__PURE__ */ jsxRuntime.jsx("div", { style: { fontWeight: 700, fontSize: "1rem", color: hasDiscount ? "var(--commerce-danger, #dc2626)" : "var(--commerce-text, #111827)" }, children: formatPrice(currentPrice, product.currency) })
|
|
3589
3578
|
] }),
|
|
3590
3579
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3591
3580
|
"button",
|
|
@@ -3628,13 +3617,13 @@ function ProductDetail({
|
|
|
3628
3617
|
height: 32,
|
|
3629
3618
|
borderRadius: "50%",
|
|
3630
3619
|
border: "none",
|
|
3631
|
-
background: "var(--commerce-surface)",
|
|
3620
|
+
background: "var(--commerce-surface, #f9fafb)",
|
|
3632
3621
|
cursor: "pointer",
|
|
3633
3622
|
display: "flex",
|
|
3634
3623
|
alignItems: "center",
|
|
3635
3624
|
justifyContent: "center",
|
|
3636
3625
|
zIndex: 10,
|
|
3637
|
-
color: "var(--commerce-text-secondary)"
|
|
3626
|
+
color: "var(--commerce-text-secondary, #6b7280)"
|
|
3638
3627
|
},
|
|
3639
3628
|
children: /* @__PURE__ */ jsxRuntime.jsx(IconX, {})
|
|
3640
3629
|
}
|
|
@@ -3648,15 +3637,15 @@ function ProductDetail({
|
|
|
3648
3637
|
style: {
|
|
3649
3638
|
width: 48,
|
|
3650
3639
|
height: 48,
|
|
3651
|
-
border: "3px solid var(--commerce-border)",
|
|
3652
|
-
borderTopColor: "var(--commerce-accent)",
|
|
3640
|
+
border: "3px solid var(--commerce-border, #e5e7eb)",
|
|
3641
|
+
borderTopColor: "var(--commerce-accent, #2563eb)",
|
|
3653
3642
|
borderRadius: "50%",
|
|
3654
3643
|
animation: "skc-spin 0.8s linear infinite",
|
|
3655
3644
|
margin: "0 auto 1.5rem"
|
|
3656
3645
|
}
|
|
3657
3646
|
}
|
|
3658
3647
|
),
|
|
3659
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { color: "var(--commerce-text-secondary)", fontSize: "0.9375rem", margin: 0 }, children: "Processing your order..." })
|
|
3648
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { color: "var(--commerce-text-secondary, #6b7280)", fontSize: "0.9375rem", margin: 0 }, children: "Processing your order..." })
|
|
3660
3649
|
] }),
|
|
3661
3650
|
checkoutState === "success" && checkoutResult && /* @__PURE__ */ jsxRuntime.jsx(SuccessStep, { result: checkoutResult, product, onClose: handleCloseCheckout }),
|
|
3662
3651
|
checkoutState === "customer-info" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -3720,8 +3709,8 @@ function ProductDetail({
|
|
|
3720
3709
|
padding: "0.75rem",
|
|
3721
3710
|
background: "#fef2f2",
|
|
3722
3711
|
border: "1px solid #fecaca",
|
|
3723
|
-
borderRadius: "var(--commerce-radius-sm)",
|
|
3724
|
-
color: "var(--commerce-danger)",
|
|
3712
|
+
borderRadius: "var(--commerce-radius-sm, 8px)",
|
|
3713
|
+
color: "var(--commerce-danger, #dc2626)",
|
|
3725
3714
|
fontSize: "0.875rem",
|
|
3726
3715
|
display: "flex",
|
|
3727
3716
|
alignItems: "flex-start",
|
|
@@ -6603,5 +6592,5 @@ exports.isEventSoldOut = isEventSoldOut;
|
|
|
6603
6592
|
exports.registerForEvent = registerForEvent;
|
|
6604
6593
|
exports.useEventModal = useEventModal;
|
|
6605
6594
|
exports.validateAddress = validateAddress;
|
|
6606
|
-
//# sourceMappingURL=chunk-
|
|
6607
|
-
//# sourceMappingURL=chunk-
|
|
6595
|
+
//# sourceMappingURL=chunk-B5NQTJ2M.js.map
|
|
6596
|
+
//# sourceMappingURL=chunk-B5NQTJ2M.js.map
|