@loafmarkets/ui 0.1.417 → 0.1.419

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
@@ -1819,27 +1819,6 @@ function TradeRow({
1819
1819
  }
1820
1820
  );
1821
1821
  }
1822
- function BreadSliceGlyph() {
1823
- return /* @__PURE__ */ jsx(
1824
- "svg",
1825
- {
1826
- width: "10",
1827
- height: "10",
1828
- viewBox: "0 0 10 10",
1829
- "aria-hidden": "true",
1830
- style: { display: "block", filter: "drop-shadow(0 0 4px rgba(201,162,39,0.6))" },
1831
- children: /* @__PURE__ */ jsx(
1832
- "path",
1833
- {
1834
- d: "M1 4.2 C1 1.9 2.7 1 5 1 C7.3 1 9 1.9 9 4.2 L9 8.2 C9 8.6 8.6 9 8.2 9 L1.8 9 C1.4 9 1 8.6 1 8.2 Z",
1835
- fill: "none",
1836
- stroke: "#C9A227",
1837
- strokeWidth: "1.3"
1838
- }
1839
- )
1840
- }
1841
- );
1842
- }
1843
1822
  function DepthRow({
1844
1823
  side,
1845
1824
  price,
@@ -1890,8 +1869,7 @@ function DepthRow({
1890
1869
  "span",
1891
1870
  {
1892
1871
  "aria-label": "Your order at this price",
1893
- className: "absolute left-0 top-1/2 -translate-y-1/2 z-[2]",
1894
- children: /* @__PURE__ */ jsx(BreadSliceGlyph, {})
1872
+ className: "absolute left-0 top-1/2 -translate-y-1/2 z-[2] h-[6px] w-[6px] rounded-full bg-[#C9A227] shadow-[0_0_6px_rgba(201,162,39,0.7)]"
1895
1873
  }
1896
1874
  ) : null,
1897
1875
  /* @__PURE__ */ jsxs("div", { "data-cell": "price", className: cn("relative z-[1] tabular-nums", isAsk ? "text-[#f6465d]" : "text-[#0ecb81]"), children: [
@@ -2837,12 +2815,16 @@ function MobileDepthRow({
2837
2815
  left: "2px",
2838
2816
  top: "50%",
2839
2817
  transform: "translateY(-50%)",
2818
+ width: "6px",
2819
+ height: "6px",
2820
+ borderRadius: "50%",
2821
+ backgroundColor: "#C9A227",
2822
+ boxShadow: "0 0 6px rgba(201,162,39,0.7)",
2840
2823
  zIndex: 2
2841
- },
2842
- children: /* @__PURE__ */ jsx(BreadSliceGlyph, {})
2824
+ }
2843
2825
  }
2844
2826
  ) : null,
2845
- /* @__PURE__ */ jsxs("div", { style: { position: "relative", zIndex: 1, color: isAsk ? "#f6465d" : "#0ecb81", paddingLeft: hasUserOrder ? "14px" : void 0 }, children: [
2827
+ /* @__PURE__ */ jsxs("div", { style: { position: "relative", zIndex: 1, color: isAsk ? "#f6465d" : "#0ecb81", paddingLeft: hasUserOrder ? "10px" : void 0 }, children: [
2846
2828
  "$",
2847
2829
  formatNumber(price, precision)
2848
2830
  ] }),
@@ -3049,6 +3031,11 @@ function isSafeUrl(url) {
3049
3031
  return false;
3050
3032
  }
3051
3033
  }
3034
+ function matchesTab(item, tab) {
3035
+ if (tab === "all") return true;
3036
+ if (item.types && item.types.length > 0) return item.types.includes(tab);
3037
+ return item.type === tab;
3038
+ }
3052
3039
  var BREAKING_WINDOW_HOURS = 6;
3053
3040
  var MAX_PINNED_BREAKING = 2;
3054
3041
  var BREAKING_IMPACT_FLOOR = 8;
@@ -3559,7 +3546,7 @@ var PropertyNewsUpdates = React9.forwardRef(
3559
3546
  const cutoff = breakingNow - BREAKING_WINDOW_HOURS * 36e5;
3560
3547
  return breakingCandidates.filter((it) => {
3561
3548
  if (new Date(it.publishedAt).getTime() < cutoff) return false;
3562
- return homeTab === "all" || it.type === homeTab;
3549
+ return matchesTab(it, homeTab);
3563
3550
  });
3564
3551
  }, [breakingCandidates, breakingNow, homeTab]);
3565
3552
  const [dismissedVersion, setDismissedVersion] = React9.useState(0);
@@ -3604,7 +3591,7 @@ var PropertyNewsUpdates = React9.forwardRef(
3604
3591
  }, [totalPages]);
3605
3592
  const paginatedItems = hasItems ? listItems.slice(page * ITEMS_PER_PAGE, page * ITEMS_PER_PAGE + ITEMS_PER_PAGE) : [];
3606
3593
  const homeFilteredItems = React9.useMemo(
3607
- () => hasItems ? listItems.filter((it) => homeTab === "all" || it.type === homeTab) : [],
3594
+ () => hasItems ? listItems.filter((it) => matchesTab(it, homeTab)) : [],
3608
3595
  [hasItems, listItems, homeTab]
3609
3596
  );
3610
3597
  const homeTotalPages = React9.useMemo(
@@ -21952,6 +21939,6 @@ var SparklineChart = React9__default.memo(function SparklineChart2({ data, width
21952
21939
  );
21953
21940
  });
21954
21941
 
21955
- export { AssetSelectorBar, Badge, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ContactPopup, Header, HlsVideo, HousePositionSlider, HousePositionSliderMobile, LoafLiquidityBadge, LoafLiquidityLogo, LoginPopup, MobileTradeNav, OfferingProgressCard, OnboardingGuide, Orderbook, owner_booking_default as OwnerBooking, PaymentPopup, PortfolioActivityPanel, PortfolioSummary, PriceChart, PropertyBuy, PropertyCompareBar, PropertyDocuments, PropertyHeroHeader, PropertyHistory, PropertyInspectionTimes, PropertyMediaRow, PropertyNewsUpdates, PropertyOffers, PropertyOverview, PropertyPhotoGallery, PropertySubheader, PropertyTour, PropertyValuation, SentimentBar, SiteFooter, Skeleton, SlideDigit, SparklineChart, ToastProvider, TradeConfirmationModal, TradingSlider, YourOrders, __resetDismissedBreaking, badgeVariants, buttonVariants, extractSparkline, formatAge, hasPendingActivity, rowAgeLabel, useAdaptivePolling, useToast };
21942
+ export { AssetSelectorBar, Badge, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ContactPopup, Header, HlsVideo, HousePositionSlider, HousePositionSliderMobile, LoafLiquidityBadge, LoafLiquidityLogo, LoginPopup, MobileTradeNav, OfferingProgressCard, OnboardingGuide, Orderbook, owner_booking_default as OwnerBooking, PaymentPopup, PortfolioActivityPanel, PortfolioSummary, PriceChart, PropertyBuy, PropertyCompareBar, PropertyDocuments, PropertyHeroHeader, PropertyHistory, PropertyInspectionTimes, PropertyMediaRow, PropertyNewsUpdates, PropertyOffers, PropertyOverview, PropertyPhotoGallery, PropertySubheader, PropertyTour, PropertyValuation, SentimentBar, SiteFooter, Skeleton, SlideDigit, SparklineChart, ToastProvider, TradeConfirmationModal, TradingSlider, YourOrders, __resetDismissedBreaking, badgeVariants, buttonVariants, extractSparkline, formatAge, hasPendingActivity, matchesTab, rowAgeLabel, useAdaptivePolling, useToast };
21956
21943
  //# sourceMappingURL=index.mjs.map
21957
21944
  //# sourceMappingURL=index.mjs.map