@loafmarkets/ui 0.1.51 → 0.1.52

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/index.d.mts CHANGED
@@ -218,6 +218,8 @@ interface PropertyNewsUpdatesProps extends React$1.HTMLAttributes<HTMLDivElement
218
218
  /** Home variant: "View All" link */
219
219
  viewAllHref?: string;
220
220
  viewAllLabel?: string;
221
+ /** Default variant: drives the LIVE/CONNECTING indicator in the header */
222
+ connectionStatus?: "live" | "connecting";
221
223
  }
222
224
  declare const PropertyNewsUpdates: React$1.ForwardRefExoticComponent<PropertyNewsUpdatesProps & React$1.RefAttributes<HTMLDivElement>>;
223
225
 
package/dist/index.d.ts CHANGED
@@ -218,6 +218,8 @@ interface PropertyNewsUpdatesProps extends React$1.HTMLAttributes<HTMLDivElement
218
218
  /** Home variant: "View All" link */
219
219
  viewAllHref?: string;
220
220
  viewAllLabel?: string;
221
+ /** Default variant: drives the LIVE/CONNECTING indicator in the header */
222
+ connectionStatus?: "live" | "connecting";
221
223
  }
222
224
  declare const PropertyNewsUpdates: React$1.ForwardRefExoticComponent<PropertyNewsUpdatesProps & React$1.RefAttributes<HTMLDivElement>>;
223
225
 
package/dist/index.js CHANGED
@@ -2700,6 +2700,7 @@ var PropertyNewsUpdates = React5__namespace.forwardRef(
2700
2700
  purchases: purchasesProp,
2701
2701
  viewAllHref,
2702
2702
  viewAllLabel = "View All News",
2703
+ connectionStatus = "live",
2703
2704
  ...props
2704
2705
  }, ref) => {
2705
2706
  const isPurchaseVariant = variant === "purchases";
@@ -2767,7 +2768,30 @@ var PropertyNewsUpdates = React5__namespace.forwardRef(
2767
2768
  /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z" }) })
2768
2769
  ]
2769
2770
  }
2770
- ) : !isHomeVariant && !isPurchaseVariant ? /* @__PURE__ */ jsxRuntime.jsxs(
2771
+ ) : !isHomeVariant && !isPurchaseVariant ? connectionStatus === "connecting" ? /* @__PURE__ */ jsxRuntime.jsxs(
2772
+ "div",
2773
+ {
2774
+ className: "inline-flex items-center font-semibold uppercase",
2775
+ style: { gap: "0.35rem", fontSize: "0.8rem", letterSpacing: "0.15em", color: "#f97316" },
2776
+ children: [
2777
+ /* @__PURE__ */ jsxRuntime.jsx(
2778
+ "span",
2779
+ {
2780
+ style: {
2781
+ display: "inline-block",
2782
+ width: "10px",
2783
+ height: "10px",
2784
+ borderRadius: "50%",
2785
+ border: "2px solid rgba(249,115,22,0.3)",
2786
+ borderTopColor: "#f97316",
2787
+ animation: "propertyNewsSpin 0.8s linear infinite"
2788
+ }
2789
+ }
2790
+ ),
2791
+ "CONNECTING"
2792
+ ]
2793
+ }
2794
+ ) : /* @__PURE__ */ jsxRuntime.jsxs(
2771
2795
  "div",
2772
2796
  {
2773
2797
  className: "inline-flex items-center font-semibold uppercase text-emerald-300",