@loafmarkets/ui 0.1.89 → 0.1.90

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
@@ -105,6 +105,8 @@ interface OrderbookProps extends React$1.HTMLAttributes<HTMLDivElement> {
105
105
  onLoafLiquidityClick?: () => void;
106
106
  /** Given a trade's txHash, returns the full explorer URL to link to. Defaults to Sepolia Etherscan. */
107
107
  tradeExplorerUrl?: (txHash: string) => string;
108
+ /** Override the number of visible price levels per side (default 5). */
109
+ maxLevels?: number;
108
110
  }
109
111
  declare const Orderbook: React$1.ForwardRefExoticComponent<OrderbookProps & React$1.RefAttributes<HTMLDivElement>>;
110
112
 
@@ -424,13 +426,19 @@ type PropertyHeroHeaderProps = React$1.HTMLAttributes<HTMLDivElement> & {
424
426
  imageUrl: string;
425
427
  imageAlt?: string;
426
428
  name: string;
429
+ address?: string;
427
430
  location: string;
428
431
  price?: number;
429
432
  currencySymbol?: string;
430
433
  changePercent?: number;
434
+ priceChange?: number;
435
+ /** @deprecated No longer rendered. */
431
436
  beds?: number;
437
+ /** @deprecated No longer rendered. */
432
438
  baths?: number;
439
+ /** @deprecated No longer rendered. */
433
440
  cars?: number;
441
+ /** @deprecated No longer rendered. */
434
442
  propertyTypeLabel?: string;
435
443
  onTrade?: () => void;
436
444
  onMakeOffer?: () => void;
@@ -449,13 +457,19 @@ declare const PropertyHeroHeader: React$1.ForwardRefExoticComponent<React$1.HTML
449
457
  imageUrl: string;
450
458
  imageAlt?: string;
451
459
  name: string;
460
+ address?: string;
452
461
  location: string;
453
462
  price?: number;
454
463
  currencySymbol?: string;
455
464
  changePercent?: number;
465
+ priceChange?: number;
466
+ /** @deprecated No longer rendered. */
456
467
  beds?: number;
468
+ /** @deprecated No longer rendered. */
457
469
  baths?: number;
470
+ /** @deprecated No longer rendered. */
458
471
  cars?: number;
472
+ /** @deprecated No longer rendered. */
459
473
  propertyTypeLabel?: string;
460
474
  onTrade?: () => void;
461
475
  onMakeOffer?: () => void;
@@ -550,6 +564,13 @@ type HeaderUser = {
550
564
  email?: string | null;
551
565
  walletAddress?: string | null;
552
566
  };
567
+ type HeaderPortfolioData = {
568
+ holdings: number;
569
+ cash: number;
570
+ portfolioValue: number;
571
+ pnl: number;
572
+ pnlPercent: number;
573
+ };
553
574
  type HeaderActiveTab = "home" | "trade" | "offerings" | "propertyMap" | "about" | "portfolio" | "learn" | "api";
554
575
  type HeaderLoginPopupComponentProps = {
555
576
  onClose: () => void;
@@ -590,6 +611,7 @@ type HeaderProps = {
590
611
  onOrdersNavigate?: () => void;
591
612
  onWalletNavigate?: () => void;
592
613
  showTradeTab?: boolean;
614
+ portfolioSummary?: HeaderPortfolioData | null;
593
615
  };
594
616
  declare const Header: React__default.FC<HeaderProps>;
595
617
 
@@ -824,7 +846,6 @@ interface TradeHistoryItem {
824
846
  readonly price: number;
825
847
  readonly executedAt: number;
826
848
  readonly fee: number;
827
- readonly status?: string;
828
849
  }
829
850
  interface TransferHistoryItem {
830
851
  readonly type: 'DEPOSIT' | 'WITHDRAWAL';
@@ -890,8 +911,9 @@ type AssetSelectorBarProps = {
890
911
  currentTokenName?: string;
891
912
  selectorItems?: readonly SelectorItem[];
892
913
  onSelect?: (tokenName: string) => void;
914
+ trailing?: ReactNode;
893
915
  };
894
- declare function AssetSelectorBar({ propertyName, tokenPrice, offeringValuation, metrics: metricsProp, currentTokenName, selectorItems, onSelect, }: AssetSelectorBarProps): react_jsx_runtime.JSX.Element;
916
+ declare function AssetSelectorBar({ propertyName, tokenPrice, offeringValuation, metrics: metricsProp, currentTokenName, selectorItems, onSelect, trailing, }: AssetSelectorBarProps): react_jsx_runtime.JSX.Element;
895
917
 
896
918
  type IpoStatus = 'PENDING' | 'LIVE' | 'CLOSED' | 'CANCELLED';
897
919
  type SaleData = {
@@ -979,10 +1001,12 @@ type OfferingProgressCardProps = {
979
1001
  raisedAmount?: number;
980
1002
  targetAmount?: number;
981
1003
  isPrivateClient?: boolean;
1004
+ /** "default" = full card with header/countdown, "compact" = bar-only, "home" = countdown left + spinner right */
1005
+ variant?: 'default' | 'compact' | 'home';
982
1006
  style?: React__default.CSSProperties;
983
1007
  className?: string;
984
1008
  };
985
- declare function OfferingProgressCard({ ipoStarted, statusLabel, statusColor, ipoStatus, tokenPrice, offeringValuation, percentSold, totalSold, supplyToSell, opensAt, subscriberCount, raisedAmount, targetAmount, isPrivateClient, style, className, }: OfferingProgressCardProps): react_jsx_runtime.JSX.Element;
1009
+ declare function OfferingProgressCard({ ipoStarted, statusLabel, statusColor, ipoStatus, tokenPrice, offeringValuation, percentSold, totalSold, supplyToSell, opensAt, subscriberCount, raisedAmount, targetAmount, isPrivateClient, variant, style, className, }: OfferingProgressCardProps): react_jsx_runtime.JSX.Element;
986
1010
 
987
1011
  type OwnerBookingProps = {
988
1012
  propertyName?: string | null;
@@ -1132,4 +1156,4 @@ interface SkeletonProps extends React$1.HTMLAttributes<HTMLDivElement> {
1132
1156
  */
1133
1157
  declare const Skeleton: React$1.ForwardRefExoticComponent<SkeletonProps & React$1.RefAttributes<HTMLDivElement>>;
1134
1158
 
1135
- export { type ActivityTabId, AssetSelectorBar, type AssetSelectorBarProps, type AssetSelectorMetric, Badge, type BadgeProps, Button, type ButtonProps, Card, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, type FinancialItem, type FundWalletParams, type FundWalletResult, Header, type HeaderProps, type HousePositionOrderbook, type HousePositionPendingOrder, HousePositionSlider, HousePositionSliderMobile, type HousePositionSliderMobileOrderPayload, type HousePositionSliderMobileOrderbook, type HousePositionSliderMobileProps, type HousePositionSliderOrderPayload, type HousePositionSliderProps, type InspectionSlot, LoafLiquidityBadge, LoafLiquidityLogo, type LoafLiquidityLogoProps, LoginPopup, type LoginPopupProps, MobileTradeNav, type MobileTradeNavItem, type MobileTradeNavProps, type OfferStatus, OfferingProgressCard, type OfferingProgressCardProps, Orderbook, type OrderbookLevel, type OrderbookProps, type OrderbookSide, type OrderbookTrade, type OverviewImage, type OverviewResponse, OwnerBooking, type OwnerBookingProps, PaymentPopup, type PaymentPopupProps, PortfolioActivityPanel, type PortfolioActivityPanelProps, type PortfolioPosition, PortfolioSummary, type PortfolioSummaryProps, PriceChart, type PriceChartCandle, type PriceChartProps, type PriceChartRange, type PropertyAddressOption, PropertyBuy, PropertyCompareBar, type PropertyCompareBarProps, PropertyDocuments, type PropertyGalleryHotspot, type PropertyGalleryImage, PropertyHeroHeader, type PropertyHeroHeaderProps, PropertyHistory, type PropertyInfoItem, PropertyInspectionTimes, type PropertyNewsItem, type PropertyNewsType, PropertyNewsUpdates, type PropertyNewsUpdatesProps, type PropertyOffer, PropertyOffers, type PropertyOffersProps, PropertyOverview, type PropertyOverviewProps, PropertyPhotoGallery, type PropertyPriceSummary, PropertySubheader, type PropertySubheaderAction, type PropertySubheaderProps, type PropertySubheaderTab, PropertyTour, type PropertyTourProps, PropertyValuation, type PropertyValuationProps, type PropertyValueSummary, type PurchaseFeedItem, type SelectorItem, Skeleton, type SkeletonProps, type ToastData, ToastProvider, type ToastVariant, TradeConfirmationModal, type TradeConfirmationModalDetails, type TradeConfirmationModalProps, TradingSlider, type TradingSliderProps, type ValuationHistoryPoint, type ValuationRecentSale, type ValuationSummary, type YourOrder, type YourOrderSide, YourOrders, type YourOrdersProps, badgeVariants, buttonVariants, hasPendingActivity, useAdaptivePolling, useToast };
1159
+ export { type ActivityTabId, AssetSelectorBar, type AssetSelectorBarProps, type AssetSelectorMetric, Badge, type BadgeProps, Button, type ButtonProps, Card, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, type FinancialItem, type FundWalletParams, type FundWalletResult, Header, type HeaderPortfolioData, type HeaderProps, type HousePositionOrderbook, type HousePositionPendingOrder, HousePositionSlider, HousePositionSliderMobile, type HousePositionSliderMobileOrderPayload, type HousePositionSliderMobileOrderbook, type HousePositionSliderMobileProps, type HousePositionSliderOrderPayload, type HousePositionSliderProps, type InspectionSlot, LoafLiquidityBadge, LoafLiquidityLogo, type LoafLiquidityLogoProps, LoginPopup, type LoginPopupProps, MobileTradeNav, type MobileTradeNavItem, type MobileTradeNavProps, type OfferStatus, OfferingProgressCard, type OfferingProgressCardProps, Orderbook, type OrderbookLevel, type OrderbookProps, type OrderbookSide, type OrderbookTrade, type OverviewImage, type OverviewResponse, OwnerBooking, type OwnerBookingProps, PaymentPopup, type PaymentPopupProps, PortfolioActivityPanel, type PortfolioActivityPanelProps, type PortfolioPosition, PortfolioSummary, type PortfolioSummaryProps, PriceChart, type PriceChartCandle, type PriceChartProps, type PriceChartRange, type PropertyAddressOption, PropertyBuy, PropertyCompareBar, type PropertyCompareBarProps, PropertyDocuments, type PropertyGalleryHotspot, type PropertyGalleryImage, PropertyHeroHeader, type PropertyHeroHeaderProps, PropertyHistory, type PropertyInfoItem, PropertyInspectionTimes, type PropertyNewsItem, type PropertyNewsType, PropertyNewsUpdates, type PropertyNewsUpdatesProps, type PropertyOffer, PropertyOffers, type PropertyOffersProps, PropertyOverview, type PropertyOverviewProps, PropertyPhotoGallery, type PropertyPriceSummary, PropertySubheader, type PropertySubheaderAction, type PropertySubheaderProps, type PropertySubheaderTab, PropertyTour, type PropertyTourProps, PropertyValuation, type PropertyValuationProps, type PropertyValueSummary, type PurchaseFeedItem, type SelectorItem, Skeleton, type SkeletonProps, type ToastData, ToastProvider, type ToastVariant, TradeConfirmationModal, type TradeConfirmationModalDetails, type TradeConfirmationModalProps, TradingSlider, type TradingSliderProps, type ValuationHistoryPoint, type ValuationRecentSale, type ValuationSummary, type YourOrder, type YourOrderSide, YourOrders, type YourOrdersProps, badgeVariants, buttonVariants, hasPendingActivity, useAdaptivePolling, useToast };
package/dist/index.d.ts CHANGED
@@ -105,6 +105,8 @@ interface OrderbookProps extends React$1.HTMLAttributes<HTMLDivElement> {
105
105
  onLoafLiquidityClick?: () => void;
106
106
  /** Given a trade's txHash, returns the full explorer URL to link to. Defaults to Sepolia Etherscan. */
107
107
  tradeExplorerUrl?: (txHash: string) => string;
108
+ /** Override the number of visible price levels per side (default 5). */
109
+ maxLevels?: number;
108
110
  }
109
111
  declare const Orderbook: React$1.ForwardRefExoticComponent<OrderbookProps & React$1.RefAttributes<HTMLDivElement>>;
110
112
 
@@ -424,13 +426,19 @@ type PropertyHeroHeaderProps = React$1.HTMLAttributes<HTMLDivElement> & {
424
426
  imageUrl: string;
425
427
  imageAlt?: string;
426
428
  name: string;
429
+ address?: string;
427
430
  location: string;
428
431
  price?: number;
429
432
  currencySymbol?: string;
430
433
  changePercent?: number;
434
+ priceChange?: number;
435
+ /** @deprecated No longer rendered. */
431
436
  beds?: number;
437
+ /** @deprecated No longer rendered. */
432
438
  baths?: number;
439
+ /** @deprecated No longer rendered. */
433
440
  cars?: number;
441
+ /** @deprecated No longer rendered. */
434
442
  propertyTypeLabel?: string;
435
443
  onTrade?: () => void;
436
444
  onMakeOffer?: () => void;
@@ -449,13 +457,19 @@ declare const PropertyHeroHeader: React$1.ForwardRefExoticComponent<React$1.HTML
449
457
  imageUrl: string;
450
458
  imageAlt?: string;
451
459
  name: string;
460
+ address?: string;
452
461
  location: string;
453
462
  price?: number;
454
463
  currencySymbol?: string;
455
464
  changePercent?: number;
465
+ priceChange?: number;
466
+ /** @deprecated No longer rendered. */
456
467
  beds?: number;
468
+ /** @deprecated No longer rendered. */
457
469
  baths?: number;
470
+ /** @deprecated No longer rendered. */
458
471
  cars?: number;
472
+ /** @deprecated No longer rendered. */
459
473
  propertyTypeLabel?: string;
460
474
  onTrade?: () => void;
461
475
  onMakeOffer?: () => void;
@@ -550,6 +564,13 @@ type HeaderUser = {
550
564
  email?: string | null;
551
565
  walletAddress?: string | null;
552
566
  };
567
+ type HeaderPortfolioData = {
568
+ holdings: number;
569
+ cash: number;
570
+ portfolioValue: number;
571
+ pnl: number;
572
+ pnlPercent: number;
573
+ };
553
574
  type HeaderActiveTab = "home" | "trade" | "offerings" | "propertyMap" | "about" | "portfolio" | "learn" | "api";
554
575
  type HeaderLoginPopupComponentProps = {
555
576
  onClose: () => void;
@@ -590,6 +611,7 @@ type HeaderProps = {
590
611
  onOrdersNavigate?: () => void;
591
612
  onWalletNavigate?: () => void;
592
613
  showTradeTab?: boolean;
614
+ portfolioSummary?: HeaderPortfolioData | null;
593
615
  };
594
616
  declare const Header: React__default.FC<HeaderProps>;
595
617
 
@@ -824,7 +846,6 @@ interface TradeHistoryItem {
824
846
  readonly price: number;
825
847
  readonly executedAt: number;
826
848
  readonly fee: number;
827
- readonly status?: string;
828
849
  }
829
850
  interface TransferHistoryItem {
830
851
  readonly type: 'DEPOSIT' | 'WITHDRAWAL';
@@ -890,8 +911,9 @@ type AssetSelectorBarProps = {
890
911
  currentTokenName?: string;
891
912
  selectorItems?: readonly SelectorItem[];
892
913
  onSelect?: (tokenName: string) => void;
914
+ trailing?: ReactNode;
893
915
  };
894
- declare function AssetSelectorBar({ propertyName, tokenPrice, offeringValuation, metrics: metricsProp, currentTokenName, selectorItems, onSelect, }: AssetSelectorBarProps): react_jsx_runtime.JSX.Element;
916
+ declare function AssetSelectorBar({ propertyName, tokenPrice, offeringValuation, metrics: metricsProp, currentTokenName, selectorItems, onSelect, trailing, }: AssetSelectorBarProps): react_jsx_runtime.JSX.Element;
895
917
 
896
918
  type IpoStatus = 'PENDING' | 'LIVE' | 'CLOSED' | 'CANCELLED';
897
919
  type SaleData = {
@@ -979,10 +1001,12 @@ type OfferingProgressCardProps = {
979
1001
  raisedAmount?: number;
980
1002
  targetAmount?: number;
981
1003
  isPrivateClient?: boolean;
1004
+ /** "default" = full card with header/countdown, "compact" = bar-only, "home" = countdown left + spinner right */
1005
+ variant?: 'default' | 'compact' | 'home';
982
1006
  style?: React__default.CSSProperties;
983
1007
  className?: string;
984
1008
  };
985
- declare function OfferingProgressCard({ ipoStarted, statusLabel, statusColor, ipoStatus, tokenPrice, offeringValuation, percentSold, totalSold, supplyToSell, opensAt, subscriberCount, raisedAmount, targetAmount, isPrivateClient, style, className, }: OfferingProgressCardProps): react_jsx_runtime.JSX.Element;
1009
+ declare function OfferingProgressCard({ ipoStarted, statusLabel, statusColor, ipoStatus, tokenPrice, offeringValuation, percentSold, totalSold, supplyToSell, opensAt, subscriberCount, raisedAmount, targetAmount, isPrivateClient, variant, style, className, }: OfferingProgressCardProps): react_jsx_runtime.JSX.Element;
986
1010
 
987
1011
  type OwnerBookingProps = {
988
1012
  propertyName?: string | null;
@@ -1132,4 +1156,4 @@ interface SkeletonProps extends React$1.HTMLAttributes<HTMLDivElement> {
1132
1156
  */
1133
1157
  declare const Skeleton: React$1.ForwardRefExoticComponent<SkeletonProps & React$1.RefAttributes<HTMLDivElement>>;
1134
1158
 
1135
- export { type ActivityTabId, AssetSelectorBar, type AssetSelectorBarProps, type AssetSelectorMetric, Badge, type BadgeProps, Button, type ButtonProps, Card, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, type FinancialItem, type FundWalletParams, type FundWalletResult, Header, type HeaderProps, type HousePositionOrderbook, type HousePositionPendingOrder, HousePositionSlider, HousePositionSliderMobile, type HousePositionSliderMobileOrderPayload, type HousePositionSliderMobileOrderbook, type HousePositionSliderMobileProps, type HousePositionSliderOrderPayload, type HousePositionSliderProps, type InspectionSlot, LoafLiquidityBadge, LoafLiquidityLogo, type LoafLiquidityLogoProps, LoginPopup, type LoginPopupProps, MobileTradeNav, type MobileTradeNavItem, type MobileTradeNavProps, type OfferStatus, OfferingProgressCard, type OfferingProgressCardProps, Orderbook, type OrderbookLevel, type OrderbookProps, type OrderbookSide, type OrderbookTrade, type OverviewImage, type OverviewResponse, OwnerBooking, type OwnerBookingProps, PaymentPopup, type PaymentPopupProps, PortfolioActivityPanel, type PortfolioActivityPanelProps, type PortfolioPosition, PortfolioSummary, type PortfolioSummaryProps, PriceChart, type PriceChartCandle, type PriceChartProps, type PriceChartRange, type PropertyAddressOption, PropertyBuy, PropertyCompareBar, type PropertyCompareBarProps, PropertyDocuments, type PropertyGalleryHotspot, type PropertyGalleryImage, PropertyHeroHeader, type PropertyHeroHeaderProps, PropertyHistory, type PropertyInfoItem, PropertyInspectionTimes, type PropertyNewsItem, type PropertyNewsType, PropertyNewsUpdates, type PropertyNewsUpdatesProps, type PropertyOffer, PropertyOffers, type PropertyOffersProps, PropertyOverview, type PropertyOverviewProps, PropertyPhotoGallery, type PropertyPriceSummary, PropertySubheader, type PropertySubheaderAction, type PropertySubheaderProps, type PropertySubheaderTab, PropertyTour, type PropertyTourProps, PropertyValuation, type PropertyValuationProps, type PropertyValueSummary, type PurchaseFeedItem, type SelectorItem, Skeleton, type SkeletonProps, type ToastData, ToastProvider, type ToastVariant, TradeConfirmationModal, type TradeConfirmationModalDetails, type TradeConfirmationModalProps, TradingSlider, type TradingSliderProps, type ValuationHistoryPoint, type ValuationRecentSale, type ValuationSummary, type YourOrder, type YourOrderSide, YourOrders, type YourOrdersProps, badgeVariants, buttonVariants, hasPendingActivity, useAdaptivePolling, useToast };
1159
+ export { type ActivityTabId, AssetSelectorBar, type AssetSelectorBarProps, type AssetSelectorMetric, Badge, type BadgeProps, Button, type ButtonProps, Card, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, type FinancialItem, type FundWalletParams, type FundWalletResult, Header, type HeaderPortfolioData, type HeaderProps, type HousePositionOrderbook, type HousePositionPendingOrder, HousePositionSlider, HousePositionSliderMobile, type HousePositionSliderMobileOrderPayload, type HousePositionSliderMobileOrderbook, type HousePositionSliderMobileProps, type HousePositionSliderOrderPayload, type HousePositionSliderProps, type InspectionSlot, LoafLiquidityBadge, LoafLiquidityLogo, type LoafLiquidityLogoProps, LoginPopup, type LoginPopupProps, MobileTradeNav, type MobileTradeNavItem, type MobileTradeNavProps, type OfferStatus, OfferingProgressCard, type OfferingProgressCardProps, Orderbook, type OrderbookLevel, type OrderbookProps, type OrderbookSide, type OrderbookTrade, type OverviewImage, type OverviewResponse, OwnerBooking, type OwnerBookingProps, PaymentPopup, type PaymentPopupProps, PortfolioActivityPanel, type PortfolioActivityPanelProps, type PortfolioPosition, PortfolioSummary, type PortfolioSummaryProps, PriceChart, type PriceChartCandle, type PriceChartProps, type PriceChartRange, type PropertyAddressOption, PropertyBuy, PropertyCompareBar, type PropertyCompareBarProps, PropertyDocuments, type PropertyGalleryHotspot, type PropertyGalleryImage, PropertyHeroHeader, type PropertyHeroHeaderProps, PropertyHistory, type PropertyInfoItem, PropertyInspectionTimes, type PropertyNewsItem, type PropertyNewsType, PropertyNewsUpdates, type PropertyNewsUpdatesProps, type PropertyOffer, PropertyOffers, type PropertyOffersProps, PropertyOverview, type PropertyOverviewProps, PropertyPhotoGallery, type PropertyPriceSummary, PropertySubheader, type PropertySubheaderAction, type PropertySubheaderProps, type PropertySubheaderTab, PropertyTour, type PropertyTourProps, PropertyValuation, type PropertyValuationProps, type PropertyValueSummary, type PurchaseFeedItem, type SelectorItem, Skeleton, type SkeletonProps, type ToastData, ToastProvider, type ToastVariant, TradeConfirmationModal, type TradeConfirmationModalDetails, type TradeConfirmationModalProps, TradingSlider, type TradingSliderProps, type ValuationHistoryPoint, type ValuationRecentSale, type ValuationSummary, type YourOrder, type YourOrderSide, YourOrders, type YourOrdersProps, badgeVariants, buttonVariants, hasPendingActivity, useAdaptivePolling, useToast };