@sonordev/site-kit 2.7.0 → 2.7.1

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.
@@ -5025,6 +5025,11 @@ function loadSquareSDK2(environment) {
5025
5025
  document.head.appendChild(script);
5026
5026
  });
5027
5027
  }
5028
+ function resolveCssVar(name, fallback) {
5029
+ if (typeof window === "undefined") return fallback;
5030
+ const value = getComputedStyle(document.documentElement).getPropertyValue(name).trim();
5031
+ return value || fallback;
5032
+ }
5028
5033
  var SINGLE_TICKET_KEY = "__single__";
5029
5034
  function EventCheckout({
5030
5035
  event,
@@ -5115,11 +5120,11 @@ function EventCheckout({
5115
5120
  const card = await payments.card({
5116
5121
  style: {
5117
5122
  ".input-container": {
5118
- borderColor: "var(--sk-border, #d1d5db)",
5123
+ borderColor: resolveCssVar("--sk-border", "#d1d5db"),
5119
5124
  borderRadius: "6px"
5120
5125
  },
5121
5126
  ".input-container.is-focus": {
5122
- borderColor: "var(--sk-primary, #2563eb)"
5127
+ borderColor: resolveCssVar("--sk-primary", "#2563eb")
5123
5128
  },
5124
5129
  ".input-container.is-error": {
5125
5130
  borderColor: "#dc2626"
@@ -7784,5 +7789,5 @@ exports.registerForEvent = registerForEvent;
7784
7789
  exports.useEventModal = useEventModal;
7785
7790
  exports.validateAddress = validateAddress;
7786
7791
  exports.validateDiscountCode = validateDiscountCode;
7787
- //# sourceMappingURL=chunk-KCA5OLS4.js.map
7788
- //# sourceMappingURL=chunk-KCA5OLS4.js.map
7792
+ //# sourceMappingURL=chunk-2OGUBINV.js.map
7793
+ //# sourceMappingURL=chunk-2OGUBINV.js.map