@loafmarkets/ui 0.0.8 → 0.1.0

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
@@ -165,23 +165,33 @@ type PropertyAddressOption = {
165
165
  id: string;
166
166
  label: string;
167
167
  };
168
+ type PropertyValueSummary = {
169
+ value: number;
170
+ change?: number;
171
+ label?: string;
172
+ currencySymbol?: string;
173
+ formatOptions?: Intl.NumberFormatOptions;
174
+ };
168
175
  type PropertyCompareBarProps = React.HTMLAttributes<HTMLDivElement> & {
169
176
  addresses: (PropertyAddressOption | string)[];
170
177
  selectedAddressId?: string;
171
178
  onSelectAddress?: (addressId: string) => void;
172
- compareLabel?: string;
173
- onCompareClick?: () => void;
174
- compareIcon?: React.ReactNode;
179
+ propertyValue?: PropertyValueSummary;
180
+ propertyValueVariant?: "classic" | "card" | "pill";
175
181
  };
176
182
  declare const PropertyCompareBar: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
177
183
  addresses: (PropertyAddressOption | string)[];
178
184
  selectedAddressId?: string;
179
185
  onSelectAddress?: (addressId: string) => void;
180
- compareLabel?: string;
181
- onCompareClick?: () => void;
182
- compareIcon?: React.ReactNode;
186
+ propertyValue?: PropertyValueSummary;
187
+ propertyValueVariant?: "classic" | "card" | "pill";
183
188
  } & React.RefAttributes<HTMLDivElement>>;
184
189
 
190
+ interface LoafLiquidityBadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
191
+ isGlowing?: boolean;
192
+ }
193
+ declare const LoafLiquidityBadge: React.ForwardRefExoticComponent<LoafLiquidityBadgeProps & React.RefAttributes<HTMLSpanElement>>;
194
+
185
195
  type YourOrderSide = "buy" | "sell";
186
196
  type YourOrder = {
187
197
  id: string;
@@ -302,4 +312,4 @@ declare const PropertySubheader: React.ForwardRefExoticComponent<React.HTMLAttri
302
312
  actions?: PropertySubheaderAction[];
303
313
  } & React.RefAttributes<HTMLDivElement>>;
304
314
 
305
- export { 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 HousePositionOrderbook, type HousePositionPendingOrder, HousePositionSlider, type HousePositionSliderOrderPayload, type HousePositionSliderProps, Orderbook, type OrderbookLevel, type OrderbookProps, type OrderbookSide, type OrderbookTrade, PortfolioSummary, type PortfolioSummaryProps, PriceChart, type PriceChartCandle, type PriceChartProps, type PriceChartRange, type PropertyAddressOption, PropertyCompareBar, type PropertyCompareBarProps, PropertyHeroHeader, type PropertyHeroHeaderProps, type PropertyNewsItem, type PropertyNewsType, PropertyNewsUpdates, type PropertyNewsUpdatesProps, PropertySubheader, type PropertySubheaderAction, type PropertySubheaderProps, type PropertySubheaderTab, PropertyTour, type PropertyTourProps, type YourOrder, type YourOrderSide, YourOrders, type YourOrdersProps, badgeVariants, buttonVariants };
315
+ export { 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 HousePositionOrderbook, type HousePositionPendingOrder, HousePositionSlider, type HousePositionSliderOrderPayload, type HousePositionSliderProps, LoafLiquidityBadge, Orderbook, type OrderbookLevel, type OrderbookProps, type OrderbookSide, type OrderbookTrade, PortfolioSummary, type PortfolioSummaryProps, PriceChart, type PriceChartCandle, type PriceChartProps, type PriceChartRange, type PropertyAddressOption, PropertyCompareBar, type PropertyCompareBarProps, PropertyHeroHeader, type PropertyHeroHeaderProps, type PropertyNewsItem, type PropertyNewsType, PropertyNewsUpdates, type PropertyNewsUpdatesProps, PropertySubheader, type PropertySubheaderAction, type PropertySubheaderProps, type PropertySubheaderTab, PropertyTour, type PropertyTourProps, type YourOrder, type YourOrderSide, YourOrders, type YourOrdersProps, badgeVariants, buttonVariants };
package/dist/index.d.ts CHANGED
@@ -165,23 +165,33 @@ type PropertyAddressOption = {
165
165
  id: string;
166
166
  label: string;
167
167
  };
168
+ type PropertyValueSummary = {
169
+ value: number;
170
+ change?: number;
171
+ label?: string;
172
+ currencySymbol?: string;
173
+ formatOptions?: Intl.NumberFormatOptions;
174
+ };
168
175
  type PropertyCompareBarProps = React.HTMLAttributes<HTMLDivElement> & {
169
176
  addresses: (PropertyAddressOption | string)[];
170
177
  selectedAddressId?: string;
171
178
  onSelectAddress?: (addressId: string) => void;
172
- compareLabel?: string;
173
- onCompareClick?: () => void;
174
- compareIcon?: React.ReactNode;
179
+ propertyValue?: PropertyValueSummary;
180
+ propertyValueVariant?: "classic" | "card" | "pill";
175
181
  };
176
182
  declare const PropertyCompareBar: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
177
183
  addresses: (PropertyAddressOption | string)[];
178
184
  selectedAddressId?: string;
179
185
  onSelectAddress?: (addressId: string) => void;
180
- compareLabel?: string;
181
- onCompareClick?: () => void;
182
- compareIcon?: React.ReactNode;
186
+ propertyValue?: PropertyValueSummary;
187
+ propertyValueVariant?: "classic" | "card" | "pill";
183
188
  } & React.RefAttributes<HTMLDivElement>>;
184
189
 
190
+ interface LoafLiquidityBadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
191
+ isGlowing?: boolean;
192
+ }
193
+ declare const LoafLiquidityBadge: React.ForwardRefExoticComponent<LoafLiquidityBadgeProps & React.RefAttributes<HTMLSpanElement>>;
194
+
185
195
  type YourOrderSide = "buy" | "sell";
186
196
  type YourOrder = {
187
197
  id: string;
@@ -302,4 +312,4 @@ declare const PropertySubheader: React.ForwardRefExoticComponent<React.HTMLAttri
302
312
  actions?: PropertySubheaderAction[];
303
313
  } & React.RefAttributes<HTMLDivElement>>;
304
314
 
305
- export { 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 HousePositionOrderbook, type HousePositionPendingOrder, HousePositionSlider, type HousePositionSliderOrderPayload, type HousePositionSliderProps, Orderbook, type OrderbookLevel, type OrderbookProps, type OrderbookSide, type OrderbookTrade, PortfolioSummary, type PortfolioSummaryProps, PriceChart, type PriceChartCandle, type PriceChartProps, type PriceChartRange, type PropertyAddressOption, PropertyCompareBar, type PropertyCompareBarProps, PropertyHeroHeader, type PropertyHeroHeaderProps, type PropertyNewsItem, type PropertyNewsType, PropertyNewsUpdates, type PropertyNewsUpdatesProps, PropertySubheader, type PropertySubheaderAction, type PropertySubheaderProps, type PropertySubheaderTab, PropertyTour, type PropertyTourProps, type YourOrder, type YourOrderSide, YourOrders, type YourOrdersProps, badgeVariants, buttonVariants };
315
+ export { 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 HousePositionOrderbook, type HousePositionPendingOrder, HousePositionSlider, type HousePositionSliderOrderPayload, type HousePositionSliderProps, LoafLiquidityBadge, Orderbook, type OrderbookLevel, type OrderbookProps, type OrderbookSide, type OrderbookTrade, PortfolioSummary, type PortfolioSummaryProps, PriceChart, type PriceChartCandle, type PriceChartProps, type PriceChartRange, type PropertyAddressOption, PropertyCompareBar, type PropertyCompareBarProps, PropertyHeroHeader, type PropertyHeroHeaderProps, type PropertyNewsItem, type PropertyNewsType, PropertyNewsUpdates, type PropertyNewsUpdatesProps, PropertySubheader, type PropertySubheaderAction, type PropertySubheaderProps, type PropertySubheaderTab, PropertyTour, type PropertyTourProps, type YourOrder, type YourOrderSide, YourOrders, type YourOrdersProps, badgeVariants, buttonVariants };