@loafmarkets/ui 0.0.6 → 0.0.7
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 +20 -16
- package/dist/index.d.ts +20 -16
- package/dist/index.js +509 -286
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +510 -287
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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" |
|
|
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
|
-
|
|
152
|
-
|
|
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,31 @@ type YourOrderSide = "buy" | "sell";
|
|
|
186
186
|
type YourOrder = {
|
|
187
187
|
id: string;
|
|
188
188
|
asset: string;
|
|
189
|
-
side
|
|
190
|
-
date
|
|
189
|
+
side?: YourOrderSide;
|
|
190
|
+
date?: string;
|
|
191
191
|
price: number;
|
|
192
192
|
amount: number;
|
|
193
193
|
total: number;
|
|
194
|
-
filledPercent
|
|
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 =
|
|
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;
|
|
203
210
|
};
|
|
204
|
-
declare const YourOrders: React.ForwardRefExoticComponent<
|
|
211
|
+
declare const YourOrders: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
205
212
|
title?: string;
|
|
206
213
|
orders: YourOrder[];
|
|
207
|
-
onEditPrice?: (order: YourOrder) => void;
|
|
208
|
-
onEditAmount?: (order: YourOrder) => void;
|
|
209
|
-
onCancel?: (order: YourOrder) => void;
|
|
210
214
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
211
215
|
|
|
212
216
|
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" |
|
|
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
|
-
|
|
152
|
-
|
|
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,31 @@ type YourOrderSide = "buy" | "sell";
|
|
|
186
186
|
type YourOrder = {
|
|
187
187
|
id: string;
|
|
188
188
|
asset: string;
|
|
189
|
-
side
|
|
190
|
-
date
|
|
189
|
+
side?: YourOrderSide;
|
|
190
|
+
date?: string;
|
|
191
191
|
price: number;
|
|
192
192
|
amount: number;
|
|
193
193
|
total: number;
|
|
194
|
-
filledPercent
|
|
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 =
|
|
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;
|
|
203
210
|
};
|
|
204
|
-
declare const YourOrders: React.ForwardRefExoticComponent<
|
|
211
|
+
declare const YourOrders: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
205
212
|
title?: string;
|
|
206
213
|
orders: YourOrder[];
|
|
207
|
-
onEditPrice?: (order: YourOrder) => void;
|
|
208
|
-
onEditAmount?: (order: YourOrder) => void;
|
|
209
|
-
onCancel?: (order: YourOrder) => void;
|
|
210
214
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
211
215
|
|
|
212
216
|
type PriceChartRange = "1D" | "1W" | "1M" | "3M" | "1Y";
|