@loafmarkets/ui 0.0.6 → 0.0.8

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
@@ -67,6 +67,7 @@ type OrderbookTrade = {
67
67
  price: number;
68
68
  amount: number;
69
69
  time?: string;
70
+ tradeId?: number;
70
71
  };
71
72
  interface OrderbookProps extends React.HTMLAttributes<HTMLDivElement> {
72
73
  asks: OrderbookLevel[];
@@ -142,22 +143,21 @@ declare const PropertyTour: React.ForwardRefExoticComponent<Omit<Omit<CardProps
142
143
  playsInline?: boolean;
143
144
  } & React.RefAttributes<HTMLDivElement>>;
144
145
 
145
- type PropertyNewsType = "property" | "market" | "portfolio" | (string & {});
146
+ type PropertyNewsType = "property" | "market" | (string & {});
146
147
  type PropertyNewsItem = {
147
148
  id?: string;
148
149
  title: string;
149
150
  date: string | Date;
150
151
  type?: PropertyNewsType;
151
- description?: string;
152
- actionLabel?: string;
153
- href?: string;
154
- onAction?: (item: PropertyNewsItem) => void;
152
+ displayId?: string;
153
+ isNew?: boolean;
155
154
  };
156
155
  interface PropertyNewsUpdatesProps extends React.HTMLAttributes<HTMLDivElement> {
157
156
  items: PropertyNewsItem[];
158
157
  heading?: string;
159
158
  subheading?: string;
160
159
  emptyState?: React.ReactNode;
160
+ highlightFirst?: boolean;
161
161
  }
162
162
  declare const PropertyNewsUpdates: React.ForwardRefExoticComponent<PropertyNewsUpdatesProps & React.RefAttributes<HTMLDivElement>>;
163
163
 
@@ -186,27 +186,33 @@ type YourOrderSide = "buy" | "sell";
186
186
  type YourOrder = {
187
187
  id: string;
188
188
  asset: string;
189
- side: YourOrderSide;
190
- date: string;
189
+ side?: YourOrderSide;
190
+ date?: string;
191
191
  price: number;
192
192
  amount: number;
193
193
  total: number;
194
- filledPercent: number;
194
+ filledPercent?: number;
195
195
  status?: string;
196
+ propertyPercent?: number;
197
+ portfolioSharePercent?: number;
198
+ avgEntryPrice?: number;
199
+ pnlValue?: number;
200
+ pnlPercent?: number;
201
+ holdingLabel?: string;
202
+ value?: number;
203
+ currentPrice?: number;
204
+ priceChangePercent?: number;
205
+ priceChangePositive?: boolean;
196
206
  };
197
- type YourOrdersProps = Omit<React.ComponentPropsWithoutRef<typeof Card>, "title"> & {
207
+ type YourOrdersProps = React.HTMLAttributes<HTMLDivElement> & {
198
208
  title?: string;
199
209
  orders: YourOrder[];
200
- onEditPrice?: (order: YourOrder) => void;
201
- onEditAmount?: (order: YourOrder) => void;
202
- onCancel?: (order: YourOrder) => void;
210
+ renderOrderActions?: (order: YourOrder) => React.ReactNode;
203
211
  };
204
- declare const YourOrders: React.ForwardRefExoticComponent<Omit<Omit<CardProps & React.RefAttributes<HTMLDivElement>, "ref">, "title"> & {
212
+ declare const YourOrders: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
205
213
  title?: string;
206
214
  orders: YourOrder[];
207
- onEditPrice?: (order: YourOrder) => void;
208
- onEditAmount?: (order: YourOrder) => void;
209
- onCancel?: (order: YourOrder) => void;
215
+ renderOrderActions?: (order: YourOrder) => React.ReactNode;
210
216
  } & React.RefAttributes<HTMLDivElement>>;
211
217
 
212
218
  type PriceChartRange = "1D" | "1W" | "1M" | "3M" | "1Y";
package/dist/index.d.ts CHANGED
@@ -67,6 +67,7 @@ type OrderbookTrade = {
67
67
  price: number;
68
68
  amount: number;
69
69
  time?: string;
70
+ tradeId?: number;
70
71
  };
71
72
  interface OrderbookProps extends React.HTMLAttributes<HTMLDivElement> {
72
73
  asks: OrderbookLevel[];
@@ -142,22 +143,21 @@ declare const PropertyTour: React.ForwardRefExoticComponent<Omit<Omit<CardProps
142
143
  playsInline?: boolean;
143
144
  } & React.RefAttributes<HTMLDivElement>>;
144
145
 
145
- type PropertyNewsType = "property" | "market" | "portfolio" | (string & {});
146
+ type PropertyNewsType = "property" | "market" | (string & {});
146
147
  type PropertyNewsItem = {
147
148
  id?: string;
148
149
  title: string;
149
150
  date: string | Date;
150
151
  type?: PropertyNewsType;
151
- description?: string;
152
- actionLabel?: string;
153
- href?: string;
154
- onAction?: (item: PropertyNewsItem) => void;
152
+ displayId?: string;
153
+ isNew?: boolean;
155
154
  };
156
155
  interface PropertyNewsUpdatesProps extends React.HTMLAttributes<HTMLDivElement> {
157
156
  items: PropertyNewsItem[];
158
157
  heading?: string;
159
158
  subheading?: string;
160
159
  emptyState?: React.ReactNode;
160
+ highlightFirst?: boolean;
161
161
  }
162
162
  declare const PropertyNewsUpdates: React.ForwardRefExoticComponent<PropertyNewsUpdatesProps & React.RefAttributes<HTMLDivElement>>;
163
163
 
@@ -186,27 +186,33 @@ type YourOrderSide = "buy" | "sell";
186
186
  type YourOrder = {
187
187
  id: string;
188
188
  asset: string;
189
- side: YourOrderSide;
190
- date: string;
189
+ side?: YourOrderSide;
190
+ date?: string;
191
191
  price: number;
192
192
  amount: number;
193
193
  total: number;
194
- filledPercent: number;
194
+ filledPercent?: number;
195
195
  status?: string;
196
+ propertyPercent?: number;
197
+ portfolioSharePercent?: number;
198
+ avgEntryPrice?: number;
199
+ pnlValue?: number;
200
+ pnlPercent?: number;
201
+ holdingLabel?: string;
202
+ value?: number;
203
+ currentPrice?: number;
204
+ priceChangePercent?: number;
205
+ priceChangePositive?: boolean;
196
206
  };
197
- type YourOrdersProps = Omit<React.ComponentPropsWithoutRef<typeof Card>, "title"> & {
207
+ type YourOrdersProps = React.HTMLAttributes<HTMLDivElement> & {
198
208
  title?: string;
199
209
  orders: YourOrder[];
200
- onEditPrice?: (order: YourOrder) => void;
201
- onEditAmount?: (order: YourOrder) => void;
202
- onCancel?: (order: YourOrder) => void;
210
+ renderOrderActions?: (order: YourOrder) => React.ReactNode;
203
211
  };
204
- declare const YourOrders: React.ForwardRefExoticComponent<Omit<Omit<CardProps & React.RefAttributes<HTMLDivElement>, "ref">, "title"> & {
212
+ declare const YourOrders: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
205
213
  title?: string;
206
214
  orders: YourOrder[];
207
- onEditPrice?: (order: YourOrder) => void;
208
- onEditAmount?: (order: YourOrder) => void;
209
- onCancel?: (order: YourOrder) => void;
215
+ renderOrderActions?: (order: YourOrder) => React.ReactNode;
210
216
  } & React.RefAttributes<HTMLDivElement>>;
211
217
 
212
218
  type PriceChartRange = "1D" | "1W" | "1M" | "3M" | "1Y";