@loafmarkets/ui 0.1.72 → 0.1.74

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.mjs CHANGED
@@ -2953,7 +2953,7 @@ var PropertyNewsUpdates = React5.forwardRef(
2953
2953
  /* @__PURE__ */ jsx(
2954
2954
  "div",
2955
2955
  {
2956
- className: "mt-4 flex flex-1 flex-col gap-3 overflow-hidden",
2956
+ className: cn("flex flex-1 flex-col overflow-hidden", isHomeVariant ? "mt-2 gap-0" : "mt-4 gap-3"),
2957
2957
  style: !isPurchaseVariant && !isHomeVariant ? { minHeight: `${ITEMS_PER_PAGE * 86}px` } : void 0,
2958
2958
  children: isPurchaseVariant ? purchaseItems.length > 0 ? purchaseItems.slice(0, 7).map((purchase, index) => {
2959
2959
  const maxAmount = 6e4;
@@ -3001,11 +3001,22 @@ var PropertyNewsUpdates = React5.forwardRef(
3001
3001
  justifyContent: "space-between",
3002
3002
  alignItems: "flex-start",
3003
3003
  gap: "0.5rem",
3004
- color: "inherit"
3004
+ color: "inherit",
3005
+ transition: "background-color 0.15s"
3006
+ },
3007
+ onMouseEnter: (e) => {
3008
+ e.currentTarget.style.backgroundColor = "rgba(255,255,255,0.02)";
3009
+ const title = e.currentTarget.querySelector("h3");
3010
+ if (title) title.style.color = "var(--color-accent, #E6C87E)";
3011
+ },
3012
+ onMouseLeave: (e) => {
3013
+ e.currentTarget.style.backgroundColor = "transparent";
3014
+ const title = e.currentTarget.querySelector("h3");
3015
+ if (title) title.style.color = "#f8f9fa";
3005
3016
  },
3006
3017
  children: [
3007
3018
  /* @__PURE__ */ jsxs("div", { style: { flex: 1 }, children: [
3008
- /* @__PURE__ */ jsx("h3", { style: { fontSize: "0.85rem", fontWeight: 400, marginBottom: "0.25rem", color: "#f8f9fa", lineHeight: 1.4 }, children: item.title }),
3019
+ /* @__PURE__ */ jsx("h3", { style: { fontSize: "0.85rem", fontWeight: 400, marginBottom: "0.25rem", color: "#f8f9fa", lineHeight: 1.4, transition: "color 0.15s" }, children: item.title }),
3009
3020
  /* @__PURE__ */ jsxs("div", { style: { display: "flex", gap: "0.5rem", alignItems: "center", flexWrap: "wrap" }, children: [
3010
3021
  /* @__PURE__ */ jsx("span", { style: { color: "#848e9c", fontSize: "0.7rem" }, children: typeof item.date === "string" ? item.date : formatDate(item.date) }),
3011
3022
  item.source && /* @__PURE__ */ jsx("span", { style: { padding: "0.1rem 0.4rem", borderRadius: "3px", fontSize: "0.62rem", fontWeight: 500, backgroundColor: "rgba(255,255,255,0.07)", color: "#848e9c", whiteSpace: "nowrap" }, children: item.source }),
@@ -9646,6 +9657,7 @@ function OfferingProgressCard({
9646
9657
  raisedAmount,
9647
9658
  targetAmount,
9648
9659
  isPrivateClient = false,
9660
+ variant = "default",
9649
9661
  style,
9650
9662
  className
9651
9663
  }) {
@@ -9677,6 +9689,24 @@ function OfferingProgressCard({
9677
9689
  const interval = setInterval(() => setCountdown(calculateCountdown()), 1e3);
9678
9690
  return () => clearInterval(interval);
9679
9691
  }, [opensAt]);
9692
+ if (variant === "compact") {
9693
+ return /* @__PURE__ */ jsxs(CompactContainer, { style, className, children: [
9694
+ /* @__PURE__ */ jsx(ProgressBarOuter, { children: /* @__PURE__ */ jsx(ProgressBarInner, { style: { width: `${Math.min(percentSold, 100)}%` } }) }),
9695
+ /* @__PURE__ */ jsxs(ProgressInfo, { children: [
9696
+ /* @__PURE__ */ jsxs(ProgressSubscribers, { children: [
9697
+ "Subscribers: ",
9698
+ subscriberCount.toLocaleString()
9699
+ ] }),
9700
+ /* @__PURE__ */ jsxs(ProgressAmounts, { children: [
9701
+ /* @__PURE__ */ jsx("span", { className: "raised", children: formatCurrency3(computedRaised) }),
9702
+ /* @__PURE__ */ jsxs("span", { className: "target", children: [
9703
+ " / ",
9704
+ formatCurrency3(computedTarget)
9705
+ ] })
9706
+ ] })
9707
+ ] })
9708
+ ] });
9709
+ }
9680
9710
  return /* @__PURE__ */ jsxs(Container, { style, className, children: [
9681
9711
  /* @__PURE__ */ jsxs(Header2, { children: [
9682
9712
  /* @__PURE__ */ jsxs("h3", { children: [
@@ -9978,6 +10008,13 @@ var ProgressAmounts = styled25.div`
9978
10008
  .raised { color: #D4AF37; }
9979
10009
  .target { color: rgba(255,255,255,0.3); }
9980
10010
  `;
10011
+ var CompactContainer = styled25.div`
10012
+ width: 100%;
10013
+ margin: 1.5rem 0;
10014
+ display: flex;
10015
+ flex-direction: column;
10016
+ gap: 0.5rem;
10017
+ `;
9981
10018
  var MAX_DISPLAY_AMOUNT = 6e4;
9982
10019
  var formatCurrency4 = (amount) => {
9983
10020
  if (amount >= 1e6) return `$${(amount / 1e6).toFixed(2)}M`;